on 11-06-2013 6:50 AM
Hi ,
I have description text in webdynpro application. If I need to enter description in multiple line . When I reopen application then entered text should display in multiple lines. But when I am saving then instead of showing in multiple lines its getting displayed in single line. I have attached the screen shot for the same. Let me know if any further information required.
Regards,
Padam
Hi,
If we use text edit ui element, the text with newlines(#) will be preserved.
Example: line1: Text1
line2: Text2
The text is saved as Text1#Text2.
Please check whether your text is saved in DB with new line( #) .
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Padam,
while saving n lines of data of text-edit, it will save data in DB by concatenating '#', but while showing on UI that '#' will be converted to new line. basically that is not '#' symbol that is 'CL_ABAP_CHAR_UTILITIES=>NEWLINE' new line symbol.
so if while coming back your data in coming in sfdsdfs#fdsfsd#dsfds this format on UI, means you have some problem with CL_ABAP_CHAR_UTILITIES=>NEWLINE, to resolve this you need to implement this SAP note.
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
Hey PADAMK,
Ensure that you have the context attribute that you have bound this Text Edit to, is of type STRING_TABLE(standard type).
On the save action, Loop at the STRING_TABLE and use function module IQAPI_WORD_WRAP to convert it to lines of 132 chars length so that you can save it as a text object using SAVE_TEXT.
When you have to display, you have to read the text using READ_TEXT, and then bring the string into STRING_TABLE . And each line will be displayed in the Text edit control.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.