<?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: doubt in printing variables in script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413379#M819803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have given the points.&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;Ramana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 08:31:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T08:31:09Z</dc:date>
    <item>
      <title>doubt in printing variables in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413377#M819801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am having small doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1).I need to write one condition for sales org 'US11' and divisions '20' or '40'. So the below logic is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vbdkr-vkorg = 'US11' and and vbdkr-vtweg = '20' or vbdkr-vtweg = '40'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select........&lt;/P&gt;&lt;P&gt;&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;2). i need th print these variables in script. can i use the logic like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;amp;vbdkr-vkorg&amp;amp; = 'US11' and and &amp;amp;vbdkr-vtweg&amp;amp; = '20' or &amp;amp;vbdkr-vtweg&amp;amp; = '40'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;zkbetr1/ zpery1&amp;amp;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&amp;amp;zkbetr/ zpery&amp;amp; (This is for sales org other than US11)&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413377#M819801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in printing variables in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413378#M819802</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;I think your condition would be more apt if you code this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF vbdkr-vkorg EQ 'US11' AND ( vbdkr-vtweg EQ '20' OR vbdkr-vtweg EQ '40' ).

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, look at putting the code into a subroutine called from your driver or subroutine program and then returning the value. The "logic" for determining the value to be printed can then be performed within the subroutine rather than the SAP script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 07:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413378#M819802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T07:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in printing variables in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413379#M819803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have given the points.&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;Ramana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-printing-variables-in-script/m-p/3413379#M819803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:31:09Z</dc:date>
    </item>
  </channel>
</rss>

