Application Development and Automation 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: 
Read only

table in structure class

Former Member
0 Likes
351

hi all

why doesn't that work?


    types: begin of ts_deli_day_map,
            day_num   type n length 1,
            deli_day  type xfeld,
           end of  ts_deli_day_map.

    types tt_deli_day_map type standard table of ts_deli_day_map.

    types: begin of ts_tours_map,
            lzone type lzone,
            deli_day type tt_deli_day_map,
           end of ts_tours_map.

the code is in a class....

regards

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
319

For components of table type, it is required this table type must have key determined. So you this should go like


    types: begin of ts_deli_day_map,
            day_num   type n length 1,
            deli_day  type xfeld,
           end of  ts_deli_day_map.
 
    types tt_deli_day_map type standard table of ts_deli_day_map with default key.
 
    types: begin of ts_tours_map,
            lzone type lzone,
            deli_day type tt_deli_day_map,
           end of ts_tours_map.
           

Regards

Marcin

1 REPLY 1
Read only

MarcinPciak
Active Contributor
0 Likes
320

For components of table type, it is required this table type must have key determined. So you this should go like


    types: begin of ts_deli_day_map,
            day_num   type n length 1,
            deli_day  type xfeld,
           end of  ts_deli_day_map.
 
    types tt_deli_day_map type standard table of ts_deli_day_map with default key.
 
    types: begin of ts_tours_map,
            lzone type lzone,
            deli_day type tt_deli_day_map,
           end of ts_tours_map.
           

Regards

Marcin