2009 Feb 12 10:21 AM
Hi,
How to change column size of ALV report during run time
Regards,
Hi,
How to change column size of ALV report during run time
Regards,
2009 Feb 12 10:22 AM
Usman,
Give it like
DATA:itlayout TYPE slis_layout_alv.
itlayout-colwidth_optimize = 'X'.
K.Kiran.
2009 Feb 12 10:26 AM
Hi,
try using
CWIDTH_OPT of lvc_c_layo structure.
data :
w_lay TYPE lvc_s_layo.
w_lay-cwidth_opt = 'X'.
CALL METHOD r_alv_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'FS'
is_layout = w_lay
CHANGING
it_outtab = itab
it_fieldcatalog = t_cat
2009 Feb 12 10:27 AM
Hi Nausal
You can change the output field length passed during field catalog table build code.
However you should NOT make colwidth_optimize 'X'.
Pushpraj
2009 Feb 12 10:27 AM
HI,
data is_layout type slis_alv_layout.
ls_layout-colwidth_optimize = 'X'.
thanks,
2009 Feb 12 10:31 AM
2009 Feb 12 10:43 AM
hi!
In your program for,
data :
w_layout TYPE lvc_s_layo.
pass X for,
w_layout-cwidth_opt = 'X'.
this will change the size of your table columns
2009 Feb 12 10:47 AM
Hi,
I think, you need to increase or decrease the width of the column.
It cannot be changed dynamically .....
but what we can do is
In your itab, check all the records for that field's length
take the highest size and pass it to the fieldcat.
and see the results.
So, if less width is there then the width of the column is less and if is very wide then the column will be wide
Regards,
Venkatesh
2009 Jun 09 12:34 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |