Header in excel output

Hi,
I'm trying to generate an output to excel spread sheet in oracle reports10g. I want to use different header instead of it is populating from the column name in sql query. The reason why i have bigger column names that i have need to show excel spread sheet.
ex :
select ename ,empid,bonus from emp;
the output will be
ename      empid     bonus10
Adams     2029     10
Scott     3030     20
But i want
Employee Name      Employee Id     Bonus %
Adams     2029     10
Scott     3030     20
Please help me on this.
Thanks & Regards,
Ramana.

I can think of 2 ways to possibly do this:
1. change your field name in your select:
Ex: select ename AS 'Employee Name' ,empid AS 'Employee #' ...
2. in the data model layout, right click 'ename', select Property Inspector, and then change the 'XML Tag' to be whatever you want it to say (Employee Name).
Hope this helps,
Terri-Lynn

Similar Messages

  • Addiing additional data in header of excel output  of alv excel dowload.

    Hi Experts,
    I want to set(print) some additional data in header(with table header) of excel output of alv standard functionality(Export to Microsoft Excel) in webdynpro abap.
    any suggesions...
    Reg,
    Rajesh.

    OLE is the solution but not very performance oriented. Search for details in SDN

  • Display header for excel output using FM GUI_DOWNLOAD

    Good morning experts,
                     I've been exporting my output in excel using the FM GUI_DOWNLOAD.  The problem is, my header is not displaying.  Kindly check what I've done wrong.  Below is how I declared my header.
    DATA: BEGIN OF header OCCURS 0,
            head1(15),
            head2(15),
          END OF header.
    *&      FORM USER_COMMAND
          COMMAND for ALV Grid Buttons
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    PERFORM write_header.
    CASE r_ucomm.
      WHEN 'XCEL'.
        CONCATENATE: 'C:\' fname sy-datum INTO fname.
        CONCATENATE: fname '.XLS' INTO FILENAME.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            FILENAME = FILENAME
            WRITE_FIELD_SEPARATOR = 'X'
          TABLES
            DATA_TAB = jtab
            FIELDNAMES = header
          EXCEPTIONS
            FILE_WRITE_ERROR        = 1
            NO_BATCH                = 2
            GUI_REFUSE_FILETRANSFER = 3
            INVALID_TYPE            = 4
            NO_AUTHORITY            = 5
            UNKNOWN_ERROR           = 6
            HEADER_NOT_ALLOWED      = 7
            SEPARATOR_NOT_ALLOWED   = 8
            FILESIZE_NOT_ALLOWED    = 9
            HEADER_TOO_LONG         = 10
            DP_ERROR_CREATE         = 11
            DP_ERROR_SEND           = 12
            DP_ERROR_WRITE          = 13
            UNKNOWN_DP_ERROR        = 14
            ACCESS_DENIED           = 15
            DP_OUT_OF_MEMORY        = 16
            DISK_FULL               = 17
            DP_TIMEOUT              = 18
            FILE_NOT_FOUND          = 19
            DATAPROVIDER_EXCEPTION = 20
            CONTROL_FLUSH_ERROR = 21
            OTHERS = 22.
          IF sy-subrc <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSEIF sy-subrc = 0.
            MESSAGE S000(38) WITH 'File ' fname 'saved in Drive C.'.
          ENDIF.
    ENDCASE.
    ENDFORM.
    *&      Form  write_header
          text
    -->  p1        text
    <--  p2        text
    FORM write_header.
    DATA: ctr(2) TYPE p.
    DO 6 TIMES.
      ADD 1 TO ctr.
      CASE ctr.
        WHEN 1. header-head1 = 'EMPLOYEE'.
                header-head2 = '   NO   '.
        WHEN 2. header-head1 = 'EMPLOYEE'.
                header-head2 = '  NAME  '.
        WHEN 3. header-head1 = 'LOAN'.
                header-head2 = 'TYPE'.
        WHEN 4. header-head1 = 'APPROVAL'.
                header-head2 = '  DATE  '.
        WHEN 5. header-head1 = 'LOAN'.
                header-head2 = 'CODE'.
        WHEN 6. header-head1 = '   MONTHLY  '.
                header-head2 = 'AMORTIZATION'.
      ENDCASE.
      APPEND header.
      CLEAR: header.
    Please help me.  All helpful advice will be rewarded points.  Thanks a lot.

    Follow this Example. You can do it in the below manner
    You need not add HEADER1 HEADER2 to the internal table. You can just declare one field like below and append all the header columns to the internal table HEADER
    data : begin of IT_HEADING occurs 0,
             TEXT(15),
           end of IT_HEADING.
        IT_HEADING-TEXT = 'Company Code'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'PO Number'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'PO Line Item'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'SO Number'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'SO Line Item'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'PO Quantity'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'PO Unit'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'PO Amount'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'PO Currency'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'Job Number'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'SO Quantity'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'SO Unit'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'SO Amount'.
        append IT_HEADING.
        IT_HEADING-TEXT = 'SO Currency'.
        append IT_HEADING.
        move P_FNAME to L_FNAME.
        call function 'GUI_DOWNLOAD'
          exporting
            FILENAME                = L_FNAME
            FILETYPE                = 'DAT'
          tables
            DATA_TAB                = IT_FINAL
            FIELDNAMES              = IT_HEADING
          exceptions
            FILE_WRITE_ERROR        = 1
            NO_BATCH                = 2
            GUI_REFUSE_FILETRANSFER = 3
            INVALID_TYPE            = 4
            NO_AUTHORITY            = 5
            UNKNOWN_ERROR           = 6
            HEADER_NOT_ALLOWED      = 7
            SEPARATOR_NOT_ALLOWED   = 8
            FILESIZE_NOT_ALLOWED    = 9
            HEADER_TOO_LONG         = 10
            DP_ERROR_CREATE         = 11
            DP_ERROR_SEND           = 12
            DP_ERROR_WRITE          = 13
            UNKNOWN_DP_ERROR        = 14
            ACCESS_DENIED           = 15
            DP_OUT_OF_MEMORY        = 16
            DISK_FULL               = 17
            DP_TIMEOUT              = 18
            FILE_NOT_FOUND          = 19
            DATAPROVIDER_EXCEPTION  = 20
            CONTROL_FLUSH_ERROR     = 21
            others                  = 22.
        if SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
    Regards
    Gopi

  • Bypass Header and Footer in Excel output

    I have a Requirement like this
    I need to have the report output in the below three formats
    PDF,EXCEL,HTML
    But when we see the ouput in EXcel it should not have the Footer and Header Scetion ,
    remaining two output formats (PDF,HTML) must have the Footer and Header Section.
    Any one having any idea about this issue.
    Thanks in Advance.
    Have a Nice day.

    Hi @BIPuser.
    I said the same thing to them but they said no that is final option but we need only single template for all the outputs alos it should handle the bypassing of header and footer for excel output.
    Thanks for your reply, If i come across anything i will let u know.

  • Excel Outputs with Header, page breaks, margins in EBS R12, 10.1.3.2 BI Pub

    Hi All,
    We have most of our report outputs as Excel.
    Our client is expecting a common format for outputs in excel, with header, margins, page breaks , page numbers
    And some of our reports has more than 70 columns
    Using RTF, we could not able to manage this. the header or page breaks are being overwritten when it generated the excel outputs.
    Please let me know how to achive this.
    Thanks in advance
    Edited by: DharV on Oct 15, 2012 8:44 PM

        Hi Rohit ,
    I had copied these .class & .xml files under Myclasses -> oracle.apps.icx and oracle.apps.po and oracle.apps.fnd was same which comes part of the standard OA tutorial.
    I copied same under Myprojects as well.
    you have to decompile the class file into java file and then place it in Myproject directory , also copy all dependency files like BC4J components , and then
    try to run from Jdeveloper .
    Alternatively you can get the entire ICX folder and zip it and add it via library .
    --Keerthi

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Thanks,
    Pragati
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,
    Pragati

  • Xml publisher excel output

    Hi.
    I have the rtf-template for xml-publisher report with excel output.
    There is the table there. I need format the table according appointed requirements (in output excel file). For example, width of the columns of the table must be fixed width. How I can define width of the columns with xsl language in rtf-template?
    [email protected]
    Best regards

    UP
    There is positive progress there.
    For example, I can change height of the heading row of the table by this way:
    <xsl:attribute name = "height" xdofo:ctx="block-container">40mm</xsl:attribute>.
    These xsl tags I put it in the text field of the rtf template between <?split-column-header:GROUP?> and <?VALUE?> tags (There are dinamic columns in the table).
    But <xsl:attribute name = "width" xdofo:ctx="block-container">40mm</xsl:attribute> tags work incorrect, not as I need (Some cells is spanned in the height and division of the text is by the word).
    May be I need some others tags? Or I need different object or property?
    I want to note that xml-publisher's tags <?split-column-width:@width?> and <?split-column-width:width?> are not working in excel output (or I use it incorrect).
    I am really need your help. How I can define exact width of dinamic columns?
    Thanks.

  • Excel Output is being displayed as HTML in the browser

    Hi All,
    I am using PeopleSoft XML Publisher 5.6.2 to generate an Excel report using RTF template. The report runs successfully.
    However, when I click the Output file link in the View Log page of process scheduler, the file is being displayed as a HTML page, though the extension of the file is .xls.
    Also when I try to save the file by using 'Save Taget as' option, the browser prompts me to save the file as 'mhtm' file and not 'xls' file.
    The following is an extract from the output file.
    <html>
    <!-- Generated by Oracle XML Publisher 5.6.2 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>IM Top 10 Surplus &amp; Deficit Locations</title>
    After doing some research on Internet, I found the following blog post(dated back in 2008) to describe my situation and a workaround to the problem.
    http://peoplesofttipster.com/2008/04/16/xls-xmlp-output-opening-in-browser-not-excel/
    http://peoplesofttipster.com/2008/04/18/xls-xmlp-output-opens-in-browser-workaround/
    Workaround described in the above blog post is to update the charset to us-ascii replacing UTF-8. This seems to work. But with limited file processing capabilities of peoplecode, this workaround is not a simple solution.
    I also verified the mime-type mapping in the web.xml file in the webserver. Please find below the .xls mime-type mapping in the web.xml file.
    <mime-mapping> <extension> xls </extension> <mime-type> application/vnd.ms-excel</mime-type></mime-mapping>
    Question:
    1.How do I force the browser to open the excel output file using either Excel plugin or Excel Application instead of displaying it as HTML page?
    2.If not the above, how can I force the system to promt the user to save the file as Excel file instead of mhtml?
    Additional details :
    work enivronment
    PeopleSoft FSCM 8.9
    PeopleTools 8.48.17
    Oracle 10g
    Windows NT
    Any help would be greatly appreciated.
    Thanks & Regards,
    Vamsi Krishna

    Please try this by Open windows explorer, Click Tools -> Folder Options ->,Click on File Types and Select XLS from the list, Click Advanced, select "Open" and Make sure the “Browse in same window” is not selected.
    Hope this helps,
    Ramesh

  • How to convert Abap output/excel output into pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Hi Younus Khan,
    sample code to load output to excel sheet.
    Use function module GUI_UPLOAD
    The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'C:\test.csv'
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = itab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17.
    or,
    U can use the FM
    SAP_CONVERT_TO_XLS_FORMAT
    to convert itab data to excel
    check this FM also
    GUI_DOWNLOAD
    And, for converting into xml format. I did it in ecc6.0
    *& Report ZTESTSDN
    REPORT ztestsdn.
    TABLES: vekp,
    likp,
    vbak.
    TYPE-POOLS: ixml.
    DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
    TYPES: BEGIN OF my_xml ,
    data(256) TYPE x,
    END OF my_xml.
    DATA: xml_table TYPE TABLE OF my_xml.
    DATA: l_xml_size TYPE i,
    ld_fullpath TYPE string.
    START-OF-SELECTION.
    SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR = ','
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    pe_bin_filesize = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    i_tab_converted_data = xml_table
    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
    bin_filesize = l_xml_size
    filename = 'C:\test.txt'
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_size
    TABLES
    data_tab = xml_table
    FIELDNAMES =
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can go use ADOBE AIR for developing the pie chart widget...
    kindly reward if found helpful.
    cheers,
    Hema.

  • Excel output in 5.6 version

    I run the concurrent report using the XMLP 5.6, and if the output is pdf , it's ok, but when I use the Excel as the output, the output is strange.
    The XMLP 5.6 is support native Excel output or not ?

    Actually, this is the top portion of what I'm getting in the output --
    <html>
    <! -- Generated by Oracle XML Publisher 5.6.1 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </body>
    </html>
    When I do Copy File on it, this is what I get -->
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Reference to undefined entity 'nbsp'. Error processing resource 'https://<server-name>/OA_CGI/FNDWRR.exe?temp_i...
    <td valign="top" class="c26"><p class="c10"><span class="c1">MB  IMPERIAL G W/LAN</span><...

  • Urgent - Want a excel output from reports

    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    null

    Hi,
    Change the Desforamt as Delimited and give the File name as file.xls and run the report
    you will get the Excel Output but the total will be pronted On RHS for every row.Hope this would help you to print the report in Excel File.
    Thanks,
    Vikki
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by aruna100:
    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    <HR></BLOCKQUOTE>
    null

  • XML Report - Excel output automatic cell expand

    Hi,
    I created a XML report with Excel output. It works fine but I have 35 columns in that report.
    When I open the excel file - columns are not expanded, user needs to expand it manually.
    But It should automatically expanded when the user opens the report. How can i do that?
    Thanks in advance.

    You need to create the rtf template with enough width for each column to render the output fully expanded when viewed from BI Publisher Desktop, which will look the same when run as a concurrent request. If you used the table wizard to create your excel layout, you can widen the columns in Word and paste/enter some spaces before or after each header field in the top row which will force the html rendering that XML Plublisher utilizes to widen the columns when creating Excel output. The fundamental disconnect here is XML Publisher is not rendering .xls or .csv output, but rather html that opens in Excel minus most Excel formatting. You might need to use a 22 inch landscape layout to fit all 35 columns after they are widened.

  • Hide column in Excel output?

    I have a .cfm file generating Excel output using CFContent.
    The client want to have certain data in a hidden column.
    I am already using XML to freeze the header and I tried
    hiding the column by using a <LeftColumnVisible> tag within
    the WorkSheetOptions (which is what Excel generates when you hide a
    column). But it doesn't come through in the CF output.
    Any suggestions?
    Ken

    Thanks. But "Exclude XML output" does not work dynamically. It cannot be set to "No" or "Yes" programmetically.
    What I would like is to provide my user a parameter "Show Column X? (Yes/No)". Based on user's choice, the Excel output should display or hide column X.
    Thanks for the response!

  • Generate Excel Output

    Hi All!
    I would very much appreciate if you could send me the code for generating Excel output.
    Thanks,
    Waqas
    [email protected]

    Hi,
    Here's the code for generating the excel output, you can write this in button press of form which calls the excel report.It automatically opens a new excel sheet , and then it executes the SQL query, after that each rows will get filled with the values.
    First of all you need to makeall the queries in the report in to a single query.
    declare
         application CLIENT_OLE2.obj_type;
         workbooks CLIENT_OLE2.obj_type;
         workbook CLIENT_OLE2.obj_type;
         worksheets CLIENT_OLE2.obj_type;
         worksheet CLIENT_OLE2.obj_type;
         cell CLIENT_OLE2.obj_type;
         args CLIENT_OLE2.list_type;
         rowcount integer;
         i integer;
         cursor c2 is select 1 from dual;
         cursor c1 is /* write your select query that fetches the required values */
    begin
    application := CLIENT_OLE2.create_obj('Excel.Application');
    CLIENT_OLE2.set_property(application,'Visible','True');
    workbooks := CLIENT_OLE2.get_obj_property (application,'Workbooks');
    workbook := CLIENT_OLE2.invoke_obj(workbooks,'Add');
    worksheets := CLIENT_OLE2.get_obj_property (workbook,'Worksheets');
    worksheet := CLIENT_OLE2.invoke_obj(worksheets,'Add');
    rowcount := 0;i:=1;
    for rec1 in c2 loop
    rowcount := rowcount + 1;
    -- For the headings
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,1);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value','Column 1 Heading');
    CLIENT_OLE2.release_obj(cell);
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,2);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value','Column2 Heading');
    CLIENT_OLE2.release_obj(cell);
    end loop;
    for rec1 in c1 loop
    rowcount := rowcount + 1;
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,1);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    CLIENT_OLE2.set_property(cell,'Value',rec1.field1);
    CLIENT_OLE2.release_obj(cell);
    /*null value may create problems,then use the if condition as follows*/
    args := CLIENT_OLE2.create_arglist;
    CLIENT_OLE2.add_arg(args,rowcount);
    CLIENT_OLE2.add_arg(args,14);
    cell := CLIENT_OLE2.get_obj_property(worksheet,'Cells',args);
    CLIENT_OLE2.destroy_arglist(args);
    IF rec1.field2 IS NOT NULL THEN
    CLIENT_OLE2.set_property(cell,'Value',rec1.field2);
    ELSE
         CLIENT_OLE2.set_property(cell,'Value',' ');
    END IF;
    CLIENT_OLE2.release_obj(cell);
    end loop;
    CLIENT_OLE2.release_obj(worksheet);
    CLIENT_OLE2.release_obj(worksheets);
    CLIENT_OLE2.release_obj(workbook);
    CLIENT_OLE2.release_obj(workbooks);
    CLIENT_OLE2.release_obj(application);
    EXCEPTION WHEN OTHERS THEN
         MESSAGE(SQLCODE||' - '||SQLERRM); MESSAGE(' ');
    end;
    Hope this helps .
    Regards,
    Nycy

  • Missing column data in Excel output

    I have a report where one object is not displaying when output to excel. When refreshing the report in Webi or Deski, the results show, but when it is exported to excel, that particular column is missing data...the column header still shows though. I have tried adding the formula =Trim([Object]) which worked once but is not working in this instance. Any ideas on what may be causing this and potential fixes?

    Hi,
    There are no merged columns. I made sure the table is flush to the top of the report. Also the column header is visible. See below. I highlighted the Summary column in webi to show the formula that had worked previously to alleviate this issue, but as you can see in the excel output, it is not working. Also, I made sure the formatting of that column is the same as the other columns.

Maybe you are looking for