cancel
Showing results for 
Search instead for 
Did you mean: 

last po open

Former Member
0 Kudos

sIR,

while making a po let say if the last po is open in system means delivery complete has not been done or either gr is incomplete then system should propose a message that last po open

regards

amey

Accepted Solutions (1)

Accepted Solutions (1)

rafael_zaragatzky
Active Contributor
0 Kudos

Hi amey,

I don't think there's such check in the standard system. For such purposes SAP created the BAdI ME_PROCESS_PO_CUST. You can e.g. use the method PROCESS_ITEM to issue such messages.

The method has one single parameter IM_ITEM, which is the PO item object. This object has many useful methods - I suppose you will need at least GET_DATA and INVALIDATE for your usage.

BR

Raf

Answers (2)

Answers (2)

former_member197616
Active Contributor
0 Kudos

Hi,

This may be done using the info record .info recrd contains the last purchasing document which will stored at the table EINE.You can modify the std function module for creating po like for the combination of your Pur org, plant , material, vendor .For this combination system checks for last document since it contains the last PO.You can check the functionality of the report ME80FN (WHICH GIVES THE OPEN PO LIST).The same functionality can be fetched here during PO creation and write the code such that it will throw a error message 'Last PO is still open or item contains open POs)

This can be acheive through a good ABAPer.

Regards,

Former Member
0 Kudos

Hi,

You can do by using user exit.

Regards,

Nageswara Rao