on 10-08-2008 8:03 PM
Hello
I have second line as - <ns0:MT_SHPORD_Medusa xmlns:ns0="http://shporder.com/medussa/shpord">
in my XML file. How do I delete this tag in the XML file. We send Shipment Notification to 3PL system, they don't need this tag.
Thanks
Naga
Hi Naga
You can use XLST or Java Mapping. here you enter a source file and create the target file as per your requirement.
Refer
You can use XMLAnonymizerBean in the receiver to remove the namespace
Refer
http://help.sap.com/saphelp_nw70/helpdata/EN/45/d169186a29570ae10000000a114a6b/content.htm
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks everyone, I got this solved.Deleted namespace by adding anonymizerbean in adapter module. But then still the message type tag was there. Then I deleted the message type tag in the data type, it worked fine.
Thanks
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not able to do this because it is the main tag in the target structure. Whenever I try to do this it is giving me Java null point exception.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sebin
I don't know about XSLT mapping, Can you please explain how to do this.
Thanks
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's easy. Heres the XSLT code:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="utf-8" indent="yes" method="xml" version="1.0"/>
<xsl:strip-space elements="*"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="ns0:MT_SHPORD_Medusa"/>
</xsl:transform>
Read here how to integrate it into ABAP: http://heidoc.net/joomla/content/view/15/1/
Best wishes,
Jan
You can use an XSLT Map for this.
And specify all others tags for copying and opt out this.
This you can put as the last sequence in mapping.
Or the other option is right click and disable field in the mapping itself
Edited by: SEBIN B THOMAS on Oct 8, 2008 5:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the following blog
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2769. [original link is broken] [original link is broken] [original link is broken]
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.