SAP Reports / Programs

/SAPAPO/OM_REORG_DAILY SAP ABAP Report - Periodic (Daily) Reorganization of COM Objects in liveCache







/SAPAPO/OM_REORG_DAILY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program /SAPAPO/OM_REORG_DAILY should be run on a daily basis in each client that contains productive APO data ...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter /SAPAPO/OM_REORG_DAILY into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/SAPAPO/OM25 - Daily Reorganization of APO


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


Text pool values


Title: Periodic (Daily) Reorganization of COM Objects in liveCache
Text Symbol: 001 = Error in application
Text Symbol: 002 = Delete Containers from Multilevel ATP Check
Text Symbol: 003 = Check Trace Settings
Text Symbol: 004 = Could not read planning version
Text Symbol: 005 = Delete
Text Symbol: 006 = Old Transactional Simulations
Text Symbol: 007 = No planning version active in current client
Text Symbol: 008 = Could not read stocks
Text Symbol: 009 = Could not delete stocks
Text Symbol: 013 = Reorganization of liveCache Objects
Text Symbol: 014 = Do you want to reorganize the liveCache objects?
Text Symbol: 015 = See /sapapo/om13
Text Symbol: 016 = Reorganization of Initial Stocks
Text Symbol: 017 = initial stock items deleted
Text Symbol: 019 = Could not read planning version
Text Symbol: 020 = Could not read class container
Text Symbol: 024 = You are not authorized to set trace levels
Text Symbol: 027 = Switched to trace file 1


INCLUDES used within this REPORT /SAPAPO/OM_REORG_DAILY

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_MESSAGES_LC_STORE call function '/SAPAPO/OM_MESSAGES_LC_STORE' exporting iv_subrc = 3 it_lc_rc = lt_rc iv_show_immediatly = if_lca_config=>true exceptions others = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Reorganisation der liveCache-Objekte'(013) text_question = 'Wollen Sie wirklich die liveCache-Objekte reorganisieren?'(014) default_button = '2' userdefined_f1_help = '/SAPAPO/OM_REORG_DAILY' IMPORTING answer = gv_answer. "#EC *

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = gv_jobcount jobname = gv_jobname EXCEPTIONS no_runtime_info = 0.

/SAPAPO/OM_CREATE_LOG CALL FUNCTION '/SAPAPO/OM_CREATE_LOG' EXPORTING iv_event = /sapapo/cl_om_logevent_c=>om_logevent_reorg_daily iv_guid = gv_guid.

/SAPAPO/OM_LIVECACHE_AVAILABLE CALL FUNCTION '/SAPAPO/OM_LIVECACHE_AVAILABLE' EXCEPTIONS lc_connect_failed = 1 OTHERS = 2.

/SAPAPO/OM_MLEVEL_ATP_PROT_DEL CALL FUNCTION '/SAPAPO/OM_MLEVEL_ATP_PROT_DEL' EXPORTING iv_mode = 3 EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_CREATE_LOG CALL FUNCTION '/SAPAPO/OM_CREATE_LOG' EXPORTING iv_method = 'U'.

/SAPAPO/OM_CREATE_LOG CALL FUNCTION '/SAPAPO/OM_CREATE_LOG' EXPORTING iv_counter = gv_counter iv_message = gv_message iv_guid = gv_guid iv_method = 'U'.

/SAPAPO/OM_FETCH_CLASSCONT_SZE CALL FUNCTION '/SAPAPO/OM_FETCH_CLASSCONT_SZE'.

/SAPAPO/OM_SIMSESSION_SELECT CALL FUNCTION '/SAPAPO/OM_SIMSESSION_SELECT' EXPORTING iv_saved_inclusive = gc_false iv_min_age_in_hours = 8 IMPORTING et_oms_version = lt_oms_version EXCEPTIONS lc_connect_failed = 1 OTHERS = 2.

/SAPAPO/OM_SIMSESSION_GET_DATA CALL FUNCTION '/SAPAPO/OM_SIMSESSION_GET_DATA' EXPORTING it_simid = lt_simid IMPORTING et_simsession_info = lt_simsession_info EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_SIMSESSION_CONTROL CALL FUNCTION '/SAPAPO/OM_SIMSESSION_CONTROL' EXPORTING is_gen_params = ls_gen_params iv_simsession = ls_oms_version-simsession iv_simsession_method = gc_simsession_delete iv_client = ls_simsession_info-client EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_TS_SIMSESSION_CONTR CALL FUNCTION '/SAPAPO/OM_TS_SIMSESSION_CONTR' EXPORTING is_gen_params = ls_gen_params iv_simsession = ls_oms_version-simsession iv_simsession_method = gc_simsession_delete iv_client = ls_simsession_info-client EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 multi_tasim_registration = 4 OTHERS = 5.

/SAPAPO/OM_PRODUCTIVE_CLIENTS CALL FUNCTION '/SAPAPO/OM_PRODUCTIVE_CLIENTS' EXPORTING iv_without_sy_mandt = gc_false IMPORTING et_t000 = lt_client.

/SAPAPO/OM_TRACELEVEL_GET_ALL CALL FUNCTION '/SAPAPO/OM_TRACELEVEL_GET_ALL' EXPORTING iv_client = ls_client IMPORTING et_tracer_levels = lt_tracer_levels EXCEPTIONS lc_connect_failed = 1 OTHERS = 2.

LCA_TRACELEVEL_READ CALL FUNCTION 'LCA_TRACELEVEL_READ' IMPORTING et_tracelevels = lt_lca_tracelevels EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_PRODUCTIVE_CLIENTS CALL FUNCTION '/SAPAPO/OM_PRODUCTIVE_CLIENTS' EXPORTING iv_without_sy_mandt = gc_false IMPORTING et_t000 = lt_client.

/SAPAPO/OM_TRACELEVEL_CHANGE CALL FUNCTION '/SAPAPO/OM_TRACELEVEL_CHANGE' EXPORTING it_tracelevels = lt_levels iv_client = ls_client IMPORTING et_rc = lt_lca_rc EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4. "#EC *

/SAPAPO/OM_CREATE_LOG





CALL FUNCTION '/SAPAPO/OM_CREATE_LOG' EXPORTING iv_counter = gv_counter iv_message = gv_message iv_guid = gv_guid iv_method = 'U'.

/SAPAPO/OM_CREATE_LOG CALL FUNCTION '/SAPAPO/OM_CREATE_LOG' EXPORTING iv_event = /sapapo/cl_om_logevent_c=>om_logevent_om13 iv_guid = gv_guid.

/SAPAPO/OM_PLAN_VERSION_GET CALL FUNCTION '/SAPAPO/OM_PLAN_VERSION_GET' EXPORTING it_plan_version_id = lt_plan_version_id IMPORTING et_rc = lt_rc EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_RES_COLL_MERGE CALL FUNCTION '/SAPAPO/OM_RES_COLL_MERGE' EXPORTING is_gen_params = ls_gen_com_params IMPORTING et_rc = lt_rc EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_PLAN_VERS_GET_ALL CALL FUNCTION '/SAPAPO/OM_PLAN_VERS_GET_ALL' IMPORTING et_plan_version_id = lt_plan_version_id EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3.

/SAPAPO/OM_STOCK_GET_BY_UID CALL FUNCTION '/SAPAPO/OM_STOCK_GET_BY_UID' EXPORTING is_gen_params = ls_gen_params iv_simsession = gc_om_simsession_def it_stock_key = lt_stock_500 IMPORTING et_stock = lt_stock et_rc = lt_rc EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_STOCK_GET CALL FUNCTION '/SAPAPO/OM_STOCK_GET' EXPORTING is_gen_params = ls_gen_params iv_simsession = gc_om_simsession_def 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_STOCK_CHANGE CALL FUNCTION '/SAPAPO/OM_STOCK_CHANGE' EXPORTING is_gen_params = ls_gen_params iv_simsession = gc_om_simsession_def is_atp_info = ls_atp_info it_stock = lt_stock_initial EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3 OTHERS = 4.

/SAPAPO/OM_PLAN_VERS_GET_ALL CALL FUNCTION '/SAPAPO/OM_PLAN_VERS_GET_ALL' IMPORTING et_plan_version_id = lt_plan_version_id EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3.

LC_SEL_CLASSCONTAINERS CALL FUNCTION 'LC_SEL_CLASSCONTAINERS' EXPORTING con_name = om_lc_name schema = lv_schema TABLES classcontainers = lt_classcontainers EXCEPTIONS no_connection = 1 no_entry_found = 2 table_not_found = 3.



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