cancel
Showing results for 
Search instead for 
Did you mean: 

How to change quantity of an inbound delivery

Former Member
977

Dear experts,

in transaction /SCWM/GRPI it looks like the system creates an inbound delivery with method CREATE_ITEM_NEW_PDI of class /SCWM/CL_DLV_EGR2PDI.

In my small programm i use that method too, but I can´t find a way to change the quantities that are pulled from the EGR.

After i call the method....

... the quantities of all items are set by the quantities of the EGR items. In my situation i want to create a inbound delivery with the half of the amount from the EGR.

I hope you have an idea, which functionmodul or method can help me to handle this problem.

Best regards

Rodrigo

View Entire Topic
SerhanEr
Contributor

Hi,

You need to update aspect.

Use this class: /SCMB/IF_SP_ASPECT, first use select(fills tables), then update(basicly modifies tables).

Unfortunately, i can't share my coding due to confidentiality. You can debug this class while using SCWM/GRPE transaction.

Best regards,

Serhan.

0 Kudos

Dear Serhan,
I use method CREATE_ITEM_NEW_PDI of class /SCWM/CL_DLV_EGR2PDI however I can not give docid and itemid numbers correctly.
When I debuging standart t-code: /scwm/grpi there is always default docid and itemid.

Do you have any suggestion ?