SAP Reports / Programs | Financial Accounting | Special Purpose Ledger | Sets(FI-SL-SL-MD-SE) SAP FI

RGSCPY40 SAP ABAP Report - Replace Sets by Groups (Sets created by RGSCPY00)







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


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 RGSCPY40. "Basic submit
SUBMIT RGSCPY40 AND RETURN. "Return to original report after report execution complete
SUBMIT RGSCPY40 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: 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


INCLUDES used within this REPORT RGSCPY40

No INCLUDES are used within this REPORT code!


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:

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.



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