Hello Experts,
this is my code:
DATA cond_type TYPE TABLE OF zstruc_cond_type.
DATA wa_cond_type TYPE zstruc_cond_type.
SELECT DISTINCT a~KSCHL b~VTEXT FROM KONP AS a INNER JOIN T685T AS b ON a~kschl =
b~kschl AND a~kappl = b~kappl INTO TABLE cond_type.
LOOP AT cond_type INTO wa_cond_type.
ex_cond_type-ID = wa_cond_type-ID.
ex_cond_type-NAME = wa_cond_type-NAME.
ENDLOOP.
----------------------------------------------------
ex_cond_type is from the table type ZTABLETYPE_COND_TYPE which is based on the structure zstruc_cond_type.
But i get this error when looping:
ex_cond_type is a table without a header line and therefore has no component called 'ID'.
Any ideas ?
Regards,
Bart