Advertisement
Kenzuke

Flugdaten

Jan 26th, 2020
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 1.04 KB | None | 0 0
  1. DATA:
  2.   count TYPE i VALUE 0,
  3.   sc    TYPE scustom,
  4.   sb    TYPE sbook.
  5.  
  6. * ???
  7. TOP-OF-PAGE.
  8. * Zeile ganz oben
  9.  ULINE (140).
  10.   WRITE: /  '|', (10)'Kunden ID',       '|', (15)'Kunde',
  11.             '|', (14)'Strasse',         '|', (12)'Postleitzahl',
  12.             '|', (14)'Ort',             '|', (12)'Buchungs-Nr.',
  13.             '|', (16)'Fluggeselschaft', '|', (10)'FLugnummer',
  14.             '|', (9)'Flugdatum',        '|'.
  15.   ULINE /(140).
  16.  
  17. START-OF-SELECTION.
  18.   SELECT * FROM  scustom INTO sc.
  19.     SELECT * FROM sbook INTO sb
  20.              WHERE customid = sc-id.
  21.       WRITE: /  '|', (10)sc-id,       '|', (15)sc-name,
  22.                 '|', (14)sc-street,   '|', (12)sc-postcode,
  23.                 '|', (14)sc-city,     '|', (12)sb-bookid,
  24.                 '|', (16)sb-carrid,   '|', (10)sb-connid,
  25.                 '|', (9)sb-fldate,    '|'.
  26.     ENDSELECT.
  27.     IF sy-dbcnt > 0.
  28.       count = count + 1.
  29.     ENDIF.
  30.  
  31.   ENDSELECT.
  32.  
  33. END-OF-SELECTION.
  34.   ULINE /(140).
  35.   WRITE: / '|', 'Anzahl der Kunden: ', count, (104)' ', '|'.
  36.   ULINE /(140).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement