on 08-13-2007 1:41 PM
Hi all, I need to write an XML message to file but I need to transform tha payload hidding the root element from payload.
Eg:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:DT_ITENS xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
<ITENS>
<item>
<DOCNUM>000018</DOCNUM>
<ITM_NUM>000010</ITM_NUM>
<BUDAT></BUDAT>
<UZEIT></UZEIT>
</item>
</ITENS>
</ns0:DT_ITENS>
I need to remove <b>ns0:DT_ITENS</b> like above:
<?xml version="1.0" encoding="UTF-8"?>
<ITENS>
<item>
<DOCNUM>000018</DOCNUM>
<ITM_NUM>000010</ITM_NUM>
<BUDAT></BUDAT>
<UZEIT></UZEIT>
</item>
</ITENS>
There is any solution instead of XSL or Java Mapping?
Thanks in advance.
Hi Daniel ,
Please create the Target messsage Structer as u need then use Graphical mapping then map it with source then output will come from only the resultant target structure
The target structuer like
<ITENS>
<item>
<DOCNUM>000018</DOCNUM>
<ITM_NUM>000010</ITM_NUM>
<BUDAT></BUDAT>
<UZEIT></UZEIT>
</item>
</ITENS>
Asssign poits if found helpful
Regards.,
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Isn't work, I've created a data type ITENS and message type ITENS and then the message mapping, but the result still wrong.
I got the result above:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ITENS xmlns:ns0="urn:samples">
<item>
<DOCNUM>000018</DOCNUM>
<ITM_NUM>000010</ITM_NUM>
<BUDAT/>
<UZEIT/>
</item>
</ns0:ITENS>
Bu I need message without <b>ns0</b>, like above:
<?xml version="1.0" encoding="UTF-8"?>
<ITENS>
<item>
<DOCNUM>000018</DOCNUM>
<ITM_NUM>000010</ITM_NUM>
<BUDAT/>
<UZEIT/>
</item>
</ITENS>
I think in a XSL mapping to resolve this issue.
Hi Daniel,
you can do that also in graphical mapping easy map item to item
best,
wojciech
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.