on 06-19-2007 7:13 PM
Our integrator is stating that SAP XI cannot accept inbound xml documents which contains elements containing dashes, or hyphens. Hyphens/Dashes are permitted in the xml standard.
Can someone confirm this.
Much obliged.
Hi David,
this not such a big problem
Hyphens/Dashes are nor permitted in the xml standard, the XML is wellformed with that!
Only the SAP XI protokoll does not accept the hyphens/dashes, that means, you cant define them for datatypes. But (!): XML messages are not checked to their interfaces during runtime, that means, you can use a dummy with just one field for outbound-IF. The only restriction is than, that you cant use a message mapping.
There are two possibilies for you:
You work with an (additional) XSLT. There you have to map each field like:
<myNewField><xsl:value-of select="//myOld-Field"/></myNewField>
or you put a ABAP mapping in front of the real mapping:
Change the input to string (FM ECATT_CONV_XSTRING_TO_STRING) and the output to XSTRING (FM ECATT_CONV_STRING_TO_XSTRING). Inside substitute '-' to '_' with ABAP order REPLACE if it is anywhere between '<' and '>' (not the first line) to get XML of XI protocol. You can use the same ABAP mapping for all mappings!
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it can accept hyphens and dashes,just change the file type to Binary and/or change the encoding to ISO-8859-1
thanx
ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Clarification, we have an xml element which contains a dash, i.e.
<Account-Name>. Given this we are thinking that our corresponding XI Datatype must also be named the same and contain a dash. However, the XI datatype field may not contain a dash.
Then the question for us seems to be how to map xml elements which contain hyphens into SAP XI.
Thanks.
Hey
yeah,you can't have dash(-) in the XML tag,and since the XI data tags must exactly be similar to the incoming XML,you need to change the incoming XML.
one wat around can be to do a bypass scenario,but that only works if there is no complex mapping and you are simply transferring files from one place to another.
if you can please let us know the interfaces,we should be able to help you out more
thanx
Ahmad
yes,if you have simple 1-1 mapping then you can go for bypass scenario.
in this there is no need to create any data type or message type or message mapping at all.infact you dont do anything in Integration repository,you only need to do configurations in ID.
have a look at the following
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
thanx
Ahmad
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.