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: 

Changing the Confirmed Quantity in Sales Order

Former Member
0 Kudos

Hi Gurus,

I have a requirement to change the confirmed quantity of the line item of the sales order. Is there any FM or BAPI that I can use? And how?

Thanks,

Andre

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I don't think it is possible to change the confirmed quantity.

Check Srinivas's reply to this [thread|;

regards,

Advait

6 REPLIES 6

Former Member
0 Kudos

I don't think it is possible to change the confirmed quantity.

Check Srinivas's reply to this [thread|;

regards,

Advait

0 Kudos

Hi Advait,

Even if we have to do an extension of BAPI_SALESORDER_CHANGE is still not possible to change the confirmed quantity?

My scenarion is I have to check if the material in a line item has a Batch Number. If it has no batch number, I have to set the confirmed quantity to 0.

I'm considering BDC but it might be my last resort.

Regards,

Andre

0 Kudos

I doubt it would. Even in BDC it won't allow. Because if you go to transaction VA02 item schedule lines, you will see that the field is greyed out and is not ready for input.

May be it would help if you delete the existing schedule line and create a new one if a Purchase order is not yet created for the schedule line. But you might have to confirm this from your functional consultant.

Or lets hope someone else who has tried this replies -:)

regards,

Advait

Former Member
0 Kudos

Hi Gurus,

I just want to ask if someone experience or solved this kind of problem. My requirement is to change the confirmed qty to allocate that qty to other sales order using BAPI.

Thanks,

Andre

Edited by: Andre Reforma on Feb 12, 2009 8:25 AM

Edited by: Andre Reforma on Feb 16, 2009 7:17 AM

Edited by: Andre Reforma on Feb 22, 2009 3:18 PM

Edited by: Andre Reforma on Mar 19, 2009 10:02 AM

0 Kudos

Hello,

I am having to deal with a similar issue.

The allocated quantity needs to be reset, so that the quantities can be allocated again according to the checking rule for product allocation.

This is probably not clear anymore, I am also totally confused now, so I'll add an example.

Example:

SCENARIO 1: Rejected item quantity not available to earlier order:

Assume product ABC is on a monthly allocation plan at a channel level

Available units = 100 units

Allocation plan = 50 units for Channel1, 50 units for Channel2

Assume all orders in this scenario are for one channel

1. Order 1 is entered

Qty of 40 confirmed from ATP check, confirmed from allocation check

RESULT: allocation of 40 units is consumed, available allocation = 10 units

2. Order 2 is entered

Qty of 20 confirmed from ATP check, confirmed for 10 units from allocation check

Remaining 10 units unconfirmed

RESULT: allocation of 10 is consumed, available Allocation = 0 units

Unconfirmed order quantity = 10 units

3. Order 1is rejected

line item for Qty 40 is rejected

RESULT: available allocation = 40 units

4. Order 3 is entered

Qty of 40 confirmed from ATP check, confirmed from allocation check

Allocation of 40 is consumed

RESULT: allocation of 40 is consumed, available allocation = 0

5. Rescheduling is run for this product (order creation date determines priority in the queue)

EXPECTED RESULT:

Order 2 has highest priority and would be committed for 20 units, leaving 30 units for Order 3

Order 3 Commit quantity 30, unconfirmed quantity 10

Order 1 Line item was rejected, (no committed quantity)

RESULT:

Order 2 - Commit quantity 10, unconfirmed = 10 (as available allocation 0)

Order 3 - Commit quantity 40

Order 1 - Line item was rejected

So I need to reset the allocated quantities first...

Were you able to find a solution for this?

0 Kudos

SAP has an issue with combining ATP and Rescheduling. Confirmed quantities (by ATP) are not released for Rescheduling. See notes 89629 and 607036.

Because of this (when ATP relevant materials are involved):

1. do not trust the 'Simulation' mode of V_V2. When you run it for real, the result may be different.

2. running V_V2 several times in a row (not in simulation mode) may have differnent results per run.

The Rescheduling program does work correctly if you first delete the Schedule Lines with confirmed quantities (skipping the first schedule line). Only withhout confirmed quantities the Rescheduling will run correctly for ATP relevant materials.

See thread: for more information.