Downloading problem in classical report

Hello Experts,
I had made one Z classical report. The output of the report is absolutely perfect.
The problem is when I am downloading this file as spreadsheet or HTML formatt, then the Item level data is coming one column forward.
Like, suppose these are four columns of my report,then in excel sheet data is appearing as:
S.no          Ref no.                    date                  name
                   1                        900556               22/11/2011          ABC
                   2                        900567               22/11/2011          XYZ
But the data in output of the report is showing correctly.
How should I correct this.
Please help.
Edited by: shubh_ag on Nov 22, 2011 1:18 PM

Hi shubh,
Use concatenate and pass all the header data into one string. Use cl_abap_char_utilities=>horizontal_tab
In your case
Concatenate
u2018S.Nou2019  cl_abap_char_utilities=>horizontal_tab
u2018Ref NOu2019 cl_abap_char_utilities=>horizontal_tab
Into w_string
cl_abap_char_utilities=>newline
      into text.
For item data also use same procedure.
Structure-s.no  cl_abap_char_utilities=>horizontal_tab
Into text.
And use the below function
call function 'SCMS_STRING_TO_XSTRING'
    exporting
      text   = text
    importing
      buffer = xtext.  wdr_task=>client_window->client->attach_file_to_response(
**path to the word file
    i_filename = 'WDP.xls'
String Variable
    i_content =  xtext
File Type
    i_mime_type = 'EXCEL' ).
Thanks are Regards.
sivaram Patruni.

Similar Messages

  • Problem in classical report.

    Dear all,
    I am facing a problem with alignment in one classical report.
    Requirement is debit ,credit amount's sum will at end of every g/l as new line.
    Text will be closing balance - then amount.
    My amount & text is coming ,but not properly.
    All document will come & then closing balance will come as new line with ULINE.
    Code part is: -
    SORT it_bsas by hkont.
    LOOP AT it_bsas INTO wa_bsas.
    if wa_bsas-shkzg = 'H'.
        WA_OUT-DMBTR = WA_BSaS-DMBTR.
           WRITE : wa_out-dmbtr UNDER f LEFT-JUSTIFIED.
       lv_sum1 = lv_sum1 + wa_out-dmbtr.
        ELSEIF wa_bsas-shkzg = 'S'.
          WA_OUT-DMBTR1 = WA_BSaS-DMBTR.
             WRITE : wa_out-dmbtr1 UNDER g LEFT-JUSTIFIED.
            lv_sum2 = lv_sum2 + wa_out-dmbtr1.
        endif.
    at END OF hkont.
       ULINE at /93(50).
       WRITE : /93 'Closing balance' ,
                109 lv_sum1,
              127 lv_sum2.
       ULINE at /93(50).
       CLEAR lv_sum1.
       CLEAR lv_sum2.
    endat.
    Any help in this?

    Then use the same code as you are using to output dmbtr
           WRITE : lv_sum1 UNDER f LEFT-JUSTIFIED.
           WRITE : lv_sum2 UNDER g LEFT-JUSTIFIED.
    Would recommend using pre-sorted ALV with sub-total on these amount fields
    Regards

  • Footer problem in classical report

    Hi experts,
    I devloped a classical report but i want to display a footer deatail in all of my page.
    But in my last page it doesn't come......
    NOTE : i have reservered 12(2) line for each page. but total record is 100.
    Regards
    skmohanty

    Hi,
    I am hope this answer is very helpfull to u..
    Declare one variable like
    DATA: V.
    V =  sy-linct - sy-linno - 2.
    skip V.
    plz this code write after the endloop and before the end-of-selection
    Thanks&Regards
    Hari..

  • Download problems in ALV report in ECC 6.0

    Hello All,
    While downloading ALV report to excel/txt by standard method.(Export> Local File> Spreadsheet)
    I am facing an issue where I am getting 2 decimal places to a figure.
    Where I do not require zeros if not necessary.
    Eg. If the amnt is 200 then currently its showing like 200.00 but  I want it like 200 only.
    The type is char only.
    Kindly please advice me how to overcome this problem.
    Thanks,
    Yogesh.

    Hi Yogesh,
    ALV behaves inconsistent: I used excel inplace function and got exactly what you required, even worse: In the grid, I have always 3 decimal places, in excel I got a maximum of 2 decimal places, one if there was only one and none if in grid it was .000.
    No obvous solution.
    You could create the grid cells as strings and remove all trailing zeros.
    Regards,
    Clemens

  • Does Classic report provide facility to make report total to be hyperlink

    Hi ,
    Does Classic report in apex provide provision to make the report-total row editable(hyperlinked) ? if so how to implement that.
    Acq     WIP     Closed
    Abc     1     3
    Def     2     5
    report total :     3     8
    Also is it possible to provide more than 2 downloadable options for classic report :
    For eg: now i have provided options to export a report to csv and excel format, along with these two can i provide pdf option!!!!
    Thanks in advance

    You didn't mention what version of Apex you are using. If you are on 4.0, this can be done easily using dynamic actions.
    Here is an example http://apex.oracle.com/pls/apex/f?p=24317:92
    One DA that looks like this http://screencast.com/t/djyAG6F4WFM
    The first TRUE action (fire on page load) changes the cursor style to indicate that the row is clickable http://screencast.com/t/Z3YIXo6c
    The second one actually does the redirect http://screencast.com/t/jHMtyDwK8lM in the example it just shows an alert message but you can modify it to pass in whatever parameters you need and construct the location.href to redirect to.

  • Show / Hide DOWMLOAD link in classical report based on user rights

    Hi,
    using apex 4.1.
    How i can display or hide download link in classical report based on user rights .
    The User who has download rights ,can download the data from classical report Otherwise it should hide.
    I have passed the code in authorization scheme in shared component as named "VIEW"
    DECLARE
    VNAME VARCHAR2(1000);
    BEGIN
    SELECT PAGE_NAME INTO VNAME FROM APEX_APPLICATION_PAGES WHERE PAGE_ID = :APP_PAGE_ID AND APPLICATION_ID = :APP_ID;
    return GET_ADMIN_STATUS_VIEW_NEW(:APP_USER,VNAME);
    END;How i can call "VIEW'' name in download link.

    Right click on the export link, select copy url. Create a button with redirect to URL. Use that URL (or at least everything with and after f?p). Bind rights to the button.
    Or create a second identical report with different rights, give one export enabled and one disabled. The first is better, the second is easier :)
    Edited by: Joni Vandenberghe on 8-feb-2013 5:08

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

  • Formatting problem when downloading classical report output to excel sheet.

    Dear Experts,
    My classical report o/p looks like:
    SI    Name   ID
    1      xyz     11
    2      abc     22
    3      eet      33
    4      jnc      44
    When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
    The formatting looks like this:
    SI   Name   ID
    1     xyz               11
    2     abc               22
    3     eet                33
    4     inc                44
    That is the heading and column entries are in different columns.
    There is no GUI_Download used.
    Kindly help what may be the issue.

    Hi,
    In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue.

  • Download a classical Report output to excel

    Hi All,
    We have a requirement to download the output of a classical report into a Excel sheet and it should be in the same format as the report output.We don't  just want to dump the internal table data into excel but need to display the classical report outputas it is in the excel sheet.
    Regards,
    Ashish

    Hi there,
    I am not sure on your requirement, but if you want to write a program that manipulates Excel, you can choose to use OLE objects. Below is some sample code.
    REPORT  ZTEST_EXCEL.
    INCLUDE ole2incl.
    DATA: application TYPE ole2_object,
    workbook TYPE ole2_object,
    sheet TYPE ole2_object,
    cells TYPE ole2_object.
    CONSTANTS: row_max TYPE i VALUE 256.
    DATA index TYPE i.
    DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
    DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.
    *START-OF-SELECTION
    START-OF-SELECTION.
    APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,
    '=Sheet1!A1 & " " & Sheet2!A1' TO itab3,
    'John' TO itab1, 'Smith' TO itab2,
    '=Sheet1!A2 & " " & Sheet2!A2' TO itab3.
    CREATE OBJECT application 'excel.application'.
    SET PROPERTY OF application 'visible' = 1.
    CALL METHOD OF application 'Workbooks' = workbook.
    CALL METHOD OF workbook 'Add'.
    * Create first Excel Sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 1.
    CALL METHOD OF sheet 'Activate'.
    SET PROPERTY OF sheet 'Name' = 'Sheet1'.
    LOOP AT itab1.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab1-first_name.
    ENDLOOP.
    * Create second Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 2.
    SET PROPERTY OF sheet 'Name' = 'Sheet2'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab2.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab2-last_name.
    ENDLOOP.
    * Create third Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 3.
    SET PROPERTY OF sheet 'Name' = 'Sheet3'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab3.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Formula' = itab3-formula.
    SET PROPERTY OF cells 'Value' = itab3-formula.
    ENDLOOP.
    * Save excel speadsheet to particular filename
    CALL METHOD OF sheet 'SaveAs'
    EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
    #2 = 1. "fileFormat
    * Closes excel window, data is lost if not saved
    * SET PROPERTY OF application 'visible' = 0.
    Edited by: Thung Yuen Yap on Aug 10, 2010 1:52 PM

  • Problem in getting previous screen in Classic report.

    Hello everyone,
                          I am facing a serious problem in getting the previous screen in classical report.
    let me tell you in detail.
    When i run the report, i will have a selection screen with some checkboxes and select-options. Now in the report i have functionality to get some more select-options from user selection. Here i am calling the pop-up screen, wherein if user selects checkboxes, then those fields will be visible on the default selection screen.
    To display them i am using Modif-id concept. Depending on the checkbox values, i am setting up the variables. Using those variables i am modifying screen.
    Now suppose user has got some extra fields and run the report. It will get the output in the desired format.
    Now the problem is when i am pressing 'BACK' button on the report output. The fields which are appended using modif-id are getting cleared. After that what i have is only the default selection-screen.
    I want those fields to be restored. How do i go for it. Please help me out.
    thanks in advance.

    Hi thanks for reply.
                               Actually code is too big to post. But have you understood my problem. Some part of code ia am sending.
    AT SELECTION-SCREEN OUTPUT.
    IF SY-UCOMM <> 'ONLI' AND SY-UCOMM <> 'FLDS' AND SY-UCOMM <> 'OK' AND
    SY-DYNNR <> '0100' AND SY-UCOMM = ' '.
      LEAVE TO SCREEN 1000.
    ENDIF.
    Now i want to know, whether i could get bcak those fields which which are appended using Modif-id,
    how do i get the information about screen fiedls which was there after leaving the screen.
    Thanks.

  • Hidden Classic Report - With Download Links

    Hi All,
    I have a requirement.
    I am displaying certain user information through a form i.e with all the fields in the form as READ ONLY / DISLAY ONLY.
    I need a XLS/PDF download button allowing users to click and download the particular details on the page.
    I tried creating a CLASSIC REPORT.
    Made the template as "NO TEMPLATE"
    Gave "&nbsp" values to the headers
    and hide the columns.
    Although it is understood that if i hide/do not show the fields in the report, then the XLS report will be blank.
    Is there any other way of doing it ?
    Thank you,
    Srikumar S

    Hi,
    I tried the way you did it there.
    I am getting the following type of report:
    PAGE_ID     REGION_NAME     REGION_CSV_EXPORT_LINK
    16     Session Participants     f?p=103:16:11124720394425:FLOW_EXCEL_OUTPUT_R66413769667879139003_en
    16     Session Trainers     f?p=103:16:11124720394425:FLOW_EXCEL_OUTPUT_R66413836384202172172_en
    80     sfdsf     f?p=103:80:11124720394425:FLOW_EXCEL_OUTPUT_R3094310823067880_en
    The REGION_CSV_EXPORT_LINK is not enabled:
    I tried making it as a "Standard Report Column", but that didnt work.
    Can you tell me what am i missing.
    Thank you once again.
    Srikumar S

  • Classic Report Sort problem

    I have a classic report that retrieves data based on the value in an item. When the page first opens the report retrieves properly. However, the strange thing is when I try to sort the rows by pressing the column header, I receive "No Data Found".
    The report is just very basic. Selecting a few columns from a table where ID = :P3_ID.
    If I change the where clause to be WHERE ID like '%' || :P3_ID, when it initially retrieves, I receive the data for the value in P3_ID. However, when I sort the report by a column header, it retrieves everything. It is as if P3_ID has been set to NULL or a blank eventhough it displays the proper ID.
    Any ideas?
    Thanks,

    Hi Brian,
    see the following thread Interactive Reports: problem with textfield as parameter for an explanation
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

  • [Problem] Service Report - SAP EWA - Download Problem

    Hi Gurus
    I managed to create and activate EWA for Solman 4.0
    but I got problem with the result generated by Solman. Below is the quote from the EWA report
    Download Problem
    We were unable to perform a correct analysis because essential parts of the download data are missing.  This is most likely due to a problem with data collection or transfer.
    Recommendation: Check the log for this session in the Service Data Control Center (execute transaction SDCC or the new SDCCN in your system).  If an error is listed, perform the Service Preparation Check.
    Implementation: To perform the Service Preparation Check, execute transaction SDCC and choose Information -> Service prep. check, or if you are using SDCCN, create a new "Service Preparation Check" task.
    i've already run the service preparation check and follow all the recommendation.
    and from report RTCCTOOL, i didnt get any recommendation to follow
    can anyone help me with this ? thanks
    below is my Solution Manager component
    SAP_BASIS - 700 - 0011
    SAP_ABA - 700 - 0011
    PI_BASIS - 2005_1_700 - 0011
    ST-PI - 2005_1_700 - 0004
    ST - 400 - 0010
    ST-A/PI - 01K_CRM560 - 0000
    ST-ICO - 150_700 - 0007
    ST-SER - 700_2005_2 - 0002
    below is the satellite system (SAP server that i try to collect the data for EWA report) component
    SAP ECC 6.0
    SAP_BASIS - 700 - 0005
    SAP_ABA - 700 - 0005
    PI_BASIS - 2005_1_700 - 0005
    ST-PI - 2005_1_700 - 0001
    ST-A/PI - 01K_ECC600 - 0000
    SAP_BW - 700 - 0005
    SAP_AP - 700 - 0002

    Hi Didik,
    have you run RTCCTOOL in both systems (SolMan, ECC)?
    ST-A/PI level is OK
    ST-PI - 2005_1_700 is not on latest Support Package (SolMan, ECC).
    RTCCTOOL will check Support Package Level as well as the availability of important statistical data (for example Workload Statistics, tx ST03N).
    Which parts of the EWA do not contain data?
    Best regards,
    Ruediger
    Edited by: Ruediger Stoecker on Mar 19, 2008 8:00 AM

  • Classical report printout problem

    Hi
    Classical report printout is coming landscap while i want it to come in portrait.
    Any idea ???

    Mani
    Change Print Format through Properties Button on the Print Popup which comes when you press the Print Button..
    Thanks
    Amol Lohade

  • Classical report problem

    Dear abapers,
    I hav one classical report(basic report).
    In that i need FGDM as print in background shade in cross in A4 size paper
    in big letters, will it possible.
    can any body tell in clasical report can we increase font size.
    thanks in advance.
    Regards,
    Simha.

    Dear abapers,
    I hav one classical report(basic report).
    In that i need FGDM as print in background shade in cross in A4 size paper
    in big letters, will it possible.
    can any body tell in clasical report can we increase font size.
    thanks in advance.
    Regards,
    Simha.

Maybe you are looking for

  • Basic Help needed with Hyperion 9.3 Scheduling jobs

    Hi! Is there anyone who would be willing to help a novice understand the Scheduling features in Hyperion 9.3? We are converting from Brio 6.6 where we used the "Broadcast Server". We don't yet have many jobs - so I'm not migrating them. But, the docu

  • Sales invoice hitting cross company code transaction

    Hi, Material and customer maintaining in the same company code and sales order raised accordingly. but when we are trying to post delivery it is generating cross company code transactions. what are the possible reasons. sairavi

  • IPod Nano Grey Out Problem in iTunes??

    I purchased my iPod Shuffle last year. I installed iTunes in my Window PC and purchased music via the music store. A month ago, I purchased a iPod Nano, I added the iPod Nano to iTunes. iTunes will update my iPod Nano automatically when I connect it

  • Canon EOS 20D, iPhoto, and import

    To hook a Canon EOS 20D to iPhoto, you must set its communications mode to "PTP" Here's how: 1. Press the "Menu" button on the back of the camera. 2. Scroll down to "Communication" 3. Click the "Set" button. 4. Scroll to "PTP" (and not the default, "

  • PO Delivery adress

    Dear all In purchase order sometimes delivery address change, this address I maintain through t-code MEAN It is save in address group ME01, I want from which table, I pickup this address for PO output. Pls help Regards, Vipin