Schlagwort: Data

interne Tabelle

REPORT YZSM0007 . TABLES SFLIGHT. DATA: FLUG_LISTE LIKE SFLIGHT OCCURS 0 WITH HEADER LINE. SELECT * FROM SFLIGHT INTO TABLE FLUG_LISTE. LOOP AT FLUG_LISTE. WRITE: /10 FLUG_LISTE-CARRID, 20 FLUG_LISTE-CONNID, 30 FLUG_LISTE-FLDATE, 40 FLUG_LISTE-PRICE. ENDLOOP. DELETE FLUG_LISTE WHERE CARRID NE ‚LH‘.

Veröffentlicht in ABAP Getagged mit: , , , , , , , , , , , , , ,

interne Tabelle (itab)

REPORT YZSM0006 . TABLES SFLIGHT. TYPES: BEGIN OF F_LISTE, CARRID LIKE SFLIGHT-CARRID, SEATSMAX LIKE SFLIGHT-SEATSMAX, END OF F_LISTE. DATA: ID LIKE SFLIGHT-CARRID, MAX LIKE SFLIGHT-SEATSMAX, FLUG_LISTE TYPE F_LISTE OCCURS 10 WITH HEADER LINE. SELECT CARRID SEATSMAX INTO (ID, MAX) FROM

Veröffentlicht in ABAP Getagged mit: , , , , , , , , ,

Variablen

REPORT YZSM0003 . DATA: DATUM LIKE SY-DATUM, ANZAHL VALUE 5. *move sy-datum to datum. DATUM = SY-DATUM. WRITE: /(50) ‚aktuelles Datum‘, DATUM. DATUM = DATUM + ANZAHL. WRITE: /(50) ‚aktuelles Datum + 5′, DATUM. DATUM+6(2) = ’01‘. WRITE: /(50) ‚erster

Veröffentlicht in ABAP Getagged mit: , , , , , , , , , , , ,