RSTXCPRI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Copying a device type to a new device type
If you would like to execute this report or see the full code listing simply enter RSTXCPRI 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: USE_INCL = Use references
Selection Text: TOPRIN = to device type
Selection Text: FROMPRIN = Copy device type
Selection Text: ADJ_INCL = Adapt INCLUDEs to source
Title: Copy device type
Text Symbol: 039 = Text for Print Options
Text Symbol: 038 = Cascading Fonts Settings
Text Symbol: 037 = This device type must be copied without references
Text Symbol: 036 = DataType
Text Symbol: 035 = Number
Text Symbol: 034 = Error
Text Symbol: 031 = Format types - Overview
Text Symbol: 030 = Unlock of target device type failed
Text Symbol: 029 = Unlock of source device type failed
Text Symbol: 028 = Target device type is currently being processed
Text Symbol: 027 = Source device type is currently being processed
Text Symbol: 026 = Assignment to XDC Name
Text Symbol: 025 = Warning: Observe SAP name range
Text Symbol: 024 = for customers. Continue?
Text Symbol: 023 = Device types Y,Z are reserved
Text Symbol: 022 = Warning: Observe customer name range
Text Symbol: 021 = for SAP. Continue?
Text Symbol: 020 = Device types A..X are reserved
Text Symbol: 019 = at the beginning or in the middle
Text Symbol: 018 = Names of device types cannot contain blanks
Text Symbol: 017 = (Format Types - Details)
Text Symbol: 016 = Bar Codes
Text Symbol: 015 = Font Metrics
Text Symbol: 014 = Printer Fonts
Text Symbol: 013 = Print Controls
Text Symbol: 012 = Device Type
Text Symbol: 011 = Number of data records copied:
Text Symbol: 010 = cancelled
Text Symbol: 009 = to
Text Symbol: 008 = Copy device type
Text Symbol: 007 = Spooler/SAPscript: Copy Device Type
Text Symbol: 006 = type?
Text Symbol: 005 = Generate device
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SYSTEM_STATUS CALL FUNCTION 'SYSTEM_STATUS' IMPORTING STATUS = STATUS.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC FB_OLDED EXPORTING TEXTLINE1 = 'Gerätetypen A..X sind für SAP'(020)
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC FB_OLDED EXPORTING TEXTLINE1 = 'Gerätetypen Y,Z sind für Kunden'(023) TEXTLINE2 = 'reserviert. Weitermachen?'(024)
RSPO_CF_IS_CASCADING_DEVTYPE CALL FUNCTION 'RSPO_CF_IS_CASCADING_DEVTYPE' EXPORTING DEVTYPE = fromprin EXCEPTIONS DEVICETYPE_NOT_FOUND = 1 DEVICETYPE_NOT_CASCADING = 2 OTHERS = 3.
POPUP_TO_CONFIRM_WITH_VALUE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_VALUE' "#EC FB_OLDED EXPORTING TEXT_BEFORE = 'Soll Gerätetyp'(005) TEXT_AFTER = ' erzeugt werden?'(006) TITEL = 'Spooler/SAPscript: Kopieren Gerätetyp'(007) DEFAULTOPTION = 'N' OBJECTVALUE = TOPRIN IMPORTING ANSWER = POPUP_ANSWER EXCEPTIONS TEXT_TOO_LONG = 1 OTHERS = 2.
I18N_CF_COPY_DEVTYPE CALL FUNCTION 'I18N_CF_COPY_DEVTYPE' EXPORTING IM_DEVTYPE_SOURCE = fromprin IM_DEVTYPE_TARGET = toprin IMPORTING EX_RC = rc.
ADS_INSERT_XDCMAPPING CALL FUNCTION 'ADS_INSERT_XDCMAPPING' EXPORTING XDCMAPPING = wa_tsp0b TRANSPORT_TASK = tr_task EXCEPTIONS ENTRY_ALREADY_DEFINED = 1 INSERT_FAILED = 2 NO_INSERT_OF_BASISTYP = 3 INVALID_DRIVER = 4 OTHERS = 5.
RSPO_PTYPE_FLUSH CALL FUNCTION 'RSPO_PTYPE_FLUSH' EXPORTING PTYPE = TOPRIN EXCEPTIONS CALL_ERROR = 1 OPERATION_FAILED = 2 OTHERS = 3.
TR_OBJECTS_CHECK CALL FUNCTION 'TR_OBJECTS_CHECK' EXPORTING IV_NO_SHOW_OPTION = 'X' IMPORTING WE_ORDER = tr_order WE_TASK = tr_task * WE_OBJECTS_APPENDABLE = TABLES WT_KO200 = tr_objects WT_E071K = tr_object_keys EXCEPTIONS CANCEL_EDIT_OTHER_ERROR = 1 SHOW_ONLY_OTHER_ERROR = 2 OTHERS = 3.
TR_OBJECTS_INSERT CALL FUNCTION 'TR_OBJECTS_INSERT' EXPORTING WI_ORDER = tr_order IMPORTING WE_ORDER = tr_order WE_TASK = tr_task TABLES WT_KO200 = tr_objects WT_E071K = tr_object_keys EXCEPTIONS CANCEL_EDIT_OTHER_ERROR = 1 SHOW_ONLY_OTHER_ERROR = 2 OTHERS = 3.
TR_APPEND_TO_COMM CALL FUNCTION 'TR_APPEND_TO_COMM' EXPORTING PI_KORRNUM = tr_task WI_E071 = wa_e071 * WI_SIMULATION = ' ' * WI_SUPPRESS_KEY_CHECK = ' ' TABLES WT_E071K = tr_object_keys EXCEPTIONS NO_AUTHORIZATION = 1 NO_SYSTEMNAME = 2 NO_SYSTEMTYPE = 3 TR_CHECK_KEYSYNTAX_ERROR = 4 TR_CHECK_OBJ_ERROR = 5 TR_ENQUEUE_FAILED = 6 TR_ILL_KORRNUM = 7 TR_KEY_WITHOUT_HEADER = 8 TR_LOCKMOD_FAILED = 9 TR_LOCK_ENQUEUE_FAILED = 10 TR_MODIF_ONLY_IN_MODIF_ORDER = 11 TR_NOT_OWNER = 12 TR_NO_APPEND_OF_CORR_ENTRY = 13 TR_NO_APPEND_OF_C_MEMBER = 14 TR_NO_SHARED_REPAIRS = 15 TR_ORDER_NOT_EXIST = 16 TR_ORDER_RELEASED = 17 TR_ORDER_UPDATE_ERROR = 18 TR_REPAIR_ONLY_IN_REPAIR_ORDER = 19 TR_WRONG_ORDER_TYPE = 20 WRONG_CLIENT = 21 OTHERS = 22.
TR_APPEND_TO_COMM CALL FUNCTION 'TR_APPEND_TO_COMM' EXPORTING PI_KORRNUM = tr_task WI_E071 = wa_e071 * WI_SIMULATION = ' ' * WI_SUPPRESS_KEY_CHECK = ' ' TABLES WT_E071K = tr_object_keys EXCEPTIONS NO_AUTHORIZATION = 1 NO_SYSTEMNAME = 2 NO_SYSTEMTYPE = 3 TR_CHECK_KEYSYNTAX_ERROR = 4 TR_CHECK_OBJ_ERROR = 5 TR_ENQUEUE_FAILED = 6 TR_ILL_KORRNUM = 7 TR_KEY_WITHOUT_HEADER = 8 TR_LOCKMOD_FAILED = 9 TR_LOCK_ENQUEUE_FAILED = 10 TR_MODIF_ONLY_IN_MODIF_ORDER = 11 TR_NOT_OWNER = 12 TR_NO_APPEND_OF_CORR_ENTRY = 13 TR_NO_APPEND_OF_C_MEMBER = 14 TR_NO_SHARED_REPAIRS = 15 TR_ORDER_NOT_EXIST = 16 TR_ORDER_RELEASED = 17 TR_ORDER_UPDATE_ERROR = 18 TR_REPAIR_ONLY_IN_REPAIR_ORDER = 19 TR_WRONG_ORDER_TYPE = 20 WRONG_CLIENT = 21 OTHERS = 22.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.