//-Begin----------------------------------------------------------------
//-Directives---------------------------------------------------------
#AppType Console
#Option Strict
//-Includes-----------------------------------------------------------
#Include <Windows.inc>
//-Main---------------------------------------------------------------
Sub Main()
//-Variables------------------------------------------------------
Dim %SAPROTWrapper, %SapGuiAuto, %application, %connection
Dim %session
SAPROTWrapper = CreateObject("SapROTWr.SapROTWrapper", "")
If Not SAPROTWrapper Then
ExitProgram
End If
SapGuiAuto = GetValue("%o", SAPROTWrapper, ".GetROTEntry(%s)", _
"SAPGUI")
If Not SapGuiAuto Then
ExitProgram
End If
application = GetValue("%o", SapGuiAuto, ".GetScriptingEngine")
If Not application Then
ExitProgram
End If
connection = GetValue("%o", application, ".Children(%d)", 0)
If Not connection Then
ExitProgram
End If
session = GetValue("%o", connection, ".Children(%d)", 0)
If Not session Then
ExitProgram
End If
PutValue(session, ".findById(%s).text = %s", _
"wnd[0]/usr/txtRSYST-MANDT", "001")
PutValue(session, ".findById(%s).text = %s", _
"wnd[0]/usr/txtRSYST-BNAME", "BCUSER")
PutValue(session, ".findById(%s).text = %s", _
"wnd[0]/usr/pwdRSYST-BCODE", "minisap")
PutValue(session, ".findById(%s).text = %s", _
"wnd[0]/usr/txtRSYST-LANGU", "EN")
CallMethod(session, ".findById(%s).sendVKey %d", _
"wnd[0]", 0)
ReleaseObject(SAPROTWrapper)
End Sub
//-End------------------------------------------------------------------You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 54 | |
| 33 | |
| 23 | |
| 21 | |
| 19 | |
| 16 | |
| 15 | |
| 15 | |
| 14 | |
| 10 |