SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: A LIKE E071-PGMID.
PARAMETERS: B LIKE E071-OBJECT.
PARAMETERS: C LIKE E071-OBJ_NAME.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK BLOCK .
************************************************************************
INITIALIZATION.
AAA = 'This program changes the specifyed object''s original system.'.
BBB = 'The new SID will be the login SID.'.
CCC = 'USE THIS PROGRAM WITH EXTREME CARE!!!'.
DDD = 'Name of R/3 ABAP/4 Development Workbench object'.
EEE = '| Object type'.
FFF = '| | Object name'.
GGG = '| | |'.
HHH = 'Example:'.
III = 'R3TR PROG ZLOAD'.
JJJ = 'PROCEED'.
KKK = 'EXIT'.
MMM = 'DISPLAY RECENT ORIGINAL SYSTEM'.
LLL = ' '.
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'EXIT'.
SET SCREEN 0.LEAVE SCREEN.
ELSEIF SSCRFIELDS-UCOMM = 'PROC'.
CLEAR TADIR.
SELECT SINGLE * FROM TADIR WHERE PGMID = A AND OBJECT = B AND
OBJ_NAME = C.
IF TADIR-PGMID IS INITIAL.
LLL = 'THIS OBJECT DOES NOT EXIST'.
ELSE.
IF SY-SYSID <> TADIR-SRCSYSTEM.
TADIR-SRCSYSTEM = SY-SYSID.
MODIFY TADIR.
COMMIT WORK.
LLL = 'THE ORIGINAL SYSTEM CHANGED TO:'.
LLL+31(3) = SY-SYSID.
ELSE.
LLL = 'NO CHANGE: THE ORIGINAL SYSTEM AND LOGIN SYSTEM ARE THE SAME'.
ENDIF.
ENDIF.
ELSEIF SSCRFIELDS-UCOMM = 'DISP'.
CLEAR TADIR.
SELECT SINGLE * FROM TADIR WHERE PGMID = A AND OBJECT = B AND
OBJ_NAME = C.
IF TADIR-PGMID IS INITIAL.
LLL = 'THIS OBJECT DOES NOT EXIST'.
ELSE.
LLL = 'THE RECENT ORIGINAL SYSTEM IS: '.
LLL+31(3) = TADIR-SRCSYSTEM.
ENDIF.
ENDIF.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.