Skip to Content
0
Feb 16, 2007 at 10:30 AM

wrong TYPES definition?

24 Views

Hi experts,

For my selection I define a internal table

This works:

DATA: it_lab_data  TYPE TABLE OF zmm_lab_offen,
     wa_lab_data  TYPE zmm_lab_offen.

If I select something I can see the table is filled.

Now, for my selection I need a temporary field more than my transparent table (zmm_lab_offen) has. So I tried to define a new TYPE including this table.

TYPES: BEGIN OF s_lab_data,
         struk TYPE zmm_lab_struktur,
         loekz TYPE boolean,
       END OF s_lab_data.
TYPES: tt_lab_data TYPE STANDARD TABLE OF s_lab_data WITH DEFAULT KEY.
DATA: it_lab_data TYPE tt_lab_data.

SELECT *
FROM  'inner join over 3 tables'
INTO CORRESPONDING FIELDS OF TABLE it_lab_data
WHERE ...

But this doesn't work. The Selection even imports 1600 rows but all fields are empty or has the value '0'!

What am I doing wrong??? I 've got the TYPES definition by the "ABAP Objects" book...

Regards,

Steffen