10-15-2013 11:43 PM
Hello experts,
For a customer image data are stored to an external server; the data should be checked for their existence. The data are stored in the following way:
\\sparnas01\retailbilder\JPG_big\9163.jpg
\\sparnas01\retailbilder\JPG_big\9333.jpg
\\sparnas01\retailbilder\JPG_big\9991.jpg
[…]
The file server \\sparnas01\ can be reached in the internal network.
Now a ABAP report needs to be developed which will be able to check the existence of such files.
I cannot use the SAP GUI Service to check the files, because the report will run in the background as job.
How can I access to these files to check the existence?
Thank you very much for your help in advance.
Best regards,
Kurt
10-16-2013 8:06 AM
Hi Kurt,
You can take help of ABAPer to use function RFC_REMOTE_FILE for working with files lying on network server. Also you need to map the network drive on your presentation server to get access locally.
You can refer a good document on this RFC function to be used in Background mode.
If this link does not work from here, you can paste it in browser and will open a PDF document.
Apart from this, there are some FTP function calls which helps in managing the files on network. You explore them as well.
I hope this will help.
Regards,
Amit
10-16-2013 8:47 AM
Hello, you can use fm EPS_GET_DIRECTORY_LISTING. you can pass the path in DIR_NAME and a mask. In the table DIR_LIST you get a list of all the files in the directory.