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

Check if a switch is active or not and execute code

0 Likes
1,241

Hi Colleagues,         

             Can you please guide me on how to write an abap code to check if the switch is active or not? I need something like this

IF <switch> is active.
    var1 = value1.
ELSE.
    var1 = value2.
ENDIF.

I need a way to find out if the <switch> is active in the system or not.

Regards,
Deepak

Moderator Message: Please be more specific when asking your question - you need to describe which switch you're talking about.    

Message was edited by: Suhas Saha

2 REPLIES 2
Read only

Former Member
0 Likes
768

Hi Deepak,

Are you referring to the Dynpro switch?

Regards,

Karl

Read only

0 Likes
768

Hi Karl,

         Yes its a dynpro switch.

Regards,

Deepak