‎2009 Jul 02 6:40 PM
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.
‎2009 Jul 02 7:06 PM
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
‎2009 Jul 02 7:06 PM
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
‎2009 Jul 03 9:40 AM
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.
‎2009 Jul 03 9:48 AM
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.
‎2009 Jul 03 4:14 PM
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
‎2009 Jul 03 4:26 PM
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.
‎2009 Jul 03 4:31 PM
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)?
‎2009 Jul 03 4:37 PM
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.
‎2009 Jul 03 4:44 PM
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?
‎2009 Jul 03 4:54 PM
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.
‎2009 Jul 03 5:07 PM
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
‎2009 Jul 03 5:17 PM
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