SAP Reports / Programs

/SAPAPO/OM_TB_ATP_MATRIX_TEST SAP ABAP Report - Logical Test for ATP Characteristics







/SAPAPO/OM_TB_ATP_MATRIX_TEST 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_ATP_MATRIX_TEST 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_ATP_MATRIX_TEST. "Basic submit
SUBMIT /SAPAPO/OM_TB_ATP_MATRIX_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPAPO/OM_TB_ATP_MATRIX_TEST 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_BREAK = Stop If Error Occurs
Selection Text: P_SAVRES = Save Results
Selection Text: P_USERNO = User Number
Title: Logical Test for ATP Characteristics


INCLUDES used within this REPORT /SAPAPO/OM_TB_ATP_MATRIX_TEST

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_CHECK_SY_UNAME call function '/SAPAPO/OM_CHECK_SY_UNAME'.

/SAPAPO/OM_TB_LEGOINFO_INIT CALL FUNCTION '/SAPAPO/OM_TB_LEGOINFO_INIT' EXPORTING iv_logname = gv_extnumber iv_userno = p_userno iv_simversion = gc_false " use active plan version iv_export_log = p_back IMPORTING es_tb_legoinfo = gs_tb_legoinfo.

TR_SYS_PARAMS CALL FUNCTION 'TR_SYS_PARAMS' IMPORTING systemtype = lv_systemtype.

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

/SAPAPO/OM_TB_FACTORY_DELETE CALL FUNCTION '/SAPAPO/OM_TB_FACTORY_DELETE' EXPORTING is_tb_legoinfo = gs_tb_legoinfo is_factory = gs_factory EXCEPTIONS lc_error = 1 internal_error = 2 OTHERS = 3. "#EC *

/SAPAPO/OM_TB_LOG_DISPLAY CALL FUNCTION '/SAPAPO/OM_TB_LOG_DISPLAY' EXPORTING it_appl_log_handles = gt_appl_log_handles iv_export = p_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 iv_perform_errors = gc_true IMPORTING es_factory = is_factory EXCEPTIONS create_error = 1 lc_error = 2 internal_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_CREATE CALL FUNCTION '/SAPAPO/OM_ATPC_CREATE' EXPORTING iv_matrixid = ls_matrix-matrixid iv_cntno = lv_cntno * IMPORTING * EV_ATPRC = LFV_RC EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_DELETE CALL FUNCTION '/SAPAPO/OM_ATPC_DELETE' EXPORTING iv_matrixid = lv_matrixid * IMPORTING * EV_ATPRC = LFV_RC EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_FACTORY_DELETE CALL FUNCTION '/SAPAPO/OM_TB_FACTORY_DELETE' EXPORTING is_tb_legoinfo = gs_tb_legoinfo is_factory = gs_factory EXCEPTIONS lc_error = 1 internal_error = 2 OTHERS = 3. "#EC *

/SAPAPO/OM_ATPC_GET_CHARID CALL FUNCTION '/SAPAPO/OM_ATPC_GET_CHARID' EXPORTING iv_matrixid = lv_matrixid it_chartab = it_charval iv_ancguid = gv_pegid iv_genflg = iv_genflg "create or find charval IMPORTING ev_charid = iv_charkey "return charcomb guid * EV_ATPRC = LFV_RC EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_GET_CHARID CALL FUNCTION '/SAPAPO/OM_ATPC_GET_CHARID' EXPORTING iv_matrixid = lv_matrixid it_chartab = it_charval iv_ancguid = gv_pegid iv_genflg = gc_true IMPORTING ev_charid = iv_charkey * EV_ATPRC = LFV_RC EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_GET_CHARLIST CALL FUNCTION '/SAPAPO/OM_ATPC_GET_CHARLIST' EXPORTING iv_charid = lv_charkey IMPORTING et_chartab = lt_charval * EV_ATPRC = LFV_RC EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_READ_MATRIX CALL FUNCTION '/SAPAPO/OM_ATPC_READ_MATRIX' EXPORTING iv_matrixid = is_matrix-matrixid IMPORTING ev_contno = is_matrix-cntno et_charvals = is_matrix-charvals et_ancids = is_matrix-ancguids et_charids = is_matrix-charkeys EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ORDER_GET_DATA CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA' EXPORTING is_gen_params = gs_gen_params iv_simsession = gc_om_simsession_def it_order = gt_ordid IMPORTING et_orders = lt_orders et_charact_val_outnode = lt_charact_val EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_GET_CHARID CALL FUNCTION '/SAPAPO/OM_ATPC_GET_CHARID' EXPORTING iv_matrixid = iv_matrix iv_ancguid = gv_pegid it_chartab = it_charval iv_genflg = gc_false IMPORTING ev_charid = iv_charkey EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_GET_CHARID CALL FUNCTION '/SAPAPO/OM_ATPC_GET_CHARID' EXPORTING iv_matrixid = iv_matrix iv_ancguid = gv_pegid it_chartab = it_charval iv_genflg = gc_false "read only IMPORTING ev_charid = iv_charkey EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_GET_CHARID_MUX CALL FUNCTION '/SAPAPO/OM_ATPC_GET_CHARID_MUX' EXPORTING it_matrixdesc = it_matrixdesc it_chartab = it_chartab iv_genflg = iv_bool IMPORTING et_charid = it_charid EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 * lc_appl_error = 3 OTHERS = 3.

/SAPAPO/OM_CLEAR_TIMEAXIS





CALL FUNCTION '/SAPAPO/OM_CLEAR_TIMEAXIS' EXPORTING im_guid = gv_pegid im_conname = gv_dbcon_std * IMPORTING * ex_atprc = lv_exit * ex_ewcode = l_atplcrc EXCEPTIONS lc_connect_failed = 2 lc_com_error = 3 lc_appl_error = 4 OTHERS = 5.

/SAPAPO/OM_ATPC_GET_VERSIONS CALL FUNCTION '/SAPAPO/OM_ATPC_GET_VERSIONS' EXPORTING iv_matrixid = iv_matrixid iv_anchorid = gv_pegid it_charlist = it_charlist iv_exactflg = gc_true IMPORTING et_charvals = lt_charvals et_charids = lt_charids et_versions = lt_versions EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 OTHERS = 3.

/SAPAPO/OM_ATPC_GET_ALL_MATRIX CALL FUNCTION '/SAPAPO/OM_ATPC_GET_ALL_MATRIX' IMPORTING et_matrix = it_matrixtab EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_ATPC_REORG_MATRIX CALL FUNCTION '/SAPAPO/OM_ATPC_REORG_MATRIX' EXPORTING it_matrixid = gt_matrixid iv_tdiff = 0 IMPORTING et_reorgrc = lt_reorgrc EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TB_FACTORY_DELETE CALL FUNCTION '/SAPAPO/OM_TB_FACTORY_DELETE' EXPORTING is_tb_legoinfo = gs_tb_legoinfo is_factory = ls_factory EXCEPTIONS lc_error = 1 internal_error = 2 OTHERS = 3. "#EC *



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