Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

purchase order

Former Member
0 Likes
1,781

Hi

How to get the list of open purchse orders .

I checked the field STATU in EKKO table and did not get a clear idea

please help me inn this issue

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,506

hii

refer to following link.i hope it will help you

[open purchase order|http://themisto.jupiter.txstate.edu/fastrain/content/open%20po%20report/cc/html/index.htm]

regards

twinkal

Hi

How to get the list of open purchse orders .

I checked the field STATU in EKKO table and did not get a clear idea

please help me inn this issue

Regards

9 REPLIES 9
Read only

Former Member
0 Likes
1,506

Open purchase orders may not be assigned to a delivery or invoice.

You need to get the business description of what they call 'Open Purchase Orders'.

Read only

Former Member
0 Likes
1,507

hii

refer to following link.i hope it will help you

[open purchase order|http://themisto.jupiter.txstate.edu/fastrain/content/open%20po%20report/cc/html/index.htm]

regards

twinkal

Read only

Former Member
0 Likes
1,506

Hi,

Please check this link

Best regards,

raam

Read only

0 Likes
1,506

Hi ,

in selection criteria there is WE101 and WE103 both for open PO what to use

How to get the data from ME2N tcode to my internal table?

regards

Read only

0 Likes
1,506
How to get the data from ME2N tcode to my internal table?

No need to do that.just use EKKO-AUTLF field for getting open PO.

did you saw below WIKI code?

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2bopen%2bpurchase%2borders

Amit.

Read only

Former Member
0 Likes
1,506

Hi,

Check this link, you may get help-

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,506

ekpo-elikz = space

Read only

Former Member
0 Likes
1,506
How to get the list of open purchse orders .

Why not you used SAP standard ones?

you can use ME2L,ME2N for same.

I checked the field STATU in EKKO table and did not get a clear idea

Above field you mentioned this is indicator for specifying whether a quotation has been received in respect of an RFQ.

this is not for status check for PO.

Just try with field EKKO-AUTLF 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.

Also see WIKI code for open PO:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/list%2bof%2bopen%2bpurchase%2borders

Amit.

Read only

Firoz_Ashraf
Contributor
0 Likes
1,506

Hi !

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.

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.

Something like this..



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'.

After you get the sum of GR Qty (sum of i_grnt-menge...above) you have to subtract it from PO qty V_POQTY.

If the balance is zero then it means the PO is not open. Others that have the balance qty are open.

This way I think you can get a list of open purchase orders.

Regards,

Firoz.