SAP Reports / Programs | Environment, Health and Safety | Product Safety(EHS-SAF) SAP EHS

RC1_1077_BAPI_EXAMPLE_DG SAP ABAP Report - EHS: Example Program Spec.BAPIs (FctGrp. 1077): Dangerous Goods Data







RC1_1077_BAPI_EXAMPLE_DG 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 RC1_1077_BAPI_EXAMPLE_DG 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 RC1_1077_BAPI_EXAMPLE_DG. "Basic submit
SUBMIT RC1_1077_BAPI_EXAMPLE_DG AND RETURN. "Return to original report after report execution complete
SUBMIT RC1_1077_BAPI_EXAMPLE_DG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: EHS: Example Program Spec.BAPIs (FctGrp. 1077): Dangerous Goods Data
Text Symbol: 000 = EHS: Create Specification
Text Symbol: 001 = Execute External Commit when Using BAPIs
Text Symbol: 002 = EHS: Save Specification
Text Symbol: 003 = EHS: Read Specification
Text Symbol: 004 = EHS: Delete Specification
Text Symbol: 005 = EHS: Change Specification
Text Symbol: 006 = Method Executed Without Errors
Text Symbol: 007 = Method
Text Symbol: 008 = Function
Text Symbol: 009 = Function description
Text Symbol: 010 = Error Description
Text Symbol: 011 = Specification
Text Symbol: 012 = No Errors Occurred


INCLUDES used within this REPORT RC1_1077_BAPI_EXAMPLE_DG

INCLUDE CBUI09.


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_BUS1077_CREATE * CALL FUNCTION 'BAPI_BUS1077_CREATE' * EXPORTING * key_date = addinf-valdat * change_number = addinf-aennr * flg_header = 'X' * flg_ident = 'X' * flg_ident_longtext = 'X' * flg_ident_sublist = 'X' * flg_prop_usage = 'X' * flg_prop_header = 'X' " These Flags specify the * data to be edited * flg_prop = 'X' * flg_prop_rel = 'X' * flg_prop_comp = 'X' * flg_prop_data = 'X' * flg_prop_ftext = 'X' * flg_prop_ftext_longtext = 'X' * flg_dang_good_data = true * TABLES * return = l_return_tab " This table * contains * possible errors * to occure * sub_header = l_sub_header_tab * ident_header = l_ident_header_tab * ident_longtext = l_ident_longtext_tab * ident_sublist = l_ident_sublist_tab * prop_usage = l_prop_usage_tab * prop_header = l_prop_header_tab "These tables * contain the * data to set * prop_val = l_prop_val_tab * prop_reliability = l_prop_assess_tab * prop_component = l_prop_component_tab * prop_data = l_prop_data_tab * prop_ftext = l_prop_ftext_tab * prop_ftext_longtext = l_prop_ftext_longtext_tab * prop_tab07 = l_prop_tab07_tab * rop_tab0b = l_prop_tab0b_tab * rop_tab0d = l_prop_tab0d_tab.

BAPI_BUS1077_CHANGE * CALL FUNCTION 'BAPI_BUS1077_CHANGE' * EXPORTING * flg_ident_usage = 'X' " data to be changed * TABLES * return = l_return_tab * sub_header = l_sub_header_tab * ident_header = l_ident_header_tab * prop_usage = l_prop_usage_tab " table with changed * data * prop_usagex = l_prop_usagex_tab. " table to specifiy

BAPI_BUS1077_GETDETAIL * CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' * EXPORTING * key_date = addinf-valdat * change_number = addinf-aennr * flg_header = 'X' * flg_ident = 'X' * flg_ident_usage = 'X' * scenario = '1' "specifies the way, * the data are read (F1-help * for details) * TABLES * return = l_return_tab * sub_header = l_sub_header_tab * ident_header = l_ident_header_tab * prop_usage = l_prop_usage_tab.

BAPI_BUS1077_EXISTENCECHECK * CALL FUNCTION 'BAPI_BUS1077_EXISTENCECHECK' * EXPORTING * substanceid = l_spec_key "The spec-Key, that is * searched for * key_date = addinf-valdat * TABLES * return = l_return_tab.

BAPI_BUS1077_CLEARBUFFER * CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' * TABLES * return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true flg_prop_usage = true flg_prop_header = true flg_prop = true flg_prop_rel = true flg_prop_data = true flg_prop_ftext = true flg_prop_ftext_longtext = true flg_prop_tab07 = true flg_prop_tab0b = true flg_prop_tab0d = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab prop_usage = l_prop_usage_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_reliability = l_prop_assess_tab prop_data = l_prop_data_tab prop_ftext = l_prop_ftext_tab prop_ftext_longtext = l_prop_ftext_longtext_tab prop_tab07 = l_prop_tab07_tab prop_tab0b = l_prop_tab0b_tab prop_tab0d = l_prop_tab0d_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING scenario = l_scenario key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true flg_ident_longtext = true flg_ident_usage = true flg_properties = true flg_prop_details = true flg_prop_data = true flg_prop_ftext_longtext = true flg_dang_good_data = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab ident_longtext = l_ident_longtext_tab ident_sublist = l_ident_sublist_tab prop_usage = l_prop_usage_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_reliability = l_prop_assess_tab prop_data = l_prop_data_tab prop_component = l_prop_component_tab prop_ftext = l_prop_ftext_tab prop_ftext_longtext = l_prop_ftext_longtext_tab prop_source = l_prop_source_tab prop_tab07 = l_prop_tab07_tab prop_tab0b = l_prop_tab0b_tab prop_tab0d = l_prop_tab0d_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true flg_ident_usage = true flg_prop_header = true flg_prop = true flg_prop_rel = true flg_prop_tab0f = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab prop_usage = l_prop_usage_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_reliability = l_prop_assess_tab prop_tab0f = l_prop_tab0f_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true flg_header_usage = true flg_refsubs = true flg_matjoin = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab prop_usage = l_prop_usage_tab refsubs = l_refsubs_tab matjoin = l_matjoin_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = false flg_properties = true scenario = '1' TABLES return = l_return_tab sub_header = l_sub_header_tab prop_header = l_prop_header_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_CREATE





CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = false flg_prop_header = false flg_prop = true flg_prop_data = true TABLES return = l_return_tab sub_header = l_sub_header_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_data = l_prop_data_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true scenario = '1' TABLES return = l_return_tab sub_header = l_sub_header_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = false flg_ident = true flg_ident_usage = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab prop_usage = l_prop_usage_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = false flg_properties = true scenario = '1' TABLES return = l_return_tab sub_header = l_sub_header_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_prop_tab0f = true TABLES return = l_return_tab sub_header = l_sub_header_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_tab0f = l_prop_tab0f_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true flg_header_usage = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab prop_usage = l_prop_usage_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = false scenario = '1' TABLES return = l_return_tab sub_header = l_sub_header_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_CREATE CALL FUNCTION 'BAPI_BUS1077_CREATE' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_prop_header = true flg_prop = true flg_prop_tab0f = true TABLES return = l_return_tab sub_header = l_sub_header_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_tab0f = l_prop_tab0f_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.




BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true scenario = '1' TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_CHANGE CALL FUNCTION 'BAPI_BUS1077_CHANGE' EXPORTING flg_ident = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab ident_headerx = l_ident_headerx_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true scenario = '1' TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_GETDETAIL CALL FUNCTION 'BAPI_BUS1077_GETDETAIL' EXPORTING scenario = l_scenario key_date = addinf-valdat change_number = addinf-aennr flg_header = true flg_ident = true flg_properties = true flg_prop_details = true flg_prop_data = true flg_matjoin = true flg_refsubs = true flg_dang_good_data = true TABLES return = l_return_tab sub_header = l_sub_header_tab ident_header = l_ident_header_tab prop_usage = l_prop_usage_tab prop_header = l_prop_header_tab prop_val = l_prop_val_tab prop_reliability = l_prop_assess_tab prop_data = l_prop_data_tab matjoin = l_matjoin_tab refsubs = l_refsubs_tab prop_tab0f = l_prop_tab0f_tab.

BAPI_BUS1077_CLEARBUFFER CALL FUNCTION 'BAPI_BUS1077_CLEARBUFFER' TABLES return = l_return_tab.

BAPI_BUS1077_DELETE CALL FUNCTION 'BAPI_BUS1077_DELETE' EXPORTING flg_header = true TABLES return = l_return_tab sub_header = sub_header_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_DELETE CALL FUNCTION 'BAPI_BUS1077_DELETE' EXPORTING flg_header = true TABLES return = l_return_tab sub_header = sub_header_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_DELETE CALL FUNCTION 'BAPI_BUS1077_DELETE' EXPORTING flg_header = true TABLES return = l_return_tab sub_header = sub_header_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.

BAPI_BUS1077_DELETE CALL FUNCTION 'BAPI_BUS1077_DELETE' EXPORTING flg_header = true TABLES return = l_return_tab sub_header = sub_header_tab.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = true IMPORTING return = l_return_wa.

BAPI_BUS1077_SAVEFROMBUFFER CALL FUNCTION 'BAPI_BUS1077_SAVEFROMBUFFER' EXPORTING flg_luw_close_for_bapi = true TABLES return = l_return_tab.



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 RC1_1077_BAPI_EXAMPLE_DG or its description.