zoukankan      html  css  js  c++  java
  • ABAP-消息发布

    FUNCTION ZSDI0009_DO_INFOMESSAGE.
    *"----------------------------------------------------------------------
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(I_MESSAGE) TYPE  SM04DIC-POPUPMSG
    *"  TABLES
    *"      USTB STRUCTURE  ZSDS018_DO_MSGUSER
    *"----------------------------------------------------------------------
    
    data:zlist like standard table of  uinfo with header line,
         zusrlist  like standard table of usrinfo with header line.
    
    call function 'TH_USER_LIST'
      tables
        list          = zlist
        usrlist       = zusrlist .
    
    loop at ustb.
      read table zusrlist with key mandt = ustb-mandt bname = ustb-uname.
      if sy-subrc = 0.
         call function 'TH_POPUP'
           exporting
             client               = ustb-mandt
             user                 = ustb-uname
             message              = i_message
    *        message_len          = 0
    *        cut_blanks           = ' '
           exceptions
             user_not_found       1
             others               2 .
         if sy-subrc <> 0.
    *      implement suitable error handling here
         endif.
      endif.
      clear:ustb,zusrlist.
    endloop.
    
    ENDFUNCTION. 
  • 相关阅读:
    Linux中搭建Maven私服
    NIO类库
    JAVA网络通信IO-NIO-AIO-Netty
    栈和队列
    JAVA四类八种基本数据类型
    JAVA基础—线程池
    vue 数组push元素 视图没更新
    小程序♥云开发
    vue2.0 transition 手风琴
    element-ui 表格翻页多选后仍然记忆所选项,数据回显
  • 原文地址:https://www.cnblogs.com/ricoo/p/10169710.html
Copyright © 2011-2022 走看看