2012 Jan 17 7:45 AM
Hi,
I've embedded a package as subpackage in a package hierarchy, which was a mistake. Is it possible to remove this subpackage from the package hierarchy? The subpackage should not be deleted because it already contains objects. Thanks for a tip!
2015 Jun 02 8:36 PM
This is described in OSS note 636704 - Undo embedding into a surronding package.
Regards,
Tobias Trapp
2012 Jan 17 11:56 AM
Hi Sheng Gong,
See if this note helps you:
[Note 1156585 - How to delete packages|https://service.sap.com/sap/support/notes/1156585]
Best Regards
Bruno Xavier.
2012 Jan 17 12:28 PM
Hi Bruno,
thank you! But I don't want to delete the package. I want to remove the package from the package hierarchy so it is stand alone again, and no more subpackage from the main package.
Best regards
Sheng
2012 Jan 17 12:45 PM
Not a reply to your solution,but could you please let me know how you were able to do that.
Because I am not able to find any option for such a thing neither in SE80 nor in SE21.Just curious to know how you were able to change the package hierarchy.
Thanks,
K.Kiran.
2012 Jan 17 2:38 PM
Hi Sheng Gong,
I did not find any standard solution.
I did a test scenario:
My scenario:
Transaction: SE80
package: ZTESTE
TAB "Package Hiearchy"
-ZTESTE
--ZTESTE3 (Embedded Packages).
My Package ZTESTE3 contain program test: ZPROG_TEST2
Message before create implicit enhancement: (Button Delete in TAB "Package Included").
"Package ZTESTE3 still contains development objects or other packages"
"Message no. PAK051"
-
Two Palliative solution non-standard SAP:
1)
Create a implicit enhancement the end of the method M_CHECK_PACKAGE_IS_EMPTY class CL_PACKAGE and put "X" in the variable e_package_empty
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(2 ) Class CL_PACKAGE, Method
M_CHECK_PACKAGE_IS_EMPTY, End D
*$*$-Start: (2 )--------------------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZEI_PACKAGE. "active version
if me->package_name = 'ZTESTE3'.
e_package_empty = 'X'.
endif.
ENDENHANCEMENT.
*$*$-End: (2 )--------------------------------------------------------------------------------$*$*
ENDMETHOD.
Call transaction SE80 again, show the package ZTESTE and delete the Embedded Packages ZTESTE3 in TAB "Package Included".
Attention: Package ZTESTE3 will be deleted, but not its objects. Recreate the package ZTESTE3 and all objects will appear again.
After DELETE Embedded Packages , do not forget to delete implicit enhancement.
2) OR Bypass message e051(pak) in debug mode. Method: IF_PACKAGE~DELETE Class: CL_PACKAGE
-
Please use this information as you want, I am not responsible for consequence just did a test.
I hope I have helped.
Best Regards
Bruno Xavier.
2012 May 17 4:31 AM
Hi Sheng Gong,
have you found a way to remove the subpackage? I'm just curious as I have the same issue.
Thanks, Beate
2012 Oct 01 11:02 AM
SAP stores package assignment in table TDEVC-PARENTCL field for the embedded package.
I removed this via SE16, then in SE80 I have rebuilt the object list of the parent package, and the assigment gone.
I have also not found a standard solution for that, but this workaround was good for that.
2015 Jun 02 8:36 PM
This is described in OSS note 636704 - Undo embedding into a surronding package.
Regards,
Tobias Trapp