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

(Custom Business Function) Switch Framework, DDIC and Dynpros...!

Former Member
0 Likes
1,870

Hi Gurus,

I feel this post doesnu2019t really belong to this Section, but I hope i twill stay longer on the top of the list, rather than in the General section. And many good people are around this section

OK, here is my issue: I want to create my own Business Function.

Iu2019ve been reading the different blogs from Thomas Weiss, they are very informative. I myself feel comfortable with implicit/explicit enhancement in standard code.

But Iu2019m less aware of switches. And I want to create a custom Add-On, not enhance the standard here.

My 1st step, I think, is to set up some switches on my DDIC object.

Iu2019ve tried to set a simple test, creating a simple test table in one Transport Request (TR). Then I want to add a Customer Include or Customer Append to it, and switch it. Actually, I want to add 2 of them, in 2 distinct TR. Because I want to try to transport my 2nd enhancement 1st on another system.

My 1st issue is that I have inconsistency in my table, using switched customer include/appendu2026

My main table is in one package. But my structure is in a new package, and Iu2019ve created a switch linked to that package. Then I can see in my structure properties that my switch appears.

What would be the logical way to set up such a scenario? Do I have to create many switches, or should I try to use one most of the time?

Next step is to switch some dynpros in some reports (SE38 ones). There, what should be the methodology? Should I add one new switch to each field I want to switch? Can I (or Should I?) use some sub screen to switch? But then what would be the syntax to write the PBO and PAI in the flow logic? Can I make some u201Chooku201D in my dynpro to attach there several sub screens, depending on my add-ons?

Thanks in advance for your highlights!

N.H.

1 ACCEPTED SOLUTION
Read only

former_member194416
Contributor
0 Likes
1,724

Hi,

Aim of the switch is generally switch enhanceable objects, you can switch objects listed below (you can also see them in SFW1 tcode). Generally you should try to add enhancements for same functional purpose in one switch (for code enhancements same package). So you can switch them on all once.

- Append Structures, Includes, and Customizing Includes for structures in the ABAP Dictionary

- Append Search Helps for search helps in the ABAP Dictionary

- Secondary indexes for database tables in the ABAP Dictionary

- Fixed Value Appends for domains in the ABAP Dictionary

- Business Configuration Sets of the Customizing

- Enhancement Implementations of the Enhancement

And second question, as far as I know dynpro can not be switched (you can just add some enhancements to PBO, PAI modules and switch them on or off using package switching).

Regards,

Gungor

11 REPLIES 11
Read only

former_member194416
Contributor
0 Likes
1,725

Hi,

Aim of the switch is generally switch enhanceable objects, you can switch objects listed below (you can also see them in SFW1 tcode). Generally you should try to add enhancements for same functional purpose in one switch (for code enhancements same package). So you can switch them on all once.

- Append Structures, Includes, and Customizing Includes for structures in the ABAP Dictionary

- Append Search Helps for search helps in the ABAP Dictionary

- Secondary indexes for database tables in the ABAP Dictionary

- Fixed Value Appends for domains in the ABAP Dictionary

- Business Configuration Sets of the Customizing

- Enhancement Implementations of the Enhancement

And second question, as far as I know dynpro can not be switched (you can just add some enhancements to PBO, PAI modules and switch them on or off using package switching).

Regards,

Gungor

Read only

0 Likes
1,724

Hi Gungor,

thx for your reply.

Actually, how would you put switches on customer include/append? In my simple example, I would create a table and put it in a package and a Transport Request (TR). Then I would release my TR.

Then I want to create a switchable customer include/append and put it in a TR. But I can't activate my table, I've got some inconsitencies in the tablle, according to SAP.

Read only

0 Likes
1,724

Just put it in a package and relate package with switch and switch it on or off using SFW transactions. What error do you get about TR. It should not be something related with switching.

Read only

0 Likes
1,724

Will the following steps work? Am I putting it right?

Letu2019s use P as Package (from P0 to Pn), TR as Transport Request, S as Switch, T as table, and CI as Customer Include.

Creation order is:

P0 in TR0.

T in P0 and TR0.

TR0 is released

P1 in TR1

S1 in P0 and TR1

S1 linked to P1

CI1 in P1 and TR1

CI1 included in T

TR1 is released

P2 in TR2

S2 in P0 and TR2

S2 linked to P2

CI2 in P2 and TR2

CI2 included in T

TR2 is released

Will I be able to install on another system TR0, then TR2, then TR1?

Actually, I've tried to follow those steps, but I had 2 different issues each time:

- inconsistency in table T

- I couldn't see the switch on the packages P1 and P2 and on the Customer Include

Read only

0 Likes
1,724

Yes you should successfully import these requests.

Do you have a detailed message about this inconsistency ? (and may be helpful check if enhancement category for the table can be enhanced).

- In SFW1 switches and connections are displayed. If yes try to activate them from SFW1 and check again the include and packages. (Activation in switches sometimes can be problematic ).

Try to check your switches from SFW1 and if everything is ok then check again from customer includes & packages.

Read only

0 Likes
1,724

OK, thx, I'll try it again, I must be doing something wrong

One last thing: Should the switches belong to the switched package (here P1 and P2)? Or should they belong to some main package (here P0)?

Read only

0 Likes
1,724

Here it should be in P1 & P2 because you have two different switch. If you assign two different switch to same object there may be conflicts. But if you had only one switch both would be same I guess.

Read only

0 Likes
1,724

Yes, packages P1 and P2 would be linked to Switches S1 and S2 in SFW1, but should the 2 switches be created (at save) in P1 and P2 or in P0?

Read only

0 Likes
1,724

Package of switch itself is not important you can create it in any package because you cannot switch on or off switch itself. Only conceptually it may be better to create it some other package and transport before switch relations.

Read only

0 Likes
1,724

well, thx a lot for your time, apparently, there are some differences within SAP in the Switches, depending of the languages. I can't activate my table with its Customer Include in my language (Fr actually), but I can in En...

From now, I'll close this post and try to find my way with the Switch Framework

Read only

0 Likes
1,724

Check this document too, this was the most usefull when I was working on subject.

http://www.adfahrer.com/workplace/Sem/2006-11-28-ADSIG-SBN-WalldorfABAP/MikaelAcker-EFW-4-nordic.pdf