Application Development 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: 

SE21 - "Flag for Package Encapsulation" - how to change on existing package?

joachimrees1
Active Contributor

When creating a package (SE21), there’s this "Flag for Package Encapsulation" I could set.

On a saved package, I can see it in the "Package Hierarchy" tab.

But: how can I change that flag on a package that is already created?

...I haven't found a way so far....

can you help me out?

thanks

Joachim

PS: if I can't do someting in SE80/SapGui I tend to think "well, maybe Eclipse?", but that shouldn't be the case here, right? Eclipse users still have to use SE21, if I'n not mistaken....

1 ACCEPTED SOLUTION

joachimrees1
Active Contributor
0 Kudos

Uh, well, I now found out that it is very well and easily possible (regardless whether packages checks are on or off): If you use AdT:

Big thanks to thalesvb for mentioning it in this blog:

https://blogs.sap.com/2019/08/05/code-less-reuse-more-rebels-lets-package-our-tools/

[Edit: haha funnny, I only now saw that I hinted this very path ("try it in AdT/Eclispe!") already when I created the question 2,5 years ago...]

8 REPLIES 8

Peter_Inotai
Active Contributor
0 Kudos

Hi Joachim,

Lot of these fields cannot be changed after creation 😞

One option is to delete and recreate it. Other ugly option is to change it in table TDEVC (of course with very carefully, comparing with an existing one).

Best regards

Peter

OK, thanks Peter!

michał_badura
Participant

Once You turn Your package checks on, You will be able to change this flag on the properties tab of a package.

Afterall, whether a package is encapsulated or not, makes no difference, when the checks are off.

Best regards

Michał

0 Kudos

Hey Michał,

thanks a lot for that explanation!

best

Joachim

0 Kudos

Hi Michal,

a small follow up: how do you actually switch on packages checks?

It seems a simple question, but I coudn't answer it myself 😞

- SAP-Help doesn't explain it, see https://blogs.sap.com/2017/01/11/whats-to-know-about-abap-package-concepts-se21-today/#comment-39369...

- I figured it's table PAKPARAM, Parameter GLOBAL_SWITCH - but how am I switching it? SM30 on PAKPARAM_V and typing (without value help) RESTRICTED or R3ENTERPRISE into it? This seems so faulty, isn't there a better way?

Hi Joachim,

unfortunatelly, as far as I know that's the only way. But I'll be more than glad to learn something new.

Aside from the offical help, I think I found this information also in two SAP-Press books: one was the ABAP certification guide, the other was Tobias Trapp's book about ABAP (only in German, I think), and as far as I remember, neither of them gives an alternative way of setting the package checks on.

Best regards

Michał

former_member235482
Participant

This took me quite a while to find, so I'm sharing in case others have the same issue:

2017-10-03-16h25-20.png

joachimrees1
Active Contributor
0 Kudos

Uh, well, I now found out that it is very well and easily possible (regardless whether packages checks are on or off): If you use AdT:

Big thanks to thalesvb for mentioning it in this blog:

https://blogs.sap.com/2019/08/05/code-less-reuse-more-rebels-lets-package-our-tools/

[Edit: haha funnny, I only now saw that I hinted this very path ("try it in AdT/Eclispe!") already when I created the question 2,5 years ago...]