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.

Creating Sessions<br />

© SAP AG BC420 / 3 - 1<br />

START-OF-SELECTION.<br />

WRITE: / 'Start creation of BDC session',<br />

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

CALL FUNCTION 'BDC_OPEN_GROUP'<br />

EXPORTING CLIENT = SY-MANDT<br />

GROUP = NAME<br />

USER = SY-UNAME<br />

KEEP = 'X'.<br />

PERFORM GENERATE_BDC_DATA.<br />

CALL FUNCTION 'BDC_INSERT'<br />

EXPORTING TCODE = 'TCF2'<br />

TABLES DYNPROTAB = BDC_TAB.<br />

CALL FUNCTION 'BDC_CLOSE_GROUP'.<br />

WRITE: / 'End creation of BDC session',<br />

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

You require the function modules for opening and closing sessions.<br />

To insert the data in the session, you set up the BDC table in a subroutine and call the function module<br />

BDC_INSERT.

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

Saved successfully!

Ooh no, something went wrong!