cancel
Showing results for 
Search instead for 
Did you mean: 

Passing text via WebRFC 'wrinkle'

Former Member
0 Kudos

We have written a an ABAP function module that returns material sales text on entry of a material code. This works well in most situations but it seems to throw an error if the sales text string ends in '....' as in ' please type in the rest of your message here ....'

This is the output string from the FM when run from a browser ...

{"results": [ {"key": "mat_no", "value": "COMSALE1 "}, {"key": "sales_text", "value": "Commission for negotiating the sale, the sum of £..."}, {"key": "error_code", "value": "0"}]}

The same input parameters from Personas gives me the script failed message - 'Calling the given RFC failed'.

Any feedback much appreciated.

Thanks.

Patrick.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hmmm ... the problem is the '£' sign, not the dots ..... I guess we need to escape the special characters in the string .... is there an ABAP function for such a thing?

manukapur
Active Participant
0 Kudos

This might be useful

Former Member
0 Kudos

Thank you Manu - this is the correct answer but I don't seem to have the option to mark this answer as such.

regards.

Patrick.

manukapur
Active Participant
0 Kudos

No problem Patrick. As long as the solution is correct, I am good.

Regards,
Manu