<?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 sapscript help~ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684853#M301615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt; i would like to retrieve a data using sap script. In the table LFBK, after i entered a vendor (LIFNR), i get 2 rows of data. My analyst currency in the BVTYP column, so the 1st row of the data is in &amp;lt;b&amp;gt;USD&amp;lt;/b&amp;gt;, 2nd row of data is &amp;lt;b&amp;gt;GBP&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in my sapscript, I would like to write:&lt;/P&gt;&lt;P&gt;if &amp;amp;REGUD-WAERS&amp;amp; is GBP, then get 2nd rows of data that BVTYP is also GBP.&lt;/P&gt;&lt;P&gt;if BVTYP is empty, then always get the 1st row of data.&lt;/P&gt;&lt;P&gt;should i write as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
/:   IF &amp;amp;REGUH-BVTYP&amp;amp; eq ' '
*   Beneficiary Bank,,  :    &amp;amp;REGUD-ZBNKA&amp;amp;
*   Branch,,,,,,       &amp;amp;REGUD-ZBSTR&amp;amp;

/:   ELSEIF &amp;amp;REGUD-WAERS&amp;amp; EQ &amp;amp;REGUH-BVTYP&amp;amp;
*   Beneficiary Bank,,  :    &amp;amp;REGUD-ZBNKA&amp;amp;
*   Branch,,,,,,       &amp;amp;REGUD-ZBSTR&amp;amp;

/:  ENDIF
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2006 01:34:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-17T01:34:47Z</dc:date>
    <item>
      <title>sapscript help~</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684853#M301615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt; i would like to retrieve a data using sap script. In the table LFBK, after i entered a vendor (LIFNR), i get 2 rows of data. My analyst currency in the BVTYP column, so the 1st row of the data is in &amp;lt;b&amp;gt;USD&amp;lt;/b&amp;gt;, 2nd row of data is &amp;lt;b&amp;gt;GBP&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in my sapscript, I would like to write:&lt;/P&gt;&lt;P&gt;if &amp;amp;REGUD-WAERS&amp;amp; is GBP, then get 2nd rows of data that BVTYP is also GBP.&lt;/P&gt;&lt;P&gt;if BVTYP is empty, then always get the 1st row of data.&lt;/P&gt;&lt;P&gt;should i write as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
/:   IF &amp;amp;REGUH-BVTYP&amp;amp; eq ' '
*   Beneficiary Bank,,  :    &amp;amp;REGUD-ZBNKA&amp;amp;
*   Branch,,,,,,       &amp;amp;REGUD-ZBSTR&amp;amp;

/:   ELSEIF &amp;amp;REGUD-WAERS&amp;amp; EQ &amp;amp;REGUH-BVTYP&amp;amp;
*   Beneficiary Bank,,  :    &amp;amp;REGUD-ZBNKA&amp;amp;
*   Branch,,,,,,       &amp;amp;REGUD-ZBSTR&amp;amp;

/:  ENDIF
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 01:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684853#M301615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T01:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript help~</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684854#M301616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wonder why if my BVTYP is GBP, it didn't go into the if and the elseif (because 1st row is USD, 2nd row is GBP). and no result is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to add any coding for it to loop through the LFBK table to match the WAERS (GBP) to BVTYP (GBP)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 04:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684854#M301616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T04:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript help~</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684855#M301617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handling the data from the script it is not posible,u have to do in print program or using subroutines.If u are using standard print program use subroutines concept and extract data according to ur condtion and display them in ur script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know in more clear,so that I can help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 04:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684855#M301617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T04:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript help~</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684856#M301618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your program is using LFBK then so must the sapscript..... but it is referring to REGUD and REGUH. THey need to be consistent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 04:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684856#M301618</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-11-17T04:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript help~</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684857#M301619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I created a subroutine on standard program and have solved it. thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 00:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-help/m-p/1684857#M301619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T00:55:01Z</dc:date>
    </item>
  </channel>
</rss>

