Dear Exparts,
We would like to rename a file on the windows application server, For testing purpose we have created a program ZOS_TEST, inside the program ZOS_TEST we simply call the FM ‘SXPG_COMMAND_EXECUTE’ to rename a file on the application server.
But every time we are getting the error “Can't exec external program (No such file or directory)” and “WaitForSingleObject failedwith %d (No such device or address)”
We have run the program through the ID “SAPBATCH” but still we are getting the same error.
We have also tried to execute the del command but here also we are getting the same error message.
When we call the FM ‘SXPG_COMMAND_EXECUTE’ we pass the input parameters as below:
Here “\\xyz.app.abc refers to the application server name
Test 1: Rename with “”
Results:
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such device or address)
Test 2: Rename with out “”
\\xyz.app.abc\interface_asc\Old_File1.txt old_new1.txt
Results:
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such device or address)
Test 3: For Deletion with “”
Results:
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such device or address)
Test 4: For Deletion with out “”
Results:
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such device or address)
Test 5: For Deletion on E:\
Results:
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such device or address)
Please help us to resolve the issue