07-01-2015 7:21 PM
Hi All,
Issue is there is a ALV gird screen input the text1 text2 text 3 text 4 which of 125 char length each , issue is need to concatenate all the text values of text1,text2, text3, text4 into single header_text which is of 500 char length but notable to achieve as only 255 characters is able to display kindly suggest me the below the necessary code and screen shot related to the issue.
BEGIN OF ty_comm_d,
text1(125) TYPE c,
text2(125) TYPE c,
text3(125) Type c,
text4(125) Type c,
END OF ty_comm_d.
BEGIN OF ty_download,
head_text1 TYPE STRING,
END OF ty_download.
condense: <fs_comm_d>-text,
<fs_comm_d>-text2,
<fs_comm_d>-text3,
<fs_comm_d>-text4.
data: w_textpart1(250) type c,
w_textpart2(250) type c.
CONCATENATE <fs_comm_d>-text
<fs_comm_d>-text2
into w_textpart1 SEPARATED BY space.
CONCATENATE <fs_comm_d>-text3
<fs_comm_d>-text4
into w_textpart2
SEPARATED BY space.
CONCATENATE w_textpart1
w_textpart2
INTO <fs_download>-head_text1.
07-01-2015 8:01 PM
Hi,
inside ALV, I dont think you can do it,
you can define a domin unlimited but inside ALV, it will now show the complete text,
I have created a domin as string, and I enterd many characters but in ALV ,it is restricted.
Regards
Ibrahim
07-01-2015 8:19 PM
Srikanth,
Anything more than 255 char will be stored in buffer. Probably you can check rest of the data, will be able to display variable1+255(255).
Thanks ,
Jay
07-02-2015 8:37 AM
Hi Srikanth,
The maximum length of ALV Grid will hold upto 128. Please find the following SNOTE.
422660 - ALV grid: Field lengths are limited to 128 characters
857823 - ALV grid: Strings with a maximum of 128 characters
And it is a standard behavior, it can't be changed.
If you want to show the more than 128 characters, you can split the character like word wrap using FM RKD_WORD_WRAP, but it has few limitations, it will split the value in next row not in the same row. Please find the document for Word wrap functionality.
Hope it helps
Regards
Rajkumar Narasimman
07-02-2015 11:02 AM
Hi,
The maximum length of ALV Grid will hold upto 128 only.
so I suggest to use one more column and put a button or icon on click (by hotspot) on click call
FM TERM_CONTROL_EDIT with data properly filling.