cancel
Showing results for 
Search instead for 
Did you mean: 

Change Purchase requisition data during MRP run

Former Member
0 Kudos

Dears,

I have a requirement to track PRs after creation in order to understand who is the right person of contact.

The situation is the following:

1 I have 0 kg on stock

2 I have Sales Order for 50 kg

3 No MOQ or Safety Stock in material

3 MRP run will create PR for 50 kg based on Sales Order

I need to grab data: ERNAM, VBELN, KUNNR - from Sales order and fill AFNAM, BEDNR, KUNNR in PR.

I've checked all BADIs and seems that only MD_PURREQ_CHANGE allows to change PR.

But there is no any information about Sales Order in case of Make-To-Stock, only MTO.

So I'm stucked because I have no any idea how to fulfill this requirement.

I was thinking about export to MEMORY from MD_CHANGE_MRP_DATA but I think it's not a good idea.

Any proposals?

Thanks in advance!

Anton

Accepted Solutions (1)

Accepted Solutions (1)

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

You can only get the sales order number on the mentioned BAdI if you are using a MTO strategy and the purchase requisition is linked to the sales order special stock.

Otherwise, there is not 1:1 direct relationship between the sales order and the purchase requisition. Even when using lot sizing procedure EX, system may create only one purchase requisition if there are several sales orders on the same day.

BR
Caetano

Answers (0)