<?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 IF ELSE Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084049#M731393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;seperate subroutine will definetly work as i did the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 09:35:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-21T09:35:31Z</dc:date>
    <item>
      <title>SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084041#M731385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN, &lt;/P&gt;&lt;P&gt;        I am adding a condition in the script. IF ELSE condition. The condition happens to be longer than the line size of the editor. It comes to the next line and the other. &lt;/P&gt;&lt;P&gt;When my script run, it checks the condition only on the first line and the rest is not checked and printed as text. I mean the whole condition gets printed as text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out with this. &lt;/P&gt;&lt;P&gt;How shall I modify the script so that the whole text is treated as a condition and not the text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Useful answers will be rewarded with points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Manu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084041#M731385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084042#M731386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the paragraph format of the second line is blank, SAPscript will treat this as a continuation of the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084042#M731386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084043#M731387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that already. There is no paragraph format in that line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084043#M731387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084044#M731388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;even i faced the same problem.&lt;/P&gt;&lt;P&gt;As script doent check the very long conditions (more than 1 line) &lt;/P&gt;&lt;P&gt;The solution which i adopted is :&lt;/P&gt;&lt;P&gt;Call the Perform Routine from ur script and with in SE38 editor, u have to mention all ur If.........else conditions. &lt;/P&gt;&lt;P&gt;witth in this condition pass the Flag to the variable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;If.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_x = 'X'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_x = ' '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u can use this flag variable in the script editor to check whther it has passed IF condition , or ELSE Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revrt back if nay issues,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084044#M731388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084045#M731389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the graphical or text editor?  If you're using the text you have the function Ctrl+F8 which shifts the line left or right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively the paragraph format = acts as a line continuation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all else fails you may need to split you condition into nested IFs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084045#M731389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084046#M731390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may use this under text editor:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit&amp;gt;Page Left/Right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put your mouse cursor on the line, and then press Shift+F8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084046#M731390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084047#M731391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to put whole cond. in single line like...&lt;/P&gt;&lt;P&gt;when you are in edit mode in script press Shift + F8..then you'll get continuation line. here you can enter whole cond in single line.&lt;/P&gt;&lt;P&gt;I'm not sure you are getting error because of writing IF cond in two lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 08:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084047#M731391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084048#M731392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried using SHIFT+F8. The condition is longer. I think I will have to write a seperate routine as suggested by Naveen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Manu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 09:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084048#M731392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T09:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script IF ELSE Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084049#M731393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;seperate subroutine will definetly work as i did the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 09:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-if-else-check/m-p/3084049#M731393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T09:35:31Z</dc:date>
    </item>
  </channel>
</rss>

