Skip to Content
0
Jun 11 at 11:21 AM

update field VBAP-KZVBR in MV45AFZZ (USEREXIT_SAVE_DOCUMENT_PREPARE) via SPROXY

97 Views Last edit Jun 11 at 11:23 AM 3 rev

Hallo,

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'.
CLEAR <LFS_XVBAP>-KZVBR.
<lfs_xvbap>-updkz = 'U'.
ENDIF.
ENDLOOP.
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?

OR.