2006 Aug 07 8:41 AM
Hi Experts,
I have a VB Application(EXE) returning a value
I want to execute the application frm ABAP and get the return value
Now I am using WS_EXECUTE to execute the application but i am not able to capture the return
value. Can anyone suggest suitable procedures to execute an external application and get the return value
Are there any other Function modules that can do the job
Thanks in advance
Ak
2006 Aug 07 8:43 AM
his FM is obsolete. You could use the replacing FM
GUI_EXEC (This starts a File or Program Asynchronously with WinExec).
Hi Experts,
I have a VB Application(EXE) returning a value
I want to execute the application frm ABAP and get the return value
Now I am using WS_EXECUTE to execute the application but i am not able to capture the return
value. Can anyone suggest suitable procedures to execute an external application and get the return value
Are there any other Function modules that can do the job
Thanks in advance
Ak
2006 Aug 07 8:43 AM
his FM is obsolete. You could use the replacing FM
GUI_EXEC (This starts a File or Program Asynchronously with WinExec).
2006 Aug 09 12:20 PM
Hi Ashok,
Try the Method EXECUTE of the class CL_GUI_FRONTEND_SERVICES.
Regards,
Samson.
2006 Aug 09 12:41 PM
hi
Try calling the FM ITS_EXECUTE.
CALL FUNCTION 'ITS_EXECUTE'
EXPORTING
CD = DEFAULT_DIRECTORY
COMMANDLINE = NAME
INFORM = SYNCHRONOUS
* PROGRAM = ' '
* STAT = ' '
* WINID = ' '
* OSMAC_SCRIPT = ' '
* OSMAC_CREATOR = ' '
* WIN16_EXT = ' '
* EXEC_RC = ' '
IMPORTING
RBUFF = RETCODE
EXCEPTIONS
FRONTEND_ERROR = 1
PROG_NOT_FOUND = 2
GUI_REFUSE_EXECUTE = 3
OTHERS = 4.Regards,
Richa