SAP Reports / Programs

RSSPAM30 SAP ABAP Report - Execution of OCS Package Import







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


Text pool values


Title: Execution of OCS Package Import
Text Symbol: 001 = Standard
Text Symbol: 002 = Test
Text Symbol: 003 = Add-On
Text Symbol: 004 = PCS
Text Symbol: 005 = SPAM/SAINT Update
Text Symbol: 006 = Add-On Test


INCLUDES used within this REPORT RSSPAM30

INCLUDE: RSPAMCON,
ROCS_CORECON,
ROCS_COREMAC.


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:

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'TR_CHECK_FOR_MT_SYS' EXCEPTIONS function_not_exist = 1.

TR_CHECK_FOR_MT_SYS CALL FUNCTION 'TR_CHECK_FOR_MT_SYS' "#EC EXISTS IMPORTING "#EC EXISTS tenancy = gv_tenant_mode "#EC EXISTS EXCEPTIONS "#EC EXISTS OTHERS = 0. "#EC EXISTS

DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.

OCS_READ_QUEUE CALL FUNCTION 'OCS_READ_QUEUE' TABLES et_patq = lt_patq et_pat01 = lt_pat01 EXCEPTIONS no_queue = 1 OTHERS = 0. "ignore all other errors

SPAM_LOCK_NA CALL FUNCTION 'SPAM_LOCK_NA' TABLES tt_pat01 = lt_pat01 EXCEPTIONS na_locked = 1 OTHERS = 99.

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.

SPAM_UNLOCK_NA CALL FUNCTION 'SPAM_UNLOCK_NA' 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_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_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_CHECK_UNRESOLVED_I_ATTR CALL FUNCTION 'OCS_UI_CHECK_UNRESOLVED_I_ATTR' TABLES it_queue_attrib = lt_queue_attrib et_queue_unresolved = lt_unresolved_attrib EXCEPTIONS unresolved_attributes = 1 internal_error = 2 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.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = gv_my_jobcount jobname = gv_my_jobname EXCEPTIONS no_runtime_info = 1 OTHERS = 99.

OCS_BATCH_SEMAPHORE CALL FUNCTION 'OCS_BATCH_SEMAPHORE' EXPORTING iv_tool = space iv_read_only = on IMPORTING es_ocs_sema = ls_pat10 TABLES et_batch_sema = lt_pat10b EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 semaphores_differ = 3 internal_error = 4 OTHERS = 99.

OCS_DELETE_BATCH_SEMAPHORE CALL FUNCTION 'OCS_DELETE_BATCH_SEMAPHORE' EXPORTING iv_tool = ls_pat10-ocs_tool iv_sem_state = gc_active_batch_sem EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 internal_error = 3 OTHERS = 99.

OCS_BATCH_SEMAPHORE CALL FUNCTION 'OCS_BATCH_SEMAPHORE' EXPORTING iv_tool = ls_pat10-ocs_tool iv_read_only = on iv_sem_state = gc_active_batch_sem IMPORTING es_ocs_sema = ls_pat10 TABLES et_batch_sema = lt_pat10b EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 semaphores_differ = 3 internal_error = 4 OTHERS = 99.

OCS_BATCH_SEMAPHORE





* CALL FUNCTION 'OCS_BATCH_SEMAPHORE' * EXPORTING * iv_tool = ls_pat10-ocs_tool * iv_read_only = off * is_batch_sema = ls_pat10b * IMPORTING * es_ocs_sema = ls_pat10 * TABLES * et_batch_sema = lt_pat10b * EXCEPTIONS * foreign_lock = 1 * no_ocs_semaphore = 2 * semaphores_differ = 3 * internal_error = 4 * OTHERS = 99.

OCS_SET_BATCH_SEMAPHORE_STATUS CALL FUNCTION 'OCS_SET_BATCH_SEMAPHORE_STATUS' EXPORTING iv_tool = ls_pat10-ocs_tool iv_status = gc_job_running IMPORTING es_ocs_sema = gs_ocs_sema es_batch_sema = gs_batch_sema EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 no_batch_semaphore = 3 semaphores_differ = 4 internal_error = 5 OTHERS = 99.

OCS_READ_QUEUE CALL FUNCTION 'OCS_READ_QUEUE' EXCEPTIONS no_queue = 1 OTHERS = 99.

OCS_DELETE_BATCH_SEMAPHORE CALL FUNCTION 'OCS_DELETE_BATCH_SEMAPHORE' EXPORTING iv_tool = gs_ocs_sema-ocs_tool iv_sem_state = gc_active_batch_sem EXCEPTIONS foreign_lock = 1 no_ocs_semaphore = 2 internal_error = 3 OTHERS = 99.

OCS_DELETE_BATCH_SEMAPHORE CALL FUNCTION 'OCS_DELETE_BATCH_SEMAPHORE' EXPORTING iv_tool = gs_ocs_sema-ocs_tool iv_sem_state = space "means all EXCEPTIONS OTHERS = 0.

OCS_DELETE_SEMAPHORE CALL FUNCTION 'OCS_DELETE_SEMAPHORE' EXPORTING iv_tool = gs_ocs_sema-ocs_tool EXCEPTIONS OTHERS = 0.

DEQUEUE_E_OCS_QUEUE CALL FUNCTION 'DEQUEUE_E_OCS_QUEUE' EXPORTING mode_pat01 = 'E' _scope = '1' _synchron = 'X' _collect = ' '.

OCS_ALM_REPORT_QUEUE_STATUS CALL FUNCTION 'OCS_ALM_REPORT_QUEUE_STATUS' EXPORTING called_by_ocs = on EXCEPTIONS OTHERS = 0.



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