Discussion:
executing an external system command from within a SAP interface
(zu alt für eine Antwort)
Andi McBurnie
2004-02-06 13:37:43 UTC
Permalink
Hi,

I am trying to find a code example for executing an external system command
from within a sap screen. Adding a button to the screen and calling an excel
spreadsheet from within the button click code.

Any help would be appreciated.

Andi
Andreas Plewe
2004-02-06 16:45:59 UTC
Permalink
[...] I am trying to find a code example for executing an external
system
command from within a sap screen. Adding a button to the screen and
calling an excel spreadsheet from within the button click code.
[...]

What about method CL_GUI_FRONTEND_SERVICES=>EXECUTE or obsolete
function module WS_EXECUTE to start a program on the presentation
server.

Example to open file EXCEL.XLS in folder c:\temp:

REPORT execute.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
APPLICATION = 'EXCEL'
PARAMETER = 'c:\temp\excel.xls'.

Regards
Andreas
Markus Humm
2004-02-06 18:25:40 UTC
Permalink
Post by Andi McBurnie
Hi,
I am trying to find a code example for executing an external system command
from within a sap screen. Adding a button to the screen and calling an excel
spreadsheet from within the button click code.
Any help would be appreciated.
Andi
You can start Excel even in your SAP GUI WIndow, if you're using 4.6+.
You'd use ABAP Opjects then and the office integration provided with it.

Greetings

Markus

Loading...