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: 

Can i "switch" implicit enhancements individually using Switch FW?

SuhaSaha
Advisor
Advisor
0 Kudos

Hello SDNers,

I have been toying around with the Switch FW (SFW) for the past few weeks & i need your help in solving a (silly) problem.

Scenario:

  • I have 5 implicit enhc. implementations, EH1 to EH5, which are part of the same package PCK1.
  • I have created the SFW elements - BF set(BS1), BF(B1), Switch(S1).
  • S1 is assigned to PCK1

Enhancements EH1-EH5 can be turned on/off via BS, so far so good.

Problem:

I want EH1-EH3 to be activated & EH4-EH5 to remain inactive.

I know that i can put them in separate packages & the problem is solved, but i want to check other options before doing this.

Thanks for your time.

BR,

Suhas

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In my opinion, all enhancements can be in same package.

Enhancements 123 need to be in subpackage, and 45 in another subpackage.

If package is not assigned to switch, subpackages can be assigned to separate switches.

I am looking at diagram in this link. (I haven't tried it though).

http://help.sap.com/saphelp_nw04s/helpdata/en/42/f186d1faf93255e10000000a1553f7/content.htm

3 REPLIES 3

Former Member
0 Kudos

In my opinion, all enhancements can be in same package.

Enhancements 123 need to be in subpackage, and 45 in another subpackage.

If package is not assigned to switch, subpackages can be assigned to separate switches.

I am looking at diagram in this link. (I haven't tried it though).

http://help.sap.com/saphelp_nw04s/helpdata/en/42/f186d1faf93255e10000000a1553f7/content.htm

0 Kudos

Nice tip Manish

But then again i have to create 2 sub-packages & assign them to the new switches(2 in this case). But if i understand correctly from the link -

cannot assign the same package to several switches.

I did read the online documentation on SFW but somehow this skipped my eyes I'll keep you posted.

- Suhas

0 Kudos

Manish,

Thanks for the link.

Can you please share your knowledge on the below point related to Switch.

Not able to understand the difference between ON and STANDBY going by the documentation in the above link.

http://help.sap.com/saphelp_nw04s/helpdata/en/4e/708441fd86030de10000000a1550b0/content.htm

Documentation from the above link.

When a switch is switched on, the ABAP Dictionary objects and the BC sets connected to it are activated and the programs with enhancements are invalidated.

The next time you use a program with enhancements, it is recompiled with the enhancements switched on. Conflict switches are also switched on if, after switching on the business function, the conflict still exists.

If you change and activate a switch that is switched on, again the ABAP Dictionary objects are activated and the programs are invalidated. Depending on the scale of the changes, the process can take several minutes. That is why the activation of switches is always executed in the background.

Thanks,

K.Kiran.