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: 

Uploading file in Background

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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