码迷,mamicode.com
首页 > 其他好文 > 详细

Smartforms Error Handling

时间:2019-04-18 15:08:10      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:tput   tab   pop   using   header   not   cal   orm   other   

  • 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

标签:tput   tab   pop   using   header   not   cal   orm   other   

原文地址:https://www.cnblogs.com/aurora-cj/p/10729301.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!