‎2009 Aug 11 1:52 PM
Dear All,
I need to use a line break in between two string. i need to append all the data from various variables into a string with a line break. How will i do that.
Eg., Char A(100) contains data as 'This is for the concatenate String 1'.
Char B(100) Contains data as 'This is for the concatenate string 2'.
I need to move all the data to a string S.
Similarly i will get some 5 or 6 variables and i need to move the content to String variable S.
Please help me to solve this issue.
Thanks
Ram M
‎2009 Aug 11 1:55 PM
‎2009 Aug 11 1:55 PM
‎2009 Aug 11 1:58 PM
Hi Lakshmanan,
Thanks for your quick reply.
I am sorry if you could sent me the snippet which will help me to solve this issue.
Thanks
Ram M
‎2009 Aug 11 2:03 PM
concatenate a b into c separated by cl_abap_char_utilities=>newline.
‎2009 Aug 11 1:59 PM
Hi,
DATA: CRLF TYPE C VALUE cl_abap_char_utilities=>NEWLINE.
Concatenate A B into C separated by CRLF.
It will be printed as A
...............................B. (Remove the dots )
Regards,
Vimal.
‎2009 Aug 11 2:00 PM
Hi,
Try this code
CONSTANTS seperator TYPE C VALUE cl_abap_char_utilities=>new_line.
Concatenate chara charb INTO s SEPARATED BY seperator.
Regards
Milan