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

read strings with line break

Former Member
0 Likes
506

Dear Experts,

I'm building a function module with an input parameter for strings. The function module will be called by a java program which feeds the inpurt parameter with strings with line breaks. I need to separate the strings by line breaks and put them into a internal table so that the can be stored in stxh, stxl line by line.

would you please give me an advice how to identify line breaks in strings? "\n" is not really in the string, isn't it?

After separating them, I can use

Function 'SAVE_TEXT'

with the lines looking like

line-tdline = "text1'.

line-tdformat = '*'.

to store them, right?

I appreciate your answer.

Regards,

Yan

Dear Experts,

I'm building a function module with an input parameter for strings. The function module will be called by a java program which feeds the inpurt parameter with strings with line breaks. I need to separate the strings by line breaks and put them into a internal table so that the can be stored in stxh, stxl line by line.

would you please give me an advice how to identify line breaks in strings? "\n" is not really in the string, isn't it?

After separating them, I can use

Function 'SAVE_TEXT'

with the lines looking like

line-tdline = "text1'.

line-tdformat = '*'.

to store them, right?

I appreciate your answer.

Regards,

Yan

1 REPLY 1
Read only

Former Member
0 Likes
377

Hi,

you can seperate the sting with '0D'.

lh_return = '0D'.

split xeing-dline at lh_return

into dtext1

dtext2.

[http://www.torsten-horn.de/techdocs/ascii.htm]