SAP Reports / Programs

/SAPAPO/OM_TB_NEG_STOCK_MODIFY SAP ABAP Report - /SAPAPO/OM_CHARACT_MODIFY with Negative Stock







/SAPAPO/OM_TB_NEG_STOCK_MODIFY 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_NEG_STOCK_MODIFY 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_NEG_STOCK_MODIFY. "Basic submit
SUBMIT /SAPAPO/OM_TB_NEG_STOCK_MODIFY AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/OM_TB_NEG_STOCK_MODIFY 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_SCEN = Scenario
Selection Text: P_USERNO = User Number
Title: /SAPAPO/OM_CHARACT_MODIFY with Negative Stock


INCLUDES used within this REPORT /SAPAPO/OM_TB_NEG_STOCK_MODIFY

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_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 550 iv_probclass = space iv_detlevel = '1' iv_text1 = p_scen.

/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 iv_perform_errors = gc_true IMPORTING es_factory = cs_factory EXCEPTIONS OTHERS = 1.

/SAPAPO/OM_TB_TRANS_DATA_NEW CALL FUNCTION '/SAPAPO/OM_TB_TRANS_DATA_NEW' EXPORTING is_tb_legoinfo = is_tb_legoinfo it_sto_gen = lt_sto_gen it_ord_gen = lt_ord_gen iv_perform_errors = gc_true CHANGING cs_factory = cs_factory EXCEPTIONS OTHERS = 1.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 602 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Modify data'. "#EC NOTEXT

/SAPAPO/OM_STOCK_GET_BY_UID CALL FUNCTION '/SAPAPO/OM_STOCK_GET_BY_UID' EXPORTING is_gen_params = ls_gen_params iv_simsession = gs_tb_legoinfo-simsession it_stock_key = lt_stock_key IMPORTING et_stock = lt_stock EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 3 iv_subrc = sy-subrc iv_function = '/sapapo/om_stock_get_by_uid'.

/SAPAPO/OM_CHARACT_MODIFY CALL FUNCTION '/SAPAPO/OM_CHARACT_MODIFY' EXPORTING is_gen_params = ls_gen_params iv_simsession = is_tb_legoinfo-simsession is_atp_info = is_tb_legoinfo-atp_info it_charact_headers = lt_charact_headers it_charact_reqs = lt_charact_req EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 3 iv_subrc = sy-subrc iv_function = '/sapapo/om_charact_modify'.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 795 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Read data with /sapapo/om_order_get_data'."#EC NOTEXT

/SAPAPO/OM_ORDER_GET_DATA CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA' EXPORTING is_gen_params = ls_gen_params iv_simsession = is_tb_legoinfo-simsession it_order = lt_stock_key IMPORTING et_charact_req_inpnode = lt_charact_req_inpnode et_charact_val_outnode = lt_charact_val_outnode EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 3 iv_subrc = sy-subrc iv_function = '/sapapo/om_order_get_data'.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 800 iv_probclass = space iv_detlevel = '3' iv_text1 = 'Charact. Req. as expected'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 801 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'Charact. Req. changed'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 802 iv_probclass = space iv_detlevel = '3' iv_text1 = 'Charact. values initial'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 803 iv_probclass = space iv_detlevel = '3' iv_text1 = 'Charact. values filled'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 796 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Read data with /sapapo/om_stock_get'."#EC NOTEXT

/SAPAPO/OM_STOCK_GET CALL FUNCTION '/SAPAPO/OM_STOCK_GET' EXPORTING is_gen_params = ls_gen_params iv_simsession = is_tb_legoinfo-simsession it_stock_key = lt_stock_k IMPORTING et_charact_val_outnode = lt_charact_val_outnode EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 3 iv_subrc = sy-subrc iv_function = '/sapapo/om_stock_get'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD





CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 804 iv_probclass = space iv_detlevel = '3' iv_text1 = 'Charact. values as expected'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 802 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'Charact. values initial'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 796 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Read data with /sapapo/om_stock_get_by_uid'."#EC NOTEXT

/SAPAPO/OM_STOCK_GET_BY_UID CALL FUNCTION '/SAPAPO/OM_STOCK_GET_BY_UID' EXPORTING is_gen_params = ls_gen_params iv_simsession = is_tb_legoinfo-simsession it_stock_key = lt_stock_key IMPORTING et_charact_val_outnode = lt_charact_val_outnode EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 3 iv_subrc = sy-subrc iv_function = '/sapapo/om_stock_get_by_uid'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 804 iv_probclass = space iv_detlevel = '3' iv_text1 = 'Charact. values as expected'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 802 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'Charact. values initial'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 603 iv_probclass = space iv_detlevel = '3' iv_text1 = iv_step.

/SAPAPO/OM_CHARACT_MODIFY CALL FUNCTION '/SAPAPO/OM_CHARACT_MODIFY' EXPORTING is_gen_params = is_gen_params iv_simsession = gs_tb_legoinfo-simsession is_atp_info = gs_tb_legoinfo-atp_info it_charact_headers = it_charact_headers it_charact_reqs = it_charact_req IMPORTING et_rc = lt_rc EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 700 iv_probclass = 'E' iv_detlevel = '5' iv_text1 = 'no return code'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 701 iv_probclass = 'E' iv_detlevel = '5' iv_text1 = 'Wrong return code &' iv_text2 = ls_rc-rc. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 702 iv_probclass = space iv_detlevel = '5' iv_text1 = 'Expected return code &' iv_text2 = ls_rc-rc. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 703 iv_probclass = space iv_detlevel = '5' iv_text1 = 'Expected error object key'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 704 iv_probclass = 'E' iv_detlevel = '5' iv_text1 = 'Unexpected error object key'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 703 iv_probclass = space iv_detlevel = '5' iv_text1 = 'Expected error object type'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 704 iv_probclass = 'E' iv_detlevel = '5' iv_text1 = 'Unexpected error object type'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 850 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Create transSim'. "#EC NOTEXT

/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = gs_tb_legoinfo-simsession iv_simsession_method = gc_simsession_delete EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = gs_tb_legoinfo-simsession iv_simsession_method = gc_simsession_new EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 multi_tasim_registration = 4 mlevel_atp_protocol_reg_failed = 5 tasim_registration_failed = 6 OTHERS = 7.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_level = 1 iv_subrc = sy-subrc iv_function = '/sapapo/om_simsession_control'. "#EC NOTEXT




/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 851 iv_probclass = space iv_detlevel = '1' iv_text1 = iv_text50.

/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = gs_tb_legoinfo-simsession iv_simsession_method = iv_method EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 multi_tasim_registration = 4 mlevel_atp_protocol_reg_failed = 5 tasim_registration_failed = 6 OTHERS = 7.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_level = 3 iv_subrc = sy-subrc iv_function = '/sapapo/om_simsession_control'.

/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = gs_tb_legoinfo-simsession iv_simsession_method = gc_simsession_delete EXCEPTIONS OTHERS = 0.



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