on 06-07-2018 9:46 AM
Dear ALL,
I have a requirement to display unlimited text in ABAP webdynpro application where i have defined one variable string and binded to text edit ui element.
On execution i can enter unlimited characters and using Create_text i can able to store the text as well.Again in the next level I need to display the data but iam able to display only 132 characters only for retrieval iam using Read_text to get the data.
kindly help me in this.
Hi,
What data type is the context attribute that's bound to the TextEdit's value property? Is the data type limited to 132 characters? I recommend using data type STRING so the length won't be limited.
Below is the code I use to read in a standard text and set it to a field of type STRING.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = text_id
language = sy-langu
name = text_name
object = text_object
TABLES
lines = lt_tline
EXCEPTIONS
OTHERS = 0.
LOOP AT lt_tline ASSIGNING FIELD-SYMBOL(<tline>).
CASE sy-tabix.
WHEN 1.
string_field = <tline>-tdline.
WHEN OTHERS.
string_field = |{ string_field }{ cl_abap_char_utilities=>newline }{ <tline>-tdline } |.
ENDCASE.
ENDLOOP. " <tline>
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.