• February 18, 2026
  • Kishore Thutaram
  • 0

Update Sales Delivery Header and Item Fields Using Enhancement

Business Scenario:

“Need to update the custom or standard field values of Delivery header and Item by using a User Exit.”

Steps: User Exit Include MV50AFZ1


Form routine - header - > FORM USEREXIT_MOVE_FIELD_TO_LIKP.

Form routine – Item -> FORM USEREXIT_MOVE_FIELD_TO_LIPS.

Header : Update custom filed – PO number


likp-z_bsark = VALUE #( cvbak[ vbeln = lips-vgbel ]-bsark OPTIONAL ).

Item : Update Field – Batch number

Code:

SELECT SINGLE * FROM mska INTO ls_mska WHERE
matnr = lips-matnr AND
werks NE werks AND
charg NE space AND
vbeln = lips-vgbel AND
posnr = lips-vgpos.
IF sy-subrc = 0.
lips-charg = ls_mska-charg.
ENDIF.
   
    

Kishore Thutaram

"SAP solution architect with a strong problem-solving mindset, sharing practical SAP S/4HANA and ABAP insights from real-world projects."

https://fiowelt.com