Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

System commands

Former Member
0 Kudos

Hi.

Where can I look at all existing SAP system commands like


/n
/$sync
/$tab
/i

etc. ?

1 ACCEPTED SOLUTION

daixiong_jiang3
Active Participant
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Hi,

Check the table RSMPTEXTS

Regards,

Vikranth

Former Member
0 Kudos

Hello

I not certain about all but about some you can read here:

http://abap4.tripod.com/OK_Code_Values.html

former_member194669
Active Contributor
0 Kudos

I think system commands are handled by kernel of sap. please check thru google you can find few link related to docu of these.

daixiong_jiang3
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hi ,

Use this table

RSMPTEXTS

Regards ,

Shankar GJ