Report Painter - Excel Download - Urgent

Dear All,
I have created a Report in Report Painter. How do I add an option for the user to export the file in xls. once it is executed? Where do I do this configuration?
Please do revert back at the earliest.
Regards
Dattatray

After execution of report from menu - Report -Export you can select the export formate spreed sheet and give Xl file name and select export only 
or
from menu -system-list-save-local file-then select spreed sheet
assign points if its useful

Similar Messages

  • Report with Report Painter including download to Application Server

    Hi all,
    i would like to create a report with the report painter which can be dowloaded to the application server. i have found under "report header" - "export parameters" - the button "export to application server", however there i am not able to specify the correct path and get the file downloaded.
    Thank you very much!
    Regards,
    Christoph Lill

    Hi,
    Code samples please .
    Thanks,Regards
    Natraj

  • Report painter problem very urgent

    Hi to ALL,
    I have prepared two reports of cost centre through report painter. The format is proper is both the reports. The set is also correct and values in set(i.e cost centres) are also properly
    but when we execute the report one report is being executed properly while other shows zero values. only when i doubleclick on zero amt and go to plan line items then it shows me values for that particular row in report.
    Why is it so? what is solution to it? can it be possible that my tables are not correct. Ia m using CCSS table.
    Pls this is very urgent
    Thanks in advance
    Tanuja

    Hi
    Can you check one thing...after selecting the zero you are getting the line item...chekc the total of that items...if it is coming zero..then no problem.
    If not you can check in the no.format of that report. If you select the lacs format and your amount is below ten thousand...you will get the zero value only
    VVR

  • ALV report to excel download

    Hi,
    In My ALV report, When I am going to download into excel, its working fine for some variants created for that report.
    But for some Variants , I am not getting the proper excel format.Meanns Some coulmns are not coming in sequence what i am getting in report.
    What may be the cause ?
    thanks
    kumar

    see this example:-
    REPORT z_down_xml LINE-SIZE 132 NO STANDARD PAGE HEADING.
    REPORT Z_DOWN_XML - Using an internal table (gt_marc)              *
    and downloading the report data as an xml file                     *
    The xml indentation is hard coded into the file                    *
    TABLES:
      makt,                                "Mat description
      marc,                                "Material / plant
      t001w,                               "plant name
      bhdgd.                               "Batch heading
    Internal tables
    DATA:
      BEGIN OF gt_marc OCCURS 0,
        werks LIKE marc-werks,
        matnr LIKE marc-matnr,
      END OF gt_marc,
    Table to be downloaded as xml. Each line stores start and end tags
    and the value
      BEGIN OF gt_xml OCCURS 0,
        line(120),
      END OF gt_xml,
      g_maktx(120).
    User-input
    SELECT-OPTIONS:
      s_werks FOR marc-werks,
      s_matnr FOR marc-matnr.
    START-OF-SELECTION.
    Extract all required data
      PERFORM main_processing.
    END-OF-SELECTION.
      SORT gt_marc BY werks matnr.
      LOOP AT gt_marc.
        AT FIRST.                          "First tag must be root
          CLEAR gt_xml.
          gt_xml-line = ''.
        APPEND gt_xml.
        CLEAR gt_xml.
    display data
        FORMAT COLOR 2 ON.
        WRITE :/ gt_marc-matnr, makt-maktx.
        FORMAT COLOR 2 OFF.
      ENDLOOP.
    The last tag must be the root closing tag --*
      gt_xml-line = '</LOCATIONS>'.
      APPEND gt_xml.
      CLEAR gt_xml.
      CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                filename = 'C:PLANT1.XML'
                filetype = 'ASC'
           TABLES
                data_tab = gt_xml.
    TOP-OF-PAGE.
      MOVE sy-title TO bhdgd-line1.
      MOVE sy-repid TO bhdgd-repid.
      MOVE sy-uname TO bhdgd-uname.
      MOVE sy-datum TO bhdgd-datum.
      MOVE '0' TO bhdgd-inifl.
      MOVE '132' TO bhdgd-lines.
      FORMAT INTENSIFIED ON COLOR COL_HEADING.
      PERFORM batch-heading(rsbtchh0).     "report header
    Form READ_PLANT
    FORM read_plant.
    Get plant name
      CLEAR t001w.
      SELECT SINGLE name1
        INTO t001w-name1
        FROM t001w
       WHERE werks EQ gt_marc-werks.
    ENDFORM.                               " READ_PLANT
    Form MAIN_PROCESSING
    FORM main_processing.
    Material and plant basic data
      SELECT werks matnr
        INTO TABLE gt_marc
        FROM marc
       WHERE werks IN s_werks
         AND matnr IN s_matnr.
    ENDFORM.                               " MAIN_PROCESSING
    Form READ_DESCRIPTION
    FORM read_description.
    Material name
      CLEAR g_maktx.
      SELECT SINGLE maktx
        INTO g_maktx
        FROM makt
       WHERE matnr EQ gt_marc-matnr
         AND spras EQ 'E'.
    Replace special character
      DO.
        REPLACE '&' WITH '*ù%;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '*ù%;' WITH '&amp;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '/' WITH '&#47;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
    ENDFORM.                               " READ_DESCRIPTION

  • Percentage Rows in Report painter .. Urgent Please

    Hi All,
    I have rows where I need to calculate percentages, Can you please advise how to calculate.
    Loong Hin Pang  - I have seen you answering one related query. Can you please help me out.
    Points for sure...
    Regards,
    Kiran.

    Thank you.
    See I have the below Rows
    Total Revenue
    Cost2
    Cost3
    Direct Cost
    Gross = Total revenue - Direct Cost
    Gross % = (Gross/Total revenue ) * 100
    I have Columns as with basic Key figures and Formulas
    Year(basic key Figure)
    Year+1(basic key Figure)
    Total = Year + (Year+1)
    Its giving me correct values in case of Basic Key figures and not in the formula case.
    It giving error when there is formula both in Row and Column.
    In the above case last row and last colum. Only Column formula is getting implemented.
    Here for example I have mentioned 4 rows and 4 columns.. But I have 15 Rows and 30 columns .. out of which 15 rows and columns have formulas...
    % Rows are problem.. which gives me errors... I tried using Special cells, but I am not 100% sure how to use them.
    I would be very thankful if you can help me out.. Please

  • Re: How to save/download the report in excel from Report painter.

    Dear Sapmates,
    I have created Cost element and Cost centere reports using report painter. Both the reports consists of nine coloumns. I would like to have the report in the excel. I tried the folliwng options :
    1. System -> List -> Save -> Local file
    2. Settings -> Options -> Microsoft Excel
    3. Print and then try to save using the spool request number using SP02.
    But neither of the ways worked to download or save the file in the excel format.
    Could anybody of you please help me out with this.
    Many thanks in advance.
    Best regards,
    Pabbi.

    After executing the report, select from the top menu:
    Report --> Export
    In the export to presentation server screen, select spreadsheet as the export format and enter the file location and name in the output file section. Then hit enter or click on the green check mark.
    another pop up box will show and this time click on continue.
    It will now create the output. check the output location you have entered before for the file.
    Hope this helps.
    Shail

  • Report Painter copy screen to excel 2007

    Hi
    starting point: Report Painter.
    we want to copy an area of a screen mask in excel 2007(Strg C  Strg V).
    The copy is not complete. column are different, grouping does not exist.
    In Excel 2000 i had no problem with this.
    Can anyone help me?
    kind regards
    Enno

    Hello,
    As explained by Andrew, you can please download the report painter report to excel. Then, you can do the manipulation you want in excel.
    I am sorry, still I am not able to understand your question clearly. Please give some more clarification with transaction codes and the activities that you are carrying out.
    Regards,
    Ravi

  • /TD is appearing in the HTM document when downloaded from Report painter

    Hi,
    We are facing the below issue when we are downloading the report painter report in HTM format.
    When I am downloading a report in HTM format (Web page or Excel) I see some special characters u201C/TD>u201D in the HTM download document. I am able to download this report in other clients and landscapes without any special characters.
    % Standard Cost of Sales     1.547      56.669  /TD>
    % Gross Margin     94.982      27.601 
    % Selling, Admin. & General     19.723      9.290  /TD>
    Thanks and Regards,
    Deepa

    Check the following notes helps you
    =>  Note 1460343 - RW: Unicode and export of report to file
    =>  Note 1522758 - RW: Unicode and export to application server
    thanks
    G. Lakshmipathi

  • Report Painter Program.. URGENT

    Hi All,
    Can you guys send me a sample program on Report Painter??? Its very urgent..
    Regards,
    Parvez.

    Hi,
    Check this -
    http://searchsap.techtarget.com/searchSAP/downloads/Teach_yourself_SAP_C20.pdf#search=%22CREATE%20REPORT%20USING%20SQVI%20%2C%20SAP%22
    Re: Interactive ALV
    Check Kishan's Reply.
    Cheers,
    Simha.
    Reward all the helpful answers..

  • Excel Download of a Web SAP BW Report asks userid and password.please help

    Dear BW folks,
    Issue: When I run a specific SAP BW Report from Web and download the same into excel & csv.
    When I open the excel file downloaded, it asks me user name and password to enter. csv file downloaded doesn't ask.
    The report has 0cust_sales hierarchy and SBU hierarchy.
    Is there any thing to do with these hierarchies that the excel download is asking user name and password?
    Please help me out!!!!! This report needs to be downloaded into excel sent to my manager.....
    Regards
    Pavan

    Hi Pavan
    It is possible,please refer the below link
    Report execution without prompting user id
    Providing un-secured access to a web report.
    Also, for the time being, you can run the query and save a workbook and sent across
    These will resolve the issue
    Thanks
    Pavan Agarwal

  • Help me to download my report in excel format.

    Here is my code below. On selection screen I am giving three inputs.
    And There are two radio buttons present on my selection screen.
    first one is for display the report.
    second button name is generate(to export the report).
    Clicking on the generate radio button will show the report.
    There should be a standard button on the toolbar called GENERATE.
    Clicking on that button will show a popup window asking to download the report either in .xls format or in .csv format.
    ==========================================================
    My report is being displayed perfectly.But not getting how to downlaod the report in excel and csv format. Would u plz guide me what should I write within the export_report function of my program so that I can download the report. Kindly guide.
    REPORT ZMYREPORT.
    TYPE-POOLS: SLIS.               
    TYPES: BEGIN OF t_afko,
           aufnr type aufnr,        
           gamng type gamng,        
           plnbez type matnr,
           END OF t_afko.
    TYPES: BEGIN OF t_mara,
           matnr TYPE matnr,
           mtart type mtart,         
           pstat type pstat_d,       
           END OF t_mara.
    TYPES: BEGIN OF t_output,
           aufnr type aufnr,              "Production order
           gamng type gamng,         "move number
           mtart type mtart,              "size/fit
           pstat type pstat_d,           "Variant
           quantity type meng8,        "Quantity
           barcode(35) type c,          "barcode
           END OF t_output.
                 INTERNAL TABLES, WORK AREAS AND VARIABLES                      
    *For work area.
    DATA:
          gwa_afko type t_afko,                          "work area for t_afko table
          gwa_mara type t_mara,                          "work area for t_mara table
          gwa_output type t_output,                      "work area for t_output table
          gwa_output1 type t_output,                     "second work area for t_output table
          gwa_fieldcat type slis_fieldcat_alv,           "work area for slis_fieldcat_alv
          gwa_top type slis_listheader,                  "work area for slis_listheader
          wa_variant type disvariant,                    "work area for variant
          wa_Variant1 type disvariant,                   "work area for variant
    *For internal tables.
    gi_afko TYPE STANDARD TABLE OF t_afko,                     
    gi_mara TYPE STANDARD TABLE OF t_mara,               
    gi_output TYPE STANDARD TABLE OF t_output,              
    gi_fieldcat TYPE STANDARD TABLE OF slis_fieldcat_alv,
    gi_top TYPE slis_t_listheader,                        
    gi_download TYPE TABLE OF t_download,
    *Variables for screen-input.
          v_aufnr like caufvd-aufnr,  "for production order
          v_txt04 like tj02t-txt04,   "for production order status
          v_plnbez like afko-plnbez.  "for article
    *For constants.
    CONSTANTS: quantity(1) type c value '1',
               lv_save(01) TYPE c VALUE 'A',
               c_csv TYPE char1 VALUE   '|'.
                           S E L E C TI O N     S C R E E N      *
    SELECTION-SCREEN:
    BEGIN OF block inputpath1 WITH FRAME TITLE TEXT-001.            
    SELECT-OPTIONS: s_aufnr for v_aufnr,                                                                               
    s_txt04 for v_txt04,                                                                               
    s_plnbez for v_plnbez.                                
    SELECTION-SCREEN: END OF block inputpath1.
    SELECTION-SCREEN:
    BEGIN OF block inputpath2 WITH FRAME TITLE TEXT-002.   
    PARAMETERS:   
    p_disp RADIOBUTTON GROUP rb DEFAULT'X',   "Button to display report           
    p_gen RADIOBUTTON GROUP rb.         "button for generate option
    SELECTION-SCREEN: END OF block inputpath2.
    SELECTION-SCREEN:
    BEGIN OF block inputpath3 WITH FRAME TITLE TEXT-003.   
    PARAMETERS:layout TYPE disvariant.                                      
    SELECTION-SCREEN: END OF block inputpath3.
                    I-N-I-T-I-A-L-I-Z-A-T-I-O-N                                   *
    INITIALIZATION.
      DATA: g_repid LIKE sy-repid,
            g_uname LIKE sy-uname.
      g_repid = sy-repid.
               AT SELECTION SCREEN                     *
    *Function module for variant.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR layout.
      wa_variant-username = g_uname.
      wa_variant-report = g_repid.
    *Display all existing variants
      DATA:  lv_exit(1) TYPE c.
    *Code for variant part.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant    = wa_variant
          i_save        = lv_save
        IMPORTING
          e_exit        = lv_exit
          es_variant    = wa_variant1
        EXCEPTIONS
          not_found     = 1
          program_error = 2
          OTHERS        = 3.
      IF sy-subrc <> 0.
        layout = wa_variant-variant.
      ELSE.
        IF lv_exit = space.
          layout = wa_variant1-variant.
        ENDIF.
      ENDIF.
                           MAIN PROGRAM                              *
    AT SELECTION-SCREEN .
    *For validating the user inputs on selection screen.
      PERFORM  validate_input.
                      START-OF-SELECTION                         *
    START-OF-SELECTION .
      SET PF-STATUS 'ZGUI1'.
      IF p_disp = 'X'.                         "If the display radio button is checked.
       perform zselection.                  "Data is fetched from tables.
      ENDIF.
                     END-OF-SELECTION                              *
    END-OF-SELECTION.
      IF p_disp = 'X'.
       PERFORM buildcat.
       PERFORM display_report.
      ELSEIF p_gen = 'X'.
        PERFORM display_report.
        PERFORM export_report.
      ENDIF.
    *&      Form  validate_input
    Checking input data validation on the display screen.           *
    form validate_input.
    *Local variables for input validation.
    DATA: lv_aufnr type aufnr,
          lv_txt04 type J_TXT04,
          lv_plnbez type matnr.
    IF s_aufnr[] is not initial.
      SELECT aufnr up to 1 rows
      FROM aufk
      INTO lv_aufnr
      WHERE aufnr IN s_aufnr.
      ENDSELECT.
      IF lv_aufnr IS INITIAL.
      MESSAGE e001(zmssg).
      ENDIF.
    ENDIF.
    IF s_txt04[] is not initial.
      SELECT txt04 up to 1 rows
      FROM TJ02T
      INTO lv_txt04
      WHERE txt04 IN s_txt04.
      ENDSELECT.
      IF lv_txt04 IS INITIAL.   "this depicts that if s_txt04 is initial.
      Message e002(zmssg).
      ENDIF.
    ENDIF.
    IF s_plnbez[] is not initial.
      SELECT plnbez up to 1 rows
      FROM afko
      INTO lv_plnbez
      WHERE plnbez IN s_plnbez.
      ENDSELECT.
      IF lv_plnbez IS INITIAL.   "this depicts that if s_plnbez is initial.
      Message e003(zmssg).
      ENDIF.
    ENDIF.
    endform.                    " validate_input
    *&      Form  zselection
          Fetches data                                           *
    form zselection .
    SELECT aufnr  "production order
           gamng  "move number
           plnbez
           FROM afko
           INTO TABLE gi_afko
           WHERE aufnr IN s_aufnr
           AND plnbez IN s_plnbez.
    SELECT matnr
           mtart        "size/fit
           pstat        "variant
           FROM mara
           INTO TABLE gi_mara
           WHERE matnr IN s_plnbez.
              Populating final data                                         *
    LOOP AT gi_afko INTO gwa_afko.
      READ TABLE gi_mara INTO gwa_mara with key matnr = gwa_afko-plnbez.
      IF sy-subrc IS INITIAL.
    *Moving t_mara and t_afko data from their work area to work area of t_output.
        MOVE   gwa_mara-mtart TO gwa_output-mtart.
        MOVE   gwa_mara-pstat TO gwa_output-pstat.
        MOVE  gwa_afko-aufnr TO gwa_output-aufnr.
        MOVE  gwa_afko-gamng TO gwa_output-gamng.
        APPEND gwa_output TO gi_output.
        ENDIF.
    ENDLOOP.
    *Populating the quantity field
      LOOP AT gi_output INTO gwa_output.
        gwa_output-quantity = '1'.
        MODIFY gi_output FROM gwa_output INDEX sy-tabix TRANSPORTING quantity.
    *Concategnating aufnr, pstat into barcode
        CONCATENATE gwa_output-aufnr gwa_output-pstat INTO gwa_output-barcode .
        MODIFY gi_output FROM gwa_output INDEX sy-tabix TRANSPORTING barcode.
      ENDLOOP.
    endform.                    " zselection
    *&      Form  buildcat
          text
    form buildcat.
      CLEAR gwa_fieldcat.
      gwa_fieldcat-fieldname = 'AUFNR'.
      gwa_fieldcat-seltext_l = 'PRODUCTION ORDER'.
      gwa_fieldcat-tabname = 'GI_OUTPUT'.
      gwa_fieldcat-emphasize = 'C201'.
      gwa_fieldcat-col_pos = 1.
      APPEND gwa_fieldcat TO gi_fieldcat.
      CLEAR gwa_fieldcat.
      gwa_fieldcat-fieldname = 'GAMNR'.
      gwa_fieldcat-seltext_l = 'MOVE NUMBER'.
      gwa_fieldcat-tabname = 'GI_OUTPUT'.
      gwa_fieldcat-emphasize = 'C201'.
      gwa_fieldcat-col_pos = 2.
      APPEND gwa_fieldcat TO gi_fieldcat.
      CLEAR gwa_fieldcat.
      gwa_fieldcat-fieldname = 'MTART'.
      gwa_fieldcat-seltext_l = 'SIZE/FIT'.
      gwa_fieldcat-tabname = 'GI_OUTPUT'.
      gwa_fieldcat-emphasize = 'C201'.
      gwa_fieldcat-col_pos = 3.
      APPEND gwa_fieldcat TO gi_fieldcat.
      CLEAR gwa_fieldcat.
      gwa_fieldcat-fieldname = 'PSTAT'.
      gwa_fieldcat-seltext_l = 'VARIANT'.
      gwa_fieldcat-tabname = 'GI_OUTPUT'.
      gwa_fieldcat-emphasize = 'C201'.
      gwa_fieldcat-col_pos = 4.
      APPEND gwa_fieldcat TO gi_fieldcat.
      CLEAR gwa_fieldcat.
      gwa_fieldcat-fieldname = 'QUANTITY'.
      gwa_fieldcat-seltext_l = 'QUANTITY'.
      gwa_fieldcat-tabname = 'GI_OUTPUT'.
      gwa_fieldcat-emphasize = 'C201'.
      gwa_fieldcat-col_pos = 5.
      APPEND gwa_fieldcat TO gi_fieldcat.
      CLEAR gwa_fieldcat.
      gwa_fieldcat-fieldname = 'BARCODE'.
      gwa_fieldcat-seltext_l = 'BARCODE'.
      gwa_fieldcat-tabname = 'GI_OUTPUT'.
      gwa_fieldcat-emphasize = 'C201'.
      gwa_fieldcat-col_pos = 6.
      APPEND gwa_fieldcat TO gi_fieldcat.
    endform.                    " buildcat
    *&      Form  top
          text
    FORM top .
    REFRESH gi_top.
    gwa_top-typ = 'H'.
    gwa_top-info = My alv report'.
    APPEND gwa_top TO gi_top.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        it_list_commentary       = gi_top
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
      I_ALV_FORM               =
    ENDFORM.                "top
    *&      Form  display_report
    form display_report .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
       I_INTERFACE_CHECK                 = ' '
       I_BYPASSING_BUFFER                = ' '
       I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = g_repid
       I_CALLBACK_PF_STATUS_SET          =  'PF-STATUS'
       I_CALLBACK_USER_COMMAND           = ' '
        I_CALLBACK_TOP_OF_PAGE            = 'TOP'
       I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
       I_CALLBACK_HTML_END_OF_LIST       = ' '
       I_STRUCTURE_NAME                  =
       I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      =
       I_GRID_SETTINGS                   =
       IS_LAYOUT                         =
        IT_FIELDCAT                       = gi_fieldcat
       IT_EXCLUDING                      =
       IT_SPECIAL_GROUPS                 =
       IT_SORT                           =
       IT_FILTER                         =
       IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
        I_SAVE                            = 'A'
        IS_VARIANT                        = wa_variant1
       IT_EVENTS                         =
       IT_EVENT_EXIT                     =
       IS_PRINT                          =
       IS_REPREP_ID                      =
       I_SCREEN_START_COLUMN             = 0
       I_SCREEN_START_LINE               = 0
       I_SCREEN_END_COLUMN               = 0
       I_SCREEN_END_LINE                 = 0
       I_HTML_HEIGHT_TOP                 = 0
       I_HTML_HEIGHT_END                 = 0
       IT_ALV_GRAPHICS                   =
       IT_HYPERLINK                      =
       IT_ADD_FIELDCAT                   =
       IT_EXCEPT_QINFO                   =
       IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
       E_EXIT_CAUSED_BY_CALLER           =
       ES_EXIT_CAUSED_BY_USER            =
       TABLES
         t_outtab                          = gi_output
      EXCEPTIONS
        PROGRAM_ERROR                     = 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.
    endform.                    " display_report
    *&      Form  export_report
          text
    form export_report.
    endform.

    Hi Cinthia,
    Check this Link.
    How Can we genarate Excel file without GUI_DOWNLOAD
    Reward points if useful.
    Regards,
    Abhishek

  • Download alv report in excel format in Linux

    Hi All,
    I am working on SAP GUI for Java in Linux PC. I have installed
    Open Office.
    After executing an alv report there is no spreadsheet option
    to download the report in excel format .
    Also, when doing Save as Local File -> Spreadsheet ,
    the report is not downloaded in proper format.
    So, how to download the alv reports in excel format ?

    Hi Vinod ,
    Save as Local File -> Spreadsheet
    It will ask for Directory and file name with .xls format . Give proper name e.g. test.xls and save, and after saving file right click on the file and click on Open with "OpenOffice.org calc".
    It will definetly work.
    Abhijeet

  • Error in XXL_FULL_API function module for download report to excel

    Hi all,
    I am using XXL_FULL_API function module for download report to excel, In this FM we have to fill a table called sema        = t_gxxlt_s. in this table we have a fields called
    i_sema-col_no  = 19.
      i_sema-col_src = 19.
      i_sema-col_typ = 'STR'.
      i_sema-col_ops = 'DFT'
    here in 'col_typ' if we put STR in excel it will come as a text but i wnat the time field what i have to pass ?
    and for filed 'col_ops' also ??
    Thaks,
    Sridhar

    Hi sridhar joshi,
    Please check this program
    REPORT Excel.
    TABLES:
      sflight.
    * header data................................
    DATA :
      header1 LIKE gxxlt_p-text VALUE 'Suresh',
      header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    * Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
            INCLUDE STRUCTURE sflight.
    DATA END   OF t_sflight.
    * Internal table for holding the horizontal key.
    DATA BEGIN OF  t_hkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_h.
    DATA END   OF t_hkey .
    * Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_v.
    DATA END   OF t_vkey .
    * Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
            INCLUDE STRUCTURE gxxlt_o.
    DATA END   OF t_online.
    * Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
            INCLUDE STRUCTURE gxxlt_p.
    DATA END   OF t_print.
    * Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
            INCLUDE STRUCTURE gxxlt_s.
    DATA END   OF t_sema.
    * Retreiving data from sflight.
    SELECT * FROM sflight
             INTO TABLE t_sflight.
    * Text which will be displayed online is declared here....
    t_online-line_no    = '1'.
    t_online-info_name  = 'Created by'.
    t_online-info_value = 'KODANDARAMI REDDY'.
    APPEND t_online.
    * Text which will be printed out..........................
    t_print-hf     = 'H'.
    t_print-lcr    = 'L'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the header'.
    APPEND t_print.
    t_print-hf     = 'F'.
    t_print-lcr    = 'C'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the footer'.
    APPEND t_print.
    * Defining the vertical key columns.......
    t_vkey-col_no   = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no   = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no   = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no   = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    * Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    * populating the SEMA data..........................
    t_sema-col_no  = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
      EXPORTING
    *   DATA_ENDING_AT          = 54
    *   DATA_STARTING_AT        = 5
       filename                = 'TESTFILE'
       header_1                = header1
       header_2                = header2
       no_dialog               = 'X'
       no_start                = ' '
        n_att_cols              = 6
        n_hrz_keys              = 1
        n_vrt_keys              = 4
       sema_type               = 'X'
    *   SO_TITLE                = ' '
      TABLES
        data                    = t_sflight
        hkey                    = t_hkey
        online_text             = t_online
        print_text              = t_print
        sema                    = t_sema
        vkey                    = t_vkey
    EXCEPTIONS
       cancelled_by_user       = 1
       data_too_big            = 2
       dim_mismatch_data       = 3
       dim_mismatch_sema       = 4
       dim_mismatch_vkey       = 5
       error_in_hkey           = 6
       error_in_sema           = 7
       file_open_error         = 8
       file_write_error        = 9
       inv_data_range          = 10
       inv_winsys              = 11
       inv_xxl                 = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    please refer this link
    http://www.thespot4sap.com/Articles/Download_to_excel.asp
    Best regards,
    raam

  • Problem while downloading a ALV report to excel

    Hi experts,
    I have an ALV report which took long time to extract records from various table. So while there is some restriction the report can be executed well in foreground. And the report can be extracted well to excel sheet. But while there is hudge records, i have to execute the report in backgroung. And then from spool i generally prefers to download the report to excel.
    There is a field UOM where it contains value ' " ' for some records. And also there may be possiblity that other fields can also contain the same.
    Now my problem is: while download to excel... When ever there is a value ' " ' from this point to the next value ' " '. It is treating as one record. and keep that in a same position in the excel sheet.
    But i want to keep all the values in there respective fields. Can you please how can i do that? Please give me some solution...
    regards,
    charles.

    If anybody have any solution please send me....

  • Very urgent --pls help Report Painter Problem,

    Hi to all,
    I have created  5 operating expenses report by cost centres through report painter. some for full period , some for actual and sone for budget.
    Under one set of that cost centre reports I have many subsets under which there are cost centre groups and then the cost centres.
    I want to add one more set to existing set. I have added the set and set contains one cost centre group and their are also cost centres under it.
    The table  which i am using for cost centre grous is GLT1 and field is RCNTR and for cost centres it is CCSS and KOSTL respectively.
    In the above procedure I have two queries.
    1)even after adding the set and when i try to execute the report from T- code SERP it doesnot show my created set in variation.
    2)Also even if it was showing the set earlier but report was showing zero values. When i clicked on zero amount a pop up arises for plan and actual values and when i clicked on plan values it had value of Rs 255000(for cost centres). then outside why this amount doesnot appears.
    PLS THIS IS VERY VERY URGENT
    Regards
    TANUJA

    I've just read this thread three times and I have absolutely no idea what you are doing, in what version, and what you are asking for help with.
    Do you want to change the message type? If you do you MUST drop the queue and start over again from the beginning.
    Do you want to enqueue messages?
    Post your DDL and other relevant information or you are on your own. We can not guess at your issue.

Maybe you are looking for

  • Logging a value of a Function at runtime

    Hello together, I has a Function that is called by 2 different programs over a SELECT statement. The Function returned a varchar2(50). As parameters the Function will hand over a NUMBER and SYSDATE. Both programs use the same start-up values. The one

  • Displaying Variables in Flash [AS]2 CS3

    Ok so I recently ran across an interesting problem. Not its not in the flash and it isnt in the coding. Actually to be honest I have no clue where the problem resides as I have never seen this before. Basically I have a Flash project I am working on

  • Tabale for Actual cost value for Process orders

    Hi Friends From which table can we retrive the actual values relates to process orderwise, like actual material consumption cost, activites cost, overhead cost and other costs.

  • IPhoto zeigt Bilder aus RAW Format (Nikon D5100) nur noch komplett schwarz an

    Hallo, beim Importieren über SD-Karte ist mir iPhoto vermehrt abgestürzt. Der Fehler tritt nur in Verbindung mit dem RAW-Format (Nikon D5100) auf. JPEG funktioniert tadellos. Falls der Import doch erfolgreich war (Anzahl der Bilder stark reduziert) s

  • ADR guidline

    I really like ADR's, save me lots of time however how should I handle an update that causes problems, if I remove it the ADR just brings it right back again. Case in point http://krebsonsecurity.com/2015/03/ms-update-3033929-causing-reboot-loop/#more