Skip to Content
avatar image
Former Member

Table control Display.

Dear friends,

I am displaying the table control with 4 columns,

and I want to display in one Colum with 2 records What I mean In my internal table I am having the MATKL (Material Group) and MATNR (Material) columns and I want to display the both in single Colum in my table control.

like: MATKL

MATNR

How to do this????

Thanks,

Sridhar

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 11, 2007 at 11:20 AM

    you create one more itab which will have 1 column to contain MAKTL & MATNR..

    keep this field as char...

    concatenate these two fields of itab1 to new itab...

    then print this itab on table control...

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2007 at 11:21 AM

    Sridher,

    Create a temporary itab with all fields of your itab. The only difference would be adding a char type field of long length to hold matnr and matkl. and CONCATENATE matnr & matkl SEPARATED BY SPACE and APPEND values into ur new itab. Use this itab to pass to ur tab ctrl

    Reward if helpful,

    K

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the replay,

      If we CONCATENATE matnr & matkl SEPARATED BY SPACE and append it to new field in iernal table, does it going to print one by one?

      I mean first row matnr and then immediate matkl.

      MATNR

      MATKL.

  • avatar image
    Former Member
    Oct 11, 2007 at 11:23 AM

    For that u have to create a table with cols.,,suppose it_final.

    loop at the table wid 4 cols

    concatenate the 2 cols of previous table into one col of it_final.

    append it to the final table

    Then pass dis table to the table control

    Regards,

    Reward if helpful

    Add comment
    10|10000 characters needed characters exceeded