SAP Reports / Programs

ACC_BAPI_TEST_DOCUMENT SAP ABAP Report - Test Access BAPI Accounting Document







ACC_BAPI_TEST_DOCUMENT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter ACC_BAPI_TEST_DOCUMENT into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT ACC_BAPI_TEST_DOCUMENT. "Basic submit
SUBMIT ACC_BAPI_TEST_DOCUMENT AND RETURN. "Return to original report after report execution complete
SUBMIT ACC_BAPI_TEST_DOCUMENT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: CHECK_A = Check Document
Selection Text: CHECK_L = Check Lines
Selection Text: DEST = D Logical System
Selection Text: POST = Post Document
Selection Text: REF_KEY = D Reference Key
Selection Text: REV_C = Check Reversal
Selection Text: REV_P = Reverse Document
Title: Test Access BAPI Accounting Document


INCLUDES used within this REPORT ACC_BAPI_TEST_DOCUMENT

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

BAPI_ACC_DOCUMENT_CHECK CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK' DESTINATION dest EXPORTING documentheader = gd_documentheader customercpd = gd_customercpd contractheader = gd_fica_hd TABLES accountgl = it_accountgl accountreceivable = it_accountreceivable accountpayable = it_accountpayable accounttax = it_accounttax * currencyamount = it_currencyamount criteria = it_criteria valuefield = it_valuefield extension1 = it_ext return = it_return paymentcard = it_paymentcard contractitem = it_fica_it extension2 = it_ext2 realestate = it_re.

BAPI_ACC_DOCUMENT_CHECK CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK' DESTINATION dest EXPORTING documentheader = gd_documentheader customercpd = gd_customercpd contractheader = gd_fica_hd TABLES accountgl = it_accountgl accountreceivable = it_accountreceivable accountpayable = it_accountpayable accounttax = it_accounttax currencyamount = it_currencyamount criteria = it_criteria valuefield = it_valuefield extension1 = it_ext return = it_return paymentcard = it_paymentcard contractitem = it_fica_it extension2 = it_ext2 realestate = it_re.

BAPI_ACC_DOCUMENT_POST CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' EXPORTING documentheader = gd_documentheader customercpd = gd_customercpd contractheader = gd_fica_hd IMPORTING obj_type = l_type obj_key = l_key obj_sys = l_sys TABLES accountgl = it_accountgl accountreceivable = it_accountreceivable accountpayable = it_accountpayable accounttax = it_accounttax currencyamount = it_currencyamount criteria = it_criteria valuefield = it_valuefield extension1 = it_ext return = it_return paymentcard = it_paymentcard contractitem = it_fica_it extension2 = it_ext2 realestate = it_re.

ALE_ACC_DOCUMENT_POST CALL FUNCTION 'ALE_ACC_DOCUMENT_POST' EXPORTING documentheader = gd_documentheader customercpd = gd_customercpd contractheader = gd_fica_hd TABLES accountgl = it_accountgl accountreceivable = it_accountreceivable accountpayable = it_accountpayable accounttax = it_accounttax currencyamount = it_currencyamount criteria = it_criteria valuefield = it_valuefield extension1 = it_ext paymentcard = it_paymentcard contractitem = it_fica_it extension2 = it_ext2 realestate = it_re receivers = it_receivers * COMMUNICATION_DOCUMENTS = * APPLICATION_OBJECTS = EXCEPTIONS error_creating_idocs = 1 OTHERS = 2 .

BAPI_ACC_DOCUMENT_REV_POST CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST' EXPORTING reversal = rev bus_act = gd_documentheader-bus_act TABLES return = it_return.

ALE_ACC_DOCUMENT_REV_POST CALL FUNCTION 'ALE_ACC_DOCUMENT_REV_POST' EXPORTING reversal = rev busact = gd_documentheader-bus_act * OBJ_TYPE = 'BUS6035' * SERIAL_ID = '0' TABLES receivers = it_receivers * COMMUNICATION_DOCUMENTS = * APPLICATION_OBJECTS = EXCEPTIONS error_creating_idocs = 1 OTHERS = 2 .

BAPI_ACC_DOCUMENT_REV_CHECK CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_CHECK' EXPORTING reversal = rev bus_act = gd_documentheader-bus_act TABLES return = it_return.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = gd_documentheader-obj_sys.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name ACC_BAPI_TEST_DOCUMENT or its description.