2009 Apr 03 12:44 PM
Hi,
I have an ALV report where I want to specifically set the field widths of the columns because some of the standard domain lengths are very large (e.g. 255 chars).
I am building the field catalog like this:
CLEAR gs_fieldcat.
gs_fieldcat-col_pos = 1.
gs_fieldcat-fieldname = 'NAME_ORG1'.
gs_fieldcat-scrtext_m = 'Employer Name'.
gs_fieldcat-dd_outlen = 40.
APPEND gs_fieldcat TO gt_fieldcat.
then calling the ALV like this:
CALL METHOD go_alv->set_table_for_first_display
CHANGING
it_outtab = gt_evm_pm_data
it_fieldcatalog = gt_fieldcat .
gt_fieldcat is based on structure LVC_S_FCAT.
However, this has no effect on the column widths.
What am I doing wrong?
Regards
David
2009 Apr 03 12:46 PM
use
gs_fieldcat-outputlen = '20'.
Thanks
2009 Apr 03 12:46 PM
2009 Apr 03 12:48 PM
Thanks. I did look for that in the structure and couldn't see it.
2009 Apr 03 12:48 PM
Hi,
please try with that.
It will surely work.
gs_fieldcat-outputlen = '25'.
In quotation u can use any length whateveer u wish to display
Thanks
JAyati
2009 Apr 03 12:47 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |