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. 
  • 相关阅读:
    WPF DataGrid ListView等控件Binding LINQ数据源
    WPF自定义命令
    vb.net与FLASH的完美结合
    [音乐欣赏]鲍家街43号 汪峰 小鸟
    MSGRID的填充
    听!是谁在唱歌
    学习用的几个英文单词
    [学习日记]三层结构
    有关从文件完整路径中提取文件名的方法
    有关TABCONTROL选项卡的动态选择方法
  • 原文地址:https://www.cnblogs.com/ricoo/p/10169710.html
Copyright © 2011-2022 走看看