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

RGSCPY00 SAP ABAP Report - Copy Sets Between Different Tables







RGSCPY00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program enables you to copy sets between different tables...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 RGSCPY00 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 RGSCPY00. "Basic submit
SUBMIT RGSCPY00 AND RETURN. "Return to original report after report execution complete
SUBMIT RGSCPY00 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: T_TABLE = D To table
Selection Text: T_FIELD = D To field
Selection Text: TESTRUN = D Test run
Selection Text: TABLE = D From table
Selection Text: SETNAME = D From set
Selection Text: OVERWRIT = Overwrite
Selection Text: NEWPREF = D New set prefix
Selection Text: FLDNAME = D From field
Title: Copy Sets Between Different Tables
Text Symbol: S03 = Copy options
Text Symbol: S02 = Target
Text Symbol: S01 = Source
Text Symbol: P02 = To table
Text Symbol: P01 = From table
Text Symbol: N01 = Sets that cannot be overwritten
Text Symbol: M03 = Field
Text Symbol: M02 = Set
Text Symbol: M01 = Sets with fields that cannot be assigned
Text Symbol: L04 = Used in set
Text Symbol: L02 = Variable
Text Symbol: L01 = Set variables (removed from multisets)
Text Symbol: J06 = New name
Text Symbol: J05 = To field
Text Symbol: J04 = From field
Text Symbol: J03 = Set
Text Symbol: J02 = Copied sets
Text Symbol: J01 = Sets which would be copied
Text Symbol: I02 = Copying is thus not possible.
Text Symbol: I01 = Source and target table are the same.
Text Symbol: A01 = A set has not been selected for copying.
Text Symbol: 041 = Invalid character string as replacement for set name prefix
Text Symbol: 035 = Error when creating set &1
Text Symbol: 031 = Corresponding field to &1 could not be found.
Text Symbol: 016 = No database changes were made.


INCLUDES used within this REPORT RGSCPY00

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:

G_SET_LIST_SELECT_RANGES CALL FUNCTION 'G_SET_LIST_SELECT_RANGES' TABLES tabname_tab = rf_table fieldname_tab = fldname setname_tab = setname found_sets = selected_sets.

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING setnr = u_setname no_titles = 'X' TABLES set_lines_multi = set_lines_multi.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = set_lines_multi-setnr IMPORTING info = l_info EXCEPTIONS OTHERS = 0.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING table = p_fromtab ftype = 'A' add_flag = 'X'.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = attr subrc = l_subrc.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = attr subrc = l_subrc.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING table = p_totab ftype = 'A' add_flag = 'X'.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = attr subrc = l_subrc.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = attr subrc = l_subrc.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = newname EXCEPTIONS set_not_found = 1 illegal_field_replacement = 2 OTHERS = 3.

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING setnr = usetnr no_titles = 'X' TABLES set_lines_single = set_lines_single set_lines_multi = set_lines_multi.

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' "read set EXPORTING setnr = u_setnr IMPORTING set_header = set_header TABLES formula_lines = set_formula_lines set_lines_basic = set_lines_basic set_lines_single = set_lines_single set_lines_multi = set_lines_multi set_lines_data = set_lines_data.

G_SET_GENERATE CALL FUNCTION 'G_SET_GENERATE' EXPORTING set_header = set_header tolerate_ambiguity = 'X' TABLES formula_lines = set_formula_lines set_lines_basic = set_lines_basic set_lines_single = set_lines_single set_lines_multi = set_lines_multi set_lines_data = set_lines_data EXCEPTIONS OTHERS = 1.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING message_id = sy-msgid message_number = sy-msgno message_var1 = sy-msgv1 message_var2 = sy-msgv2 message_var3 = sy-msgv3 message_var4 = sy-msgv3 IMPORTING message_text = l_msgt EXCEPTIONS OTHERS = 0.

G_SET_GET_TITLES CALL FUNCTION 'G_SET_GET_TITLES' EXPORTING setname = u_setnr TABLES set_line_titles = set_line_titles set_titles = set_titles EXCEPTIONS OTHERS = 1.

G_SET_ADD_TITLES CALL FUNCTION 'G_SET_ADD_TITLES' EXPORTING setname = l_newid TABLES set_line_titles = set_line_titles set_titles = set_titles EXCEPTIONS OTHERS = 0.

G_SET_DECRYPT_SETID CALL FUNCTION 'G_SET_DECRYPT_SETID' EXPORTING setid = u_oldsetid IMPORTING shortname = l_shortname.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_fisl_setclass shortname = l_shortname IMPORTING setid = u_newsetid.

G_SET_GET_INFO





CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = new_sets-newid IMPORTING info = info EXCEPTIONS set_not_found = 1 illegal_field_replacement = 2 OTHERS = 3.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = new_sets-setid IMPORTING info = old_info EXCEPTIONS OTHERS = 0.

G_SET_DETERMINE_DATA_ELEMENT2 CALL FUNCTION 'G_SET_DETERMINE_DATA_ELEMENT2' EXPORTING tabname = p_totab fieldname = dim_tab-t_feldname IMPORTING set_data_element = old_info-rollname EXCEPTIONS OTHERS = 0.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = gsetc_fisl_setclass shortname = l_name IMPORTING setid = l_id.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = l_id EXCEPTIONS set_not_found = 1 illegal_field_replacement = 2 OTHERS = 3.

G_SET_GET_INFO CALL FUNCTION 'G_SET_GET_INFO' EXPORTING no_set_title = 'X' setname = l_setid IMPORTING info = l_info EXCEPTIONS set_not_found = 1 illegal_field_replacement = 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 RGSCPY00 or its description.