Smartforms Error Handling

Posted aurora-cj

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Smartforms Error Handling相关的知识,希望对你有一定的参考价值。

  • Include text

Populate indicator in program

perform get_text using '0002' ls_detail-vbeln"Header note 1 2019.04.15
                  changing ls_header-header_note.

set indicatorin Conditions as "GS_HEADER-HEADER_NOTE <> ‘‘",display the long text only when the it is not null

  • Error Handling
call function wf_name
    exporting
      user_settings      = ''
      id_header          = vl_buffid1
      id_detail          = vl_buffid2
      id_detail2         = vl_buffid3
      control_parameters = lwa_control
      output_options     = lwa_options
    exceptions
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 4
      others             = 5.

  if sy-subrc <> 0.
    data lt_errortab type tsferror.
    field-symbols: <fs_errortab>  type line of tsferror.
    call function 'SSF_READ_ERRORS'
      importing
        errortab = lt_errortab.
    loop at lt_errortab assigning <fs_errortab>.
      call function 'NAST_PROTOCOL_UPDATE'
        exporting
          msg_arbgb = <fs_errortab>-msgid
          msg_nr    = <fs_errortab>-msgno
          msg_ty    = <fs_errortab>-msgty
          msg_v1    = <fs_errortab>-msgv1
          msg_v2    = <fs_errortab>-msgv2
          msg_v3    = <fs_errortab>-msgv3
          msg_v4    = <fs_errortab>-msgv4
        exceptions
          others    = 1.
    endloop.
 endif.

以上是关于Smartforms Error Handling的主要内容,如果未能解决你的问题,请参考以下文章

[RxJS] Error Handling in RxJS

spring boot error handling

Error Handling and Exception

Error Handling

Error Handling - 错误处理

[RxJS] Error handling operator: catch