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

Open file with pc default program

Former Member
0 Likes
3,923

Hi Experts

i'm writing a report which should open file with the default pc program..

For expamle:

pdf file shoulds be open with adobe reader, if it's a solidworks extension with solidworks, if cad with cad and so on.... but in the pc and not in sap gui. any help?any suggestions?

Thanks

Marco

6 REPLIES 6
Read only

former_member226519
Active Contributor
0 Likes
2,229

did you try external OS command?

transaction SM69

Read only

Jelena_Perfiljeva
Active Contributor
2,229

To add to Volker's answer - when you open a file on PC, you are actually using a feature of the OS. So this task is not really "open a file" but rather "execute an external program".

Google search for "ABAP open external program site:sap.com" should provide enough food for thought and for further investigation.

Read only

Sandra_Rossi
Active Contributor
2,229

To help you search, the following method opens a file with the default application (I let you find complete answers on the web):

CALL METHOD cl_abap_frontend_services=>execute EXPORTING operation = 'OPEN' ...
Read only

0 Likes
2,229

Spoiler alert! This method was mentioned in one of the top Google finds after using the keywords in my answer. 🙂

Read only

2,229

I know, but I found that the current answers were a little bit misleading, as they erroneously tend to SM49/SM69 because of the words ("external program".

Read only

0 Likes
2,229

Agreed. The general keywords bring up all kinds of information, some may not be relevant.