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: 

how to add a new schedule line?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi Jenny,

Welcome to SDN.

Please check user exits USEREXIT_CHECK_VBEP in program MV45AFZB.

Regards,

Ferry Lianto

2 REPLIES 2

ferry_lianto
Active Contributor
0 Kudos

Hi Jenny,

Welcome to SDN.

Please check user exits USEREXIT_CHECK_VBEP in program MV45AFZB.

Regards,

Ferry Lianto

Former Member
0 Kudos

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