Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI

Former Member
0 Likes
327

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.

1 REPLY 1
Read only

Former Member
0 Likes
302

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.