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

to execute external command using RFC_REMOTE_exec

Former Member
0 Likes
593

Hi

i want to execute the ext command using RFC_REMOTE_EXEC .

i have used like below in WINDOWS XP:

data: v_cmnd(120) type C VALUE 'dir C:\SAP\rfcsdk\bin >RFEXEC -D ESM_R'.

call function 'RFC_REMOTE_EXEC' destination D_DESTI
exporting
command = v_cmnd
exceptions
system_failure = 1 message D_ERMSG
communication_failure = 2 message D_ERMSG.

manually at command line the program getting registerd but

not throuergh RFC_REMOTE_EXEC

in v_cmnd what is the exact value we have to give

Regards

1 REPLY 1
Read only

Former Member
0 Likes
458

you create the command in SM69 with some name and Directly give the Same name when you are executing.

Check this Function also.

SXPG_COMMAND_EXECUTE