Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic table and Fieldcatalog

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can try use the following fields of fieldcatalog_c:

DATATYPE

INTTYPE

INTLEN

they should define field type.

4 REPLIES 4

Former Member
0 Kudos

Hi,

How long is the header text ( fieldcatalog2-coltext = text-036 )? May be it is connected with it.

Svetlin

Former Member
0 Kudos

You can try use the following fields of fieldcatalog_c:

DATATYPE

INTTYPE

INTLEN

they should define field type.

Former Member
0 Kudos

hi, if you want the field has 15 length definition, you should set 'intlen', not 'outputlen'.

normally, 'outputlen' is for print out length.

thanks

0 Kudos

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