Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MV50AFZ1 user exit.

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

Not what you were looking for? View more on this topic or Ask a question