Code: Alles auswählen.
DATA: datum TYPE D.
datum = sy-datum.
SELECT * INTO CORRESPONDING FIELDS OF TABLE
it_setleaf_cc FROM ( ( setleaf AS a
INNER JOIN CSKS AS b ON
a~valfrom = b~kostl
)
INNER JOIN CSKT AS c ON (
b~kostl = c~kostl AND b~kokrs = c~kokrs ) )
WHERE a~setclass EQ me->cv_elmclass
AND b~datbi GE datum
AND a~setname EQ me->cv_elmntname.