Application Development and Automation 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: 
Read only

System commands

Former Member
0 Likes
1,018

Hi.

Where can I look at all existing SAP system commands like


/n
/$sync
/$tab
/i

etc. ?

1 ACCEPTED SOLUTION
Read only

daixiong_jiang3
Active Participant
0 Likes
663

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
Read only

Former Member
0 Likes
663

Hi,

Check the table RSMPTEXTS

Regards,

Vikranth

Read only

Former Member
0 Likes
663

Hello

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

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

Read only

former_member194669
Active Contributor
0 Likes
663

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

Read only

daixiong_jiang3
Active Participant
0 Likes
664

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

Read only

Former Member
0 Likes
663

Hi ,

Use this table

RSMPTEXTS

Regards ,

Shankar GJ