cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create a table in a table cell?

Former Member
0 Kudos

Hello, All,

I have a task that involves creating a form with header and items.

However there is an exception. Some items of the document are

specially marked and if so then subitems of the item should be

printed (it is a requirement). The format of the subitem is exactly

the same as item so it fits exactly in a row of the item.

However I have not found a possibility to insert another table into

a parent table cell. My workaround is that I created a loop over the

subitems and I am printing the values into a text field and separate

them by spaces (so without formatting).

Is it possible then to create a "subtable" in a table cell?

Best regards

Pawel

Edited by: Pawel Jagus on Jul 8, 2008 11:44 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

JozsefSzikszai
Active Contributor
0 Kudos

hi Pawel,

pls. check this simple and dirty code, to see how to create table in table:

* Type 1
TYPES : BEGIN OF ty_table1,
        char TYPE c,
        END OF ty_table1.

* Internal table 1
DATA : gt_table1 TYPE TABLE OF ty_table1.

* Type 2
TYPES : BEGIN OF ty_table2,
        table LIKE gt_table1,
        END OF ty_table2.

* Internal table 2
DATA : gt_table2 TYPE TABLE OF ty_table2.

* work areas
DATA : gw_table1 TYPE ty_table1,
       gw_table2 TYPE ty_table2.

hope this helps

ec

Former Member
0 Kudos

I don't think it is the answer to my question.

Former Member
0 Kudos

Hi,

I think it is not possible to create a subtable. You can display data by putting conditions for the exception you mentioned.

Thanks.

Swati

Former Member
0 Kudos

Yeah, this is what I have already done. I added a new row in the table,

then inside it an alternative and for value true there is a loop over the

subitems and values are put into the text field. However this is not acceptable

because there is no formatting.

Best regards

Paweł

Former Member
0 Kudos

Hi,

It should work. Please Clear about formatting.

Thanks.

Swati.

Former Member
0 Kudos

The picture tells everything.

Green: the "normal" item. This is the cell of a table (values in the columns)

Red: My change. The subitems of an item. Values are inserted in the text field. No formatting, its look sucks.

I want here the same row as marked green.

Link: http://retsam.webpark.pl/the_look_sucks_noise.png