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

Creating PO using BAPI w/ reference to a PR document

Former Member
0 Likes
839

Hello Gurus,

Can somebody guide me on how to create a po using BAPI_PO_CREATE1 w/ reference to an existing PR Number? What paramter in the BAPI will I use to supply the reference pr#? Because there is a parameter for a reference quotation#.

Need you urgent reply on this

Thanks,

Jeff

3 REPLIES 3
Read only

Former Member
0 Likes
598

Hi Prado ,

as per my knowledge PR will be Created based ion the Quotation , PO based on the PR,So pass PR number as a Ref.

Regards

Prabhu

Read only

Former Member
0 Likes
598

Hi,

In the ITEM table of the BAPI (BAPIMEPOITEM), there are two fields REF_DOC and REF_ITEM, you can pass the PR number and also line item number as a PO can have line items from multiple PR's the reference is at the line item level.

Regards,

Ravi

Read only

Former Member
0 Likes
598

Hi,

In the PO item structure you need to pass the PR Item No(BAPIMEPOITEM-PREQ_ITEM) and the PR Number(BAPIMEPOITEM-PREQ_NO) in oreder to creqte PO based on the PR.

Regards,

Ram Mohan