Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a 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.

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.