cancel
Showing results for 
Search instead for 
Did you mean: 

Handling special charecters in sap pi 7.11

Former Member
0 Kudos


Hi All ,

I have a scenario in which we are using  web services and proxy .

ECC>>(Proxy)>> PI >>(Web services)>> Non SAP system .

I am getting issue while sending a long text from ECC containing some special characters like '&'  ' < ' and ' ,'  . XML is convering

&  =    <(>&<)>

,   =     <(>,<)> and

< =     <(><<)>

we can see these xml changes in SPROXY test mode . Screen shot of the same is also attached for more details.

Can you please let me know how to handle these special characters , do I need to create any UDF in mapping or is there there any other way  ?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks for the help !

Issue  has been resolved now .We were getting the issue while getting long text from ECC in proxy .

I have handled the issue with abap code in the proxy that

       REPLACE ALL OCCURRENCES OF '<(>,<)>' IN lwa_line-TDLINE WITH ','.

       REPLACE ALL OCCURRENCES OF '<(>&<)>' IN lwa_line-TDLINE WITH '&'.

       REPLACE ALL OCCURRENCES OF '<(><<)>' IN lwa_line-TDLINE WITH '<'.

Thanks again for your time and help .

Ashish Gaur .

naveen_chichili
Active Contributor
0 Kudos

Great Ashish...


Former Member
0 Kudos


Can anyone please help me out .

Dimitri
Active Contributor
0 Kudos

Can you share your configuration on both SAP ECC and SAP PI?

This really should not be a problem using all the hints provided in this thread.

Former Member
0 Kudos

Hi ,

These are details of config . Scenario is Synchronos .

Non SAP system    <SOAP>      PI     <Proxy>      ECC

1. At ECC end (Adapter: XI).

2. At Non SAP system end (Adapter : SOAP).

Using UTF-8 encoding and Unicode system .

Please help .

Thanks and Regards,

Ashish .

Dimitri
Active Contributor
0 Kudos

What system is the trigger? SAP ECC or the non-sap one?

What about RFC connections? Are they ok? Check SM59 on both SAP PI and SAP ECC.

Perhaps you can share that too?

Check OSS note 856597 and do a search on encoding.

Former Member
0 Kudos

We are getting the issue while sending text from ECC.

Dimitri
Active Contributor
0 Kudos

Did you check the OSS note?

Can you test the proxy via SPROXY and provide the result and input data?

Former Member
0 Kudos

Changed the settings as Unicode but still getting the issue .

" test long text<(>,<)>* @#$%<(>&<)>* <(><<)>* <(>,<)   "

ambrish_mishra
Active Contributor
0 Kudos

Have you changed the settings for type H connection from the back-end ECC system?

That's the one to be used in proxy.

Ambrish

Former Member
0 Kudos

Hi Ambrish,

I checked the settings , its type H connection only .

Thanks ,

Ashish .

Dimitri
Active Contributor
0 Kudos

Hi,

Make sure you use UTF-8 encoding in communication channels and RFC connections.

Also, take a look at the backend and see if unicode is enabled.

Kind regards,

Dimitri

Former Member
0 Kudos

Hi Dimitri ,

Thanks for the help .

But I am already using UTF-8 encoding .

Dimitri
Active Contributor
0 Kudos

Very strange the characters are not passed successfully

Or are they just displayed incorrectly?

Former Member
0 Kudos

No , the characters are not passing correctly .

Dimitri
Active Contributor
0 Kudos

Is your SAP ECC system unicode enabled? I guess yes?

Check your ABAP proxy setup and make sure UTF-8 encoding is enabled in the complete message flow.

naveen_chichili
Active Contributor
0 Kudos

Hi Ashish,

Try Applying file encoding to ISO-8859-1 in the channels it will work.

Thanks,

Naveen

Former Member
0 Kudos

Hi Naveen ,

Tried ISO-8859-1 during test in SOAP UI , but getting same response .

Thanks ,

Ashish Gaur

Former Member
0 Kudos

Hi Dimitri ,

I can see that my ECC system is unicode but in SM59 of my ECC system it is marked as Non-unicode system as shown in screen shot :

So is it fine or do we need to set up this one as Unicode .

Please help .

Thanks ,

Ashish Gaur .

ambrish_mishra
Active Contributor
0 Kudos

Needs to be set up as unicode. It won't work without that.

Ambrish

Dimitri
Active Contributor
0 Kudos

Hi,

Please do set is as Unicode.

Kind regards,

Dimitri

Former Member
0 Kudos

Sorry Its PI 7.1 .