on 07-01-2013 10:03 AM
Hello Experts
I am trying to use 'CL_ABAP_CHAR_UTILITIES=>NEWLINE' to show data in next line. but its showing # not next line.
CONCATENATE
'line1'
CL_ABAP_CHAR_UTILITIES=>NEWLINE
'line2'
CL_ABAP_CHAR_UTILITIES=>NEWLINE
'line3'
CL_ABAP_CHAR_UTILITIES=>NEWLINE
INTO text_buffer.
and now binding text_buffer with Textview. but
expected output.
line1
line2
line3..
but output is coming
line1#line2#line3.
Hi Chandra,
I recently had the same problem.
The problem can be fixed by implementing SAP Note 1797388 on a unicode system. If your systems happens to be NON-Unicode, check note 1813468.
Regards,
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
check in debugging
if hex value for # is 000D
then use:
REPLACE ALL OCCURANCE OF cl_abap_char_utilities=>cr_lf(1) IN string WITH space.
if hex value is 000A
then use:
REPLACE ALL OCCURANCE OF cl_abap_char_utilities=>cr_lf+1(1) IN string WITH space.
similary you can check for HORIZONTAL_TAB, VERTICAL_TAB etc.
hope this help
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use in this way
CONCATENATE 'line1' 'line2' 'line3' INTO text_buffer seperated by CL_ABAP_CHAR_UTILITIES=>NEWLINE.
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello All,
Thanks for suggestion..
I got to know there is some issue with the class in my system. I need to implement some Notes to make it work. Once i will implement the particular note i will share with all that note.
Is there some other way to achieve this without using CL_ABAP_CHAR_UTILITIES class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Arvind,
Try to implement SAP Note 1797388 ..
here is the process how to implement
T code : /osnote
Download Sap Note (Ctrl+F8)
Insert the note then Execute (F8).
expand the New node and click above the latest downloaded note and click on Implement SAP note (Ctrl+F1)
BR
Chandra..:)
Hi Chandra Shekar,
Do you want to display the data into application server file? If yes it will work as you have written.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Chandra,
on TextView element it should work. Please, could you try to concatenate the parameter &sap-language=EN on the URL?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shekhar,
I have implemented the same code. Its working fine in my system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandra,
I tried the exact same code & it works fine for me. Try giving it a try with
cl_abap_char_utilities=>cr_lf instead of CL_ABAP_CHAR_UTILITIES=>NEWLINE. If it doesn't resolve the issue try using the same code with a disabled textEdit UI element instead of a TextView.
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.