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

Purchasing codition records update

Former Member
0 Likes
425

Hello all,

I have a requirement like this. Whenever user create or changed PO, Then info record should updated in me12 also condition records also needs to be updated in conditional records. I know how to update info records. But i dont know the FM or Bapi for the same. Please let me know the solution to update the info record whenever Po Changed or manual Po created.

Thanks in advance,

Ravi

2 REPLIES 2
Read only

Former Member
0 Likes
347

Use BAPI_PO_CHANGE to change condition records. Check the BAPI documentation for details.

Check the sample code on BAPI_PO_CHANGE

http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

Hope this helps.

ashish

Read only

0 Likes
347

HI

Thanks for ur reply. My problem is when i change or create a po manually then , i am triggerins a Badi. Inside this Badi, i am writting a code for updating an Info record(Me12). Also i need to update conditional records also. After updating this, when i try to create a new po, then the latest price should be pulled out from tables. Do pull this price i need to update the price and conditional record. In this case we cant use Bapi_po_change. Please tell me any other FM or Bapi.

Thanks

Regards

Ravi