ABAP/4 Example Code: GET & GET ... LATE
*** Using Logical Database: F1S ***
TABLES: SPFLI,
SFLIGHT,
SBOOK,
SCARR.
START-OF-SELECTION.
GET SPFLI.
WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID, SPFLI-AIRPFROM, SPFLI-AIRPTO.
GET SFLIGHT.
WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID,
SFLIGHT-FLDATE.
GET SBOOK.
WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID, SBOOK-FLDATE, SBOOK-BOOKID.
GET SFLIGHT LATE.
WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
The output is:
SPFLI: AA 0017 JFK SFO
SFLIGHT: AA 0017 30.03.2005
SBOOK: AA 0017 30.03.2005 00000001
SBOOK: AA 0017 30.03.2005 00000002
SBOOK: AA 0017 30.03.2005 00000003
...
...
...
SBOOK: AA 0017 30.03.2005 00000435
SBOOK: AA 0017 30.03.2005 00000436
SBOOK: AA 0017 30.03.2005 00000437
GET SFLIGHT LATE: 30.03.2005
SFLIGHT: AA 0017 27.04.2005
SBOOK: AA 0017 27.04.2005 00000438
SBOOK: AA 0017 27.04.2005 00000439
SBOOK: AA 0017 27.04.2005 00000440
...
...
...
GET SFLIGHT LATE: 27.04.2005
...
...
...
- thitima's blog
- 2633 reads
Post new comment