ROCS_COREMAC is a standard ABAP INCLUDE 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 ROCS_COREMAC 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.
Title: Macros of function group OCS_CORE
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
OCS_CREATE_LOGLINE call function 'OCS_CREATE_LOGLINE' exporting iv_function = &1 "#EC NOTEXT iv_text1 = &2 "#EC NOTEXT iv_text2 = &3. "#EC NOTEXT
OCS_CONVERT_MESSAGE_TO_TEXT call function 'OCS_CONVERT_MESSAGE_TO_TEXT' exporting msg_class = sy-msgid msg_number = sy-msgno msg_var1 = sy-msgv1 msg_var2 = sy-msgv2 msg_var3 = sy-msgv3 msg_var4 = sy-msgv4 importing msg_text = &7 exceptions others = 0.
OCS_CONVERT_MESSAGE_TO_TEXT call function 'OCS_CONVERT_MESSAGE_TO_TEXT' exporting msg_class = sy-msgid msg_number = sy-msgno msg_var1 = sy-msgv1 msg_var2 = sy-msgv2 msg_var3 = sy-msgv3 msg_var4 = sy-msgv4 importing msg_text = &1 exceptions others = 0.
OCS_INITIALIZE_OCS_LOG call function 'OCS_INITIALIZE_OCS_LOG' exporting iv_log_type = lv_log_type iv_log_name = lv_log_name iv_log_dirtype = lv_log_dirtype iv_ocs_tool = lv_log_ocs_tool exceptions others = 99.
OCS_LOG_GET_LAST_LOGID call function 'OCS_LOG_GET_LAST_LOGID' exporting iv_log_name = lv_log_name iv_ocs_tool = lv_log_ocs_tool iv_calc_new_id = lv_id_creation importing ev_main_logid = lv_main_id ev_sub_logid = lv_sub_id exceptions no_id_found = 1 others = 99.
OCS_LOG_GET_LAST_LOGID call function 'OCS_LOG_GET_LAST_LOGID' exporting iv_log_name = lv_log_name iv_ocs_tool = lv_log_ocs_tool iv_calc_new_id = lv_id_creation importing ev_main_logid = lv_main_id ev_sub_logid = lv_sub_id exceptions others = 99.
OCS_APPEND_LOG call function 'OCS_APPEND_LOG' tables tt_msgs = lt_msgs exceptions others = 0.
OCS_APPEND_LOG call function 'OCS_APPEND_LOG' exporting iv_save_log = 'X' tables tt_msgs = lt_msgs exceptions others = 0.
OCS_APPEND_LOGLINE call function 'OCS_APPEND_LOGLINE' exporting is_msgs = ls_msgs exceptions others = 0.
OCS_APPEND_LOGLINE call function 'OCS_APPEND_LOGLINE' exporting iv_save_log = 'X' is_msgs = ls_msgs exceptions others = 0.
OCS_FLUSH_LOG call function 'OCS_FLUSH_LOG' 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.