06-15-2008 1:37 PM
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
06-16-2008 9:12 AM
06-16-2008 11:23 AM
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