Skip to Content
2

CL_GUI_FRONTEND_SERVICES=>execute pass parameter to the desktop application.

Jul 26, 2017 at 10:28 PM

202

avatar image
Former Member

Hi,

i have a requirement to open a .exe (.Net desktop application) and i currently using

CL_GUI_FRONTEND_SERVICES=>execute .

CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'WinForm.exe'
parameter ='C:\WinForm'

operation = 'OPEN'.

it opens up the application as expected. but now i need to pass some values like document number,date (transactional information) to this application.

let me know if anyone has done this before, i will be researching and trying on my own. if i get lucky, i will definitely share the steps.

regards,

Tashi

10 |10000 characters needed characters left characters exceeded

Tashi,

Did you explored the possibility of an RFC FM in SAP which will be invoked from .NET ?

K.Kiran.

0
Former Member

The application is a .EXE file and i am able to open the application using this standard method.

i cannot find any proper documentation for this class method and dont know if i can pass parameters(arguments) while i call the application.

This application was launched from legacy AS400 system using commandline and the parameters are passed along with the command line.

Let me know if i can do something similar. any opinion helps.

i have thought about an approach similar to RFC i.e webservice which the application can consume and populate the data. But that will be my last preference.

Regards,

Tashi

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jul 31, 2017 at 02:17 PM
0

Hi Tashi,

First try to execute the application along with parameters from command prompt.

Then try the same with execute method.

for example application = 'notepad.exe' parameters = 'C:\users\ravi\desktop\abc.txt'. This will open the abc.txt file in the notepad.

Hope this clarifies.

Regards,

Ravi

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you Ravi. i have no trouble opening the application but i need to pass some parameters to the application.

i am not sure how i can accomplish this requirement from ABAP. Please share your opinion.

Thanks ,

tashi

0
Ram Burugu Jul 31, 2017 at 10:12 PM
0

Might you can look at some Excel download functions which has more detailed level interactions with the applications beyond opening. I did a quick search and here is one of the post explaining steps to set parameters in Excel)

https://wiki.scn.sap.com/wiki/display/SI/OLE+concept+for+downloading+the+report+output+into+excel

Share
10 |10000 characters needed characters left characters exceeded