SAP Reports / Programs | Basis Components(BC) SAP BC

/SSA/BCM SAP ABAP Report - CMO - Capacity management







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


Text pool values


Title: CMO - Capacity management


INCLUDES used within this REPORT /SSA/BCM

INCLUDE RSSMOS1I.


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:

RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' IMPORTING RFCSI_EXPORT = LF_RFCSI EXCEPTIONS OTHERS = 1.

ENQUEUE_/SSF/E_PTAB CALL FUNCTION 'ENQUEUE_/SSF/E_PTAB' EXPORTING MODE_/SSF/PTAB = 'X' RELID = 'TC' PID = GC_PROJECTID OBJKEY = LF_OBJKEY_QUEUE EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

GET_CPU_ALL CALL FUNCTION 'GET_CPU_ALL' EXPORTING LOCAL_REMOTE = LF_LOCAL_REMOTE LOGICAL_DESTINATION = LF_LOGICAL_DESTINATION TABLES TF_CPU_ALL = LT_CPU_ALL EXCEPTIONS OTHERS = 1.

GET_CPU_ALL CALL FUNCTION 'GET_CPU_ALL' TABLES TF_CPU_ALL = LT_CPU_ALL EXCEPTIONS OTHERS = 2.

TH_WPINFO CALL FUNCTION 'TH_WPINFO' EXPORTING WITH_CPU = LX_CPU TABLES WPLIST = LT_WPLIST EXCEPTIONS SEND_ERROR = 1 OTHERS = 2.

GET_TOP_SINGLE CALL FUNCTION 'GET_TOP_SINGLE' EXPORTING local_remote = local_remote logical_destination = logical_destination IMPORTING f_top_single_read = top_single_read lastcollwrt = lastcollwrt lastcollint = lastcollint TABLES tf_top_single = lt_top_single EXCEPTIONS internal_error_adress_failed = 01 internal_error_different_field = 02 internal_error_no_new_line = 03 collector_not_running = 04 shared_memory_not_available = 05 collector_busy = 06 version_conflict = 07 no_network_collector_running = 08 system_failure = 09 communication_failure = 10 OTHERS = 99.

GET_MEM_ALL CALL FUNCTION 'GET_MEM_ALL' TABLES TF_MEM_ALL = LT_MEM_ALL EXCEPTIONS OTHERS = 1.

ENQUEUE_/SSF/E_PTAB CALL FUNCTION 'ENQUEUE_/SSF/E_PTAB' EXPORTING mode_/ssf/ptab = 'X' relid = 'TC' pid = gc_projectid objkey = lf_objkey_queue EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_/SSF/E_PTAB CALL FUNCTION 'DEQUEUE_/SSF/E_PTAB' EXPORTING mode_/ssf/ptab = 'X' relid = 'TC' pid = gc_projectid objkey = lf_objkey_queue EXCEPTIONS OTHERS = 1.

SMON_GET_LOGICAL_DESTINATIONS CALL FUNCTION 'SMON_GET_LOGICAL_DESTINATIONS' TABLES destinations = lt_logdest "is obligatory param logic_destin = lt_log_destin "on 46C low basis supppacklevel EXCEPTIONS OTHERS = 99.

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' TABLES LIST = LT_SERVER EXCEPTIONS NO_SERVER_LIST = 1 OTHERS = 2.

ENQUEUE_/SSF/E_PTAB CALL FUNCTION 'ENQUEUE_/SSF/E_PTAB' EXPORTING MODE_/SSF/PTAB = 'X' RELID = 'TC' PID = GC_PROJECTID OBJKEY = LF_OBJKEY EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

DEQUEUE_/SSF/E_PTAB CALL FUNCTION 'DEQUEUE_/SSF/E_PTAB' EXPORTING MODE_/SSF/PTAB = 'X' RELID = 'TC' PID = GC_PROJECTID OBJKEY = LF_OBJKEY EXCEPTIONS OTHERS = 1.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING POPUP_TITLE = 'gs_selection' IMPORTING RETURNCODE = LF_RETURNCODE TABLES FIELDS = LT_SVAL.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TEXTLINE1 = 'This should be done at a time when no qRFC are' TEXTLINE2 = 'running. Do you still want to activate ?'

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TEXTLINE1 = 'This should be done at a time when no qRFC are' TEXTLINE2 = 'running. Do you still want to deactivate ?'

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING IS_LAYOUT = LS_LAYOUT_ALV IT_FIELDCAT = LT_ALV_FIELDCAT TABLES T_OUTTAB = PT_SYSTEM_DATA EXCEPTIONS OTHERS = 2.

RFC_SYSTEM_INFO * CALL FUNCTION 'RFC_SYSTEM_INFO' * IMPORTING * RFCSI_EXPORT = GF_RFCSI * EXCEPTIONS OTHERS = 1.

RFC_SYSTEM_INFO





CALL FUNCTION 'RFC_SYSTEM_INFO' IMPORTING RFCSI_EXPORT = LF_RFCSI EXCEPTIONS OTHERS = 1.

/SSF/REMOTE_PTABBROWSE CALL FUNCTION '/SSF/REMOTE_PTABBROWSE' DESTINATION PF_RFCDEST EXPORTING PF_ACTION = 'SELECTPTABKEYS' TABLES PT_IMP_EXP_DATAPCK = LT_IMP_EXP_DATAPCK EXCEPTIONS SYSTEM_FAILURE = 1 MESSAGE LF_ERRMSG COMMUNICATION_FAILURE = 2 MESSAGE LF_ERRMSG OTHERS = 3.

/SSF/GET_SINGLE_PTABOBJECT_RFC CALL FUNCTION '/SSF/GET_SINGLE_PTABOBJECT_RFC' DESTINATION PF_RFCDEST EXPORTING RELID = PS_PTABKEY-RELID PID = PS_PTABKEY-PID OBJKEY = PS_PTABKEY-OBJKEY TABLES DATAPACK = LT_PACKEDTAB EXCEPTIONS SYSTEM_FAILURE = 1 MESSAGE LF_ERRMSG COMMUNICATION_FAILURE = 2 MESSAGE LF_ERRMSG OTHERS = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = SY-REPID IT_FIELDCAT = LT_ALV_FIELDCAT * i_structure_name = 'TS_DEM_STATUS' I_SAVE = 'A' TABLES T_OUTTAB = GT_DEM_STATUS.



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 /SSA/BCM or its description.