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: 

user exit MV45AFZZ

Former Member
0 Kudos

Hi Gurus,

I have put logic in userexit "MV45AFZZ" , in FORM USEREXIT_SAVE_DOCUMENT_PREPARE .That is to change schedule line category based on "User Status" . If user status is u201CAPPR u201C schedule line category should automatic change to CP .

loop at XVBEP.

if RV45A-ASTTX = 'APPR'.

xVBEP-ETTYP = 'CP'.

xvbep-updkz = 'U'.

xvbep-BDART = '4'.

modify xvbep .

ENDIF.

endloop.

This is working fine, updating the value.

Now the problem is:

1. Whenever schedule line cat changes via user exit for sales orders and sales order saved, sales order is not showing in MD04 . if I will changed schedule line category manually CP . It is showing in MD04.

We have make to order scenario . so it is not coming for MRP run if I will changed through user exit.

Please help me out .

Thanks in advance .

Regards,

Subhash

5 REPLIES 5

Former Member
0 Kudos

First plz Verify whether the VBELN field is getting updated in pp tables or not.

0 Kudos

yes

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Please, do a trace with ST05 and check if your system is updating table VBBE before this userexit. Other question, run report SDRQCR21 and check if it update MD04 (see Note 25444 - SDRQCR21: Recovery of sales and delivery requirements)

I hope this helps you

Regards

Eduardo

0 Kudos

Hi,

Thanks for ur reply .

VBBE is not getting updated . Where should i write the code to update the table .

Regards,

Subhash

0 Kudos

Hi

Try to run SDRQCR21 and check if VBBE is updated before to do anything.

Regards

Eduardo