01-11-2024 10:55 AM
Hi Masters,
We have 3 systems.
1-S4D (Development system. Where we write the code.)
2-S4C (Test System. Where we test the code)
3-S4P (Live System. Where SAP is used by users.)
I want to move the methods in the ZCL_PP_UTIL class in S4D. To do this, I right-click on the 'Object Name' and throw the object directly into the request. In this case, don't I also move the methods of the class? To move the methods of the class, do I need to add the methods one by one into the request?
There are methods within the Methods inside the ZCL_PP_UTIL object. When I move the object, do these methods also move?
Thanks
01-11-2024 11:27 AM
Hello yalcin.mete
Your transport will transfer the entire class, with all its elements, i.e. methods, attributes, properties etc.
However, you don't need to manually assign objects to transport requests. You could've just modified the class, the system would've asked for a transport request and entered transport objects to the request automatically.
Best regards
Dominik Tylczynski
01-11-2024 11:27 AM
Hello yalcin.mete
Your transport will transfer the entire class, with all its elements, i.e. methods, attributes, properties etc.
However, you don't need to manually assign objects to transport requests. You could've just modified the class, the system would've asked for a transport request and entered transport objects to the request automatically.
Best regards
Dominik Tylczynski
01-11-2024 11:47 AM
Hello 3a9e4ce873a94034b33dc62b0ce600ee
Transports are not transported with all their elements. For example, I cannot see individual methods in the moved request. (In the example above, I did not throw the object (ZCL_UTIL_CLASS) directly into the request, I threw it into two method requests one by one)
01-11-2024 12:44 PM
yalcin.mete "Former Member"? LOL we don't all see the same thing / bug in SAP Community?
01-11-2024 1:03 PM
sandra.rossi Good catch! SAP Community migrates to a new platform. Thus no one will bother with fixing this problem. Hopefully the new platform will solve that.
01-11-2024 1:04 PM
When you select the first one, it shows as "Former Member".
Sorry.
01-11-2024 1:06 PM
yalcin.mete I guess that is a side effect of SAP Community accounts consolidation.
01-11-2024 1:08 PM
yalcin.mete
(1) Transfers only the methods specified
(2) Transfers the entire class with all its elements, even if those elements are not explicitly displayed on the above screen.
01-11-2024 1:49 PM
I created and moved new classes and methods within classes between systems.
You are right. It also moves all child objects.
Since my colleagues work separately for each method of the class (other programmers also work), when I make a change in the class, I have to move the entire class (main object). That's what SAP wants. For example, let's say I created a new method inside the class and when I want to move this method, it asks me to move the main class (main object). But in this case, I either carry the methods that my other friends are working on, or I have to check their methods one by one.
Thank you for your valuable comments and help 🙂
01-11-2024 11:36 AM
Hello Yalcin,
If Class is transported for the first time in TR there will be entry R3TR CLAS Class_name. This will bring full class contents to target system. In subsequent TRs only what is changed will be automatically recorded to TR: class definition, private/protected/public sections and methods. You need to record method name to transport only if transportation done not for the first time and change was applied to method. If you use Transport of Copies, you can include full object list from Workbench or Customizing request in se09 -> Include Objects.
Kind regards,
Tatjana
01-11-2024 11:57 AM
Yes, I added a new method into the class and it asks me for "R3TR CLAS Class_name" as you said. When I added this to the request I moved, my method was also seen.
The question I'm asking is: Why doesn't all the elements of the class also be included when you add it directly to the request?
In the image above, it shows me all the methods connected to the object and I throw the object into the request.
But I cannot see the methods in the request I sent the object to. (Therefore, the methods will not be moved)
01-11-2024 12:46 PM
Sorry to repeat the answers, but you don't seem to understand:
This one entry "R3TR CLAS ZZZZ" moves everything contained in the class ZZZZ, methods and so on. You don't have to see them.
01-11-2024 12:56 PM
sandra.rossi are you sure?
While carrying, you should not be able to carry things that you cannot see. SAP is a program with many rules. I don't think he will allow this. I think the programmer would want to see what he's carrying.
On the other hand, when I move the methods in the entire class, wouldn't I also move the method that another programmer worked on (maybe he did not complete his work on the method)?
Thanks.
01-11-2024 1:39 PM
When you transport a main object (R3TR) every suboblject (LIMU) is also transported
01-11-2024 1:52 PM
You are right. It also moves all child objects.
Since my colleagues work separately for each method of the class (other programmers also work), when I make a change in the class, I have to move the entire class (main object). That's what SAP wants. For example, let's say I created a new method inside the class and when I want to move this method, it asks me to move the main class (main object). But in this case, I either carry the methods that my other friends are working on, or I have to check their methods one by one.
Thanks .
01-11-2024 1:58 PM
In fact, if several developers need to work on the same object at the same time, that object is "too big".
01-11-2024 1:56 PM