I created the code belwo but when I tyr to append to the table it says it isn't an internal table. what is worng with my code?
data: wa_day type c.
data: BEGIN OF T_day occurs 0,
wotnr TYPE t246-wotnr,
langt TYPE t246-langt,
END OF T_day.
if COMM_STRUCTURE-createdon is not initial.
call FUNCTION 'DATE_COMPUTE_DAY'
exporting
date = COMM_STRUCTURE-createdon
importing
day = wa_day.
RESULT = wa_day.
append wa_day to t_day-wotnr.
endif.