cancel
Showing results for 
Search instead for 
Did you mean: 

Create PO in R/3 using XI

Former Member
0 Kudos

Hello Friends,

Iam trying a scenario where I want to create a PO in R/3 by sending the .xml file which contains the mandatory parameters to create a PO.

I tried the scenario where I used PORDCR IDoc and mapped that to a file with required values. I could see that the IDoc is received in R/3 without errors but the problem is there is no Process Code to create a PO in R/3. So, is there any other way to create a PO.

I think BAPI_PO_CREATE will be useful for this but I dont have any idea how to use this BAPI and what are the mandatory fields in that.

My scenario is FileXIR/3.

Regards,

Raju...

Accepted Solutions (0)

Answers (2)

Answers (2)

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Raju,

Just Do mapping with the following values

<b>*</b>Note the values which r not mentioned will come from the flat file..

<b>Source Field</b> <b>Target Field*</b> <b>Default Value</b>

Document Date ZBapi_Create_PO PO_Header-Doc_Date

Vendor ZBapi_Create_PO PO_Header-Vendor

Document type ZBapi_Create_PO PO_Header-Doc_Type NB

Doc Category ZBapi_Create_PO PO_Header- CAT F

Company Code ZBapi_Create_PO PO_Header-CO_CODE 3000

Purch. Org ZBapi_Create_PO PO_Header-PURCH_ORG 3000

Purch. Group ZBapi_Create_PO PO_Header-PUR_GROUP 010

PO Item ZBapi_Create_PO PO_Items-item-PO_ITEM 0010

Material ZBapi_Create_PO PO_Items-item-PUR_MAT

Plant ZBapi_Create_PO PO_Items-item-PLANT 3200

Net PriceZBapi_Create_PO PO_Items-item-NET_PRICE

Unit ZBapi_Create_PO PO_Items-item-UNIT

Price Unit ZBapi_Create_PO PO_Items-item-PRICE_UNIT

PO Item ZBapi_Create_PO PO_Items_Schedules-PO_ITEM 0010

Serial No ZBapi_Create_PO PO_Items_Schedules-SERIAL_NO 0010

Delivery Date ZBapi_Create_PO PO_Items_Schedules-DELIV_DATE

Quantity ZBapi_Create_PO PO_Items_Schedules-QUANTITY

Preq Item ZBapi_Create_PO PO_Items_Schedules-PREQ_ITEM 0002

Here ZBapi_Create_PO is BAPI_PO_CREATE1

Regards,

Sridhar

Former Member
0 Kudos

hi,

I am having the same requirement i.e file-xi-r3 create po, can any one tell me the necessary steps needed for this. i am new to all this and still learning things, so please help me.

thank you

email jpkreddy@gmail.com

Former Member
0 Kudos

Hi Narayana,

In R/3 go to transaction BAPI and choose 'Alphabatical' tab. Then go to Purchase Order->CreateFromData1 and Choose 'Documentation' Tab. There is a sample example and Documentation available for this BAPI. Check if that helps..

Also BAPI_PO_CREATE1 is the latest BAPI for PO creation..

Regards

Anand