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_CREATE1

Former Member
0 Likes
471

Hi Experts ,

I am trying to create Purchase Order from Purchase requisition using BAPI_PO_CREATE1.I nvr worked on BAPI'S earlier, i would appreciate if anyone can post a sample BAPI program or a sample prg to create PO using bapi_po_create1.

Thx ,

~R

2 REPLIES 2
Read only

LeonardoAraujo
SAP Mentor
SAP Mentor
0 Likes
417

The BAPI you are using is for PO creation, not Purchase REQ.

For this purpose you should be using one of the following:

BAPI_REQUIREMENT_CREATE

or

BAPI_REQUISITION_CREATE

or

BAPI_PR_CREATE.

Go to transaction BAPI and get all the documentation about it there. You can also get extensive documentation of the bapi in SE37 - DOCUMENTATION

In a program, you just need to call the BAPI as a normal function module, passing the required parameters.

Check the returning messages and if it all ok, call BAPI_TRANSACTION_COMMIT after.

Good Luck,

Leonardo De Araujo

Read only

Former Member
0 Likes
417

See this blog

/people/sap.user72/blog/2005/03/22/sample-code-to-create-purchase-order-using-bapi-in-r3

If it is useful award points