cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with special Character & in Proxy

Former Member
0 Kudos

Hi,

We have a File --> XI --> R/3 Scenario. In this scenario, from XI we are passing the data to R/3 by calling the Proxy. When the data in the file has special character like & (for example <Companyname>Dave&Busters</Companyname>), it is failing in R/3. But if I replace "&" with "&amp;" in the file it works fine. Is there any solution to this problem without writting custom code in XI to replace & with &amp;.

Thanks

Sudheer

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sudeer,

for these special characters, there is no solution except to write custom code to handle them........normally in XML file when these special characters come, then a escape sequence should be maintained for it......similarly when you trigger data from SAP and it has these special characters, then your these characters are replaced by a char seq ......so again you will have to write some custom code to handle it.

Thanks,

Rajeev Gupta

stefan_grube
Active Contributor
0 Kudos

>But if I replace "&" with "&" in

> the file it works fine. Is there any solution to this

> problem without writting custom code in XI to replace

> & with &.

No. If the sender of the message provides an XML format with an unescaped &, then the XML is not valid and therefore cannot be processed.

All adapters (IDOC, RFC, File with content conversion) perform the escaping and deescaping.

Regards

Stefan