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

URGENT

ashok_kumar24116
Contributor
0 Likes
658

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
620

his FM is obsolete. You could use the replacing FM

GUI_EXEC (This starts a File or Program Asynchronously with WinExec).

3 REPLIES 3
Read only

Former Member
0 Likes
621

his FM is obsolete. You could use the replacing FM

GUI_EXEC (This starts a File or Program Asynchronously with WinExec).

Read only

Former Member
0 Likes
620

Hi Ashok,

Try the Method EXECUTE of the class CL_GUI_FRONTEND_SERVICES.

Regards,

Samson.

Read only

Former Member
0 Likes
620

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