‎2009 Aug 26 6:07 AM
Hi,
I have a scenario where in I need to update the Quantity as well as the Delivery_Date of an STO.
For this I m using BAPI_PO_CHANGE.
The issue is...
Either the quantity or the Delivery date are updated at a time.
The tables passed are POSCHEDULE and POSCHEDULEX.
In POSCHEDULEX both QUANTITY and DELIVERY_DATE are set to 'X'.
There is one more observation.
The BAPI first updates the quantity, if the to be updated quantity equals the original quantity then it updates the date.
Kindly guide on this issue...
Thanks in advance.
Rgds,
Chaitrali.
‎2009 Aug 26 8:47 AM
Hi,
Use BAPI_TRANSACTION_COMMIT after using the bapi.
Regards,
Shamma
‎2009 Aug 26 8:53 AM
‎2009 Aug 28 5:56 AM
Hi Jaideep,
To give an example...
I have an PO with quantity = 100 and date = current date
Now according to the logic, after execution of BAPI my quantity shld be updated to 50 and date to current date + transit time
I pass values to POSCHEDULE and POSCHEDULEX
POSCHEDULEX-PO_ITEM = ORIG_STO-PO_ITEM.
POSCHEDULEX-SCHED_LINE = ORIG_STO-SERIAL_NO.
POSCHEDULEX-PO_ITEMX = 'X'.
POSCHEDULEX-SCHED_LINEX = 'X'.
POSCHEDULEX-QUANTITY = 'X'.
POSCHEDULEX-DELIVERY_DATE = 'X'.
Corresponding to this values are passed to POSCHEDULE.
When I run the STO for the first time... the qty is updated to 50, but the date remains unchanged.
When I run the STO for 2nd time, the date is updated as there is no change in quantity.
General observation......If there is change in quantity then date is not changed only quantity is changed.
Rgds,
Chaitrali.
‎2009 Aug 28 8:26 AM
This problem is mentioned in OSS note 770120.
But the solution provided for 4.6 , 4.7 and 5.0.
We are using ECC 6.
Rgds,
Chaitrali.