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: 

Get files in directory in background execution

Former Member
0 Kudos

Hi,

My program allows to have input a directory and a filter to retrieve files. In an normal execution, I used Frontend Services but in background that don't work. What must I use get files in a background execution?

4 REPLIES 4

Former Member
0 Kudos

You cannot use front end services in background.

You need to open dataset statement, which will download data to application server

Regards

MD

Former Member
0 Kudos

Hi,

If it is background job use this FM

RZL_READ_DIR

Hope it will helps

Former Member
0 Kudos

I must retrieve files which are on a network server, not on SAP Server. Your function search files on SAP Server... I want realize exactly that the directory_list_files method do.

uwe_schieferstein
Active Contributor
0 Kudos

Hello Xavier

You may have a look at [Communication to Presentation Server in Background Mode|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2]

Regards

Uwe