Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7185478
  • 博文数量: 655
  • 博客积分: 10264
  • 博客等级: 上将
  • 技术积分: 8278
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-04 17:47
个人简介

ABAP顾问

文章分类

全部博文(655)

文章存档

2017年(2)

2014年(8)

2013年(3)

2012年(2)

2011年(18)

2010年(102)

2009年(137)

2008年(274)

2007年(134)

分类:

2009-05-11 18:13:37

REPORT  Z_BARRY_TEST.

DATA STR TYPE STRING.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_USER_NAME
  CHANGING
    USER_NAME            = STR
  EXCEPTIONS
    CNTL_ERROR           = 1
    ERROR_NO_GUI         = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS               = 4.

CALL METHOD CL_GUI_CFW=>FLUSH
  EXCEPTIONS
    CNTL_SYSTEM_ERROR = 1
    CNTL_ERROR        = 2
    OTHERS            = 3.

WRITE STR.

注意:在执行CL_GUI_FRONTEND_SERVICES的一些方法后,比如GET****,注册表操作。。等,要加一个
CALL METHOD CL_GUI_CFW=>FLUSH .
 
 
常用GET***方法:
 
GET_CACHE_PROP Read Value of a Cache Property
GET_COMPUTER_NAME Get Computer Name
GET_DESKTOP_DIRECTORY Get Desktop Directory
GET_DRIVE_FREE_SPACE_MEGABYTE Returns Drive's Free Space in MB
GET_DRIVE_TYPE Get Drive Type
GET_FILE_SEPARATOR Get File Separator
GET_FREE_SPACE_FOR_DRIVE Returns Free Space on Drive
GET_GUI_PROPERTIES Returns Stream of GUI Properties
GET_GUI_VERSION Returns the Upload/Download Paths
GET_IP_ADDRESS Gets IP Address
GET_LF_FOR_DESTINATION_GUI Destinations' SAP GUI Line Feed
GET_PLATFORM Return Operating System Platform
GET_PROPERTY Get_Property
GET_PROPERTY_GUI_OBJECT GetProperty rc=GUI_OBJECT, You Can Check obj With 'IS_VALID'
GET_SAPGUI_DIRECTORY Gets GUI Start Directory
GET_SAPGUI_WORKDIR Returns ..\\Documents and Settings\DNR\SAPWorkdir (Example)
GET_SAPLOGON_ENCODING Return to saplogon Codepage
GET_SYSTEM_DIRECTORY Get System Directory
GET_TEMP_DIRECTORY Returns the Path to the TEMP Directory
GET_UPLOAD_DOWNLOAD_PATH returns the upload/download paths
GET_USER_NAME Get User Name
GET_WINDOWS_DIRECTORY Get Windows Directory

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

chinaunix网友2009-06-01 12:40:00

好像不能吧

chinaunix网友2009-05-30 14:29:20

老白,你好,请问以上可以取到域名旁的那个AD名吗.

xuzhangxuan12009-05-11 21:24:09

xiexie.看到了。拜读。