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

RSTXSCPY SAP ABAP Report - Copy Styles Between Clients







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


INCLUDES used within this REPORT RSTXSCPY

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 = 'STYLE' 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 = ZIELSTILNAME OBJECT = 'STYLE' 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_STYLETAB-TDNAME OBJECT = 'STYLE' EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

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

SAPSCRIPT_ORDER_CHECK CALL FUNCTION 'SAPSCRIPT_ORDER_CHECK' EXPORTING OBJECTTYPE = 'STYL' STYLE = LSTYLE 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 = 'STYL' STYLE = LSTYLE 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' STYLE = '*' WRITE = SPACE.



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