Skip to Content
author's profile photo Former Member
Former Member

BAPI_PO_CHANGE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2004 at 02: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

    http://www.proit.be

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.