I have created a FM that is executing the unix script using RFC_REMOTE_PIPE, the script will look for a file for certain time and specified retry times and if it does not find the file then it will wait or fail.
e.g. 3 30 filename
the script will try to find file if it does not find it will wait for 30 seconds and still it does not then again 30 sec and still the file is not there it will fail. What I want to know is while it is in wait mode the SAP job is immediately failing , how can I make my ABAP code to wait till the script is over?