17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Model solution 1 (Chapter 2): Introduction to Batch Input<br />

Processing<br />

REPORT RSFFF021.<br />

* Internal table for storing the data in screen format<br />

DATA: BEGIN OF BDC_TAB OCCURS 5.<br />

INCLUDE STRUCTURE BDCDATA.<br />

DATA: END OF BDC_TAB.<br />

* Record for the data to be transferred to the SAP System<br />

DATA: BEGIN OF REC,<br />

PARAMETERS:<br />

TELEPHONE LIKE SCUSTOM-TELEPHONE,<br />

ID LIKE SCUSTOM-ID,<br />

NAME LIKE SCUSTOM-NAME,<br />

END OF REC.<br />

* Name of the batch input session<br />

NAME LIKE APQI-GROUPID DEFAULT SY-UNAME,<br />

* Name of the sequential file to be accessed<br />

FILE(30) DEFAULT '/tmp/TELXX' LOWER CASE.<br />

* Open dataset for accessing and in binary mode<br />

START-OF-SELECTION.<br />

OPEN DATASET FILE FOR INPUT IN BINARY MODE.<br />

* Text-001 D: Start creating BDC session

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

Saved successfully!

Ooh no, something went wrong!