Application Development 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: 

Executing an External program from ABAP

Former Member
0 Kudos

Hi Friends,

Can we run a C program or any External program residing on different system from ABAP ?

Please let me know, its urgent.

Thanks,

Arshad

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Yes, I think we can run it from ABAP, provided if both are connected with a proper Interface

Reward points for useful Answers

Regards

Anji

4 REPLIES 4

Former Member
0 Kudos

Hi

Yes, I think we can run it from ABAP, provided if both are connected with a proper Interface

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Try using the function module below:

call function 'RFC_REMOTE_PIPE' destination 'SERVER_EXEC'

exporting

command = w_command

read = 'X'

tables

pipedata = it_ret

exceptions

inv_winsys = 1

no_batch = 2

selection_cancel = 3

selection_error = 4

others = 5

Former Member
0 Kudos

Hi,

You can use CL_GUI_FRONTEND_SERVICES->EXECUTE to start an external application from SAP.

Reward points if the answer is helpful.

Regards,

Mukul