Skip to Content
0

How to rout the based on source data????if data is single field.

Dec 11, 2017 at 09:29 AM

38

avatar image
Former Member

Hi Experts

I have a scenario like 1 and 2 ,communication method is SOAP both are sender side.

Both two scenarios one sender(data also receiving on communication channel) and receivers are different.I need rout the based on content in sender data(they are sendeing on field Message type).

i am done the single field to XML using XSLT mapping ,so how i can achieve this scenario?

I am not able to crate the context object or Xpath because on in sender message type only on field.

Can you please on this..

Thank you,

Sandeep

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Dec 11, 2017 at 09:44 AM
0

Hi Sandeep,

Can you share your request structure

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Pavan,

Please find the structure below.ReceiveFromWM i am getting Whole XML.

esr.png (10.0 kB)
0
Muniyappan Marasamy Dec 11, 2017 at 09:44 AM
0

can you show us that string value and condition? let us check if possible to handle with xpath codition.

else use extended receiver determination

https://wiki.scn.sap.com/wiki/display/SI/Step+by+Step+guide+to+Explain++Enhanced+Receiver+Determination

handle your condition using mapping.

Show 11 Share
10 |10000 characters needed characters left characters exceeded
Former Member

First of all thank you for your inputs.

I have doubts regarding this.

1. I am receiving whole XML in one string i am converting to xml.

2. I need to create the 2 IDOC based on condition.

How to to achieve this is this possible using Enhanced receiver determination?

If possible in my second mapping can i maintain the mapping logic?

esr.png (10.0 kB)
0

yes you can. please read the blog, you will understand.

Before going further, this is not enough what you shared. Please share the incoming xml and condition to select receiver one and receiver two.

0
Former Member

Ok .

Here i am attaching two xml ,header is same both xml's message is different.

In header field message type is condition.

if message type pix i need to create one idoc else message type type ShipConfirm need to create separate Idoc.

Both are different structures.

inbound-pix-copy.txt

inbound-shipconfirm-copy.txt

0

Based on field in Header you want to split ?

0

can you try like this? dont have to select from context. use xpath. give the xpath value manually

provide prefix whatever you are getting the input xml, not the one i mentioned here and namespace.Try this condition first with PIX. if it works then add another receiver condition

0
Former Member
Muniyappan Marasamy

I tried this case but it's not working (it means i am not able to find message type because of my sender structure is single string right i thing that is the region.).

I thing this case it not possible,earlier i tried this case only.

0
Former Member
Former Member

Please find attached for reference.

I the above picture i have only one field,is it possible to write to direct path like ../Message type it will accept in run time?

rules.png (15.0 kB)
0

yes. write manually. also add namespace prefix

0
Former Member
Muniyappan Marasamy

Thank you Muni, it's working.

0

Good to hear. Could you please paste your config screenshots here. It will help others who come across with same issue.

0
Former Member

Ok will try and get back to you guys.

Thank you guys for giving vestibule inputs.

0