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: 

Table control Display.

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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...

former_member189629
Active Contributor
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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