<?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: purchase order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382617#M1042565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;By Open PO if you mean a PO iin which items are still to be delivered then you hav to write a report with the following logic.&lt;/P&gt;&lt;P&gt;Let's take an example where a PO has one item having 5 Qty to be purchased. Now if Goods Reciept has been done for 3 item and remaining 2 is yet to be delivered then.... first of all get the PO Qty from table EKPO (Say it is V_POQTY). Now select the GR qty from table EKBE with VGABE = 1.&lt;/P&gt;&lt;P&gt;Something like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT belnr buzei budat menge bwart lfbnr FROM ekbe INTO
CORRESPONDING FIELDS OF TABLE i_grnt
WHERE ebeln = i_ekpo-ebeln AND
      ebelp = i_ekpo-ebelp AND
      vgabe = '1'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;After you get the sum of GR Qty (sum of i_grnt-menge...above) you have to subtract it from PO qty V_POQTY.&lt;/P&gt;&lt;P&gt;If the balance is zero then it means the PO is not open. Others that have the balance qty are open.&lt;/P&gt;&lt;P&gt;This way I think you can get a list of open purchase orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Firoz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2008 09:07:31 GMT</pubDate>
    <dc:creator>Firoz_Ashraf</dc:creator>
    <dc:date>2008-08-26T09:07:31Z</dc:date>
    <item>
      <title>purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382610#M1042558</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;How to get the list of open purchse orders .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the field STATU in EKKO table and did not get a clear idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me inn this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 07:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382610#M1042558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T07:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382611#M1042559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open purchase orders may not be assigned to a delivery or invoice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to get the business description of what they call 'Open Purchase Orders'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 07:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382611#M1042559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382612#M1042560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer to following link.i hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[open purchase order|http://themisto.jupiter.txstate.edu/fastrain/content/open%20po%20report/cc/html/index.htm]&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 07:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382612#M1042560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382613#M1042561</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 check this link&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5836973"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 07:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382613#M1042561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T07:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382614#M1042562</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;Check this link, you may get help-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="967461"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 07:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382614#M1042562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T07:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382615#M1042563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ekpo-elikz = space&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382615#M1042563</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-08-26T08:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382616#M1042564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;How to get the list of open purchse orders .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not you used SAP standard ones?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use ME2L,ME2N for same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;I checked the field STATU in EKKO table and did not get a clear idea&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Above field you mentioned this is indicator for specifying whether a quotation has been received in respect of an RFQ.&lt;/P&gt;&lt;P&gt;this is not for status check for PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try with field &lt;STRONG&gt;EKKO-AUTLF&lt;/STRONG&gt; this is for status check for PO whether this is open or not.you can check by just their value which X means delivery completed else delivery not been placed means GR still pending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see WIKI code for open PO:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2bopen%2bpurchase%2borders" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2bopen%2bpurchase%2borders&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382616#M1042564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382617#M1042565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;By Open PO if you mean a PO iin which items are still to be delivered then you hav to write a report with the following logic.&lt;/P&gt;&lt;P&gt;Let's take an example where a PO has one item having 5 Qty to be purchased. Now if Goods Reciept has been done for 3 item and remaining 2 is yet to be delivered then.... first of all get the PO Qty from table EKPO (Say it is V_POQTY). Now select the GR qty from table EKBE with VGABE = 1.&lt;/P&gt;&lt;P&gt;Something like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT belnr buzei budat menge bwart lfbnr FROM ekbe INTO
CORRESPONDING FIELDS OF TABLE i_grnt
WHERE ebeln = i_ekpo-ebeln AND
      ebelp = i_ekpo-ebelp AND
      vgabe = '1'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;After you get the sum of GR Qty (sum of i_grnt-menge...above) you have to subtract it from PO qty V_POQTY.&lt;/P&gt;&lt;P&gt;If the balance is zero then it means the PO is not open. Others that have the balance qty are open.&lt;/P&gt;&lt;P&gt;This way I think you can get a list of open purchase orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Firoz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 09:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382617#M1042565</guid>
      <dc:creator>Firoz_Ashraf</dc:creator>
      <dc:date>2008-08-26T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382618#M1042566</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;in selection criteria there is WE101 and WE103 both for open PO what to use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the data from ME2N tcode to my internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 09:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382618#M1042566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T09:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: purchase order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382619#M1042567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;How to get the data from ME2N tcode to my internal table?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No need to do that.just use EKKO-AUTLF field for getting open PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you saw below WIKI code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2bopen%2bpurchase%2borders" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2bopen%2bpurchase%2borders&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 09:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/purchase-order/m-p/4382619#M1042567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T09:29:38Z</dc:date>
    </item>
  </channel>
</rss>

