Two-dimensional array in ABAP

****Typdefinition Flüge, da jede Kombination aus airpfrom und airpto mehrere Flüge haben kann****

TYPES: BEGIN OF tl_flights,

distance LIKE spfli-distance,

price LIKE sflight-price,

fldate LIKE sflight-fldate,

carrid LIKE spfli-carrid,

connid LIKE spfli-connid,

END OF tl_flights.

**** hier beginnt die eigentliche Matrixdefinition****

* Zeilentyp definieren

TYPES: BEGIN OF tl_adj,

airpto TYPE s_airport,

* zu jedem Ziel kann es viele Flüge geben

flight TYPE tl_flights OCCURS 0,

END OF tl_adj.

* Matrixtyp definieren

TYPES: BEGIN OF t_adj,

* jeder airpfrom definiert eine Zeile

airpfrom TYPE s_airport,

dest TYPE tl_adj OCCURS 0,

END OF t_adj.

TYPES: tt_adj TYPE TABLE OF t_adj.

* Matrix definieren

DATA: lt_graph TYPE TABLE OF t_adj.

Um unsere Seite fortlaufend für Sie zu verbessern, verwende wir Cookies. weitere Informationen

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close