没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论



















DEVELOPER GUIDE | PUBLIC
Document Version: 7.60 PL1 – 2019-03-28
SAP GUI Scripting API
© 2019 SAP SE or an SAP aliate company. All rights reserved.
THE BEST RUN

Content
1 SAP GUI Scripting API........................................................ 5
1.1 Requirements and Remarks......................................................7
1.2 Objects....................................................................8
GuiAbapEditor Object.......................................................16
GuiApoGrid Object.........................................................29
GuiApplication Object ......................................................37
GuiBarChart Object ........................................................47
GuiBox Object............................................................51
GuiButton Object..........................................................53
GuiCalendar Object ........................................................55
GuiChart Object...........................................................61
GuiCheckBox Object.......................................................65
GuiCollection Collection.....................................................68
GuiColorSelector Object.....................................................69
GuiComboBox Object ...................................................... 72
GuiComboBoxControl Object................................................. 75
GuiComboBoxEntry Object...................................................78
GuiComponent Object......................................................78
GuiComponentCollection Collection............................................ 79
GuiConnection Object...................................................... 81
GuiContainer Object .......................................................83
GuiContainerShell Object....................................................84
GuiContextMenu Object.....................................................87
GuiCTextField Object.......................................................88
GuiCustomControl Object ................................................... 91
GuiDialogShell Object...................................................... 93
GuiEAIViewer2D Object.....................................................96
GuiEAIViewer3D Object.....................................................98
GuiEnum Object..........................................................101
GuiFrameWindow Object....................................................101
GuiGOSShell Object.......................................................108
GuiGraphAdapt Object.....................................................110
GuiGridView Object........................................................113
GuiHTMLViewer Object.....................................................128
GuiInputFieldControl Object................................................. 132
GuiLabel Object..........................................................134
2
P U B L I C
SAP GUI Scripting API
Content

GuiMainWindow Object.....................................................141
GuiMap Object...........................................................147
GuiMenu Object..........................................................150
GuiMenubar Object........................................................151
GuiMessageWindow.......................................................153
GuiModalWindow Object....................................................155
GuiNetChart Object.......................................................158
GuiOceIntegration Object..................................................161
GuiOkCodeField Object.....................................................164
GuiPasswordField Object................................................... 166
GuiPicture Object.........................................................169
GuiRadioButton Object.....................................................173
GuiSapChart Object.......................................................177
GuiScrollbar Object....................................................... 179
GuiScrollContainer Object...................................................179
GuiSession Object........................................................ 181
GuiSessionInfo Object..................................................... 192
GuiShell Object.......................................................... 195
GuiSimpleContainer Object..................................................198
GuiSplit Object...........................................................201
GuiSplitterContainer Object .................................................204
GuiStage Object......................................................... 206
GuiStatusbar Object...................................................... 209
GuiStatusPane Object......................................................212
GuiTab Object........................................................... 213
GuiTableColumn Collection..................................................215
GuiTableControl Object.....................................................217
GuiTableRow Collection.....................................................221
GuiTabStrip Object........................................................223
GuiTextedit Object........................................................226
GuiTextField.............................................................231
GuiTitlebar Object ........................................................235
GuiToolbar Object........................................................ 237
GuiToolbarControl........................................................239
GuiTree Object...........................................................243
GuiUserArea Object.......................................................256
GuiUtils Object ..........................................................259
GuiVComponent Object....................................................262
GuiVContainer Object .....................................................267
GuiVHViewSwitch Object...................................................269
1.3 Events...................................................................272
SAP GUI Scripting API
Content
P U B L I C 3

Change Event - Additional Remarks............................................275
1.4 Enumerations..............................................................278
GuiComponentType.......................................................278
GuiErrorType............................................................279
GuiEventType............................................................281
GuiImageType...........................................................282
GuiMagicDispIDs.........................................................282
GuiMessageBoxOption.....................................................292
GuiMessageBoxResult.....................................................292
GuiMessageBoxType......................................................293
GuiScrollbarType.........................................................293
GuiTableSelectionType.....................................................294
2 SAP GUI Scripting ROT Entry Helper........................................... 295
2.1 SapGuiAuto Object..........................................................295
3 SAP GUI Scripting ROT Access Helper.......................................... 297
3.1 CSapROTWrapper Object..................................................... 297
4
P U B L I C
SAP GUI Scripting API
Content

1 SAP GUI Scripting API
Purpose
In SAP R/3 4.6C active elements ("controls") where introduced in SAP GUI and consumed by many
applications. Since existing automation approaches at that point of time where not able to handle controls and
therefore could no longer be used to automate user interaction with modern applications, SAP GUI Scripting
was created.
Examples of aected use cases are:
● Automatic testing of SAP functionality
● Customized front end applications replacing the SAP GUI
● Tools to customize applications on the SAP GUI level -> GuiXT
● E-Learning applications that guide a user through SAP transactions
Integration
Many of the available SAP GUI controls were designed exclusively with user interaction in mind. As their
business functionality is closely coupled with the user interface they cannot be instantiated outside the SAP
GUI in a batch-like fashion.
We therefore decided not to add the business functionality of the SAP GUI controls to a low-level integration
component. Instead the controls run within the SAP GUI, which itself exposes a new interface allowing the
automation of tasks.
Features
We developed an object model representing the SAP GUI at runtime as a hierarchy of objects. Most of these
expose an interface to an element of the user interface. These interfaces can be used to perform all the actions
a user could do with the given element. In addition we oer outgoing interfaces through which an external
application can receive notications about events occurring within the SAP GUI.
The SAP GUI Scripting API is available in SAP GUI for Windows and SAP GUI for Java. However, SAP GUI for
Java does not support the complete set of objects / methods / properties available in SAP GUI for Windows.
An example is the GuiOceIntegration object, which is only available in SAP GUI for Windows ("SAP Desktop
Oce Integration").
Available uses for the scripting component include
SAP GUI Scripting API
SAP GUI Scripting API
P U B L I C 5
剩余301页未读,继续阅读
资源评论


lzlhpdkk
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
