11-17-2010 7:07 AM
Hi All,
Iam running the report to read files from application server.Iam using function module "EPS2_GET_DIRECTORY_LISTING" to read files from application server folders. the program picking up the files in foreground but not picking up the files in background.it id giving the message "File Name or Path is invalid or Directory is empty".
it is working in quality in both the cases(foreground & background).Inthe production iam facing the above problem.
Could you please some one help me on this issue.
Regards,
Gollapudi
11-17-2010 7:53 AM
Please check Uppercase/Lowercase check box is selected, also ensure the path.
11-17-2010 8:00 AM
Hi,
Just check the Application Server details of the Background job in the Job Details through SM36. May be the servers might be different. Please check whether whether the Forground server name and Background job server name are same. You can get the Sever details from SM51 transaction for the login system.
Regards,
SRinivas
11-17-2010 8:28 AM
11-17-2010 8:25 AM
Like Srinivas says, check on what server (if you have multiple application servers) your job is running.
If the directory is on a specific server, you can force your job to run on that server when you define it in SM36.
11-17-2010 8:33 AM
Hi ,
i don't have authorization to run in background but when i run fore ground files are picking up.
our end user is submitting background .is there any authorization issues for that user?
Thanks
11-17-2010 8:44 AM
Check and comapre the authorization for AUTHORITY-CHECK OBJECT 'S_CTS_ADMI' ID 'CTS_ADMFCT'
User should have authority to this.
Regards
Munish garg
11-17-2010 11:12 AM
The function EPS2_GET_DIRECTORY_LISTING that you mention carries out an auth check. If you forward-navigate to where the checks are carried out, you will see that objects S_TRANSPRT and S_SYS_RWBO are checked depending on various conditions.
You need to either adjust the authorizations (or your security team) or you can replace function EPS2_GET_DIRECTORY_LISTING with a call to an external OS command (defined in SM49) to call either ls (on UNIX) or dir (on Windows).