Hello SAP friends,
I'm trying to use a user exit in MV45AFZZ, for change the schedule line CN TO CP,
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
CHECK L_STT = 'A001' OR L_STT = 'B001'.
LOOP AT XVBEP[] ASSIGNING <FS_VBEP>.
IF L_STT = 'A001'.
<FS_VBEP>-ETTYP = 'CN'.
<FS_VBEP>-UPDKZ = 'U'.
VBEP-ETTYP = 'CN'.
ELSEIF L_STT = 'B001'.
<FS_VBEP>-ETTYP = 'CP'.
<FS_VBEP>-UPDKZ = 'U'.
VBEP-ETTYP = 'CP'.
ENDIF.
ENDLOOP.
ENDFORM.
The problem is that, when the status is approved ("B001"), the schedule line is changed to CP, but the rqmts are not transferred to PP (via MD04).
Any help will be very welcome!!!