Skip to Content
avatar image
Former Member

Dynamic table and Fieldcatalog

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 08, 2005 at 12:31 PM

    You can try use the following fields of fieldcatalog_c:

    DATATYPE

    INTTYPE

    INTLEN

    they should define field type.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2005 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Sep 08, 2005 at 12:28 PM

    Hi,

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

    Svetlin

    Add comment
    10|10000 characters needed characters exceeded