<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Check if a switch is active or not and execute code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695941#M1670355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colleagues,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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&lt;/P&gt;&lt;P&gt;IF &amp;lt;switch&amp;gt; is active.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = value1.&lt;BR /&gt;ELSE.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = value2.&lt;BR /&gt;ENDIF.&lt;/P&gt;&lt;P&gt;I need a way to find out if the &amp;lt;switch&amp;gt; is active in the system or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator Message: Please be more specific when asking your question - you need to describe which switch you're talking about.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 02:56:46 GMT</pubDate>
    <dc:creator>former_member227580</dc:creator>
    <dc:date>2012-04-17T02:56:46Z</dc:date>
    <item>
      <title>Check if a switch is active or not and execute code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695941#M1670355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colleagues,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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&lt;/P&gt;&lt;P&gt;IF &amp;lt;switch&amp;gt; is active.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = value1.&lt;BR /&gt;ELSE.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var1 = value2.&lt;BR /&gt;ENDIF.&lt;/P&gt;&lt;P&gt;I need a way to find out if the &amp;lt;switch&amp;gt; is active in the system or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Deepak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator Message: Please be more specific when asking your question - you need to describe which switch you're talking about.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 02:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695941#M1670355</guid>
      <dc:creator>former_member227580</dc:creator>
      <dc:date>2012-04-17T02:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a switch is active or not and execute code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695942#M1670356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you referring to the Dynpro switch? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 03:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695942#M1670356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-17T03:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a switch is active or not and execute code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695943#M1670357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes its a dynpro switch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 05:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-a-switch-is-active-or-not-and-execute-code/m-p/8695943#M1670357</guid>
      <dc:creator>former_member227580</dc:creator>
      <dc:date>2012-04-17T05:14:10Z</dc:date>
    </item>
  </channel>
</rss>

