10-11-2007 12:18 PM
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
10-11-2007 12:20 PM
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...
10-11-2007 12:21 PM
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
10-11-2007 1:11 PM
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.
10-11-2007 12:23 PM
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