12-24-2004 8:34 AM
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
12-28-2004 2:35 PM
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
12-28-2004 2:35 PM
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
12-30-2004 1:33 PM
Hi,
Is your problem solved by my comments are is it still not working?
Best regards,
Yoeri
12-31-2004 11:03 AM
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
01-06-2005 4:28 PM
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?