Skip to Content
avatar image
Former Member

Uploading file in Background

Hi All,

I want to upload a text file in Background.

Please explain me how to save this text file on Application Server, so that I can upload it in the background.

Thanks,

Anitha

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 21, 2003 at 07:50 PM

    Hi Anitha

    Try something like this:

    Your data statements must look like this:

    data: g_mess

    g_dsn(60).

    data: begin of g_downlunix_tab occurs 0,

    unix(60),

    end of g_downlunix_tab.

    g_dsn = '/usr/sap/trans/R3/bin/trans/mydownload'.

    clear g_mess.

    open dataset g_dsn for output in text mode.

    if sy-subrc = 0.

    g_mess = 'X'.

    loop at g_downlunix_tab.

    transfer g_downlunix_tab-unix to g_dsn.

    endloop.

    endif.

    close dataset g_dsn.

    Hope that you can use it.

    Best regards

    Lars

    Add comment
    10|10000 characters needed characters exceeded