cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule Line Category change-USER EXIT

Former Member
0 Kudos

REQUIREMENT:

When saving a SALES ORDER, Change the schedule line category on the SALES ORDER from CP(Standard Availability Check) to CS(Third Party Processing u2013Trigger Purchase Requisition)

Initially when we create the SALES ORDER, we have Schedule line category CP to generate schedule lines based on stock availability

SO Date- 09/14/2010

Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CP)

Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CP)

Config Change: We have changed the Schedule line category- CS to turn off Purchase Order Scheduling (Indicator turned off--P.req.del.scheduling)so that when we change the schedule line category, no PO scheduling happens again

Our requirement is that when saving the sales order, we want to change both the schedule lines item category-0001/0002 from CP to CS

SO Date- 09/14/2010

Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CS)

Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CS)

After saving the order, a Purchase Requisition is generated for the Schedule Line 0002..

MY QUESTION:

Is this possible using the BAPI_SALESORDER_CHANGE without changing the dates on the schedule lines or deleting any schedule line

Thanks

Kumar

Accepted Solutions (0)

Answers (1)

Answers (1)

sarthak_mohantysd
Active Contributor
0 Kudos

Hello Kumar,

Please check the User exit and let us know whether your requirment is met or not.

#USEREXIT_MOVE_FIELD_TO_VBEP

Use this user exit to assign values to new fields at the level of the sales document schedule lines.

The user exit is called up at the end of the FORM routine VBEP_FUELLEN.

Regards,

Sarthak