SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | SAPscript(BC-SRV-SCR) SAP BC

RSTXFCPY SAP ABAP Report - Copy Forms Between Clients







RSTXFCPY 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 RSTXFCPY into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

QCYF - QM standard forms (general)


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 RSTXFCPY. "Basic submit
SUBMIT RSTXFCPY AND RETURN. "Return to original report after report execution complete
SUBMIT RSTXFCPY 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: FORMNAME = Form Name
Selection Text: ORIGINAL = Original Language Only
Selection Text: PROTOKOL = Flow Trace
Selection Text: QUELMAND = Source Client
Selection Text: ZIELFORM = Target Form
Title: Copy Forms Between Clients
Text Symbol: 014 = Form &:
Text Symbol: 015 = Overwrite in target client = & ?
Text Symbol: 016 = Copy Forms
Text Symbol: 017 = Forms &


INCLUDES used within this REPORT RSTXFCPY

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:

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING CLIENT = QUELMAND DATABASE_ONLY = 'X' ID = '*' LANGUAGE = '*' NAME = TEXTNAME OBJECT = 'FORM' IMPORTING ENTRIES = ENTRIES TABLES SELECTIONS = SRC_HEADER EXCEPTIONS OTHERS = 01.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING CLIENT = SY-MANDT DATABASE_ONLY = 'X' ID = '*' LANGUAGE = '*' NAME = ZIELFORMNAME OBJECT = 'FORM' IMPORTING ENTRIES = ENTRIES EXCEPTIONS OTHERS = 01.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'J' TEXTLINE1 = LINE1 TEXTLINE2 = LINE2 TITEL = TEXT-016 IMPORTING ANSWER = ANSWER.

DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING CLIENT = SY-MANDT ID = 'TXT' LANGUAGE = '*' NAME = L_FORMTAB-TDNAME OBJECT = 'FORM' EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING CLIENT = SY-MANDT ID = 'DEF' LANGUAGE = '*' NAME = L_FORMTAB-TDNAME OBJECT = 'FORM' EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

SAPSCRIPT_ORDER_CHECK CALL FUNCTION 'SAPSCRIPT_ORDER_CHECK' EXPORTING OBJECTTYPE = 'FORM' FORM = LFORM IMPORTING ORDER = LORDER VALUE_TADIR = LTADIR EXCEPTIONS INVALID_INPUT = 1 OBJECT_LOCKED = 2 OBJECT_NOT_AVAILABLE = 3 OTHERS = 4.

SAPSCRIPT_ORDER_INSERT CALL FUNCTION 'SAPSCRIPT_ORDER_INSERT' EXPORTING OBJECTTYPE = 'FORM' FORM = LFORM MASTERLANG = SRC_HEADER-TDOSPRAS "B20K8A08SO IMPORTING VALUE_TADIR = LTADIR CHANGING ORDER = LORDER EXCEPTIONS INVALID_INPUT = 1 ORDER_CANCELED = 2 OTHERS = 3.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING CLIENT = QUELMAND ID = SRC_HEADER-TDID LANGUAGE = SRC_HEADER-TDSPRAS NAME = SRC_HEADER-TDNAME OBJECT = SRC_HEADER-TDOBJECT IMPORTING HEADER = HEADER TABLES LINES = LINES EXCEPTIONS ID = 01 LANGUAGE = 02 NAME = 03 NOT_FOUND = 04 OBJECT = 05 REFERENCE_CHECK = 06.

SAPSCRIPT_CHANGE_OLANGUAGE CALL FUNCTION 'SAPSCRIPT_CHANGE_OLANGUAGE' EXPORTING FORCED = 'X' NAME = HEADER-TDNAME OBJECT = HEADER-TDOBJECT OLANGUAGE = HEADER-TDSPRAS EXCEPTIONS OTHERS = 01.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING CLIENT = SY-MANDT HEADER = HEADER SAVEMODE_DIRECT = 'X' IMPORTING NEWHEADER = HEADER TABLES LINES = LINES EXCEPTIONS OTHERS = 1.

SAPSCRIPT_DELETE_LOAD CALL FUNCTION 'SAPSCRIPT_DELETE_LOAD' EXPORTING CLIENT = SY-MANDT DELETE = 'X' FORM = '*' WRITE = SPACE.

SAPSCRIPT_CHECK_FORMNAME CALL FUNCTION 'SAPSCRIPT_CHECK_FORMNAME' EXPORTING FORMNAME = CNAME EXCEPTIONS ILLEGAL_NAMESPACE = 1 FORMNAME_EMPTY = 2 ILLEGAL_NAME = 3 OTHERS = 4.



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