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

Calling External Program

Former Member
0 Likes
757

Hi all,

I’m currently doing a program that will trigger an external batch (.bat) program. I’m using WS_EXECUTE function module to trigger the external program. I need to know that whether ABAP will wait until the external bat program run completed then only will go back to the calling program and execute the rest of the ABAP code; or the WS_EXECUTE will just trigger the external program then continue the rest of the code in ABAP.

Best regards,

Patrick

1 ACCEPTED SOLUTION
Read only

former_member202020
Participant
0 Likes
666

Hi Patrick,

sorry for late reply.

This FM is obsolete. You could use the replacing FM

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

regards,

Uma.

3 REPLIES 3
Read only

former_member202020
Participant
0 Likes
667

Hi Patrick,

sorry for late reply.

This FM is obsolete. You could use the replacing FM

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

regards,

Uma.

Read only

0 Likes
666

Hi Uma,

FYI, I've run a thorough test, it will run synchronously though it calls an external program.

I shall take note of the obsolete FM.

Many thanks,

Patrick

Read only

Former Member
0 Likes
666

Hi Patrick,

I guess you should be trying DSVAS_DOC_WS_EXECUTE_50 FM as FM WS_EXECUTE is flagged obsolete.... It should work fine to the best of my knowledge.... Please try it and let us know....

Regards,

Abhy