cancel
Showing results for 
Search instead for 
Did you mean: 

bapi for PO creation and assign SO to it

Former Member
0 Kudos

Hi ,

I am looking for a bapi which will create a Purchase Order from Purchase Requisition and assign a Sales Order to it during creation.

Thanks,

Mani.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Mani,

Use this BAPI to create PO with reference to PR

BAPI_PO_CREATE1

create sales order with reference to PO

BAPI_SALESORDER_CREATEFROMDAT1

check and revert

Regards

Ram

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

The best way is to design a new BAPI (Z) and call the standard BAPI, BAPI_PO_CREATE1 for creating a PO, after commit, call ME22N, change PO and add the sales order in the account assignment tab. Tell you requirement to an ABAP expert, he will guide you.

Regards,

SAM

Former Member
0 Kudos

The standard process is that you should configure the sales order as Third party sales order (or Inter company SO-PO process whatever is the requirement here) then Purchase requisition will be created automatically when the sales order is saved. You can then create PO with reference to the Pur.req. The item category TAS is configured in standard SAP for Third party / inter company processing requiring SO - PO process.

A PO in a third party/inter company SO-PO process is linked to SO through Purchase requisition and the linkage happens at item level because a single sales order can have both PO related items and items that are directly delivered and billed.

You can refer these links

http://sapsdforum.com/2007/10/23/third-party-order-processing/