Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Package Assignment to object

Former Member
0 Likes
1,087

I have created the new package for ex:ZPACK with properties(software component,transport layer).

my question is:

when assigning this package to newly creating objects for example:Assigning ZPACK to ZREPORT, that new object should be renamed as ZPACK_ZREPORT

is there any possibilities for renaming the object when assigning it to a package?

7 REPLIES 7
Read only

Former Member
0 Likes
1,039

U cant rename it

Read only

ThomasZloch
Active Contributor
0 Likes
1,039

No, and it does not make sense, in my opinion. You are duplicating information, and much worse, what do you do when you want to re-assign objects to other packages in the future? You cannot possibly rename all objects, because of their usage in other objects (where-used-list).

Thomas

Read only

0 Likes
1,039

Hi Thomas,

I guess he is talking about new objects and not existing objects.

Thanks,

Shambu

Read only

0 Likes
1,039

Yes, but these new objects might need to get re-assigned somewhere down the road, and then the naming logic is not consistent any more.

I'm just saying that duplicating the package name into the object name is not a good idea, although I would like to hear about the rationale for doing it in this case here.

Thomas

Read only

0 Likes
1,039

newly creating objects

Yes, IMHO, He wants some kind of check/automatic rename during creation of new object, a kind of exit/BAdI during creation in object repository directory. And he is ready to manage the exit/BAdI to not cause trouble when importing external transport order or applying patches/SP or such....

Regards,

Raymond

Message was edited by: Raymond Giuseppi

Read only

Former Member
0 Likes
1,039

Hi Raghu,

Hope this will help you.

There is one badi definition CTS_CURRENT_PROJECT.

Try with this badi. It will help to get ur requirement done.

There is one Parameter It_objects in that u'l get variables for object name and package.

Try to concatenate and pass it.

Regards,

Ramya Ramasamy

Read only

0 Likes
1,039

This BADI is for a different purpose and irrelevant to the issue discussed here.

Please do more research before replying (not only before asking).


Thomas