<?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: Introduction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445201#M211500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have multiple reciepts against a PO line item.  Say the order quantity was for 10,  you receive 1 each day for the next 10 days,  you would do 10 different reciepts against this,  this means that there would be 10 records for this po line item in the EKBE table.  This is why i am saying to get all the records for the po line item and add them up.  You must take into account any reversals.  See the sample code above.&lt;/P&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>Wed, 19 Jul 2006 20:37:33 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-07-19T20:37:33Z</dc:date>
    <item>
      <title>Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445197#M211496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam kajol and i have registered today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anybody have the code written to retrieve the ordered quantity and delivery quantity of a po .&lt;/P&gt;&lt;P&gt;please do send it to me at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kajolsindi@yahoo.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kajol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 20:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445197#M211496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T20:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445198#M211497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Welcome to SDN!.   You can get these values from the PO Tables.  The order quantity can be found in table EKPO field MENGE.  You can get the delivery qty from the PO history table EKBE.  You will need to get all records per PO/item, only records that have BEWTP = E.  These are the GR.  Loop at these records and add up the MENGE field.  This is the delivery qty.  &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;P&gt;&lt;/P&gt;&lt;P&gt;PS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spread the wor(l)d!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 20:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445198#M211497</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-19T20:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445199#M211498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001.

data: iekbe type table of ekbe with header line.
data: xekpo type ekpo.
data: qty_delivered type ekbe-menge.

parameters: p_ebeln type ekpo-ebeln,
            p_ebelp type ekpo-ebelp.


start-of-selection.

  clear xekpo.
  select single * from ekpo into xekpo
              where ebeln = p_ebeln
                and ebelp = p_ebelp.


  clear iekbe. refresh iekbe.
  select  * from ekbe into table iekbe
    where ebeln = p_ebeln
      and ebelp = p_ebelp
      and bewtp = 'E'
      and bwart in ('101', '102').
  loop at iekbe.
    if iekbe-bwart = '102'.
      iekbe-menge = iekbe-menge * -1.
    endif.
    qty_delivered  = qty_delivered + iekbe-menge.
  endloop.


  write:/ 'Po Number/Item:', xekpo-ebeln, xekpo-ebelp.
  write:/ 'Order Qty:', xekpo-menge.
  write:/ 'Qty Delivered:', qty_delivered .

&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>Wed, 19 Jul 2006 20:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445199#M211498</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-19T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445200#M211499</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;I would like to thank you for your reply.&lt;/P&gt;&lt;P&gt;But i have question as you said &lt;/P&gt;&lt;P&gt;Loop at these records and add up the MENGE field. This is the delivery qty. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the value of menge is that off all items or single item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam retriving menge based on po and item no from ekbe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***delivery quantity&lt;/P&gt;&lt;P&gt; select  menge into table itab_ekbe&lt;/P&gt;&lt;P&gt;                 from ekbe&lt;/P&gt;&lt;P&gt;                 where ebeln = itab_req-ebeln&lt;/P&gt;&lt;P&gt;                 and   ebelp = itab_req-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to loop at itab_ekbe.iam confused because itab_ekbe would have only one value right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what iam thinking is on right lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 20:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445200#M211499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T20:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445201#M211500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have multiple reciepts against a PO line item.  Say the order quantity was for 10,  you receive 1 each day for the next 10 days,  you would do 10 different reciepts against this,  this means that there would be 10 records for this po line item in the EKBE table.  This is why i am saying to get all the records for the po line item and add them up.  You must take into account any reversals.  See the sample code above.&lt;/P&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>Wed, 19 Jul 2006 20:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445201#M211500</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-19T20:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445202#M211501</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;Ok i understood. The last reply cleared my doubt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again and i am awarding full points .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a wonderful day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kajol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 20:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445202#M211501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T20:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445203#M211502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are new, now is a good time to sign the SDN World map,  you get 25 points for it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 20:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445203#M211502</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-19T20:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445204#M211503</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;i would definetly register.&lt;/P&gt;&lt;P&gt;Ihave one more doubt whats the BWART movement 101 and 102 and why do we need to subtract menge of movement type 102 from to quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 20:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445204#M211503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T20:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445205#M211504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kajol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement Type 101 is for GR (Goods Receipt) and 102 is used for GR PO reversal. If there is a reversal, in that case we need to subtract the menge with movement type of 102.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Suresh G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 21:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445205#M211504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T21:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445206#M211505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for  your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me the transaction for GR PO reversal i.e for movement type 102.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does PO history category  E MEAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kajol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 21:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445206#M211505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T21:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Introduction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445207#M211506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a reversal from MIGO as well as the GR(101)  The PO History Category E means that it is a GR.&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, 20 Jul 2006 01:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/introduction/m-p/1445207#M211506</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-20T01:03:28Z</dc:date>
    </item>
  </channel>
</rss>

