Hi Scott
Am not sure why the confirmed quantity is 0. Is this something that SAP calculates?, as it does a ton of checks of inventory, desired delivery dates and potential ATP checks that sometimes factors in priority for customers, etc.?
If you're saying it's only zero when the script is run:
- have you triple checked that you're not setting it to zero? If you attach it here, I can review it, too.
- What does it look like in debug mode? As you are testing, is the inventory depleting and thus showing a correct value
For something like this, I would probably use a BAPI, as there can be multiple schedule lines for each order line item, and positioning can be tricky. But if it's always just one schedule line, then Transaction may work.
IDK if I helped - just some random thoughts.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
------------------------------