You are on page 1of 2

*&-----------------------------------------------------------------------------*

*& Report ZPRUEBA


*
*&
*
*& Listado de vuelos
*
********************************************************************************
*
REPORT zprueba NO STANDARD PAGE HEADING LINE-SIZE 255.
*
********************************************************************************
*
*Tablas
********************************************************************************
*
TABLES:
spfli.
"Itinerario de vuelos
********************************************************************************
*
*Tipos
********************************************************************************
*
TYPES:
ty_spfli TYPE SORTED TABLE OF spfli WITH NON-UNIQUE KEY carrid connid.
********************************************************************************
*
*Variables globales
********************************************************************************
*
DATA:
ti_spfli TYPE ty_spfli WITH HEADER LINE. "Tabla interna de vuelos
********************************************************************************
**
***
SELECTION-SCREEN
*
**
********************************************************************************
**
SELECT-OPTIONS:
s_carrid
FOR spfli-carrid,
"Compaa area
s_countr
FOR spfli-countryfr.
"Pas de salida
********************************************************************************
*
*START-OF-SELECTION
********************************************************************************
*
START-OF-SELECTION.
* Seleccin de vuelos
SELECT * FROM spfli
INTO CORRESPONDING FIELDS OF TABLE ti_spfli
WHERE ( carrid
IN s_carrid
AND countryfr IN s_countr ).

********************************************************************************
*
*END-OF-SELECTION
********************************************************************************
*
END-OF-SELECTION.
* Listado
LOOP AT ti_spfli.
WRITE: / ti_spfli-connid,
ti_spfli-cityfrom,
ti_spfli-deptime.
ENDLOOP.

You might also like