<?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 : conditions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438118#M208648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rich and Others,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your inputs, I will follow your suggestions and go ahead and work with it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopw this is not going to be a big problem. Meanwhile I wil allot points for your time and concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 21:25:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-06T21:25:28Z</dc:date>
    <item>
      <title>SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438112#M208642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on SAP Script. &lt;/P&gt;&lt;P&gt;I have to print so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;invoice Number	Doc type invoice date .....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I have used &amp;amp;bseg-belnr&amp;amp;,,XXXXX,,&amp;amp;BSID-BLDAT&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is in what should I enter in XXXXX place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually there is a condiation there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if bseg-bschl = 01 then INV,&lt;/P&gt;&lt;P&gt;if bseg-bschl = 04 then DED&lt;/P&gt;&lt;P&gt;if bseg-bschl = 06 then DED&lt;/P&gt;&lt;P&gt;if bseg-bschl = 11 then CR&lt;/P&gt;&lt;P&gt;if bseg-bschl = 15 then PAY&lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;ADJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first my Intension was doing So.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if bseg-bschl = 01 then INV&lt;/P&gt;&lt;P&gt;&amp;amp;bseg-belnr&amp;amp;,,INV,,&amp;amp;BSID-BLDAT&amp;amp; &lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&amp;amp;bseg-belnr&amp;amp;,,DED,,&amp;amp;BSID-BLDAT&amp;amp; &lt;/P&gt;&lt;P&gt;AND SO ON .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have condition on &amp;amp;BSID-BLDAT&amp;amp; Field also !!....and what if I have conditions on other fields in same row ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Should I go ahead .. Please advice me ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am trying to use this in SAP SCript Editor only, Should I try in print program.&lt;/P&gt;&lt;P&gt;Please advice me ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438112#M208642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438113#M208643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your conditions are somewhat complex, I usually do this stuff in the print program as opposed to the sapscript editor.  Like in your case I would use a variable here.  In my print program is where I would do the conditions and fill this variable there.  That way all i need in my sapscript editor is this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;amp;bseg-belnr&amp;amp;,,&amp;amp;VARIALBE&amp;amp;,,&amp;amp;BSID-BLDAT&amp;amp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438113#M208643</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-06T20:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438114#M208644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply.&lt;/P&gt;&lt;P&gt;with your reply I got other doubt, Can I use a variable in SAP Script Editor only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry if this sounds silly, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438114#M208644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T20:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438115#M208645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can, but then you still have all of that logic cluttering up the form.   This is just my opinion, but if you have control over the form and the print program, meaning they are custom,  then I always suggest to have your logic separated from the layout.  Meaning, put your logic in the print program, leave the sapscript editor for taking care of the layout.  Yes, there are some exceptions, and again just my opinion.  I think it is easier to read/maintain later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way you use the keyout DEFINE in the sapscript editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438115#M208645</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-06T20:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438116#M208646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link , create subroutine in script and do the calculation in report and pass the value to script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1626899"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 20:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438116#M208646</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-06T20:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438117#M208647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if &amp;amp;bseg-bschl&amp;amp; = 01 (Condition 1 )&lt;/P&gt;&lt;P&gt;  if condition2 = true (condition for BLDAT)&lt;/P&gt;&lt;P&gt;    &amp;amp;bseg-belnr&amp;amp;,,INV,,&amp;amp;BSID-BLDAT&amp;amp; &lt;/P&gt;&lt;P&gt;  else&lt;/P&gt;&lt;P&gt;    &amp;amp;bseg-belnr&amp;amp;,,INV,,&lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&amp;amp;bseg-belnr&amp;amp;,,DED,,&amp;amp;BSID-BLDAT&amp;amp; &lt;/P&gt;&lt;P&gt;SO ON...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 21:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438117#M208647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T21:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : conditions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438118#M208648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rich and Others,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your inputs, I will follow your suggestions and go ahead and work with it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopw this is not going to be a big problem. Meanwhile I wil allot points for your time and concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 21:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-conditions/m-p/1438118#M208648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-06T21:25:28Z</dc:date>
    </item>
  </channel>
</rss>

