cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use receiver enhancement feature for a web service scenario?

Former Member
0 Kudos

Hi Experts,

We have to send across an invoice to web service enabled legacy system from ECC.

ECC>ABAP Proxy>SAP PI>SOAP Adapter>Legacy System1

ECC>ABAP Proxy>SAP PI>SOAP Adapter>Legacy System2

Requirement is like if the invoice number starts with 1A, it should go to Legacy System1 & if the invoice number starts with 2A, it should go to Legacy System2.

Can we do it in one single scenario using receiver enhancement and if yes How?

Regards

Nidhi Kukreja

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

If the source message is similar in both cases, then there is no enhancement required. You may simply use Condition in Receiver determination.

Regards,

Prateek

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos

You can make use of the XPATH function starts-with(string1,string2) and customize your condition as shown in this blog:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Update:

It can even be done without using any XPATH function.....just make use of the option Contains Pattern from the dropdown available for the Middle Operand....right operand will be 1A*

Regards,

Abhishek.

Edited by: abhishek salvi on Feb 3, 2010 1:00 PM

Former Member
0 Kudos

Thanks all.I got the answer.Reward points given.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>Can we do it in one single scenario using receiver enhancement and if yes How?

no need for any receiver enhancements - just use standard receiver determination rule with

substring function

no need for anything fancy

Regards,

Michal Krawczyk