Da ich die Daten direkt ausgebe sehe ich das sie richtig gefüllt sind, aber nicht im Excel drinn stehen. Ich komm einfach net weiter.
Mein Loop sieht wie folgt aus:
IF itab_01[] IS INITIAL.
MESSAGE s001(aq) WITH 'Keine Datensätze gefunden'.
ELSE.
NEW-PAGE LINE-SIZE 174.
SORT itab_01 BY ekgrp.
LOOP AT itab_01.
itab_01-gespr = 0.
itab_01-banpr = 0.
itab_01-gespr = itab_01-bsmng * itab_01-preis.
itab_01-banpr = itab_01-menge * itab_01-preis.
FORMAT COLOR COL_GROUP INTENSIFIED OFF.
WRITE: sy-uline.
WRITE: AT / sy-vline, (15) itab_01-ekgrp UNDER text-010,
(27) itab_01-eknam UNDER text-011,
(13) itab_01-ektel UNDER text-012,
(11) itab_01-matkl UNDER text-013,
174 sy-vline.
NEW-LINE.
FORMAT COLOR COL_NORMAL INTENSIFIED.
WRITE: AT / sy-vline, (18) itab_01-banfn UNDER text-014,
(18) itab_01-bnfpo UNDER text-015,
(24) itab_01-menge UNIT eban-meins
UNDER text-016,
(13) itab_01-meins UNDER text-017,
(15) itab_01-preis CURRENCY eban-waers
UNDER text-018,
(15) itab_01-banpr CURRENCY eban-waers
UNDER text-019,
(17) itab_01-badat UNDER text-020,
(15) itab_01-afnam UNDER text-021,
sy-vline.
NEW-LINE.
WRITE: AT / sy-vline, (13) itab_01-ebeln UNDER text-022,
(15) itab_01-ebelp UNDER text-023,
(15) itab_01-bsmng UNIT eban-bmein
UNDER text-024,
(12) itab_01-bedat UNDER text-025,
(20) itab_01-gespr CURRENCY eban-waers
UNDER text-026,
174 sy-vline.
NEW-LINE.
WRITE: AT / sy-vline, (12) itab_01-lifnr UNDER text-027,
(21) itab_01-name1 UNDER text-028,
(11) itab_01-lfdat UNDER text-029,
174 sy-vline.
ENDLOOP.
WRITE: sy-uline.
ENDIF.