on 07-08-2008 10:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.