Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Block requirement in sales order with status profile

Former Member
0 Kudos

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. When the status profile is approved, the schedule line should be changed to CP and so transfer the requirements to PP.

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!!!

2 REPLIES 2

Lakshmipathi
Active Contributor
0 Kudos

Moved from SAP ERP Sales and Distribution (SAP SD) to ABAP Connectivity

G. Lakshmipathi

Former Member
0 Kudos

This message was moderated.