‎2006 Jul 21 9:49 AM
Hi all,
I am still learning ABAP. Here's my question:
how can I look for the equivalent of a new line like antislash-n in C language inside a string or xstring ?
Sincerely,
Olivier Matt
‎2006 Jul 21 9:52 AM
Hi olivier,
1. We have to use the class
CL_ABAP_CHAR_UTILITIES
attribute
NEWLINE
2. like this.
CL_ABAP_CHAR_UTILITIES=>NEWLINE
regards,
amit m.
‎2006 Jul 21 9:52 AM
write:<b> /</b>
ex---
<b>write: /</b> w_str1,w_str2,w_str3,w_str4.
it print all the string in diffrent line.
like
w_str1
w_str2
w_str3
w_str4
‎2006 Jul 21 9:52 AM
Hi olivier,
1. We have to use the class
CL_ABAP_CHAR_UTILITIES
attribute
NEWLINE
2. like this.
CL_ABAP_CHAR_UTILITIES=>NEWLINE
regards,
amit m.
‎2006 Jul 21 10:12 AM
THank you very much, it works fine. I also had to look for CL_ABAP_CHAR_UTILITIES=>CR_LF
‎2006 Jul 21 9:53 AM
‎2006 Jul 21 9:56 AM
U can use the following satement.
<b>skip.</b>
Eg.
skip 5. (equivalent to 5 enters)
‎2006 Jul 21 10:02 AM
Hi,
In WRITE statement while writeing string u can use <b>/</b>
OR U can use
<b>CL_ABAP_CHAR_UTILITIES=>NEWLINE</b>
<b>SKIP</b> is also used to skip one line.
Rgds,
Prakash
‎2006 Jul 21 10:05 AM