cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a switch and adding Enhancement to it ?

Former Member
0 Kudos

hi,

I am enhancing my webdynpro component and for that i am creating an Enhancement.

Now I want to Add this Enhancement to a Switch but I have little knowledge how to create a switch and add enhancement to the switch.

Kindly let me know the steps and transaction to be used to achieve the same.

Thanx.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

This quesiton isn't really Web Dynpro specific. The process of creating and maintaining Switches is a general ABAP topic.

Also consider reading the help documentation on the subject:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm

There is also a recorded webinar you can view where we create a switch, assign an enhancement to it, assign the switch to a business set, and activate and deactivate the switch:

/people/thomas.jung/blog/2009/01/12/free-webinar-on-abap-enhancement-framework

Former Member
0 Kudos

hi Thomas ,

Thanks for the link to Online help.

I had one more doubt related to Switch Framework.

Is it possible to control the status of switch in WD ABAP.

My requirement is: I have added some custom fields to the Standard Component in Travel.

Now I want to make those fields Visible/Invisible based on Country.

Is it possible to handle this with Webdynpro or I have to Code and check for country name ?

Thanx.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Switches are either on or off. They must be set in customizing (transaction SFW5) and background job runs to do the actual activiation.

BADIs have filters that would allow you to change the braching of the enhancement based upon input criterial like country. Screen enhancements in WDA don't have such filters. You would need to code them logically into your application as you described.

Former Member
0 Kudos

hi Thomas,

Thanks for your Quick response.

Regards,

Saurav.

Answers (0)