2010 Mar 03 12:51 PM
Is there any standard bapi that will tell me if a PO has been rejected via ME29N?
Cheers
Greg
2010 Mar 03 1:09 PM
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_PO_GETDETAIL Display Purchase Order Details
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
Did you try any of these ???
Regards
Manthan.
2010 Mar 03 1:09 PM
BAPI_ACC_PURCHASE_ORDER_CHECK Accounting: Check Purchase Order
BAPI_PO_GETDETAIL Display Purchase Order Details
BAPI_PO_GETITEMSREL List Purchase Orders for Release (Approval): New as of 4.0A
BAPI_PO_GETRELINFO Display Detailed Release (Approval) Information on Purchase Order
Did you try any of these ???
Regards
Manthan.
2010 Mar 03 4:06 PM
Did you check BAPI_PO_GETDETAIL, parameter PO_HEADER , field status
2010 Mar 03 10:24 PM
I tried looking at BAPI_PO_GETDETAIL, BAPI_PO_GETITEMSREL and BAPI_PO_GETRELINFO but the status does not change if I reject the PO. Interestingly BAPI_PO_GETITEMSREL still returns the PO as an item available to be rejected!
Any other options?
2010 Mar 04 5:55 AM
Did you use Explicit Commit after you used the Bapi .. ?
BAPI_PO_GET_DETAIL is your best bet .. did you check using it .. it has a field which is in focus HIstory
Also did you try the solution by Keshav ?
BR
Manthan.
2010 Mar 04 7:30 AM
I did check BAPI_PO_GETDETAILS and BAPI_PO_GETDETAILS but the status does not change and their is no history record.
I know the PO's I am looking at have definitely been rejected via ME29N.
Any other options?
Cheers
Greg
2010 Mar 04 9:21 AM
2012 Feb 16 3:12 PM
You are correct in that BAPI_PO_GETITEMSREL returns rejected PO's. When a PO is rejected EKKO- PROCSTAT eq 08. So your best bet would be to write a custom BAPI with the addtional selection criteria of EKKO-PROCSTAT ne 08. This is what we have to do.
2010 Mar 04 7:43 AM
will FRGKE field in EKKO Release Indicator: Purchasing Document will help you ..!