cancel
Showing results for 
Search instead for 
Did you mean: 

SRM PO to PI and different vendors - need help

Former Member
0 Kudos

Hi,

We have a scenario in which once SRM creates a PO, the PO XML reaches PI, using RSPPFPROCESS program to process PO to PI & output configuration for xml

PO is now sent to Vendors based on the Vendor Name(provided in po xml).

If the vendor name is VendorA, PO should be sent to VendorA where VendorA is a third party system.

If the vendor name is VendorB, PO should be sent to VendorB where VendorB is a SAP appln.

and VendorC is File server

So how to achieve this?

Can we do this if SRM sends PO xml to xi?

What are the steps to be done by an XI Developer to achieve this.

Points will be awarded for any help.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Muniyappan
Active Contributor
0 Kudos

Hi,


let me explain ID part here.


for one sender and three receiver scenario we require below objects.


four business systems(lets assume).


four communication channel(one is for sender and three are for receivers(thirdparty,SAP app,File))


one receiver determination(in which we mention three target business systems).


three interface determination


one sender agreement


three receiver agreements(one is for third party,one is for SAP app, one is for file)


you have two conditions


1.VendorA

2.VendorB


as mentioned by satish you need to write xpath condition for all three receivers. but for file and SAP app condition will be same.


in the receiver determination as per your requirement it will select one receiver(or two receivers) at runtime.


say your PO is coming as VendorA. now in pipeline step at receiver determination it will determine only Third party receiver business System. and respective receiver agreement will be invoked in your case it is third party. then this will send the message to third party receiver channel.


another scenario it will find two receivers SAP app, and File. same will happen as mentioned above.


check below one it has some helpful link and screen shots


http://scn.sap.com/thread/3184213


please let us know still if you are not getting..


Regards,

Muniyappan.

Answers (7)

Answers (7)

Former Member
0 Kudos

Thanks Satish n Dimitri n Mani

Thanks Muni for detailed explanation.

Former Member
0 Kudos

Any help would be rewarded....

Former Member
0 Kudos

Thanks Satish and Mani.

However my requirement is based on the reciever specified in PO xml, the taget msg is to be sent through different adapters.

For example, if VendorA then use http adapter to post data in thirdparty system

if VendorB, then idoc is posted

if VendorC, then file is to be placed on file server

How to decide in this kind of scenario once we have PO xml in PI

Thanks

former_member194612
Active Participant
0 Kudos

Hi ,

As mentioned above , u can acheive this in receiver determination by creating the Receiver rules and make use of the same.I below image you can see the condition, You can get this in receiver determination.And give the XPATH conditions from the Payload file.

Thanks,

Satish

manigram
Active Participant
0 Kudos

Hi,

Check the bekow link

http://scn.sap.com/people/abhishek.salvi/blog/2009/07/15/sap-pi71-receiver-determination-xpath-and-y....

Use Xpath to determin the receiver based on the condition.

Regards,

Mani

Dimitri
Active Contributor
0 Kudos

Dear,

Please have a look at your receiver determination step.

There, you can include conditions for every receiver party or component.

Within these conditions, you can refer to fields in the incoming message structure. Or you could use Xpath expressions.

Hope this clarifies.

Kind regards,

Dimitri

Muniyappan
Active Contributor
0 Kudos

Hi,

you can achieve this using xpath condition in Receiver determination.

please search in scn you will find more.

Regards,

Muniyappan.