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

Download of report output layout to .TXT

Hello ,

Is there any FM to download the normal report output layout to .TXT with the layout design.

Thanks in advance.

Regards

Jai

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2009 at 01:06 PM

    how can the layput be stored in .TXT ? text file will only have ascii chars ... not the graphics..

    and to download as TXT , we have GUI_DOWNLOAD

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2009 at 01:10 PM

    Hi,

    Normally report out put means data is available in internal table, so use these links

    Download CSV file in presentation server through FM GUI_DOWNLOAD

    how-to-create-a-csv-file

    type-pools:TRUXS.
    data: begin of itab occurs 0,
          vbeln like vbap-vbeln,
          posnr like vbap-posnr,
          end of itab.
    data:  itab1 type TRUXS_T_TEXT_DATA.
      select vbeln
             posnr
             up to 10 rows
             from vbap
             into table itab.
     
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
     EXPORTING
       I_FIELD_SEPERATOR          = ','
      TABLES
        I_TAB_SAP_DATA             = itab
     CHANGING
       I_TAB_CONVERTED_DATA       =  itab1
     EXCEPTIONS
       CONVERSION_FAILED          = 1
       OTHERS                     = 2
              .
    IF SY-SUBRC  0.
     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
     
       CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = 'C:TEMPtest.TXT'
        TABLES
          data_tab = itab1
        EXCEPTIONS
          OTHERS   = 1.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2009 at 01:13 PM

    Hi,

    Its not possible to download layout as it contains graphics.

    However to download it to text format use method GUI_DOWNLOAD of CL_GUI_FRONTEND_SERVICES.

    Regards

    Abhii...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2009 at 01:20 PM

    Hi,

    You can download the report output without any coding as far as i think

    Follow these steps

    Menu->System>List->save..it will ask for the format

    Hope it helps You

    Thanks

    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.