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

Executing an External program from ABAP

Former Member
0 Likes
1,127

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
Read only

Former Member
0 Likes
738

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
Read only

Former Member
0 Likes
739

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

Read only

Former Member
0 Likes
738

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

Read only

Former Member
0 Likes
738

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