Application Development 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: 

Back Ground not reading the files from application server

Former Member
0 Kudos

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

7 REPLIES 7

former_member225631
Active Contributor
0 Kudos

Please check Uppercase/Lowercase check box is selected, also ensure the path.

Former Member
0 Kudos

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

0 Kudos

hI ,

Only one server in production.

Thanks

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

Check and comapre the authorization for AUTHORITY-CHECK OBJECT 'S_CTS_ADMI' ID 'CTS_ADMFCT'

User should have authority to this.

Regards

Munish garg

0 Kudos

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).