cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Delivery for PO through IDOC with quantity from GR

Former Member
0 Kudos

Hi All,

Our requirement is to create a delivery for a Purchase Order using an IDOC triggered from a GR for another Purchase Order.

Example:

PO 1-Quantity 1000

PO 2-GR for this PO was done and the quantity in GR is 500. this GR triggeres the IDOC which will create a delivery for PO 1.

We intend to use BDC which will call VL10B and then pass the PO 1 number to it. The disadvantage of this method is that the delivery quantity will be 1000 (same as the one in PO 1). However the quantity should be 500, as the one in GR for PO 2.

Is there any method to ensure that at the time of creation of delivery itself a quantity of 500 is used forcreating the delivery?

We would like to avoid opening the delivery in change mode and then changing the quantity from 1000 to 500. Hence we are looking for a solution which will let us change the quantity at the time of creation of delivery.

In our example mentioned above, the quantity 500 will be available in the Inbound IDOC.

Kindly help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Khan,

I believe you can not control this in standard SAP.

Work around is, in the BDC, you need to maintain a logic, accordingly it needs to check, purchase order history in the PO, if there is goods receipt document, program should consider the MIGO quantity to create delivery in VL10B.

Another issue is if 1st MIGO is for 500 quantity, once we run the program, it creates delivery for 500.

if there is another MIGO for remaining 500, if we run the program it shoud not consider 1st migo quantity as it is already delivered and needs to consider the 2nd MIGO quantity to create delivery.

Discuss this with your Tech Consultant.

Regards,

Ravi Duggirala

Answers (0)