03-24-2005 7:17 PM
Hello,
I know this can be done, but am having some trouble finding where...
First off, a little background, my company has two systems, one for domestic and one for international. There was a great deal of development done for the international system that the domestic side now wants for themselves as well.
I have transported all of those objects from the Development box of the international system to the Development box of the domestic system, but to complete the process, I now need to switch the original system on all of that development from the international development system to the domestic development system to avoid having to do a repair every time a change is required to this development in the domestic system.
Does anyone know where this is done?
Thank you.
Nick Lyons
03-24-2005 8:53 PM
You can use the function module TR_TADIR_INTERFACE. You need to give parameters WI_TADIR_PGMID, WI_TADIR_OBJECT, and WI_TADIR_OBJ_NAME with the values TADIR-PGMID, TADIR-OBJECT, TADIR-OBJ_NAME
Set WI_TADIR_SRCSYSTEM to the new source system and set the WI_TADIR_DEVCLASS to the new development class.
You can call this in a program which reads in all the TADIR entries based on your selection criteria and by looping at those selected objects, you can call this function module and change the source system and the development class of the each object, one at a time.
Srinivas
03-24-2005 7:28 PM
I know that our company had to do this also. But I was not involved in the project. The only thing I could find was a program that changes the original system.
Here is the code.
REPORT YCHORIG .
TABLES: SSCRFIELDS, TADIR.
************************************************************************
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT 5(72) AAA.
SELECTION-SCREEN COMMENT /5(72) BBB.
SELECTION-SCREEN COMMENT /5(72) CCC.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK BLOCK WITH FRAME.
SELECTION-SCREEN COMMENT /2(72) DDD.
SELECTION-SCREEN COMMENT /2(72) EEE.
SELECTION-SCREEN COMMENT /2(72) FFF.
SELECTION-SCREEN COMMENT /2(72) GGG.
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 SKIP 1.
SELECTION-SCREEN COMMENT /1(72) HHH.
SELECTION-SCREEN COMMENT /1(72) III.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN PUSHBUTTON 3(30) MMM USER-COMMAND DISP.
SELECTION-SCREEN PUSHBUTTON 36(8) JJJ USER-COMMAND PROC.
SELECTION-SCREEN PUSHBUTTON 47(8) KKK USER-COMMAND EXIT.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /1(72) LLL.
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.
Regards,
Rich Heilman
03-24-2005 7:29 PM
03-24-2005 8:32 PM
Try
T-code SE38 Enter program name.
Click on Goto->Object direct entry
Click on Object attributes.
03-24-2005 8:53 PM
You can use the function module TR_TADIR_INTERFACE. You need to give parameters WI_TADIR_PGMID, WI_TADIR_OBJECT, and WI_TADIR_OBJ_NAME with the values TADIR-PGMID, TADIR-OBJECT, TADIR-OBJ_NAME
Set WI_TADIR_SRCSYSTEM to the new source system and set the WI_TADIR_DEVCLASS to the new development class.
You can call this in a program which reads in all the TADIR entries based on your selection criteria and by looping at those selected objects, you can call this function module and change the source system and the development class of the each object, one at a time.
Srinivas
03-24-2005 10:13 PM
Next time you need to do this, the transport system via SE10
has an option to transport copies. When the objects are imported,
they are relabeled for you with the destination system id.
04-08-2015 9:11 AM
Hi ,
Go to SE03 and Change Object Directory Entries and change object original system.