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

Former Member
0 Likes
1,050

Hi friends,

I am using BAPI_PO_CHANGE for changing net price. Developed code is mentioned below. after executing FM content of return table like type = S and MESSAGE = <PO no> changed. but it is not affecting ME23n transaction. where did i mistake in following code. please let me know.

move itab_pop-ebeln to poheader-po_number.

move 'X' to poheaderx-po_number.

move itab_pop-ebelp to poitem-po_item.

move itab_pop-kbetr to poitem-net_price.

append poitem.

move itab_pop-ebelp to poitemx-po_item.

move 'X' to poitemx-po_itemx.

append poitemx.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

PURCHASEORDER = itab_pop-ebeln

POHEADER = poheader

POHEADERX = poheaderx

  • POADDRVENDOR =

  • TESTRUN =

  • MEMORY_UNCOMPLETE =

  • MEMORY_COMPLETE =

  • POEXPIMPHEADER =

  • POEXPIMPHEADERX =

  • VERSIONS =

  • NO_MESSAGING =

  • NO_MESSAGE_REQ =

  • NO_AUTHORITY =

  • NO_PRICE_FROM_PO =

  • IMPORTING

  • EXPHEADER =

  • EXPPOEXPIMPHEADER =

TABLES

RETURN = return

POITEM = poitem

POITEMX = poitemx

  • POADDRDELIVERY =

  • POSCHEDULE =

  • POSCHEDULEX =

  • POACCOUNT =

  • POACCOUNTPROFITSEGMENT =

  • POACCOUNTX =

  • POCONDHEADER =

  • POCONDHEADERX =

  • POCOND =

  • POCONDX =

  • POLIMITS =

  • POCONTRACTLIMITS =

  • POSERVICES =

  • POSRVACCESSVALUES =

  • POSERVICESTEXT =

  • EXTENSIONIN =

  • EXTENSIONOUT =

  • POEXPIMPITEM =

  • POEXPIMPITEMX =

  • POTEXTHEADER =

  • POTEXTITEM =

  • ALLVERSIONS =

  • POPARTNER =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

.

Thanks in advance

Parag

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
814

HI there,

You forgot to flag the Net_price in the poitemx table.

Move 'X' to poitemx-net_price.

Now you are only updating the item number (which is the same).

Best regards,

Yoeri Olbrechts

http://www.proit.be

4 REPLIES 4
Read only

Former Member
0 Likes
815

HI there,

You forgot to flag the Net_price in the poitemx table.

Move 'X' to poitemx-net_price.

Now you are only updating the item number (which is the same).

Best regards,

Yoeri Olbrechts

http://www.proit.be

Read only

0 Likes
814

Hi,

Is your problem solved by my comments are is it still not working?

Best regards,

Yoeri

Read only

0 Likes
814

Hi Yoeri,

Sorry, you r late. I have done this before getting your reply. Anyway thanks and I have assigned your point and also visited your web site.

Regards,

Parag

parag_beit@yahoo.com

Read only

0 Likes
814

I am running into roughly the same problem as Parag....but I have populated the "x" table and the x value in the corresponding field to update.

I am running in the 4.6b and so I am using the ME_PO_CHANGE function.

Any thoughts?