Application Development and Automation 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: 
Read only

Updation using BAPI_PO_CHANGE

Former Member
0 Likes
722

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.

4 REPLIES 4
Read only

Former Member
0 Likes
670

Hi,

Use BAPI_TRANSACTION_COMMIT after using the bapi.

Regards,

Shamma

Read only

0 Likes
670

Hi,

Please clarify your question in detail.

KR Jaideep,

Read only

Former Member
0 Likes
670

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.

Read only

Former Member
0 Likes
670

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.