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

BAPI_PO_CHANGE problem

Former Member
0 Likes
759

Hi All,

Im using BAPI_PO_CHANGE to update both header and item level price conditions.

it is updating condition amount (kebtr) successfully.

But when I update header level price condition,

For kposn (item) = '000000'

it is not set values for fields KAWRT (cond.base value) and KWERT (cond.values) .

both fields get updated with Zero values.

But when i update it using ME22N , its populated with correct values.

It is happening only for item (kposn) = 000000

not for other kposn ( eg : 000010 , 000020 )

Pls, help me to find a solution.

5 REPLIES 5
Read only

madhu_vadlamani
Active Contributor
0 Likes
612

Hi Praveen,

Are you passing the values in POHEADERX and check the change indicators.

Regards,

Madhu.

Read only

0 Likes
612

Yes.

Im not passing kawrt (cond.base value) trough POHEADER table.

I think that value get calculated inside the BAPI and update it.

it updates base value , except first (000000) item.

Read only

0 Likes
612

Hi Praveen,

Can you check how it is happening manually in transaction.

Regards,

Madhu.

Read only

laurent_fournier2
Contributor
0 Likes
612

Hello there,

I have the exact same problem. Item conditions updates all related fields ( KAWRT,KWERT ) but header conditions are not updating KWART & KWERT. If after the bapi call, I change the PO using me22n, without changing anything, just press save, fields KWART & KWERT are populated in konv.

Have you find a solution to this ?

Read only

0 Likes
612

Hi laurent,

Actually that was an issue in that BAPI. I also informed this to SAP .

They says it is not harmful to standard programs . Bcoz total value calculate dynamically (not straight forward from the table). thats the normal behavior of the BAPI.

Regards

Praveen