SAP Reports / Programs

RS_FIND_UNUSED_CUA_OBJECTS SAP ABAP Report - Search for unused objects in CUA interfaces







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


Text pool values


Selection Text: SO_DEVC = D .
Selection Text: SO_PROG = Programs
Selection Text: SO_FUGR = Function Groups
Selection Text: P_UNUSED = Display with Unused Objects
Selection Text: P_SUCCES = Display w/o Unused Objects
Selection Text: P_N_STAT = Display Programs w/o Status
Selection Text: P_ERRORS = Display Error Messages
Selection Text: CHK_SMOD = Check for Modifications
Title: Search for unused objects in CUA interfaces
Text Symbol: 022 = Choose a valid line
Text Symbol: 021 = Check for modifications
Text Symbol: 020 = Package
Text Symbol: 019 = Function Groups
Text Symbol: 018 = Programs
Text Symbol: 017 = List Error Log
Text Symbol: 016 = Programs w/o CUA interface
Text Symbol: 015 = Interfaces that did not contain any unused objects
Text Symbol: 014 = Interfaces that contains unused objects
Text Symbol: 013 = Error messages:
Text Symbol: 012 = Objects that did not contain any CUA obj:
Text Symbol: 011 = GUI interface was processed with Modification Assistant
Text Symbol: 010 = Interfaces with unused objects:
Text Symbol: 009 = Interfaces without used objects:
Text Symbol: 006 = could not be loaded
Text Symbol: 005 = Interface for program
Text Symbol: 004 = Not Found
Text Symbol: 003 = Object
Text Symbol: 002 = Object(s) not found
Text Symbol: 001 = Program end, nothing to check


INCLUDES used within this REPORT RS_FIND_UNUSED_CUA_OBJECTS

INCLUDE: RSMPSMKR,RSMPECON.
INCLUDE: RSMPSMKR,RSMPECON.


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:

RS_CUA_INTERNAL_STD_FETCH CALL FUNCTION 'RS_CUA_INTERNAL_STD_FETCH' EXPORTING mod_langu = mod_langu object_class = con_class_program * IMPORTING * std_path = std_path TABLES act = std_act men = std_men pfk = std_pfk but = std_but fin = std_fin sys = std_sys mtx = std_mtx fun = std_fun exp = std_exp syni = std_syni sync = std_sync syt = std_syt EXCEPTIONS OTHERS = 4.

RS_CUA_INTERNAL_FETCH CALL FUNCTION 'RS_CUA_INTERNAL_FETCH' EXPORTING program = t_objs-obj_name TABLES sta = new_sta fun = new_fun men = new_men mtx = new_mtx act = new_act but = new_but pfk = new_pfk set = new_set doc = new_doc tit = new_tit EXCEPTIONS OTHERS = 3.

RS_PROGNAME_SPLIT CALL FUNCTION 'RS_PROGNAME_SPLIT' EXPORTING progname_with_namespace = t_fugr+3(40) IMPORTING progname_without_namespace = l_fugr+3(40) EXCEPTIONS OTHERS = 2.

RS_PROGNAME_CONCATENATE CALL FUNCTION 'RS_PROGNAME_CONCATENATE' EXPORTING fugr_group = lt_trans-n_without * FUGR_INCLUDE_NUMBER = * SLDB_NAME = * MENU_NAME = * TYPE_NAME = * MST_NAME = * CNTX_NAME = * CLAS_NAME = * INTF_NAME = IMPORTING fugr_progname_group = lt_trans-n_with * FUGR_PROGNAME_INCLUDE = * FUGR_PROGNAME_TOP = * FUGR_PROGNAME_UXX = * SLDB_PROGNAME_DB = * SLDB_PROGNAME_SEL = * MENU_PROGNAME = * TYPE_PROGNAME = * MST_PROGNAME = * CNTX_PROGNAME = * INTF_PROGNAME = * CLAS_PROGNAME = EXCEPTIONS OTHERS = 2.

RS_CUA_OBJECTS CALL FUNCTION 'RS_CUA_OBJECTS' EXPORTING program = hide_line-prog editor_mode = 'SHOW' monitor_activate = 'X' EXCEPTIONS OTHERS = 4.

RS_PROGNAME_CONCATENATE CALL FUNCTION 'RS_PROGNAME_CONCATENATE' EXPORTING fugr_group = format IMPORTING fugr_progname_group = p_name EXCEPTIONS delimiter_error = 1 OTHERS = 2.



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