Skip to Content
Former Member
Feb 11, 2016 at 12:48 PM

Change Purchase requisition data during MRP run



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!