Code: Alles auswählen.
SELECT au~objek, au~atinn, au~klart, au~atwrt, au~atflv,
cb~atbez, ks~clint
FROM ( ausp AS au INNER JOIN cabnt AS cb ON au~atinn = cb~atinn
INNER JOIN kssk AS ks ON au~objek = ks~objek )
INTO CORRESPONDING FIELDS OF TABLE @gt_collect
WHERE au~objek IN @so_obj
AND au~klart IN @so_klart.
SELECT class
FROM klah
INTO gv_class
FOR ALL ENTRIES IN gt_collect
WHERE clint = gt_collect-clint.
endselect.
Code: Alles auswählen.
SELECT au~objek, au~atinn, au~klart, au~atwrt, au~atflv,
cb~atbez, ks~clint, ka~clint
FROM ( ausp AS au INNER JOIN cabnt AS cb ON au~atinn = cb~atinn
INNER JOIN kssk AS ks ON au~objek = ks~objek
INNER JOIN klah AS ka ON ka~clint = ks~clint )
INTO CORRESPONDING FIELDS OF TABLE @gt_collect
WHERE au~objek IN @so_obj
AND au~klart IN @so_klart.
Code: Alles auswählen.
SELECT ausp~objek ausp~atinn ausp~klart ausp~atwrt ausp~atflv cabnt~atbez klah~class
FROM ausp INNER JOIN cabnt ON ausp~atinn = cabnt~atinn
INNER JOIN kssk ON kssk~objek = ausp~objek
INNER JOIN klah ON klah~clint = kssk~clint
INTO CORRESPONDING FIELDS OF TABLE gt_collect
WHERE ausp~objek IN so_obj
AND ausp~klart IN so_klart.
Folgende Benutzer bedankten sich beim Autor DeathAndPain für den Beitrag:
autohandel7