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: 

SAVE_DOCUMENT_PREPARE to update LIPS-LGMNG field

Former Member
0 Kudos

Dear All,

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.

endloop.

endif.

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?

4 REPLIES 4

Former Member
0 Kudos

Hello,

It looks like a syntax issue. Please checkup whether you have a syntax error in the followng line:

wa_xlips-lgmng = 241.99.

Thanks,

Venu

Former Member
0 Kudos

No, there is no syntax error. Actually I wanted to convey that i am passing some value there. For eg: wa_mchb-clabs. I simply hard coded the value for reference.

0 Kudos

Hi Shails,

If you are getting the message as a express document, check you SAP Inbox. You will get more details of the message wht the termination occurred.

Rajvansh

0 Kudos

Hi,

I think along with 'LGMNG", you should update other relevant fields also like LIPS-LFIMG, LIPS-LFMNG_FLO, LIPS-LGMNG_FLO.

Regards

Vinod.