Listing 7.11  ZPTB00_MAP_BTA_SET  Geschftsvorfall annehmen und speichern
FUNCTION zptb00_map_bta_set.
*"----------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(I_STR_BTA) TYPE  ZPTB00_STR_BTA
*"  EXCEPTIONS
*"      FAILED
*"----------------------------------------------------

  CALL FUNCTION 'ZPTB00_API_BTA_SET'
    EXPORTING
      i_str_bta = i_str_bta
    EXCEPTIONS
      failed    = 1
      OTHERS    = 2.
  IF sy-subrc <> 0.
    RAISE failed.
  ENDIF.

ENDFUNCTION.