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: 

BAPI_PO_CHANGE - PO_SCHEDULE

Former Member
0 Kudos

Hi!

Maybe sb. could help me with following problem: I'd like to call BAPI_PO_CHANGE from a Web Dynpro to change delivery times and quantities.

In the tables PO_SCHEDULE and PO_SCHEDULEX I set the following attributes:

<i>Delivery_Date</i>

<i>Stat_Date</i>

<i>Del_Datcat_Ext</i>

<i>Quantity</i>

<i>Po_Item</i>

as well as the regarded purchaseorder-number as import-parameter.

But unfortunatly, the changes I submitted were not taken over. Could you perhaps tell me what I did wrong or forget?

Thanks a lot in advance!

BR

Thomas

1 ACCEPTED SOLUTION

manuel_bassani
Contributor
0 Kudos

Hi Thomas,

maybe i'm wrong, but dont you need to call FM BAPI_TRANSACTION_COMMIT to make modifications effective?

Best regards, Manuel

5 REPLIES 5

manuel_bassani
Contributor
0 Kudos

Hi Thomas,

maybe i'm wrong, but dont you need to call FM BAPI_TRANSACTION_COMMIT to make modifications effective?

Best regards, Manuel

0 Kudos

Hi Manuel!

Thanks for your quick answer, but I built a function module around the bapi and finished it with commit work and wait.

BR

Thomas

0 Kudos

if i remember well, you really need to call the FM BAPI_TRANSACTION_COMMIT (with parameter wait) instead of commit work and wait...

regards, Manuel

0 Kudos

I already changed attributes in the order positions - net price, acknowledgement number a.s.o. - with this function module, so I at least can say that the transaction's committed.

Nevertheless thank you very much!

Former Member
0 Kudos

Hello,

it seems that you forgot to enter the schedule line no.

You entered

Delivery_Date

Stat_Date

Del_Datcat_Ext

Quantity

Po_Item

in POCHEDULE and POSCHEDULEX.

But you also need to enter SCHED_LINE.

I do not know how familiar you are with debugging:

you could set a breakpoint in L2012F03, FORM move_schedule_in to check data transfer from BAPI format into internal format.

Christian