Hello SAP friends,
I'm trying to use a user exit in MV45AFZZ, for blocking transfer rqmts, during a sales order creation, with a status profile approval. Thus i'm using two types of schedule line CP and CN.
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
*loop at XVBEP.
* if RV45A-ASTTX = 'APPR'.
* xVBEP-ETTYP = 'CP'.
* xvbep-updkz = 'U'.
* xvbep-BDART = 'Z4'.
* modify xvbep .
* ENDIF.
* endloop.
ENDFORM.
The problem is that, when the status is approved ("APPR"), the schedule line is changed to CP, but the rqmts are not transferred to PP (via MD04). I don't know the way to check if VBBE is updated or not..
Any help will be very welcome!!!