<?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: ABAP GENERAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804229#M345234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  What exactly r u looking for? the explanation of the logic or the code for the logic&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 11:58:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-20T11:58:43Z</dc:date>
    <item>
      <title>ABAP GENERAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804228#M345233</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;please help me out with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Select Single SPART from MARA into V_SPART where MATNR = ZMATNR.&lt;/P&gt;&lt;P&gt;4. IF BSART = 'ZSTO' and V_SPART = '30'.(bsart  should be taken from vbep table)&lt;/P&gt;&lt;P&gt;   Select VBELN and POSNR from VBRP into V_VBELN,V_POSNR where matnr= ZMATNR and WERKS = ZWERKS and ERDAT = SY-DATUM.(If there is no record, search for one day earlier(SY-DATUM -1). Repeat this until a record is found for the above combination excluding date)&lt;/P&gt;&lt;P&gt;5.  If multiple VBELNs are found for date, Check the prices for each of them as follows:&lt;/P&gt;&lt;P&gt;    Select KNUMV from KONV where KNUMV = V_KNUMV and KPOSN = V_POSNR and KSCHL = 'ZSTP'.(Latest Price)&lt;/P&gt;&lt;P&gt;6 . Select the highest KWERT and Copy to XKWERT.(zmatnr ,zwerks,zreswk are select options)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 11:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804228#M345233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP GENERAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804229#M345234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  What exactly r u looking for? the explanation of the logic or the code for the logic&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 11:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804229#M345234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T11:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP GENERAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804230#M345235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the problems are u facing , what exactly do u want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 12:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804230#M345235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP GENERAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804231#M345236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see example bellow.&lt;/P&gt;&lt;P&gt;note that to make it work the way your spec. is asking, the select in VBRP should be done to an internal table, so you can check if there are multiple entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Single SPART from MARA into V_SPART where MATNR = ZMATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  l_date type dats.&lt;/P&gt;&lt;P&gt;  l_date = sy-datum + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do while sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  l_date = l_date - 1.&lt;/P&gt;&lt;P&gt;  IF BSART = 'ZSTO' and V_SPART = '30'.&lt;/P&gt;&lt;P&gt;    Select single VBELN, POSNR &lt;/P&gt;&lt;P&gt;        from VBRP &lt;/P&gt;&lt;P&gt;        into V_VBELN,V_POSNR &lt;/P&gt;&lt;P&gt;     where matnr= ZMATNR &lt;/P&gt;&lt;P&gt;         and WERKS = ZWERKS &lt;/P&gt;&lt;P&gt;         and ERDAT = l_date.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Hermes Felipe Alves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 13:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-general/m-p/1804231#M345236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T13:14:43Z</dc:date>
    </item>
  </channel>
</rss>

