17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Generating a Sequential File for BDC Program 1<br />

© SAP AG<br />

REPORT RSFFF02B.<br />

TABLES SCUSTOM.<br />

DATA: BEGIN OF REC,<br />

ID LIKE SCUSTOM-ID,<br />

POSTCODE LIKE SCUSTOM-POSTCODE,<br />

CUSTTYPE LIKE SCUSTOM-CUSTTYPE,<br />

END OF REC.<br />

PARAMETERS:<br />

FILE(30) DEFAULT '/tmp/RSFFF02B'<br />

LOWER CASE,<br />

CODE1 LIKE SCUSTOM-POSTCODE DEFAULT<br />

'9999999999',<br />

CODE2 LIKE SCUSTOM-POSTCODE DEFAULT<br />

'1111111111',<br />

CUST1 LIKE SCUSTOM-CUSTTYPE DEFAULT 'B',<br />

CUST2 LIKE SCUSTOM-CUSTTYPE DEFAULT 'P'.<br />

START-OF-SELECTION.<br />

OPEN DATASET FILE FOR OUTPUT<br />

In the following example, the postal code is changed according to a particular algorithm. In addition,<br />

business customers (type B) are changed to private customers (type P), and vice-versa. For this, the<br />

customer masters are changed with a batch input program for Transaction TFBA. A sequential file with<br />

the required data is generated with this program.

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

Saved successfully!

Ooh no, something went wrong!