on 07-25-2010 4:13 PM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you all.
I resolve this problem using abap mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> <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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.