Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NPM : 0617101030
KELAS :A
REPORT ZBC40400_05S_SELECT_SFLIGHT.
DATA wa_flight TYPE sbc400focc.
PARAMETERS pa_car TYPE s_carr_id.
*create List:
WRITE: / wa_flight-carrid,
wa_flight-connid,
wa_flight-fldate,
wa_flight-seatsmax,
wa_flight-seatsocc,
wa_flight-percentage, '%'.
ENDSELECT.
IF sy-subrc NE 0.
WRITE: 'NO', pa_car, 'Flights found!'.
ENDIF.
b) Output
a) Sourcecode
REPORT ZBC400_05S_SELECT_SFLIGHT_ITAB.
DATA: it_flight TYPE sbc400_t_sbc400focc,
wa_flight LIKE LINE OF it_flight.
PARAMETERS pa_car TYPE s_carr_id.
IF sy-subrc = 0.
*Create List:
LOOP AT it_flight INTO wa_flight.
WRITE: / wa_flight-carrid,
wa_flight-connid,
wa_flight-fldate,
wa_flight-seatsmax,
wa_flight-seatsocc,
wa_flight-percentage, '%'.
ENDLOOP.
ELSE.
b) Output
3. Exercise 10 : Authorization Check
a) Sourcecode
REPORT ZBC400_05S_AUTHORITY_CHECK.
CASE sy-subrc.
Answer : karena "Open SQL" tidak tergantung pada sistem basis data relasional
yang digunakan.
3. Does the client limitation have to be specified in the WHERE clause of a SELECT
statement if the database table to be read has the client field?
Answer : Tidak, jika batasan client tidak ada, hanya records yang dieksekusi client
yang dibaca. yaitu, client tempat program dipanggil.
4. What is the name of the high-performance technique that one should use to load
the content of a database table into an internal table ?
Answer : SY-DBCNT
6. Which technique should be used for reading records that belong together from
several database tables? This technique performs considerably better than nested
SELECT statements.
Answer : B,C
Answer : B,D.