RGSCPY45 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 RGSCPY45 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: G0102 = Cost element groups
Selection Text: G0109 = Account groups (Profit Center)
Selection Text: KOKRS = D Controlling area
Selection Text: SETNAME = Group name
Title: Replace Account Groups by Cost Element Groups (or Vice Versa)
Text Symbol: CAC = Controlling area
Text Symbol: HDE = Description
Text Symbol: UMW = Replace by
Text Symbol: UOK = Successfully replaced
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_LIST_SELECT CALL FUNCTION 'G_SET_LIST_SELECT' EXPORTING setclass = my_from_class kokrs = kokrs shortname = setname typelist = 'BS' 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_SUPERSETS CALL FUNCTION 'G_SET_GET_SUPERSETS' EXPORTING setname = p_oldset TABLES supersets = lt_supersets.
G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = p_oldset IMPORTING info = l_setinfo.
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.
RGSCPY45 - Replace Account Groups by Cost Element Groups (or Vice Versa) RGSCPY45 - Replace Account Groups by Cost Element Groups (or Vice Versa) 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