cancel
Showing results for 
Search instead for 
Did you mean: 

SRM ---> PI --> Web service

Bhargavakrishna
Active Contributor
0 Kudos

Hi Experts,

I have to send the PO created in SRM to the third-party vendors via PI.

What are the steps i need to follow/ configure to send the PO to PI?

The PO is generating in xml format. how can i send the XML to PI?

As per SAP we can send the data to other SAP systems via IDOC/RFC/Proxies?

Instead of generating the XML, how can i generate the IDOC/RFC/Proxies??

But in my case PO is generating in XML format..

Please tell me the approach..

Regards

Bhargava krishna

Accepted Solutions (1)

Accepted Solutions (1)

former_member216093
Contributor
0 Kudos

Hi Bhargava,

In SRM at BP level you first need to set the output medium to XML/XI and then in SPRO you can set the method call for XML for the POs as shown in attachment.

Please make sure the SAP PI has got the correct configurations in place. The vendor URL to which this output need to be sent is configured within SAP PI this is based on the vendor number. You can then make sure that the output is going out of SRM to PI using tcode SXMB_MONI.

XML output in IDOC is not possible as far as I understand.

Regards,

Ravi Pachauri

Bhargavakrishna
Active Contributor
0 Kudos

Hi Ravi,

Thanks for the reply..

Can we store the generated PO [XML] in SAP Directories..so that PI can pick the files from the directories.

Can anyone explain the procedure?

Regards

Bhargava krishna

former_member216093
Contributor
0 Kudos

Hi Bhargava,

Certainly, the PI system need to be linked to SRM system so that the XML output generated in SRM can be passed to PI. For this purpose, we need to create HTTP connection to PI, which is nothing but H type RFC to PI system.

The outputs generated in SRM (SXMB_MONI) will be sent to PI via this RFC.

Regards,

Ravi Pachauri

former_member216093
Contributor
0 Kudos

One more thing, in SRM 7.01 there is SPRO setting to activate SAP PI.

Regards,

Ravi Pachauri

Answers (1)

Answers (1)

Bhargavakrishna
Active Contributor
0 Kudos

Hi All,

Thanks for ur valuable inputs..

Can you please let me know what are the standard RFC's / BAPI's Available in SRM to post the Purchase Orders [PO]' s to PI?

What type of RFC connection i should create to post the BAPI to PI??

Regards

Bhargava krishna

former_member216093
Contributor
0 Kudos

Hi Bhargava,

There is no BAPI etc. SRM generates XML messages through method call in output action, which you can see in SXMB_MONI and these messages are passed to PI through RFC.

If the messages are not getting processed in SRM, those will not go into PI.

Can you please verify if you are seeing messages in SXMB_MONI.

Regards,

Ravi

Bhargavakrishna
Active Contributor
0 Kudos

Hi Ravi,

Thanks for the response.. sorry for the delay..

As per my understanding.. they are asking me to check whether is there any standard RFC / IDOC available to post the data to PI. so that whenever the PO is generated we will schedule one background program to call the function module send the data to PI.

The generated XML which is at run time, can't picked by the PI. As per ur suggestion , we can send the XML to ECC by defining RFC destination.But for PI is different, we should have some msg structure which is defined for PO [ IDOC / RFC] or if it is a file the generated XML should have some file name and should be stored in some location [ SAP directories ].

By using PI we have to perform mapping between the sender and receiver message structures.

I'm totally confusing and what to do??

Please refer

http://scn.sap.com/message/14565836#14565836

Regards

Bhargava krishna