2013 Dec 31 5:50 AM
Hi All
I am using one data element having domain char(1).In the field label Text is defiend by four different lengths,Program defaultly taking Char(1) text.I want to didplay text of higher length.Please help on this.
Thanks
Vamsi
2013 Dec 31 6:30 AM
gs_fieldcat-ddictxt = 'L'.
use this option in the field cat 'S' for small ' L' for long 'M' for medium field labels while passing structure in ALV
regards
SIva
Hi All
I am using one data element having domain char(1).In the field label Text is defiend by four different lengths,Program defaultly taking Char(1) text.I want to didplay text of higher length.Please help on this.
Thanks
Vamsi
2013 Dec 31 5:59 AM
How are you displaying the text in ALV...? If yes are you passing the structure name to GRID...?
Nabheet
2013 Dec 31 6:01 AM
Hi nabheet
Yes i am passing structure name to grid.
Thanks
Vamsi
2013 Dec 31 6:07 AM
Use Function module REUSE_ALV_FIELDCATALOG_MERGE. pass structure name and get field catalog into LT_FIELD. read LT_FIELD for your field name and modify seltext_l/seltext_m/seltext_s
Pass this LT_FIELD to grid FM
2013 Dec 31 6:12 AM
Add the following attribute to the layout.
gd_layout-cwidth_opt = 'A'.
And pass this in your ALV FM.
2013 Dec 31 6:13 AM
2013 Dec 31 6:30 AM
gs_fieldcat-ddictxt = 'L'.
use this option in the field cat 'S' for small ' L' for long 'M' for medium field labels while passing structure in ALV
regards
SIva
2013 Dec 31 8:44 AM
try using class cl_salv_wd_column_header method SET_PROP_DDIC_BINDING_FIELD
u can pass IF_SALV_WD_C_DDIC_BINDING=>DDIC_BIND_LONG to Method parameter "VALUE"
PS: Few similar question on SDN
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |