08-28-2009 6:26 AM
Hi.
Where can I look at all existing SAP system commands like
/n
/$sync
/$tab
/i
etc. ?
08-28-2009 7:51 AM
System commands is implemented in VB SCRIPT.
There is a tool named "Script Recording and Playback" in the right side of the SAP GUI menu bar. when you run this tool and then input the '/n' command and save the script recording, you will get a '.vbs' file including the following code:
If Not IsObject(application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, "on"
WScript.ConnectObject application, "on"
End If
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").text = "/n"
session.findById("wnd[0]").sendVKey 0
08-28-2009 6:36 AM
08-28-2009 6:40 AM
08-28-2009 6:41 AM
I think system commands are handled by kernel of sap. please check thru google you can find few link related to docu of these.
08-28-2009 7:51 AM
System commands is implemented in VB SCRIPT.
There is a tool named "Script Recording and Playback" in the right side of the SAP GUI menu bar. when you run this tool and then input the '/n' command and save the script recording, you will get a '.vbs' file including the following code:
If Not IsObject(application) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set application = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(connection) Then
Set connection = application.Children(0)
End If
If Not IsObject(session) Then
Set session = connection.Children(0)
End If
If IsObject(WScript) Then
WScript.ConnectObject session, "on"
WScript.ConnectObject application, "on"
End If
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").text = "/n"
session.findById("wnd[0]").sendVKey 0
08-28-2009 8:06 AM