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

About the 'SWITCH' attribute in dialog programming

Former Member
0 Likes
1,265

Hi experts,

Would you please tell me the usage and effect of 'SWITH' attributes in dialog programming view SE41? I haven't found the detailed explanation of this attribute as F1 help dosen't provide sufficient info which could let me understand it. Thanks for your attention.

4 REPLIES 4
Read only

Former Member
0 Likes
746

Do you mean the "Function Active <-> Inactive" option (Ucomm = SWIT)? If so, this allows you to have a function code defined in your PF-STATUS which shows as "greyed out" to the user (deactivated) i.e. visible but not accessible by clicking on it. Personally I tend to use the "excluding" option instead and hide the buttons / menu options that are not relevant.

Jonathan

Read only

Former Member
0 Likes
746

Dear Jonathan ,

it is my fault that I didn't express my questions so clearly that you made the incorrect understanding. I meant a attribute 'SWITCH' when double-clicking any element in Screen Painter. I wanna know such attribute's meaning and usage. Thanks again.

Edited by: Alex Liao on May 23, 2008 3:31 AM

Read only

0 Likes
746

Thanks for the extra info - took me a while to find it as I was using the non-graphic dynpro editor and it's not on the Attributes popup there...!

If you dig down a little you can find structure D021S_RES1 which has the various setting fields - this one is labeled "ID of a Switch in Switch Framework (7.00)"... if you then head off to [Switch Framework|http://help.sap.com/saphelp_nw2004s/helpdata/en/af/e8b540afc87c2ae10000000a155106/frameset.htm] you can read more on this technology... the way I read it is that this "Switch" field will allow certain fields to be relevant to specific "switches", rather than using screen groups or field status definitions to drive the dynpro layouts.

Jonathan

Read only

0 Likes
746

Dear Jonathan ,

Thanks so much for useful info that did paved the way for my new point learning.