SAVE_DOCUMENT_PREPARE to update LIPS-LGMNG field
I am using the BAdi LE_SHP_DELIVERY_PROC and using method SAVE_DOCUMENT_PREPARE to update LIPS-LGMNG.
Following is the code:
if sy-tcode eq 'VL02N'.
loop at ct_xlips into wa_xlips.
wa_xlips-lgmng = 241.99.
wa_xlips-updkz = 'U'.
modify ct_xlips from wa_xlips transporting LGMNG UPDKZ.
But Its not updating the field and instead giving an "Update terminated Message" - no short dumps.
I want to update the LGMNG field in LIPS Table. How to achieve this?