SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

File Access via ABAP-Report

Former Member
0 Kudos

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

2 REPLIES 2

amit_tunara
Active Contributor
0 Kudos

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.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2...

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

alejandro_mejias
Active Participant
0 Kudos

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.