03-22-2007 11:36 PM
Hi folks,
Please help to tell me is there any user exit can be used for adding a new schedule line? I want to keep the old first date data, add new shedule line with new updated schedule line date. Pls. help to advise how to do it in VA01/VA02 ?
If i simply use the following update statement in MV45AFZZ, then the first date will be updated by the new Schedule line date, which is not what i want. (Since new order always the First line "0001" will get updated)
xvbep-edatu = t_temp-edatu .
modify xvbep TRANSPORTING edatu "UPDKZ
where posnr = t_temp-posnr
and ETENR = '0002'.
if SY-SUBRC <> 0.
modify xvbep TRANSPORTING edatu "UPDKZ
where posnr = t_temp-posnr.
endif.
Tks,
Jenny
Message was edited by:
Jenny Zhuang
03-23-2007 1:32 AM
Hi Jenny,
Welcome to SDN.
Please check user exits USEREXIT_CHECK_VBEP in program MV45AFZB.
Regards,
Ferry Lianto
03-23-2007 1:32 AM
Hi Jenny,
Welcome to SDN.
Please check user exits USEREXIT_CHECK_VBEP in program MV45AFZB.
Regards,
Ferry Lianto
03-28-2007 12:28 AM
Hi Ferry,
Many thanks for the reply. But i still have the question, seems the user exit 'USEREXIT_CHECK_VBEP' in 'MV45AFZB' is used for addtional checks on the schedule line, my questions is how to add a new schedule line? It maybe very difficult. so is it possible to change the configurable Sales order's Finish Date for it's production order, and force it to generate a new schedule line?
Tks,
Jenny