Variante 1 (ab NW 7.40 SP08)
* it_status hat zwei Spalten mit jeweils einer tiefen Struktur
SELECT jcds~*, tj02t~*
FROM jcds INNER JOIN tj02t
ON jcds~stat = tj02t~istat
WHERE tj02t~spras = @sy-langu
INTO TABLE @DATA(it_status)
UP TO 100 ROWS.
IF sy-subrc = 0.
cl_demo_output=>display( it_status ).
ENDIF.
Variante 2 (bis NW 7.40 SP08)
* it_status hat alle Spalten aus beiden includierten Strukturen
TYPES: BEGIN OF ty_data.
INCLUDE TYPE jcds.
INCLUDE TYPE tj02t.
TYPES: END OF ty_data.
DATA: it_status TYPE STANDARD TABLE OF ty_data WITH DEFAULT KEY.
SELECT jcds~*, tj02t~*
FROM jcds INNER JOIN tj02t
ON jcds~stat = tj02t~istat
WHERE tj02t~spras = @sy-langu
INTO TABLE @it_status
UP TO 100 ROWS.
IF sy-subrc = 0.
cl_demo_output=>display( it_status ).
ENDIF.