cancel
Showing results for 
Search instead for 
Did you mean: 

Execute External OS Command

Former Member
0 Kudos

Hi Gurus,

Im trying to execute a OS Command inside the file adapter.

Its a .exe file which I have written. The exe file will take in 2 parameters.

I entered this in the OS Command

F:\test\run.exe test.xml output.txt

However, it seems that the command is not be executed. Am I missing anything?

Thanks in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member192295
Active Contributor
0 Kudos

HI,

Exe file will work put some time delay in function or check with basis people weather you have rights to execute exe file or not. If problem is same after above checks choose batch command .

Former Member
0 Kudos

Hi,

Refer these blogs:

http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

Its is better you write the code in the batch file (.bat) and call the batch file at runtime rather than using .exe file

Regards,

Nithiyanandam

Former Member
0 Kudos

Hi,

Try the way what Swarup advised,

If you still have other requirements with Operating System command execution then plz go through the

SAP Note: 841704 OS Operating System Command.

Best Regards

Praveen

Former Member
0 Kudos

HI,

Instead of writting this to execute the exe. file. You can write same code in one .bat file and just call that bat file from OS commad parameter. It will work.

Thanks

swarup