• 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
或打上“No error if no text exists”

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
  • 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.
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄