21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Handling Data in Excel In-place Display Using BDS<br />

The article demonstrates data handling in excel in-place display using BDS with the help of<br />

a program. The demo program maintains the entries in a database table through an excel<br />

in-place display.<br />

OVERVIEW<br />

MS Excel is the conventional way of storing and maintaining data. Sometimes, user prefers<br />

to display report output in specific MS Excel templates; which contain logos, user specific<br />

table formats, engineering drawings, diagrams and macros. The data modified manually in<br />

these excel templates may be again transferred to SAP for processing.<br />

Excel integration is required due to various reasons like avoiding user training on newly<br />

developed custom programs and screens, use existing data templates, data integration with<br />

legacy system.<br />

BDS (Business Document Services) is a convenient option for excel integration as user<br />

specific MS Excel templates can be stored in it. These templates can be called in an <strong>ABAP</strong><br />

program at runtime to display data. Also, the data modified by the user in MS Excel can be<br />

read into <strong>ABAP</strong> program for processing.<br />

The functionality will be demonstrated through a demo program. The program will display<br />

the content of a custom table in excel in-place display. The user can change the non key<br />

fields displayed and the modified contents will be updated to the table after validation.<br />

1. Defining a B DS Class<br />

A custom BDS class can be defined through transaction SBDSV1 as described below. An<br />

existing BDS class can be used, unless the user wants a separate class for a specific<br />

application.<br />

In SBDSV1, Go to „NEW ENTRIES‟.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!