cancel
Showing results for 
Search instead for 
Did you mean: 

XML problem

Former Member
0 Kudos

Hi,

i have a problem with my XML....

My functional owners want the fallowing XML...I mean

<?xml version="1.0" encoding="UTF-8" ?>

<OATMessage xmlns="http://xml.kc.apps.oatsystems.com/OAT-Messages.xsd" xmlns:mstns="xml.kc.apps.oatsystems.com/OAT-Messages.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml.kc.apps.oatsystems.com/OAT-Messages.xsd C:\OAT-Axiom\OAT-Messages.xsd">

.....

</OATMessage>

how can i acheive this as receiver XML.....I even took the XSD..but still the same problem....

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Check out this[ thread |;.

Udo has posted a XSLT mapping for a similar requirement.

Thanks

SaNv...

Former Member
0 Kudos

any ideas ...other than XSLT mapping....

I am facing difficult to add some userdefined functions,IF else conditions,etc in XSLT mapping...Please assist me.

Edited by: Harsha reddy on Oct 10, 2008 11:14 PM

Former Member
0 Kudos

>>I am facing difficult to add some userdefined functions,IF else conditions,etc in XSLT mapping

You can do your interface mapping in 2 steps.

First do a message mapping using graphical mapping of XI,use your UDF,IF-Else etc in this mapping.This will be a source to target mapping

The second mapping will be a XSLT mapping which will change XML in the desired format.This will be a target to target XSLT mapping.

Then in interface mapping specify the graphical mapping first and under it specify the XSLT mapping.

Have a look at the following blog to see how to use multiple message mappings in 1 interface mapping

Thanx

Aamir

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Harsha

XSLT is the best option for these problems but If the message is having Sender communication channel then you can replace the XML tags coming using the XMLAnonymizerBean

Refer

Stefen's Blog

SAP Help

http://help.sap.com/saphelp_nw70/helpdata/EN/45/d169186a29570ae10000000a114a6b/content.htm

Thanks

Gaurav

Former Member
0 Kudos

is there any way...which would be simpler..