2023 Jul 20 8:11 AM
2023 Jul 20 8:11 AM
Welcome to the SAP Community. Thank you for visiting us to get answers to your questions.
Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.
First, please see https://community.sap.com/resources/questions-and-answers, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html, as that will help you when submitting questions to the community.
I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.
Now for some specific suggestions on how you might improve your question:
* Outline what steps you took to find answers (and why they weren't helpful) -- so members don't make suggestions that you've already tried.
* Share screenshots of what you've seen/done (if possible), as images always helps our members better understand your problem.
* Make sure you've applied the appropriate tags -- because if you don't apply the correct tags, the right experts won't see your question to answer it.
Should you wish, you can revise your question by selecting Actions, then Edit.
The more details you provide (in questions tagged correctly), the more likely it is that members will be able to respond.
I hope you find this advice useful, and we're happy to have you as part of SAP Community!
2023 Jul 20 9:10 AM
Hi Akhil,
To update the net price in the EKPO table using BAPI_PO_CHANGE, you can follow these steps:
Here is an example code:
DATA: ls_poitem TYPE bapimepoitem,
ls_poitemx TYPE bapimepoitemx.
* Set values for POITEM and POITEMX structures
ls_poitem-po_item = '00010'.
ls_poitem-net_price = '100'.
ls_poitemx-po_item = '00010'.
ls_poitemx-net_pricex = 'X'.
* Call BAPI_PO_CHANGE to update the net price
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = '4500000001'
TABLES
poitem = ls_poitem
poitemx = ls_poitemx.
* Commit changes
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.