cancel
Showing results for 
Search instead for 
Did you mean: 

how to mapping a single field of incoming SOAP to another message?

Former Member
0 Kudos
208

our scenario like this:e

the incoming message:

<header>

<interface>IF001</interface>

<description>xxyyzz</description>

<header>

<content>xxxxxxxxxxxxxxxxxxxxxxxx..........<content>

the field <content> is a xml string like:<?xml version="1.0" encoding="UTF-8"?><MT_Trg xm..........................

then we have to parse field <content> to different message according to field <interface>.

then i have 2 queations:

1. how to map a single field to a message

2. how determine target receiver message according to a conditon?

thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. Try Java or ABAP mapping to parse xml:

http://www.riyaz.net/blog/xipi-java-mapping-demystified/technology/sap/415/

2. In this case Enhanced Receiver Determination might be useful

http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm

Regards,

Radek

Answers (2)

Answers (2)

Former Member
0 Kudos

thank you all.

I resolve this problem using abap mapping

rajasekhar_reddy14
Active Contributor
0 Kudos

> <header>

> <content>xxxxxxxxxxxxxxxxxxxxxxxx..........<content>

>

That means that you are getting one XML message as a string,so you need to convert this one to string XML,i am not is there any predefined methods available to do this.

> the field <content> is a xml string like:<?xml version="1.0" encoding="UTF-8"?><MT_Trg xm..........................

>

> then we have to parse field <content> to different message according to field <interface>.

> then i have 2 queations:

> 1. how to map a single field to a message

if the structure is going to be constant then you can use substring function toi split the file...but in this case it is not a best practice.

> 2. how determine target receiver message according to a conditon?

check condition at receiver determination,we have an option to check condition.

search in sdn .

Regards,

Raj