Advertisement
TorfTRY

Z_ZBC400_02_CONNECTION_GET

Mar 9th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.62 KB | None | 0 0
  1. FUNCTION z_zbc400_02_connection_get.
  2. *"----------------------------------------------------------------------
  3. *"*"Local Interface:
  4. *"  IMPORTING
  5. *"     REFERENCE(IV_CARRID) TYPE  BC400_S_CONNECTION-CARRID
  6. *"     REFERENCE(IV_CONNID) TYPE  BC400_S_CONNECTION-CONNID
  7. *"  EXPORTING
  8. *"     REFERENCE(ES_CONNECTION) TYPE  SPFLI
  9. *"  EXCEPTIONS
  10. *"      NO_DATA_FOUND
  11. *"----------------------------------------------------------------------
  12.   SELECT SINGLE * FROM spfli INTO CORRESPONDING FIELDS OF es_connection WHERE carrid = iv_carrid AND connid = iv_connid.
  13.   IF sy-subrc <> 0.
  14.     RAISE no_data_found.
  15.   ENDIF.
  16. ENDFUNCTION.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement