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: 

MV50AFZ1 user exit.

Former Member
0 Kudos

hi here i am writing routine for t-code vl10n. it will round of the quantity.

it is updating correctly in the purchase order history and updating lips table.

when i am going and seeing vl03n tcode it is not updating.

FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

*data : bstrf like marc-bstrf.

*data : werks like marc-werks.

*

*data : x type i.

**data : cf_subrc like sy-subrc.

**read table xlips index 1.

*loop at xlikp..

*

*move-corresponding xlikp to likp.

*move-corresponding xlikp to likpd.

*loop at xlips where vbeln = likp-vbeln.

*werks = xlikp-kunag.

*select single bstrf into bstrf from marc where matnr = lips-matnr

  • and werks = werks.

*

  • x = xlips-LFIMG / bstrf.

*

  • if x lt 1.

  • clear : xlips-LFIMG , xlips-LGMNG.

  • else.

  • xlips-LFIMG = x * bstrf.

*xlips-LGMNG = xlips-LFIMG.

*

  • endif.

*

*

  • lips-LFIMG = xlips-LFIMG.

  • lips-LGMNG = xlips-LFIMG.

*

    • perform lips_bearbeiten(sapfv50p).

  • perform lips_bearbeiten_vorbereiten(sapfv50p).

  • modify xlips.

*

*

    • LIPSD-G_LFIMG = xlips-LFIMG.

    • lips-lfimg = xlips-LFIMG.

    • lipsd-g_LFIMG = xlips-LFIMG.

  • endloop.

  • move-corresponding likp to xlikp.

*move-corresponding likpd to xlikp.

*

  • modify xlikp.

*

  • endloop.

endform.

here i am writing code.

can any help on this issue.

Thansk and Regards,

S.Srinivasulu Reddy

2 REPLIES 2

Former Member
0 Kudos

Hi Srinivasulu Reddy,

Before doing the modify xlikp, you should set the update indicator XLIPS-UPDKZ = 'U'.

Only then the update will be effected. However kindly check if this statement will not cause any wrong impact on other table (eg. Credit managment).

Thanks and regards,

Tushit

Rewards will be very much appreciated.

Former Member
0 Kudos

Also, check if an item is not set for deletion. Setting the UPDKZ to U on an item set for deletion will shortdump.

Albert