SAP Reports / Programs | Basis Components | Database Interface, Database Platforms | liveCache Applications(BC-DB-LCA) SAP BC

/SAPAPO/OM_TB_TEST_RETURN_TABS SAP ABAP Report - Test Return Tables of Function Modules







/SAPAPO/OM_TB_TEST_RETURN_TABS 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 /SAPAPO/OM_TB_TEST_RETURN_TABS 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 /SAPAPO/OM_TB_TEST_RETURN_TABS. "Basic submit
SUBMIT /SAPAPO/OM_TB_TEST_RETURN_TABS AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/OM_TB_TEST_RETURN_TABS 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: P_DEL_LC = Delete liveCache at End
Selection Text: P_USERNO = User Number
Title: Test Return Tables of Function Modules


INCLUDES used within this REPORT /SAPAPO/OM_TB_TEST_RETURN_TABS

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:

/SAPAPO/OM_TB_TRANS_DATA_DEL CALL FUNCTION '/SAPAPO/OM_TB_TRANS_DATA_DEL' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_prd_gen = it_prd_gen EXCEPTIONS lc_error = 1 internal_error = 2 OTHERS = 3.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 180.

/SAPAPO/OM_TB_LOG_DISPLAY CALL FUNCTION '/SAPAPO/OM_TB_LOG_DISPLAY' EXPORTING it_appl_log_handles = it_appl_log_handles iv_export = iv_back.

/SAPAPO/OM_TB_MASTER_DATA_DEL CALL FUNCTION '/SAPAPO/OM_TB_MASTER_DATA_DEL' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_res_gen = it_res_gen it_stm_gen = it_stm_gen it_tst_gen = it_tst_gen it_peg_gen = it_peg_gen EXCEPTIONS lc_error = 1 OTHERS = 2.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 180.

/SAPAPO/OM_TB_LOG_DISPLAY CALL FUNCTION '/SAPAPO/OM_TB_LOG_DISPLAY' EXPORTING it_appl_log_handles = it_appl_log_handles iv_export = iv_back.

/SAPAPO/OM_TB_MASTER_DATA_NEW CALL FUNCTION '/SAPAPO/OM_TB_MASTER_DATA_NEW' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_peg_gen = lt_peg_gen it_tst_gen = lt_tst_gen it_stm_gen = lt_stm_gen it_res_gen = lt_res_gen IMPORTING es_factory = cs_factory EXCEPTIONS lc_error = 1 OTHERS = 2.

/SAPAPO/OM_TB_FACTORY_DELETE CALL FUNCTION '/SAPAPO/OM_TB_FACTORY_DELETE' EXPORTING is_tb_legoinfo = is_tb_legoinfo is_factory = cs_factory EXCEPTIONS lc_error = 0 internal_error = 0 OTHERS = 0.

/SAPAPO/OM_TB_LOG_DISPLAY CALL FUNCTION '/SAPAPO/OM_TB_LOG_DISPLAY' EXPORTING it_appl_log_handles = lt_appl_log_handles iv_export = p_back.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 124.

/SAPAPO/OM_TB_ORD_NEW CALL FUNCTION '/SAPAPO/OM_TB_ORD_NEW' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_ord_gen = lt_ord_gen IMPORTING et_schedule_lines = ct_schedule_lines et_changed_top_orders = ct_changed_top_orders CHANGING cs_factory = cs_factory EXCEPTIONS create_error = 0 lc_error = 0 internal_error = 0 OTHERS = 0.

/SAPAPO/OM_TB_PRD_PLANNED_NEW CALL FUNCTION '/SAPAPO/OM_TB_PRD_PLANNED_NEW' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_prd_gen = lt_prd_gen iv_planning_mode = gc_infinite_mode IMPORTING et_changed_orders = ct_changed_orders CHANGING cs_factory = cs_factory EXCEPTIONS create_error = 0 lc_error = 0 internal_error = 0 OTHERS = 0.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 210 iv_text1 = 'Test to check CHANGED ORDERS table - Orders Created:' iv_text2 = lv_no_of_orders iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 224 iv_text1 = 'Test to check CHANGED ORDERS table - Orders Created:' iv_text2 = lv_no_of_orders iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 212 iv_text1 = 'CUO and PUO orders - Orders Created:' iv_text2 = lv_no_of_ord iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 220 iv_text1 = 'CUO and PUO orders - Orders Created:' iv_text2 = lv_no_of_ord iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 208 iv_text1 = 'Order' iv_text2 = ls_changed_top_orders iv_text3 = 'found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 224 iv_text1 = 'Order' iv_text2 = ls_changed_top_orders iv_text3 = 'not found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD





CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 212 iv_text1 = 'PRD orders - Orders Created:' iv_text2 = lv_no_pro iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 220 iv_text1 = 'PRD orders - Orders Created:' iv_text2 = lv_no_pro iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 208 iv_text1 = 'Order' iv_text2 = ls_changed_orders-orderid iv_text3 = 'found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 225 iv_text1 = 'Order' iv_text2 = ls_changed_orders-orderid iv_text3 = 'not found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 210 iv_text1 = 'Delete the created orders' iv_text2 = ' ' iv_text3 = ' ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_ORD_DELETE CALL FUNCTION '/SAPAPO/OM_TB_ORD_DELETE' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_schedule_lines = ct_schedule_lines IMPORTING et_changed_orders = ct_deleted_ord_orders EXCEPTIONS lc_error = 0 internal_error = 0 OTHERS = 0.

/SAPAPO/OM_TB_PRD_DELETE CALL FUNCTION '/SAPAPO/OM_TB_PRD_DELETE' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_orders = ct_changed_orders IMPORTING et_changed_orders = ct_deleted_prd_orders EXCEPTIONS lc_error = 0 internal_error = 0 OTHERS = 0.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 210 iv_text1 = 'Test to check DELETED ORDERS table - Orders Created:' iv_text2 = lv_no_of_orders iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 224 iv_text1 = 'Test to check DELETED ORDERS table - Orders Created:' iv_text2 = lv_no_of_orders iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 212 iv_text1 = 'CUO and PUO orders - Orders Deleted:' iv_text2 = lv_no_of_ord iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 220 iv_text1 = 'CUO and PUO orders - Orders Deleted:' iv_text2 = lv_no_of_ord iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 208 iv_text1 = 'Order' iv_text2 = ls_order_created-ordid iv_text3 = 'found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 224 iv_text1 = 'Order' iv_text2 = ls_order_created-ordid iv_text3 = 'not found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 212 iv_text1 = 'PRD orders - Orders Deleted:' iv_text2 = lv_no_pro iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 220 iv_text1 = 'PRD orders - Orders Deleted:' iv_text2 = lv_no_pro iv_text3 = '. Orders found in return table:'

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 208 iv_text1 = 'Order' iv_text2 = ls_order_created-ordid iv_text3 = 'found ' iv_text4 = ' '. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 225 iv_text1 = 'Order' iv_text2 = ls_order_created-ordid iv_text3 = 'not found ' iv_text4 = ' '. "#EC NOTEXT



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 /SAPAPO/OM_TB_TEST_RETURN_TABS or its description.