cancel
Showing results for 
Search instead for 
Did you mean: 

Call arbitrary SAP transaction from own C/C++ desktop app

Former Member
0 Kudos

Dear Community,

i want to call an arbitrary SAP transaction (for example SE38) from my own C/C++ desktop application.

After calling it the transaction should show up in on local desktop SAP GUI application. Additionaly i would like to provide the necessary parameters for the transaction (for example the report name for SE38).

Have you got a recommendation how to start transaction from a C/C++ applications?

What I'm lloking for is something that behaves like the SAPSHCUT.EXE program but can be called out my self developed C/C++ desktop application.

What i evaluated is:

1.) SAP GUI SCRIPTING is not the tool of choice because our system admin doen't allow scripting on the productive system.

2.) NWRFCAPI is great to call remote enabled function modules but not transactions.

3.) SAP GUI AUTOMATION is not supported by SAP anymore :-(.

Thanks for any help.

Regards,

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

fredrik_borlie
Contributor
0 Kudos

SAP Shortcuts should be the obvious choiche.

http://help.sap.com/saphelp_nw70/helpdata/en/2f/6d2e42e1ef5633e10000000a155106/frameset.htm

Basically a textfile called "filename.sap"

In the file there are commands on how to execute SAP functions.

[System]
Name=ECP
Description=ECC Production
Client=100
[User]
Name=USERNAME
Language=EN
[Function]
Title=ABAP Editor: Initial Screen
Command=SE38
[Configuration]
[Options]
Reuse=0

You should also be able to start a report:

Then you simply add the report name in the COMMAND field.

[Function]
Title=ABAP Editor: Initial Screen
Command=RSPARAM

It is also possible to add parameters to the call.

Good luck