Skip to Content

CL_GUI_FRONTEND_SERVICES=>execute pass parameter to the desktop application.


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


CALL METHOD cl_gui_frontend_services=>execute
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.



Add comment
10|10000 characters needed characters exceeded

  • Tashi,

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


  • 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.



  • Get RSS Feed

2 Answers

  • Jul 31, 2017 at 02:17 PM

    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.



    Add comment
    10|10000 characters needed characters exceeded

    • 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 ,


  • Jul 31, 2017 at 10:12 PM

    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)

    Add comment
    10|10000 characters needed characters exceeded