Chinaunix首页 | 论坛 | 博客
  • 博客访问: 684483
  • 博文数量: 194
  • 博客积分: 7067
  • 博客等级: 少将
  • 技术积分: 2008
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-09 14:48
个人简介

我很好

文章分类

全部博文(194)

文章存档

2019年(1)

2018年(1)

2017年(3)

2015年(2)

2012年(2)

2011年(1)

2010年(27)

2009年(15)

2008年(142)

分类: WINDOWS

2008-04-19 11:03:37

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 'says:' 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
*---------------------------------------------------------------------
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

阅读(1124) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~