cancel
Showing results for 
Search instead for 
Did you mean: 

MB01 taking another PO as referenced.

Former Member
0 Kudos

Dear Gurus,

We are working in IS-Retail, Stores POs are sending through SAP to third party POS/Billing Software. Store User create GRN at stores and GRN comes to SAP as IDOC and posting though MB01.

Suppose 2 POs created by SAP system for same Article on 25th Jan and 1st Feb respectively for 20 and 40 Qty respectively. We have schedule program to cancel unutilised PO after 3 days, due to which SAP marked the first PO of date 25th as Deleted but POS application does not any update. User created GRN with referenced to PO created on 25h Jan. When IDOC comes to SAP for GRN posting, system checks referenced PO is marked for delition and Delivry completion it takes as 2nd Feb PO as referenced and update the GRN in 1st Feb POs.

SAP system should throw IDOC error in WPER if referenced PO is closed or marked for deletion. Please suggest solution/configuration so that system should take correct PO or IDOC error to take the corrective action.

Thanks

Nandu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

check is there any User exit or BADI Available make use of it.

Former Member
0 Kudos

We will see if any, but my source documents contains the right PO in IDOC, why SAP system is taking another open document, instead of talking the Document PO. IDOC should go on error.

Former Member
0 Kudos

Dear Experts,

Actually MB01 has 2 options

1) Purchase Order - where in Purchase Order is mendatory.

2) PO Unknown - Where in if we IDOC contains Vendor and Article, it will take list of opened POs opened. IDOC processes through this option module and thats why even the referenced PO in IDCO is closed SAP system takes another PO which is opened and Delivery is pending.

Could you please suggest me how to change in IDOC or configuration to (1) so that MB01 should take only Purchase Order referenced in IDOC and if it is closed/deleted it should give error.

Thanks