cancel
Showing results for 
Search instead for 
Did you mean: 

Upload PO from XML file in SRM

Former Member
0 Kudos

Hi everybody.

We need to create purchase orders in SRM from a XML file.

(We must upload PO from an ARIBA system to SRM)

We have check SPROXY transaction but we can not find any message to do it.

Is there any message available in SPROXY transaction to do it?

In another hand, as alternative solution, we are checking ‘BBP_PD_PO_CREATE’ function. But in this function it is only possible to link Partners (table I_PARTNER) with PO header (table E_HEADER) and PO items (table I_ITEM) through GUIDs. If we create a new PO, we must create new GUIDs.

Is there any function to create new GUIDs?

Is usual to create new GUIDs in this business?

Is there another function available in SRM to create PO without GUIDs?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Raul,

you won't find any Proxy for inbound PO XML message.

You will have to develop your own XML mapping to create a PO in SRM.

You can use BAPI_POEC_CREATE (read SE37 documentation about GUIDs).

This one also uses internal functions BBP_PD_PO_CREATE, UPDATE & SAVE.

You don't have to take care of GUIDs. This function will generate them for you. You can pass the PO number as PO header GUID, and PO items as PO item GUIDs. This will make the links as well.

Rgds

Christophe

PS: please reward points for helpfull answers

Former Member
0 Kudos

hai christophe,

did you created any PO using that "bapi_poec_create"..?

if you created means please tell me how to create PO using bapi..thanks

Message was edited by: vj bb

Former Member
0 Kudos

Hi Christophe

BAPI Works ok.

Thanks for your fast and concise answer.

Regards.

Raú

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Raul for the info. I just forgot that the BAPI execution updates the data after a commit work only. I was executing the Function Module BAPI_POEC_CREATE and was checking if the object has been created.

I will create a report for the same then it will definitely work.

Thanks and Regards,

Rahul.

Former Member
0 Kudos

Hi Raul / Christophe,

If you have successfully created a PO using this BAPI you might help me in an issue with this.

I am trying to create a PO using this BAPI with external number range i.e. by passing a PO number to it. I am maintaining all the required field and doing a test run. It is showing me around 10 error messages without any Abort(A) message which means this data can create a PO on SRM.

When I am executing the same by taking out the tick in Test field its giving a message that the 'PO is created with no (I had maintained in the header structure)'. But in actual I can not see this PO created anywhere in the system, neither on ITS nor in transaction BBP_PD.

Can you please advice me what can be the reason for this?

Or where can I see this PO created in system???

Waiting to hear from you.

Thanks and Regards,

Rahul.

Former Member
0 Kudos

Have you add a commit work in your program?

Regards.

Former Member
0 Kudos

HI

i tries to Create PO using the same FM but it show error for vendor is not Authorise to create PO .

me co de. sharad.kulle

thanks

sharad