cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving random values in output

former_member269717
Participant
0 Kudos

Hello frnds,

I am facing a very strange problem.

I have written a proxy for a scenario.

Now, when I execute the proxy(from se38), for some of the fields in target structure, I receive extra values(not sent in source structure).

example : <ILNNR>abc@gmail.com&#XD;</ILNNR>   (value marked in bold is extra)

Please help! Its Urgent

Thanks,

Prerna

Accepted Solutions (0)

Answers (3)

Answers (3)

RaghuVamseedhar
Active Contributor
0 Kudos

Prerna,

I can see two issues here.

1. Data issue in SAP. Table with ILNNR filed is having data + non-printable character. May be SAP GUI when user press enter after filling some data is storing that 'Enter' value. Request SAP ECC team to fix data issues / user interface program.

2. Keyboard 'Enter' is getting converted to &#XD; . Ideally it should be converted to &#13; OR U+000D. http://unicode-table.com/en/#000D

If it is not possible to handle these issues in SAP ECC. You can handle in message mapping (not recommended), using standard function replaceString.

iaki_vila
Active Contributor
0 Kudos

He Prerna,

You can avoid the not printable characters at mapping level in PI. You can do it with an UDF for a particular field using the java instruction replaceAll or via Java Mapping.

Check the explanation provided by Raghu Vamseedhar Reddy KadipiReddy in different blogs, documents or threads:

Regards.

former_member269717
Participant
0 Kudos

Cam someone Please provide me the UDF for the same.

Former Member
0 Kudos

Hi Prerna,

&#xD; represents the ASCII "carriage return" character sometimes written "\r".

So you have to validate this in PI or in proxy code.

Regards,Prasanth

former_member269717
Participant
0 Kudos

Thank You for your reply.

Can you Please guide me in detail, how to validate it in PI