Skip to Content
author's profile photo Former Member
Former Member

ALV reports- list display

Hi,

I need to download a report and save it to a unix directory defined by a variant. Please help me out with this.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:02 AM

    Hello,

    Can you provide me some more information.

    Thanks,

    Sridhar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:05 AM

    Hi,

    In the ALV report there is a button on application toolbar to download the report.Select proper format and save it to the directory.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 09:06 AM

    Hi,

    *open a new file on the application server for output...

    OPEN DATASET APPPATH FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

    IF SY-SUBRC NE 0.

    WRITE: / 'There was an error opening the file in output mode:',

    ENDIF.

    *write data to file...

    TRANSFER ITAB TO APPPATH.

    *close file on application server...

    CLOSE DATASET APPPATH.

    Regards

    Adil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:13 AM

    Hi,

    check the link it will be usful for you.

    Uploading/Downloading ABAP programs to another SAP system

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:16 AM

    check this..

    for the unit directory use this..

    *-- Read the Values entered in the selection screen.

    CALL FUNCTION 'DYNP_VALUES_READ'

    EXPORTING

    dyname = sy-repid

    dynumb = sy-dynnr

    TABLES

    dynpfields = it_scrfields

    EXCEPTIONS

    invalid_abapworkarea = 1

    invalid_dynprofield = 2

    invalid_dynproname = 3

    invalid_dynpronummer = 4

    invalid_request = 5

    no_fielddescription = 6

    invalid_parameter = 7

    undefind_error = 8

    double_conversion = 9

    stepl_not_found = 10

    OTHERS = 11.

    IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    for writing the file use this...

    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

    if sy-subrc ne 0.

    message e368(00) with 'Error opening output file:' p_file.

    endif.

    LOOP AT it_final INTO wa_final .

    TRANSFER wa_final TO p_file .

    ENDLOOP.

    IF sy-subrc = 0.

    MESSAGE s043 WITH 'Data downloaded succesfully'(014).

    ENDIF.

    CLOSE DATASET p_file.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 09:17 AM

    Hi,

    You have an option to download the report to presentation server. Then using TCODE CG3Z upload the file to application server. Then you go with the following links.

    i think you can do this with FTP.

    Please go through the following links for FTP and UNIX & FTP.

    Here is an example of how to FTP a file from the Application server to a remote server using standard SAP functions.

    http://abap4.tripod.com/FTP_Using_SAP_Functions.html

    How to access UNIX .

    http://sapabapnotes.blogspot.com/search/label/Unix%20and%20FTP

    Hope this may help you.

    Thanks and regards.

    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.