09-30-2011 9:32 AM
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
09-30-2011 10:11 AM
First plz Verify whether the VBELN field is getting updated in pp tables or not.
09-30-2011 10:12 AM
09-30-2011 11:52 AM
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
10-04-2011 12:05 PM
Hi,
Thanks for ur reply .
VBBE is not getting updated . Where should i write the code to update the table .
Regards,
Subhash
10-04-2011 2:13 PM
Hi
Try to run SDRQCR21 and check if VBBE is updated before to do anything.
Regards
Eduardo