Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.