MSPAMF02 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 MSPAMF02 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: Include MSPAMF02
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SPAM_READ_PATCH_TABLES CALL FUNCTION 'SPAM_READ_PATCH_TABLES' EXPORTING read_pat01 = on TABLES pat01_list = lt_pat01.
ENQUEUE_E_OCS_QUEUE CALL FUNCTION 'ENQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 99.
SPAM_LOCK_NA CALL FUNCTION 'SPAM_LOCK_NA' TABLES tt_pat01 = lt_pat01 EXCEPTIONS na_locked = 1 OTHERS = 99.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
SPAM_PATCH_LOGIC CALL FUNCTION 'SPAM_PATCH_LOGIC' TABLES tt_pat01 = lt_pat01 EXCEPTIONS no_patch_authorization = 1 failure = 2 stop_here = 3 emergency_stop = 4 OTHERS = 99.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
SPAM_UNLOCK_NA CALL FUNCTION 'SPAM_UNLOCK_NA' EXCEPTIONS OTHERS = 0.
OCS_ALM_REPORT_QUEUE_STATUS CALL FUNCTION 'OCS_ALM_REPORT_QUEUE_STATUS' EXPORTING called_by_ocs = on EXCEPTIONS OTHERS = 0.
OCS_UI_SHOW_STATUS CALL FUNCTION 'OCS_UI_SHOW_STATUS' TABLES tt_pat01 = lt_pat01 EXCEPTIONS no_queue = 1 update_failure = 2 OTHERS = 99.
OCS_ALM_RESET_ALL_ALERTS CALL FUNCTION 'OCS_ALM_RESET_ALL_ALERTS' EXCEPTIONS OTHERS = 0.
OCS_ALM_REPORT_QUEUE_STATUS CALL FUNCTION 'OCS_ALM_REPORT_QUEUE_STATUS' EXPORTING called_by_ocs = on EXCEPTIONS OTHERS = 0.
OCS_UI_SHOW_STATUS CALL FUNCTION 'OCS_UI_SHOW_STATUS' EXPORTING iv_allow_continue = on IMPORTING ev_continue = cv_start_import TABLES tt_pat01 = lt_pat01 EXCEPTIONS no_queue = 1 update_failure = 2 OTHERS = 99.
OCS_UI_SHOW_STATUS CALL FUNCTION 'OCS_UI_SHOW_STATUS' EXPORTING iv_allow_continue = on IMPORTING ev_continue = cv_start_import TABLES tt_pat01 = lt_pat01 EXCEPTIONS no_queue = 1 update_failure = 2 OTHERS = 99.
OCS_ALM_REPORT_QUEUE_STATUS CALL FUNCTION 'OCS_ALM_REPORT_QUEUE_STATUS' EXPORTING called_by_ocs = on EXCEPTIONS OTHERS = 0.
OCS_SET_ENVIRONMENT CALL FUNCTION 'OCS_SET_ENVIRONMENT' EXPORTING iv_current_system = on iv_buffered = off EXCEPTIONS environment_error = 1 internal_error = 2 OTHERS = 99.
OCS_QUEUE_SEMAPHORE CALL FUNCTION 'OCS_QUEUE_SEMAPHORE' EXPORTING iv_tool = lv_tcode iv_read_only = on IMPORTING ev_locked = lv_locked CHANGING cs_sema = ls_pat10 EXCEPTIONS foreign_lock = 1 internal_error = 2 OTHERS = 99.
SPAM_READ_PATCH_TABLES CALL FUNCTION 'SPAM_READ_PATCH_TABLES' EXPORTING read_pat01 = on IMPORTING pat01_entries = lv_lines TABLES pat01_list = lt_pat01.
CALL FUNCTION 'OCS_RESET_QUEUE' EXPORTING iv_tool = lv_tcode iv_force = on EXCEPTIONS reset_not_possible = 1 buffer_failure = 2 internal_error = 3 OTHERS = 99.
SPAM_GET_SPAM_FIX CALL FUNCTION 'SPAM_GET_SPAM_FIX' IMPORTING patch = lv_patch status = lv_status text = lv_short_text.
OCS_EXTENDED_UPLOAD CALL FUNCTION 'OCS_EXTENDED_UPLOAD' EXPORTING iv_patch = lv_patch EXCEPTIONS processed_patch = 0 "is checked in OCS_CHECK_ATTRIBUTES unknown_patch = 2 patch_file_error = 3 internal_error = 4 OTHERS = 99.
OCS_CHECK_ATTRIBUTES CALL FUNCTION 'OCS_CHECK_ATTRIBUTES' EXPORTING iv_patch = lv_patch IMPORTING ev_ok = lv_ok es_bad_patch = ls_bad_patch EXCEPTIONS already_applied = 1 OTHERS = 99.
OCS_SAVE_QUEUE CALL FUNCTION 'OCS_SAVE_QUEUE' EXPORTING iv_ocs_tool = lv_tcode iv_scenario = ls_pat01-scenario TABLES tt_patq = lt_queue EXCEPTIONS queue_locked = 1 pat01_not_empty = 2 internal_error = 3 OTHERS = 99.
OCS_GENERATE_QUEUE_ID CALL FUNCTION 'OCS_GENERATE_QUEUE_ID' EXPORTING iv_ocs_tool = ls_pat10-ocs_tool IMPORTING ev_queue_id = ls_pat10-queue_id.
OCS_QUEUE_SEMAPHORE CALL FUNCTION 'OCS_QUEUE_SEMAPHORE' EXPORTING iv_tool = lv_tcode iv_read_only = off CHANGING cs_sema = ls_pat10 EXCEPTIONS foreign_lock = 1 internal_error = 2 OTHERS = 99.
OCS_ADD_QUEUE_TO_HISTORY CALL FUNCTION 'OCS_ADD_QUEUE_TO_HISTORY' EXPORTING iv_queue_id = ls_pat10-queue_id iv_scenario = ls_pat01-scenario iv_ocs_tool = ls_pat10-ocs_tool TABLES it_patq = lt_queue.
OCS_ALM_REPORT_QUEUE_STATUS CALL FUNCTION 'OCS_ALM_REPORT_QUEUE_STATUS' EXPORTING called_by_ocs = on EXCEPTIONS OTHERS = 0.
OCS_DELETE_BATCH_SEMAPHORE CALL FUNCTION 'OCS_DELETE_BATCH_SEMAPHORE' EXPORTING iv_tool = lv_tcode iv_sem_state = space "means all EXCEPTIONS OTHERS = 0.
OCS_DELETE_SEMAPHORE CALL FUNCTION 'OCS_DELETE_SEMAPHORE' EXPORTING iv_tool = lv_tcode EXCEPTIONS OTHERS = 99.
OCS_DELETE_SEMAPHORE CALL FUNCTION 'OCS_DELETE_SEMAPHORE' EXPORTING iv_tool = lv_tcode EXCEPTIONS OTHERS = 99.
OCS_QUEUE_SEMAPHORE CALL FUNCTION 'OCS_QUEUE_SEMAPHORE' EXPORTING iv_tool = lv_tcode iv_read_only = off CHANGING cs_sema = ls_pat10 EXCEPTIONS foreign_lock = 1 internal_error = 2 OTHERS = 99.
OCS_RESET_QUEUE CALL FUNCTION 'OCS_RESET_QUEUE' EXPORTING iv_tool = lv_tcode iv_force = on EXCEPTIONS reset_not_possible = 1 buffer_failure = 2 internal_error = 3 OTHERS = 99.
OCS_CHECK_PAT01_ENQUEUE CALL FUNCTION 'OCS_CHECK_PAT01_ENQUEUE' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 99.
SPAM_CHECK_NA_LOCK CALL FUNCTION 'SPAM_CHECK_NA_LOCK' TABLES tt_pat01 = pt_pat01 EXCEPTIONS na_locked = 1 OTHERS = 99.
OCS_CHECK_I_ATTRIBUTES CALL FUNCTION 'OCS_CHECK_I_ATTRIBUTES' TABLES it_patq = lt_queue et_attributes = lt_queue_attrib EXCEPTIONS no_attributes = 1 internal_error = 2 OTHERS = 99.
OCS_UI_SHOW_INTERACTIVE_ATTR CALL FUNCTION 'OCS_UI_SHOW_INTERACTIVE_ATTR' EXPORTING iv_queue_fix = on TABLES tt_queue_attrib = lt_queue_attrib EXCEPTIONS cancel_function = 1 new_selection = 2 internal_error = 3 OTHERS = 99.
SPAM_APPLICATION_POPUP CALL FUNCTION 'SPAM_APPLICATION_POPUP' IMPORTING continue = lv_answer es_start = cs_start TABLES queue = pt_pat01 EXCEPTIONS OTHERS = 99.
ENQUEUE_E_OCS_QUEUE CALL FUNCTION 'ENQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 99.
OCS_SCHEDULE_IMPORT_JOB CALL FUNCTION 'OCS_SCHEDULE_IMPORT_JOB' EXPORTING iv_current_jobcount = space iv_imm_start = on EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 semaphore_inconsistency = 3 active_jobs_exist = 4 batch_semaphore_exist = 5 internal_error = 6 OTHERS = 99.
OCS_SCHEDULE_IMPORT_JOB CALL FUNCTION 'OCS_SCHEDULE_IMPORT_JOB' EXPORTING iv_current_jobcount = space iv_imm_start = off iv_strtdt = ps_start-strtdt iv_strttm = ps_start-strttm iv_max_strtdt = ps_start-max_strtdt iv_max_strttm = ps_start-max_strttm EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 semaphore_inconsistency = 3 active_jobs_exist = 4 batch_semaphore_exist = 5 internal_error = 6 OTHERS = 99.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
OCS_DELETE_BATCH_SEMAPHORE CALL FUNCTION 'OCS_DELETE_BATCH_SEMAPHORE' EXPORTING iv_tool = lv_ocs_tool iv_sem_state = gc_active_batch_sem EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 internal_error = 3 OTHERS = 99.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
ENQUEUE_E_OCS_QUEUE CALL FUNCTION 'ENQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 99.
SPAM_LOCK_NA CALL FUNCTION 'SPAM_LOCK_NA' TABLES tt_pat01 = ct_pat01 EXCEPTIONS na_locked = 1 OTHERS = 99.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
SPAM_PATCH_BASIC_CHECKS CALL FUNCTION 'SPAM_PATCH_BASIC_CHECKS' EXPORTING iv_message = lv_message TABLES tt_pat01 = ct_pat01 EXCEPTIONS stop_here = 1 no_patch_authorization = 2 failure = 3 emergency_stop = 4 OTHERS = 99.
DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.
SPAM_UNLOCK_NA CALL FUNCTION 'SPAM_UNLOCK_NA' EXCEPTIONS OTHERS = 0.
OCS_UI_SHOW_STATUS CALL FUNCTION 'OCS_UI_SHOW_STATUS' EXPORTING iv_allow_continue = off TABLES tt_pat01 = ct_pat01 EXCEPTIONS no_queue = 1 update_failure = 2 OTHERS = 99.
OCS_UI_SHOW_STATUS CALL FUNCTION 'OCS_UI_SHOW_STATUS' EXPORTING iv_allow_continue = off iv_allow_skip = on IMPORTING ev_continue = lv_start_import TABLES tt_pat01 = ct_pat01 EXCEPTIONS no_queue = 1 update_failure = 2 OTHERS = 99.
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 MSPAMF02 or its description.