<?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: vbap and vbpe in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991422#M706543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem solve thx a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 12:20:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-21T12:20:03Z</dc:date>
    <item>
      <title>vbap and vbpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991418#M706539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can anybody have any idea how i can implement this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose i have same order which has different item category let's say x1 and x2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x1 can can be follow by several x2 item caterory i need to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Match the Unit of measure for the x2(xvbap-pstyv) and its respective &lt;/P&gt;&lt;P&gt;x1(xvbap-pstyv) &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;a) if they are same then Compare the confirmed qty(XVBEP-LMENG) field and &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;if x2 (xvbap-pstyv) is greater than Z011(xvbap-pstyv) then &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;replace the x2&amp;#146;s (xvbap-pstyv) confirmed qty by x1 in XVBEP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i compare the unit pf measure i am thinking maybe i need to loop in xvbap then in xvbep then how do i link the item category by it's posnr may be is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991418#M706539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T19:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: vbap and vbpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991419#M706540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,  you can do like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at xvbap with PSTVY = 'X1'.

  read table xvbep with posnr = xvbap-posnr.
*... do your processing
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991419#M706540</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-29T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: vbap and vbpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991420#M706541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need to to 2 loop can't do a read since in table xvbep there can be many entry with same posnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i do a read in xvbep??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i an unsure is how do i Match the Unit of measure for the x2(xvbap-pstyv) and its respective x1(xvbap-pstyv) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i plan to do is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at xvbap where pstyv eq 'x1'&lt;/P&gt;&lt;P&gt; // keep the posnr in a variable var_posnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--loop at xvbep &lt;/P&gt;&lt;P&gt;--//but how to match the unit of measure(xvbap-mein) of x2 with x1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for any suggesstion which might give me a hint&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 20:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991420#M706541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T20:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: vbap and vbpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991421#M706542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is bit tricky....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy your XVBAP to XVBAP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Try to implement this code....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at xvbap1 where pstyv = 'X2'.
  loop at xvbap where pstyv = 'X1' 
                    and  MEINS = XVBAP1-MEINS.
* SUM XVBAP''s LMENG for the &amp;lt;b&amp;gt;XVBAP1-POSNR&amp;lt;/b&amp;gt;.
   loop at xvbep where posnr = xvbap1-posnr.
     l_x2_sum =  l_x2_sum + xvbep-lmeng.
   endloop.
* SUM XVBAP''s LMENG for the &amp;lt;b&amp;gt;XVBAP-POSNR.&amp;lt;/b&amp;gt;
   loop at xvbep where posnr = xvbap1-posnr.
     l_x2_sum =  l_x2_sum + xvbep-lmeng.
   endloop.
*  now compare as per your requirement....
  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 20:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991421#M706542</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-10-29T20:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: vbap and vbpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991422#M706543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem solve thx a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 12:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbap-and-vbpe/m-p/2991422#M706543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T12:20:03Z</dc:date>
    </item>
  </channel>
</rss>

