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.

Example: Transfer Program 4<br />

© SAP AG<br />

*E Convert old format to SAP format<br />

MOVE: OLDREC-LIFNR TO LIFNR,<br />

OLDREC-NAME1 TO NAME1,<br />

OLDREC-TELF1 TO TELF1.<br />

*E Fill SAP structures<br />

MOVE: '1' TO BLF00-STYPE,<br />

'XK02' TO BLF00-TCODE,<br />

LIFNR TO BLF00-LIFNR.<br />

MOVE: '2' TO BLFA1-STYPE,<br />

'BLFA1' TO BLFA1-TBNAM,<br />

TELF1 TO BLFA1-TELF1,<br />

NODATA TO BLFA1-SENDE.<br />

*E Transfer data<br />

TRANSFER: BLF00 TO SAPFILE,<br />

BLFA1 TO SAPFILE.<br />

*E TEXT-002: '<strong>Data</strong> transferred for vendor<br />

WRITE: / TEXT-002, OLDREC-LIFNR.<br />

ENDIF.<br />

ENDDO.<br />

CLOSE DATASET: OLDFILE, SAPFILE, ERRFILE.<br />

As the length of the old data is different, it must be converted.<br />

The converted data can then be placed in the SAP structures.<br />

Finally, the SAP structures can be transferred to a sequential file. They can then be analyzed by the<br />

standard batch input program RFBIKR00.<br />

Note: In ABAP/4, a single MOVE is sufficient to convert and fill the SAP structure (every MOVE<br />

statement automatically performs a conversion).

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

Saved successfully!

Ooh no, something went wrong!