09-08-2005 1:19 PM
Hi All,
I am creating one dynamic internal table using method
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = fieldcatalog_c
IMPORTING
ep_table = dref_c.
For which I am building fieldcatalog_c , in that one of the field has following structure
fieldcatalog2-fieldname = 'DIFF'.
fieldcatalog2-coltext = text-036.
fieldcatalog2-col_pos = colpos.
fieldcatalog2-outputlen = 15.
fieldcatalog2-just = 'R'.
Now what is happening is even if I have given output len and justification for it after the table is created the length of the field is shown as more than the defined one in this case it is showing 26 but I want 15. Where as with other fields I am not facing such kind of problem.
Any clues?
Thanks
pM
09-08-2005 1:31 PM
You can try use the following fields of fieldcatalog_c:
DATATYPE
INTTYPE
INTLEN
they should define field type.
09-08-2005 1:28 PM
Hi,
How long is the header text ( fieldcatalog2-coltext = text-036 )? May be it is connected with it.
Svetlin
09-08-2005 1:31 PM
You can try use the following fields of fieldcatalog_c:
DATATYPE
INTTYPE
INTLEN
they should define field type.
09-08-2005 3:19 PM
hi, if you want the field has 15 length definition, you should set 'intlen', not 'outputlen'.
normally, 'outputlen' is for print out length.
thanks
09-12-2005 12:19 PM
Hi
Thanks all, it was related to the heading only which i had defined useing text elements hence was giving the problems.
Thank again
pM