‎2008 Feb 05 7:15 AM
Hi Friends,
In Inbound delivery transaction,
I have a badi.. LE_SHP_DELIVERY_PROC.
When i am creating a new delivery, the Quantity should automatically come based on some previous deliveries for that particular PO.
If purchase order qty of a material is 100.
I delivered 60 first.
Now when i am delivering remaining in a new delivery for dat PO it should automatically come 40 ( 100 - 60).
For that i used a method FILL_DELIVERY_ITEM
in that i used the parameter CS_LIPS.
But, when i debug the same i came to know that CS_LIPS is assigned by LIPS dats why the values in CS_LIPS are over write by LISP values.
How to overcome .
Pls tell me any one.
‎2008 Feb 05 7:29 AM
Hi Sekhar,
In the documentation of the BADI it says:
"Use the routines from copy control if you want to transfer data from preceding documents into the delivery header. Because the call of the method FILL_DELIVERY_ITEM follows the repeated call of the copy routine, the system can only overwrite the delivery item data."
So you put in your coding in the copy control routine, or else you could use method SAVE_DOCUMENT_PREPARE of the BADI.
Regards,
John.