Advertisement
TorfTRY

ZBC400_02_LOOP

Mar 9th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 1.10 KB | None | 0 0
  1. *&---------------------------------------------------------------------*
  2. *& Report ZBC400_02_LOOP
  3. *&---------------------------------------------------------------------*
  4. *&
  5. *&---------------------------------------------------------------------*
  6. REPORT zbc400_02_loop.
  7.  
  8. TYPES: ty_cid         TYPE bc400_s_connection-carrid.
  9.  
  10. PARAMETERS: pa_cid TYPE ty_cid.
  11.  
  12. DATA: gt_connections TYPE bc400_t_connections,
  13.       gs_connections LIKE LINE OF gt_connections.
  14.  
  15. TRY.
  16.     CALL METHOD cl_bc400_flightmodel=>get_connections
  17.       EXPORTING
  18.         iv_carrid      = pa_cid
  19.       IMPORTING
  20.         et_connections = gt_connections.
  21.   CATCH cx_bc400_no_data .
  22.     MESSAGE e004(zbc400_2).
  23.   CATCH cx_bc400_no_auth .
  24.     MESSAGE e005(zbc400_2).
  25. ENDTRY.
  26.  
  27. LOOP AT gt_connections INTO gs_connections.
  28.   WRITE: / gs_connections-carrid,
  29.          gs_connections-connid,
  30.          gs_connections-cityfrom,
  31.          gs_connections-airpfrom,
  32.          gs_connections-cityto,
  33.          gs_connections-airpto,
  34.          gs_connections-fltime,
  35.          gs_connections-deptime,
  36.          gs_connections-arrtime.
  37. ENDLOOP.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement