I need to update a custom field in VBKD with the sales order/item number. The only user exit in MV45AFZZ that contains the sales order is USEREXIT_SAVE_DOCUMENT. Unfortunately, my code does not update the custom field. Does anyone have any ideas?
LOOP AT xvbap WHERE updkz NE 'D'.
READ TABLE xvbkd INTO ls_xvbkd WITH KEY posnr = xvbap-posnr.
IF sy-subrc = 0.
lv_index = sy-tabix.
CONCATENATE vbak-vbeln xvbap-posnr INTO ls_xvbkd-zznfgroup.
MODIFY xvbkd FROM ls_xvbkd INDEX lv_index TRANSPORTING zznfgroup.
ENDIF.
ENDLOOP.
Brenda