RGSCPY40 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Cost center groups or other CO groups had to be copied to sets by program RGSCPY00 prior to release 4...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RGSCPY40 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.
Selection Text: TABNAME = D Table name
Selection Text: SETNAME = D Set ID
Selection Text: PREFIX = D New set prefix
Selection Text: KOKRS = D Controlling area
Selection Text: G0110 = WBS element groups
Selection Text: G0109 = Account groups (profit center)
Selection Text: G0108 = Cost object groups
Selection Text: G0107 = Business process groups
Selection Text: G0106 = Profit center groups
Selection Text: G0105 = Activity type groups
Selection Text: G0104 = Statistical key figure groups
Selection Text: G0103 = Order groups
Selection Text: G0102 = Cost element groups
Selection Text: G0101 = Cost center groups
Title: Replace Sets by Groups (Sets created by RGSCPY00)
Text Symbol: VSR = Replaced, except for validations/subst. (-> where-used)
Text Symbol: VDS = Replaced, except for VSR and key figures (-> where-used)
Text Symbol: UOK = Successfully replaced by group
Text Symbol: UMW = Replace by
Text Symbol: SET = Sets
Text Symbol: HSE = Old set ID
Text Symbol: HGR = Corresponding group
Text Symbol: HDE = Description
Text Symbol: DSE = Replaced, except for key figures (-> where-used list)
Text Symbol: CAC = Controlling area
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = kokrs.
G_REPORT_AUTHORITY_CHECK CALL FUNCTION 'G_REPORT_AUTHORITY_CHECK' EXPORTING actvt = '02'.
G_SET_DETERMINE_DATA_ELEMENT2 CALL FUNCTION 'G_SET_DETERMINE_DATA_ELEMENT2' EXPORTING tabname = my_table fieldname = my_field IMPORTING set_data_element = my_rollname.
G_SET_LIST_SELECT CALL FUNCTION 'G_SET_LIST_SELECT' EXPORTING setclass = gsetc_fisl_setclass shortname = setname typelist = 'BS' tabname = tabname rollname = my_rollname TABLES matching_sets = setlist.
G_SET_TEXT_READ CALL FUNCTION 'G_SET_TEXT_READ' EXPORTING setname = setlist-setname IMPORTING settitle = my_list-descript.
G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = my_class shortname = my_list-newname kokrs = kokrs IMPORTING setid = my_setid.
G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = my_setid EXCEPTIONS set_not_found = 1 OTHERS = 2.
DISPLAY_SET CALL FUNCTION 'DISPLAY_SET' EXPORTING setname = my_list-new_id.
DISPLAY_SET CALL FUNCTION 'DISPLAY_SET' EXPORTING setname = my_list-old_id.
G_REPORT_ENQUEUE CALL FUNCTION 'G_REPORT_ENQUEUE' EXPORTING library = space report = space.
G_REPORT_DEQUEUE CALL FUNCTION 'G_REPORT_DEQUEUE' EXPORTING library = space report = space.
G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = p_oldset IMPORTING info = l_setinfo.
G_SET_GET_SUPERSETS CALL FUNCTION 'G_SET_GET_SUPERSETS' EXPORTING setname = p_oldset TABLES supersets = lt_supersets.
G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING no_authority_check = 'X' setnr = lt_supersets-setname IMPORTING set_header = l_header TABLES formula_lines = lt_formula set_lines_basic = lt_basic set_lines_data = lt_data set_lines_multi = lt_multi set_lines_single = lt_single EXCEPTIONS OTHERS = 1.
G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING set_header = l_header tolerate_ambiguity = 'X' TABLES formula_lines = lt_formula set_lines_basic = lt_basic set_lines_data = lt_data set_lines_multi = lt_multi set_lines_single = lt_single EXCEPTIONS OTHERS = 0.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RGSCPY40 - Replace Sets by Groups (Sets created by RGSCPY00) RGSCPY40 - Replace Sets by Groups (Sets created by RGSCPY00) RGSCPY30 - Copy Group with Suffix - Program for Background Processing RGSCPY30 - Copy Group with Suffix - Program for Background Processing RGSCPY15 - Changing the GLU1 Sets for the Conversion of FI-SL Tables RGSCPY15 - Changing the GLU1 Sets for the Conversion of FI-SL Tables