0% found this document useful (0 votes)
10 views3 pages

BDC Program

The document is an ABAP report named ZPROGRAM_BDC_01 that prepares a batch data communication (BDC) session for transaction 'IL01'. It constructs a table of BDC data entries with various field values and then calls the transaction using this data, capturing any messages generated during the process. The report includes multiple entries for different fields required by the transaction.

Uploaded by

Ajit Lokhande
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

BDC Program

The document is an ABAP report named ZPROGRAM_BDC_01 that prepares a batch data communication (BDC) session for transaction 'IL01'. It constructs a table of BDC data entries with various field values and then calls the transaction using this data, capturing any messages generated during the process. The report includes multiple entries for different fields required by the transaction.

Uploaded by

Ajit Lokhande
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

*&---------------------------------------------------------------------*

*& Report ZPROGRAM_BDC_01


*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT zprogram_bdc_01.

DATA: it_BDC TYPE TABLE OF bdcdata.


DATA: wa_BDC TYPE bdcdata.

wa_bdc-program = 'SAPMILO0'.
wa_bdc-dynpro = '1110'.
wa_bdc-dynbegin = 'X'.
wa_bdc-fnam = ''.
wa_bdc-fval = ''.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'BDC_OKCODE'.
wa_bdc-fval = '/00'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'IFLOS-STRNO'.
wa_bdc-fval = 'TEST-014'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'RILO0-TPLKZ'.
wa_bdc-fval = 'A'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'IFLO-FLTYP'.
wa_bdc-fval = 'M'.
APPEND wa_BDC TO it_bdc.
wa_bdc-program = 'SAPMILO0'.
wa_bdc-dynpro = '2100'.
wa_bdc-dynbegin = 'X'.
wa_bdc-fnam = ''.
wa_bdc-fval = ''.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'BDC_OKCODE'.
wa_bdc-fval = '=T\02'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'IFLO-PLTXT'.
wa_bdc-fval = 'Test for BDC 014'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'BDC_CURSOR'.
wa_bdc-fval = 'ITOB-EQART'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'ITOB-EQART'.
wa_bdc-fval = '1000'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = 'SAPMILO0'.
wa_bdc-dynpro = '2100'.
wa_bdc-dynbegin = 'X'.
wa_bdc-fnam = ''.
wa_bdc-fval = ''.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'BDC_OKCODE'.
wa_bdc-fval = '=BU'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'BDC_CURSOR'.
wa_bdc-fval = 'ITOB-SWERK'.
APPEND wa_BDC TO it_bdc.

wa_bdc-program = ''.
wa_bdc-dynpro = ''.
wa_bdc-dynbegin = ''.
wa_bdc-fnam = 'ITOB-SWERK'.
wa_bdc-fval = '0005'.
APPEND wa_BDC TO it_bdc.

Data: it_msg type table of BDCmsgcoll.


CALL TRANSACTION 'il01' USING it_bdc MESSAGE into it_msg.

You might also like