Application Development 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: 

BADI - Need to use badi definition LE_SHP_DELIVERY_PROC

Former Member
0 Kudos

Hi All,

I need to do some work related to BADI.

Actually my requirement is related to VL01/VL02.

In VL01 ie in create mode.

i need to check ZMBP = Order type.

then i need to insert data into Ztable.

If i am inserting data into ztable means i need to insert into LIKP table also.

ie Should commit BOTH or commit NEITHER, do NOT allow LIKP to save if Ztable insert fails.

In order to work during collective processing, i am using delivery-final-check BADI .

So ,just this is collective processing,i need some sample code for continue this work.

I am new to this concept ,i dont ve any idea about this. Give some tips related to this Specification.

Thanks,

Kalidas.T

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please reply for this query ?

Thank u.

Former Member
0 Kudos

Hi Kalidas,

Try user exit, USEREXIT_SAVE_DOCUMENT_PREPARE

this user exit is used for check,

before the document is saved.

try insert query in this userexit,

if sy-subrc <> 0.

give message.

endif.

other wise the document gets saved.

Regards,

Ani