<?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 Re: SAP Script form - If else statement not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590161#M23780</link>
    <description>&lt;P&gt;Problem solved. TVKO-VKORG was wrong.. &amp;amp;TVKO-VKORG&amp;amp; works instead.&lt;/P&gt;
  &lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2018 14:00:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-02-07T14:00:34Z</dc:date>
    <item>
      <title>SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590156#M23775</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I have a problem within a SAP Script form while checking a value to add a SO10 text.&lt;/P&gt;
  &lt;P&gt;In the header text I want to check if VKORG = '0005'.&lt;/P&gt;
  &lt;P&gt;In debugging mode I can see that the value is correct filled, but the statement is skipped.&lt;/P&gt;
  &lt;P&gt;Thats the Code:&lt;/P&gt;
  &lt;P&gt;/: IF TVKO-VKORG = '0005'.&lt;/P&gt;
  &lt;P&gt;* INCLUDE &amp;amp;VBDKA-TDNAME&amp;amp; OBJECT VBBK ID 1234 PARAGRAPH ZD.&lt;/P&gt;
  &lt;P&gt;/:&lt;/P&gt;
  &lt;P&gt;/: ENDIF.&lt;/P&gt;
  &lt;P&gt;/: INCLUDE &amp;amp;VBDKA-TDNAME&amp;amp; OBJECT VBBK ID 1235 PARAGRAPH ZD.&lt;/P&gt;
  &lt;P&gt;At the moment the debugger is standing on the if-line, the value of TVKO-VKORG is 0005.&lt;/P&gt;
  &lt;P&gt;Any ideas on that?&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;Thanks in regards for helping&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 12:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590156#M23775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-07T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590157#M23776</link>
      <description>&lt;P&gt;Did you try to debug a code with an actual statement (neither space nor commented) between IF and ENDIF like&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;/: IF &amp;amp;TVKO-VKORG&amp;amp; EQ '0005'.
/: IF &amp;amp;TVKO-VKORG&amp;amp; NE '0000'.
/: ENDIF.
/: ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590157#M23776</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-02-07T13:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590158#M23777</link>
      <description>&lt;P&gt;The paragraph format * means that the line is a text to output. You should use /: for all SAPscript commands, i.e. in your case:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;/: INCLUDE &amp;amp;VBDKA-TDNAME&amp;amp; OBJECT VBBK ID 1234 PARAGRAPH ZD.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590158#M23777</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2018-02-07T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590159#M23778</link>
      <description>&lt;P&gt;Just now as you asked.&lt;/P&gt;
  &lt;P&gt;The same problem. It just skipps the line as the requirement wouldn´t be fulfilled.&lt;/P&gt;
  &lt;P&gt;Could it be something with the prefixes in the lines?&lt;/P&gt;
  &lt;P&gt;Is '/:' even correct?&lt;/P&gt;
  &lt;P&gt;Do I have to consider something in the lines above?&lt;/P&gt;
  &lt;P&gt;I also tested:&lt;/P&gt;
  &lt;P&gt;/: IF 1 = 1.&lt;/P&gt;
  &lt;P&gt;That worked... but the other statement is still being skipped.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590159#M23778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-07T13:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590160#M23779</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;
  &lt;P&gt;I tried both. The basic problem is, that the coding is not reacting correct on the if statement.&lt;/P&gt;
  &lt;P&gt;As I answered to raymond, I tried it with IF 1 = 1. That works.. even with * at the beginning of the line.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590160#M23779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-07T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590161#M23780</link>
      <description>&lt;P&gt;Problem solved. TVKO-VKORG was wrong.. &amp;amp;TVKO-VKORG&amp;amp; works instead.&lt;/P&gt;
  &lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590161#M23780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-07T14:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script form - If else statement not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590162#M23781</link>
      <description>&lt;P&gt;Was it all that long ago that I created/edited a Sapscript for the last time...&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-form-if-else-statement-not-working/m-p/590162#M23781</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-02-07T14:10:18Z</dc:date>
    </item>
  </channel>
</rss>

