Skip to Content
avatar image
Former Member

Get files in directory in background execution

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Sep 30, 2008 at 10:01 AM

    You cannot use front end services in background.

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

    Regards

    MD

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 10:09 AM

    Hi,

    If it is background job use this FM

    RZL_READ_DIR

    Hope it will helps

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 01:04 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 07:43 PM

    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

    Add comment
    10|10000 characters needed characters exceeded