Chinaunix首页 | 论坛 | 博客
  • 博客访问: 72659
  • 博文数量: 56
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-11 10:09
个人简介

混混日子

文章分类

全部博文(56)

文章存档

2011年(1)

2008年(9)

2007年(3)

2006年(43)

我的朋友

分类:

2006-09-07 09:32:31

 
1.'TH_POPUP' 
system message
 
2.'TH_USER_LIST'
用户列表,可以取道每个user 在干吗..
 
3. 'BAPI_USER_GET_DETAIL'
举例说明
REPORT ZSM message-id za.
data: list like uinfo occurs 0 with header line.
data: mess like sm04dic-popupmsg.
parameters: p_mandt  like  sy-mandt default sy-mandt,
           p_user   like sy-uname,
           p_mess1(40),
           p_mess2(40),
           p_mess3(25),
           p_sender like sy-uname default sy-uname,
           p_time type i default '1'.

at selection-screen.
perform check.
start-of-selection.
concatenate p_sender 'test111' p_mess1
  p_mess2 p_mess3 into mess.
condense mess.
do p_time times.
   CALL function 'TH_POPUP'
        EXPORTING
             CLIENT  = p_mandt
             USER    = p_user
             MESSAGE = mess.
enddo.
FORM check.
CALL function 'TH_USER_LIST'
      TABLES
           LIST = list.
read table list with key bname = p_user mandt = p_mandt.
if sy-subrc <>  0.
   read table list with key bname = p_user.
   message e001 with 'the user not on this client, but in'
    list-mandt.
endif.
ENDFORM.                    " check
 
 
 
阅读(334) | 评论(2) | 转发(0) |
0

上一篇:加锁的方法

下一篇:日语常用语之问候片

给主人留下些什么吧!~~