FUNCTION z_bapi_getcitycouples.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(CITYFROM) TYPE  SPFLI-CITYFROM
*"  TABLES
*"      CITYFROM_TAB STRUCTURE  ZCITY
*"      CITYTO_TAB STRUCTURE  ZCITY
*"----------------------------------------------------------------------
  IF cityfrom IS INITIAL.
    SELECT DISTINCT cityfrom INTO TABLE cityfrom_tab FROM spfli.
    SELECT DISTINCT cityto   INTO TABLE cityto_tab   FROM spfli.
  ELSE.
    SELECT DISTINCT cityfrom INTO TABLE cityfrom_tab FROM spfli
    WHERE cityfrom = cityfrom.
    SELECT DISTINCT cityto INTO TABLE cityto_tab FROM spfli
    WHERE cityfrom = cityfrom.
  ENDIF.

ENDFUNCTION.