I can't update de field VBAP-KZVBR when I do the following abap code in the user Exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT_PREPARE) BUT called by SPROXY transaction:
LOOP AT xvbap ASSIGNING <lfs_xvbap>
WHERE posnr = xvbep-posnr.
IF <LFS_XVBAP>-BEDAE = 'blabla'.
<lfs_xvbap>-updkz = 'U'.
yvbap = xvbap.
in the SPROXY I use the "BAPI_SALESORDER_CREATEFROMDAT2 "
When I use the tcode VA01 the field VBAP-KZVBR is well updated! but not via SPROXY.
Any help please?