SAP Reports / Programs

CSM_LOAD_APPSRV_DATA SAP ABAP Report - Adding System to Central System Management







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


Text pool values


Title: Adding System to Central System Management
Text Symbol: 061 = Yes
Text Symbol: 060 = No
Text Symbol: 051 = Protection level 2: No overwriting, no external availability
Text Symbol: 050 = Protection level 1: No overwriting
Text Symbol: 043 = No changes to Repository and cross-client Customizing objs
Text Symbol: 042 = No changes to Repository objects
Text Symbol: 041 = No changes to cross-client Customizing objects
Text Symbol: 040 = Changes to Repository and cross-client Customizing allowed
Text Symbol: 033 = Customizing: Can be changed as req., but cannot be transp.
Text Symbol: 032 = Customizing in this client cannot be changed
Text Symbol: 031 = Changes are recorded in transport request
Text Symbol: 030 = No automatic recording of changes for transport
Text Symbol: 027 = Unknown
Text Symbol: 026 = SAP reference
Text Symbol: 025 = Training/Education
Text Symbol: 024 = Demonstration
Text Symbol: 023 = Customizing
Text Symbol: 022 = Test
Text Symbol: 021 = Production
Text Symbol: 020 = Not maintained
Text Symbol: 017 = Generate standard destination
Text Symbol: 016 = Regularly transfer performance data to central system
Text Symbol: 015 = Install CCMS agent
Text Symbol: 014 = RFC destination for central system
Text Symbol: 013 = Name of SAP System for Central Monitoring
Text Symbol: 012 = Maintain destination
Text Symbol: 011 = Monitor from central system
Text Symbol: 010 = Do not monitor system
Text Symbol: 009 = Monitor selected instances; no alert for new instances
Text Symbol: 008 = Monitor selected instances; alert for new instances
Text Symbol: 007 = Monitor entire system
Text Symbol: 006 = Central availability monitoring (monitoring architecture)
Text Symbol: 005 = Monitor system through central monitoring architecture
Text Symbol: 004 = Add system to Transport Management System
Text Symbol: 003 = Distribute user roles to this system
Text Symbol: 002 = Options for central system administration
Text Symbol: 001 = Logon to Central SAP System





INCLUDES used within this REPORT CSM_LOAD_APPSRV_DATA

INCLUDE RSALOLDI.
INCLUDE RSALINTI.


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:

SCSM_RG_LOCALSYS_ROOT_GET CALL FUNCTION 'SCSM_RG_LOCALSYS_ROOT_GET' * EXPORTING * NAMESPACE = IMPORTING * local_system_guid = local_system_guid * LOCAL_SYSTEM_NAME = LOCAL_SYSTEM_ENTRY = local_system_obj EXCEPTIONS system_not_found_in_repository = 1 not_authorized = 2 multiple_systems_found = 3 internal_error = 4 OTHERS = 5 .

SCSMBK_OBJ_READ CALL FUNCTION 'SCSMBK_OBJ_READ' EXPORTING quantity = csm_single sap_key = dummy_key namespace = local_system_obj-namespace class = cls_scrproxy IMPORTING return_code = src object_entry = sub_rep_obj.

SCSM_RG_OBJ_GET_PROPERTIES CALL FUNCTION 'SCSM_RG_OBJ_GET_PROPERTIES' EXPORTING * ccms_obj_in = local_system_guid ccms_obj_in = sub_rep_obj-ccms_obj restrict_to_property = tok_comprepvers TABLES properties = repversion_property * EXTENDED_VALUES = EXCEPTIONS no_data_found = 1 internal_error = 2 not_authorized = 3 no_object_entry_for_guid = 4 OTHERS = 5 .

SALR_MTE_GET_TID_BY_NAME *CALL FUNCTION 'SALR_MTE_GET_TID_BY_NAME' * EXPORTING * longname = *'&SY\CCMS_Selfmonitoring\...\System Component Repository\Version'

SCSM_LOCAL_HOST_DATA CALL FUNCTION 'SCSM_LOCAL_HOST_DATA' EXPORTING namespace = csm_default_domain * NAMESPACE_REF = * SYSTEM_REF = EXCEPTIONS not_authorized = 1 internal_error = 2 OTHERS = 3 .

ENQUEUE_ECSMBK *CALL FUNCTION 'ENQUEUE_ECSMBK' ** EXPORTING ** MODE_CSMBK = 'E' ** CCMS_OBJ = ** TOKEN = ** VALUE = ** X_CCMS_OBJ = ' ' ** X_TOKEN = ' ' ** X_VALUE = ' ' ** _SCOPE = '2' ** _WAIT = ' ' ** _COLLECT = ' ' * EXCEPTIONS * foreign_lock = 1 * system_failure = 2 * OTHERS = 3 * .

ENQUEUE_ECSMBK_OBJ *CALL FUNCTION 'ENQUEUE_ECSMBK_OBJ' ** EXPORTING ** MODE_CSMBK_OBJ = 'E' ** CCMS_OBJ = ** X_CCMS_OBJ = ' ' ** _SCOPE = '2' ** _WAIT = ' ' ** _COLLECT = ' ' * EXCEPTIONS * foreign_lock = 1 * system_failure = 2 * OTHERS = 3 * .

DEQUEUE_ECSMBK *CALL FUNCTION 'DEQUEUE_ECSMBK' ** EXPORTING ** MODE_CSMBK = 'E' ** CCMS_OBJ = ** TOKEN = ** VALUE = ** X_CCMS_OBJ = ' ' ** X_TOKEN = ' ' ** X_VALUE = ' ' ** _SCOPE = '3' ** _SYNCHRON = ' ' ** _COLLECT = ' ' * .

DEQUEUE_ECSMBK_OBJ *CALL FUNCTION 'DEQUEUE_ECSMBK_OBJ' ** EXPORTING ** MODE_CSMBK_OBJ = 'E' ** CCMS_OBJ = ** X_CCMS_OBJ = ' ' ** _SCOPE = '3' ** _SYNCHRON = ' ' ** _COLLECT = ' ' * .

SCSMBK_OBJ_REGISTER ** CALL FUNCTION 'SCSMBK_OBJ_REGISTER' ** EXPORTING ** parent_guid = parentguid *** parent_name = p_objname *** parent_class = cls_r3 ** object_name = objname ** object_class = objclass ** object_semantic = objsem ** object_provider = objpro ** object_system = objsys ** object_destination = pdest ** dominant_system = domsys ** reporter = rept ** timestamp = ts *** TOP_LEVEL_OBJECT = CSM_NO ** IMPORTING ** object_entry = objentry *** TABLES *** parents = par ** EXCEPTIONS ** incomplete_parent_specs = 1 ** parent_guid_and_id_both_given = 2 ** no_parents_entry_for_parent = 3 ** error_finding_parent_object = 4 ** could_not_obtain_new_guid = 5 ** database_problem_inserting_obj = 6 ** database_problem_updating_obj = 7 ** object_class_not_defined = 8 ** weak_ref_missing_from_csmbk = 9 ** obj_entry_missing_from_repos = 10 ** internal_error = 11 ** OTHERS = 12 ** .

SCSMBK_DATA_DEPOSIT_PROCESSED ** CALL FUNCTION 'SCSMBK_DATA_DEPOSIT_PROCESSED' ** TABLES ** input_data = bk.

SCSM_RS_OBJECT_INSTANTIATE *CALL FUNCTION 'SCSM_RS_OBJECT_INSTANTIATE' * EXPORTING * SCOPING_OBJECT_GUID = parentguid * object_key_elements = keyprops ** OTHER_PROPRTY_VALUES = * object_scheme = scheme_bc * object_class = objclass * object_system = objsys * dominant_system = objsys * reporter = rept * IMPORTING * OBJECT_ENTRY = objentry * EXCEPTIONS * INCOMPLETE_KEY_FIELDS = 1 * NOT_AUTHORIZED = 2 * INTERNAL_ERROR = 3 * OVERFLOW_IN_OBJECT_NAME = 4 * OBJECT_CLASS_NOT_DEFINED = 5 * OBJECT_CLASS_IS_OBSOLETE = 6 * OBJECT_CLASS_IS_ABSTRACT = 7 * OBJECT_NAME_IN_USE_IN_OTHER_CL = 8 * OTHERS = 9 * .

SCSMBK_CREATE_DOMAINANDSYSTEM *CALL FUNCTION 'SCSMBK_CREATE_DOMAINANDSYSTEM' * IMPORTING * DOMAIN_OBJECT_ENTRY = domentry * SYSTEM_OBJECT_ENTRY = sysentry * TABLES * PARENTS = parents * SYSPARENTS = sysparents * EXCEPTIONS * FUNCTION_FAILED = 1 * OTHERS = 2 * .

SCSMBK_ASSOCIATION_REGISTER * CALL FUNCTION 'SCSMBK_ASSOCIATION_REGISTER' * EXPORTING * assoc_class = asclass * assoc_semantic = objsem * assoc_provider = objpro * assoc_system = locguid * dominant_system = domguid * reporter = rept * timestamp = ts * IMPORTING * object_entry = ascentry * TABLES * referenced_guids = reference_guids * EXCEPTIONS * could_not_obtain_new_guid = 1 * database_error_on_insert = 2 * OTHERS = 3.

SCSMBK_DATA_DEPOSIT_PROCESSED * CALL FUNCTION 'SCSMBK_DATA_DEPOSIT_PROCESSED' * TABLES * input_data = bk * exceptions * others = 1.

SCSMBK_ASSOCIATION_REGISTER * CALL FUNCTION 'SCSMBK_ASSOCIATION_REGISTER' * EXPORTING * assoc_class = asclass * assoc_semantic = sem_bc * assoc_provider = pro_bc ** ASSOC_SYSTEM = ** DOMINANT_SYSTEM = * reporter = rept * timestamp = ts * IMPORTING * object_entry = ascentry * TABLES * referenced_guids = reference_guids * EXCEPTIONS * could_not_obtain_new_guid = 1 * database_error_on_insert = 2 * OTHERS = 3 * .

SCSMBK_ASSOCIATION_REGISTER * CALL FUNCTION 'SCSMBK_ASSOCIATION_REGISTER' * EXPORTING * assoc_class = asclass * assoc_semantic = sem_bc * assoc_provider = pro_bc ** ASSOC_SYSTEM = ** DOMINANT_SYSTEM = * reporter = rept * timestamp = ts * IMPORTING * object_entry = ascentry * TABLES * referenced_guids = reference_guids * EXCEPTIONS * could_not_obtain_new_guid = 1 * database_error_on_insert = 2 * OTHERS = 3 * .

SCSMBK_ASSOCIATION_REGISTER





* CALL FUNCTION 'SCSMBK_ASSOCIATION_REGISTER' * EXPORTING * assoc_class = asclass * assoc_semantic = objsem * assoc_provider = objpro * assoc_system = locguid * dominant_system = domguid * reporter = rept * timestamp = ts * IMPORTING * object_entry = ascentry * TABLES * referenced_guids = reference_guids * EXCEPTIONS * could_not_obtain_new_guid = 1 * database_error_on_insert = 2 * OTHERS = 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 CSM_LOAD_APPSRV_DATA or its description.