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.

WRITE: / TEXT-001,<br />

SY-MANDT, NAME, SY-UZEIT.<br />

* Create the session header<br />

CALL FUNCTION 'BDC_OPEN_GROUP'<br />

EXPORTING<br />

* Access the data<br />

DO.<br />

CLIENT = SY-MANDT<br />

GROUP = NAME<br />

USER = 'BC420BDC'<br />

KEEP = 'X'.<br />

READ DATASET FILE INTO REC.<br />

IF SY-SUBRC NE 0.<br />

EXIT.<br />

ENDIF.<br />

WRITE: / REC-ID USING NO EDIT MASK, REC-NAME, REC-TELEPHONE.<br />

* Subroutine for transferring the data of one transaction to the<br />

* BDC_TAB (screen format)<br />

PERFORM GENERATE_BDC_DATA.<br />

* Function module for transferring the data of the BDC_TAB to the<br />

queue file<br />

CALL FUNCTION 'BDC_INSERT'<br />

EXPORTING<br />

TABLES<br />

TCODE = 'TFBA'<br />

DYNPROTAB = BDC_TAB.

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

Saved successfully!

Ooh no, something went wrong!