2008 May 07 11:22 AM
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
2008 May 07 11:31 AM
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]
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |