cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Dear Experts,

I have generated a proxy and testing it with special characters ampersand & as shown below


Username&Rebecca&Password

and I am receiving the following error.

The field URL is created as a String in SAP PO system and its mirror technical type in ECC is STRING.

When tested from SPROXY , it shows error "The value is incompatible with type g."

Please help to solve which data type I can use in PO to avoid the error due to special characters.

Regards

Rebecca...

0 Likes
View Entire Topic
Former Member

Change Username&Rebecca&Password to Username&amp ;Rebecca&amp ;Password and try?

                             


If you want to handle then you have to go for java mapping and change "&" to " & " in PI.

Refer to below thread.

Former Member
0 Likes

Dear Hareesh,

I assume my queries were just little to understand the whole scenario. I am working on a scenario to call the JAVA rest web services from SAP.

The purpose of this field in ECC proxy is to append the text User&Password&DeptId to the static url i.e.http://jave32:neduk:7097/IntegrationServlet?action=

present in the SAP PI mapping. So when SAP PI tries to connect rest services , the whole url will look like this

http://java32:neduk:7097/IntegrationServlet?action=User&Password&DeptId

The value of User, Password and Dept Id will be captured during runtime in ECC. That's why I am testing in ECC and got this error.

I am in the initial stage of design and if you feel that you can share your input, it's heartily welcomed.

Regards...

engswee
Active Contributor
0 Likes

Hi Rebecca

The & character is a predefined entity reference in the XML syntax. Refer to the link below:-

XML Syntax

Therefore you cannot use it as-is within the content of an XML element tag. This will cause the whole XML to be invalid. To correctly represent the character & within an XML element tag, you need to replace it with & instead.

As Amit has mentioned, you are manually entering the XML data (which is invalid) when using the test proxy functionality.

Change the line to the below instead:-

<URL>Username&amp;Rebecca&amp;Password</URL>

Rgds

Eng Swee