2007 Mar 13 9:25 AM
Hi
Structures r defined in the same way as tables and i read that for structures database table is not generated.
A table can contain a structure.
Hence same data elements and domains can be used both in structures and tables,So is it possible to include the tables in structures.
2007 Mar 13 9:30 AM
Hi,
Not possible.
Structure means a single record skeleton, table means multiple records holder, how can you insert table in structure. It may take as structure itself, even if you include.
Regards,
Anji
Hi
Structures r defined in the same way as tables and i read that for structures database table is not generated.
A table can contain a structure.
Hence same data elements and domains can be used both in structures and tables,So is it possible to include the tables in structures.
2007 Mar 13 9:30 AM
Hi,
Not possible.
Structure means a single record skeleton, table means multiple records holder, how can you insert table in structure. It may take as structure itself, even if you include.
Regards,
Anji
2007 Mar 13 9:31 AM
Hello Nirmala,
Yes it is possible. U can do like .include -- MARA for a structure Ztest.
Not the stu. Ztest will ahve th structure of mara but no data.
Thanks!!
Vasanth
2007 Mar 13 10:27 AM
hi,
u mean that if v include table in struc, table-struct wil be included not the data,
and wat abt including struc to the existing table which hav records...
2007 Mar 13 9:31 AM
yes u can include a table structure into ur structure not the values.
2007 Mar 13 9:50 AM
it is not possible to include the table inside the structure.. if it is possible.. then the property of structure is meaning less.
Regards,
Sujatha.
2007 Mar 13 9:56 AM
Hi,
Yes u can include a table but in the datatype u will find it as STRU means structure u won't get the values in that.U can Try to include but it won't act as a table since a structure is a flat data type where as table is a tree structured data type.If u want that u can go for deep tables.
Regards,
Ravi
2007 Mar 13 12:05 PM
Hi, You can include a table in structure like:
DATA: BEGIN OF ls_record.
INCLUDE STRUCTURE mara.
DATA: END OF ls_record.
Regards,
Balakrishna.N
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |