Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in conversion

Former Member
0 Likes
442

Hi,

I am creating a web application. I am calling RFC function modules from the frontend in HTML through JAVA interfacing.

Now, there is a textbox on the screen which takes 10 lines of 60 chars each.

when I pass this complete string of 600 chars to the RFC, it takes the ENTER char as '##', but in the code when I want to break it at '##', it doen't recognise these codes.

Can anyone please help me regarding this. Is it due to some kind of ASCII code conversion ?

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
421

That's right, in the ABAP debugger, you will see the # sign as a representation of the non-printable character. In this case you want to SPLIT the string using an attribute of the class CL_ABAP_CHAR_UTILITIES.

Try this first.

data: istr type table of string with header line.

split str at CL_ABAP_CHAR_UTILITIES=>CR_LF
                         into table istr.

Regards,

Rich Heilman

Read only

0 Likes
421

I've encountered the same problem but haven't been able to find this "CL_ABAP_CHAR_UTILITIES=>CR_LF" method.

In what SP it is available?

Is there any other way to bypass/correct this problem?

Read only

Former Member
0 Likes
421

Thanks Rich