/SAPAPO/OM_TB_PLANVERSION 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_PLANVERSION into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_USERNO = User Number
Title: Test of Planning Version
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
/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 iv_export_log = p_back IMPORTING es_tb_legoinfo = gs_tb_legoinfo.
ENQUEUE_/SAPAPO/EPLANVER CALL FUNCTION 'ENQUEUE_/SAPAPO/EPLANVER' EXPORTING client = ev_mandt simversion = '~~OM~TB~PLANVERSION~~' con_name = lv_con EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
/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 = 600 iv_probclass = space iv_detlevel = '1' iv_text1 = lv_text.
/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 = 601 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Create plv. for client without general plv.'.
/SAPAPO/OM_PLAN_VERSION_CHANGE CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false 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 = 611 iv_probclass = space iv_detlevel = '3' iv_text1 = 'om_invalid_client found'.
/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 = 621 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'om_invalid_client not found'.
/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 = 'Delete general plv. while there exist other plv.'.
/SAPAPO/OM_PLAN_VERSION_CHANGE CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false 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 = 612 iv_probclass = space iv_detlevel = '3' iv_text1 = 'om_client_not_empty found'.
/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 = 622 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'om_client_not_empty not found'.
/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 = '1' iv_text1 = 'Delete plv. with existing transSim'.
/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = lv_simsession iv_simsession_method = gc_simsession_new EXCEPTIONS OTHERS = 0.
/SAPAPO/OM_PLAN_VERSION_CHANGE CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false 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 = 613 iv_probclass = space iv_detlevel = '3' iv_text1 = 'Planversion deleted'. "#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 = 623 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'Planversion not deleted'. "#EC NOTEXT
/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = lv_simsession iv_simsession_method = gc_simsession_delete 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 = 604 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Create existing planversion'. "#EC NOTEXT
/SAPAPO/OM_PLAN_VERSION_CHANGE
CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false 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 = 614 iv_probclass = space iv_detlevel = '3' iv_text1 = 'om_duplicate_plan_version found'.
/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 = 624 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'om_duplicate_plan_version not found'.
/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 = 605 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Delete non-existing planversion'. "#EC NOTEXT
/SAPAPO/OM_PLAN_VERSION_CHANGE CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false 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 = 615 iv_probclass = space iv_detlevel = '3' iv_text1 = 'om_invalid_plan_version found'.
/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 = 625 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'om_invalid_plan_version not found'.
/SAPAPO/OM_PLAN_VERSION_CHANGE CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false EXCEPTIONS OTHERS = 0.
/SAPAPO/OM_PLAN_VERS_GET_ALL CALL FUNCTION '/SAPAPO/OM_PLAN_VERS_GET_ALL' EXPORTING iv_get_testguids = gc_true IMPORTING et_plan_version_id = lt_planvers_id EXCEPTIONS OTHERS = 0.
/SAPAPO/OM_PLAN_VERSION_CHANGE CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_CHANGE' EXPORTING it_plan_version = lt_planversion iv_write_log = gc_false EXCEPTIONS OTHERS = 0.
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_PLANVERSION or its description.
/SAPAPO/OM_TB_PLANVERSION - Test of Planning Version /SAPAPO/OM_TB_PLANVERSION - Test of Planning Version /SAPAPO/OM_TB_PERF_TRANS_SIM - Performance Test for Simulation Version /SAPAPO/OM_TB_PERF_TRANS_SIM - Performance Test for Simulation Version /SAPAPO/OM_TB_PERF_TRANSIM - Performance: Create Simulation Version, Read Data /SAPAPO/OM_TB_PERF_TRANSIM - Performance: Create Simulation Version, Read Data