cancel
Showing results for 
Search instead for 
Did you mean: 

Special Characters in XML tag name is not allowed

Former Member

Hi All,

We have one IDOC to XML file scenario, in which we have to one tag name in XML (target structure) as <sample.001.123.23> which is the header field.

But as special characters except "_" are not accepted in XI/PI , We are not able to crack this.

But business said it must be there as what they proposed in their structure.

Please help in this regard.

Thanks,

Venkat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Follow below steps:

1) Create DT, MT

2) Export MT as XSD

3) Edit exported xsd and change the field name

4)  Import edited xsd as ED

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Amit,

Thanks

It worked well..

Regards,

Venkat

iaki_vila
Active Contributor
0 Kudos

Hi,

Great Amit!, a really useful trick.

Regards.

Former Member
0 Kudos

Glad to know that you guyz find it helpful

Thanks

Amit Srivastava

anupam_ghosh2
Active Contributor
0 Kudos

Hi Venkat,

                   Please kindly if possible check this blog http://scn.sap.com/community/about/blog/2012/05/22/pay-it-forward-pay-it-back by Jeanne Carboni ,if you get some time. The blog is simply awesome.

Regards

Anupam

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Amit,

We also facing same issue.

We have SOAP to PROXY Scenario.

From soap wee are picking the file in EPCIS message format, we need to send same file to proxy.

in which we have to one tag name in XML (Source Structure) as <gs1usch:LotNo> which is the field contains.

While exported xsd and edited field name and imported in ED but getting below issue.



Early reply should be appreciated ,Thanks in advance.



Regards,

Raja.


Former Member
0 Kudos

Hi Venkat

Please check the blog below

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/11/05/message-mapping-play-around-with-...

I think this blog will help you to solve your probelm.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Venkatarao,

But as special characters except "_" are not accepted in XI/PI , We are not able to crack this.

This is only valid for data types. Ask the client for an XSD/WSDL that contains the said field and import it as external definition.

Regards,

Mark

iaki_vila
Active Contributor
0 Kudos

Hi Venkatarao,

I think  you can do this with a java mapping. You can use a dummy xsd in the receiver side.

Regards.