Output query in excel template

hi,
just want some advice on how should i do this thing...
i have an excel template with this format
http://2.bp.blogspot.com/_Bm41qk00otI/SLYA5Md5j7I/AAAAAAAAAB8/GK0Y2PW-5JI/s1600-h/excel_x. bmp
sheet name : studentlist
row header 1 : no
row header 2 : studentno
row header 3 : name
i have a query like this
<cfquery name="studentlist" datasources="mydb">
select studentno, name from student
</cfquery>
my task is, i want to output the studentlist recordset to the
excel template in that StudentList worksheet and write to that
excel starting from row number 6.
how do i do that?
using cffile and append? i have try it and successfully if
using new workbook and new sheet not updating an excel and
predefined sheet.
thanks for the suggestion guys...
haire

hi
am using the following query in data set
select LTRIM(RTRIM(to_char(ABS(895624756),'999999990.990'))) as UNITS FROM dual
when i give space before value in RTF template.
space is getting reflected in output also
we are generating the output as excel and send to banks.
Banks are doing the upload process, so am not aware about that.
The goal is without touching the output have to send the file to banks.
Thanks,

Similar Messages

  • Report output in MS Excel template

    Hello all!
    I should write a program to display reports APAP output in specific MS Excel template. I read that you can do using BDS.
    There are other ways to do this? What is the most elegant way?
    Thanks in advance!
    Serena

    It can be done with OLE or BDS.......
    If you need a lot of formatting in your template like colours and borders etc then go for BDS as in case of OLE you need to code each and every property.
    Check my wiki on the same....
    http://wiki.sdn.sap.com/wiki/display/ABAP/HandlingDatainExcelIn-placeDisplayUsing+BDS

  • Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher

    Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.

    I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level.  So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly).  I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3.  If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query.  I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.

  • Created Excel Template XSL, but XML output always open IE (not Excel)

    Hello,
    We are using :
    -     XML Publisher : 10.1.3.4.1
    -     Oracle Appli : 11.5.10.2 ( DB : 10.2.0.4.0)
    - Oracle Reports Builder : 10.1.2.0.2
    We use Reports for building the query that is used with XML Publisher.
    We would like to use XML Publisher with an output Excel.
    After noticing a problem with display of numeric cells when using a RTF template ( decimal places, there's a lot of threads on this), we decided to follow an advice on xlspe.com, and we created a Excel template, that we saved as a XML Spreadsheet, and using the xlspe tools, we generated the XSL file.
    Then we defined everything in Oracle Applications EBS:
    - data definition
    - template ( XSL-XML as input, and XML as output. Note that XML is the only option)
    - executable ( execution method "Oracle Reports" )
    - program request : ( output format XML )
    This works fine when the use a RTF template with an output Excel. (except the issue on the decimal places). in the concurrrent requests form, the output button opens Excel correctly.
    When we go with a XSL template, with an output XML, the output generation works fine, but, in the concurrent requests form, the output button opens internet explorer IE instead of Excel (probably because it's a XML output file)
    I hope my explanation is clear.
    Did I make a mistake in the definition ?
    Is there anyone who has experienced and solved this issue ?
    Thanks a lot in advance,
    Olivier

    Hello,
    After many talks, I found out how to fix this issue.
    Basically, the issue is in Oracle Application where the MIME type is not defined for XML Excel type files.
    By default, XML is open with the browser.
    For solving the opening of XML Excel files with Excel (and not Internet Explorer IE), we had to add under the "System Admin > install > Viewer Options " a new entry for " XML - application/xnd.ms-excel - Microsoft Excel "
    And also, under the System profiles, for option "Viewer: Application for XML", set the value to Microsoft Excel, and, as well, for option "Viewer: Application : Text", set the value to Browser.
    This resolves the issue, and a XML Excel file generated by XML Publisher (from a XSL-XML template), is opened directly with Excel.
    Thanks for your contributrion,
    Olivier

  • Issue with Saving the Query output data in Excel format

    Hi,
    Recnetly we had upgraded from 4.6c to ECC 6.0.
    In ECc 6.0 environment, when user try to export the query output , we are getting only XML option to save the data.
    But user want to save the data in EXcel format, he was able to do that in 4.6C.
    pleas eprovide some inputs, on this issue.
    Thanks,
    Sanketh.

    I cannot for the life of me imagine, why a link to a post in the 'Business One Forum' where one uses ODBC to transfer query-data to MicroSoft Excel is of relevance to the OPs question, even if the same is not a security issue.
    Never mind. [note 40155|https://service.sap.com/sap/support/notes/402155] deals with various symptoms in the ALV-Excel combination as as of release 4.6C. There are various others, mostly in components BC-SRV-ALV and BC-ABA-LI - also: I remember that when we upgraded from 4.5B to 4.7C there was an issue with Excel-templates -> the solution was in the release notes somewhere. So, in addition to SMP you might want to check the release notes and/or upgrade guide for solutions.
    And yes, moderators ... this is not a security issue, this should go to ECC-Applications/Upgrade.

  • Procedure to save the output of a query into excel file or flat file

    Procedure to save the output of a query into excel file or flat file
    I want to store the output of my query into a file and then export it from sql server management studio to a desired location using stored procedure.
    I have run the query --
    DECLARE @cmd VARCHAR(255)
    SET @cmd = 'bcp "select * from dbo.test1" queryout "D:\testing2.xlsx;" -U "user-PC\user" -P "" -c '
    Exec xp_cmdshell @cmd
    error message--
    SQLState = 28000, NativeError = 18456
    Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'user-PC\user'.
    NULL
    Goel.Aman

    Hello,
    -T:
    Specifies that the bcp utility connects to SQL Server with a trusted connection using integrated security. The security credentials of the network user,
    login_id, and password are not required. If
    –T is not specified, you need to specify
    –U and –P to successfully log in.
    -U:
    Specifies the login ID used to connect to SQL Server.
    Note: When the bcp utility is connecting to SQL Server with a trusted connection using integrated security, use the
    -T option (trusted connection) instead of the
    user name and password combination
    I would suggest you take a look at the following article:
    bcp Utility: http://technet.microsoft.com/en-us/library/ms162802.aspx
    A similar thread regarding this issue:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b450937f-0ef5-427a-ae3b-115335c0d83c/bcp-connection-error-sqlstate-28000-nativeerror-18456?forum=sqldataaccess
    Regards,
    Elvis Long
    TechNet Community Support

  • Query output transfer to excel file

    hi all,
    how can i query output transfer to excel file ? i am not using any tool. please suggest me. is there any method that i transfer that output to excel file?

    You can create a csv file. See dump_csv function from Tom Kyte.

  • Can we use Trunc,Substr in Excel templates

    Hi All,
    I have a date xml tag with value like "2012/04/01 00:00:00" i need to show this in excel output as "01-APR-2012".
    I am using Excel template, need your help to achieve the same.
    I tired to use Trunc,Substr,Format date but nothing is working.
    Please give me your valuable inputs to solve this issue.
    Thanks
    Rajehs

    Varma,
    Thanks for the reply, i have already checked the link but it doesn't have syntax to use Trunc,substr etc. functions.
    Also date in example is - "1996-02-03T00:00:00.000-07:00" , but in my case date format is different "2012/01/01 00:00:00".
    Thanks
    Rajesh

  • Run BI Publisher report (with Excel template) on Windows 7

    Hi, All.
    Sorry for my English :)
    I have some problem:
    I use BIP standalone for my reports. Some reports are in Excel (with Excel template). When I run it on PC with WinXP - all is OK. But, when I try to run it on PC with Win7, then Excel is opening and writing this "Native file format and file extension does not mismatch. Before open be sure of file does not damage" (this is my translation). If I try save file on the hard disk, then file is 0 kb. But if a report has RTF-template, then it opening normaly on Win7's PC.
    Have you any ideas?
    Thanks!

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • Report Time zone in Excel Template

    Hi,
    How can we display the TimeZone that is set in the BI Publisher Preferences. Is there anyway to display this timezone in Excel Template.
    In RTF Template, 'm able to display it using ,
    <?format-date:xdoxslt:sysdate_as_xsdformat();’dd-Mon-yy hh:mi:ss’?>, so whenever I change the Report Time Zone in BI Publisher , the output of RTF Template gets affected correctly.
    But I have to do the same in Excel Template, Is there anyway to achieve this?
    Thanks in advance

    I found a way to display the parameter, but it shows the return value. Is there a way to show the display value as it is when submitting the report? For example i have a LoV as follows:
    select test as display_value, 10 as return_value from dual and it is attached to a parameter. Then i define that parameter in the XDO_METADATA and display it to another sheet - it will display the return_value(TEST) ... Anybody knows how to output the display_value?
    Thanks,
    Alexander.

  • XML Publisher excel template

    Hi ,
    after installing the Patch
    Patch 12415414: 1OFF:11873050:12.1.3:12.1.3:FRM-41830, FRM-40212 SUBMITTING PROGRAM - PUBLISH FS
    i managed to add and excel template to XML Publisher , the template working fine in the Desktop template viewer but when running it using the XML publisher its only shows the static heading with not data
    anyone knows why its generate an empty file ?! the concurrent generated the XML data but the output is an empty excel file
    thanks

    @user635184 looks like you missed something
    12.1.x does not have all the code to execute Excel templates.
    ebs r12.1.3 has excel template
    furthermore ebs r12.1.1 has excel template feature but it must be enabled as in mos R12: How to add Microsoft Excel as Type to the Create Template List of Values in BI Publisher (Doc ID 1343225.1)
    EBS version 12.2 has some support for Excel templates.
    some support
    @Ayman
    i managed to add and excel template to XML Publisher , the template working fine in the Desktop template viewer but when running it using the XML publisher its only shows the static heading with not data
    anyone knows why its generate an empty file ?! the concurrent generated the XML data but the output is an empty excel file
    need more info with versions of tools

  • Error when using SUM function in Excel template

    I am trying to use the XDO_METADATA to create a sum of a column from my XML data and I am getting the following error in the Template Viewer:
    [111412_104246459][][PROCEDURE] Log Level is changed to PROCEDURE
    [111412_104246553][oracle.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    Time: 0.125 sec.
    FO Formatting failed.
    <Line 317, Column 116>: XML-23029: (Error) FORG0001: invalid value for cast/constructor
    @Line 317 ==> <Cell Index="2" Style="R7C3" Field="XDO_?SUM_V_CR_MO_IDD1?"><xsl:value-of select="sum(.//G_CR_MST_D/V_CR_MO_IDD)"/>
    when I use:
    XDO_?SUM_V_CR_MO_IDD1?     <?sum(.//G_CR_MST_D/V_CR_MO_IDD)?>
    or
    [111412_104048508][][PROCEDURE] Log Level is changed to PROCEDURE
    [111412_104048554][oracle.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    Time: 0.078 sec.
    FO Formatting failed.
    <Line 317, Column 105>: XML-23029: (Error) FORG0001: invalid value for cast/constructor
    @Line 317 ==> <Cell Index="2" Style="R7C3" Field="XDO_?SUM_V_CR_MO_IDD1?"><xsl:value-of select="sum(.//V_CR_MO_IDD)"/>
    when I use:
    XDO_?SUM_V_CR_MO_IDD1?     <?sum(.//V_CR_MO_IDD)?>
    I believe the XSL to be correct because when I change it to a count it works and when I go into BI Publisher 11g and create the query in the data model and then create a summary from it, the summary is created.
    Can anyone help?

    I went back to basics and created reports (via EXCEL templates) like I was asking based on good old EMP and DEPT and I found exactly the same problems I was mentioning. I looked at the templates provided but they were not calculating totals, like me they were selecting them and then just displaying them on the page.
    Anyway, I have narrowed it down to the fact that when you do aggregates like sum(.//SAL) this works if you have a salary for every value. I did an outer join with DEPT so I did have empty rows and why I still experienced the problems.
    Basically XSL does not like adding (including using the sum function) values that effectively have nulls in them which is why I get the cast/constructor errors because it is trying to turn a NaN value to a number and does not (or cannot) do it.
    You need to either have a value in every row of your column (maybe possible by selecting nvl in your query) and make sure that you check the "create empty nodes" checkbox in the data model of BI Publisher.,
    the other solution is an xsl solution where you would have to make sure that you only added non null values and for that you would have to investigate xsl blogs.
    It is, by the way, why my count worked because it is just counting that the record exists it does not care what the element content is or isn't.
    Closing thread.

  • Java Error while executing the excel template in the BIP 10g report server

    Hello Gurus,
    While we are executing the excel template we are getting the following java error and the report cannot be rendered to user who triggers the report. Where as the same excel template is generating output when user run it against the same data locally.
    "oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:652] Document file to deliver not found : C:\Oracle\bipublisher\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\tmp\xmlp3307tmp
    at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1172)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:495)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)"
    We have tried with designing the .rtf template for this report and we are able to generate the report form the server. Please let us know the cause for this error in the server and way to rectify the exception from the report server.
    Thanks,
    Kamath.

    "oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:652] Document file to deliver not found : C:\Oracle\bipublisher\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\tmp\xmlp3307tmp
    imho it's about empty result file
    Data are there
    may be yes but is some data from all for report itself ?
    in other words data can be in output ( in xml ) but report can filters data and so report doesn't have appropriate data to representation ( it's assumption for error )
    Data are there, when we are using rtf template, it is generating the output.
    if you sure about data for report and on this data report works fine by bip desktop, so no ideas, only SR
    btw you can first check my assumption and try to catch "no data found" in template
    also you can check data itself, is it well-formed xml

  • Skip a column in BI Publisher Excel Template

    Hi,
    Do anyone know how to skip an entire column based on a condition in BIP Excel Template.  We are able to skip a row in Excel Template using XDO_SKIPROW, Do we have a similar one for skipping columns?
    Thanks in advance

    no its not possible as far as i know if you need different columns in different sheets you need to use xsl excel template only .
    u can do it using rtf template but it wont be as same as regular excel output and you should be on bi publisher 11g to do that u can do like this
    when u preview xslx output using bi publisher rtf template it treats page breaks as new sheet
    <?for-each@section:G_1?>
    ID NAME NUMBER
    <?for-each:G_2?><?ID1?><?NAME?><?NUMBER?><?end for-each?>
    <?split-by-page-break:?>
    ID DEPT ACCOUNT#
    <?for-each:G_2?><?ID?><?DEPT?><?ACCOUNT#?><?end for-each?>
    <?end for-each?>
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • How to open an excel template and display onto a table in Laview

    Hi all,
    I would like to open an excel template file. Once called up, I would like to display it onto a table in Labview. From there, I would like to write data to the colums or rows in it. Can I do that? What do functions do I need. Please show some steps....
    Many thanks.

    What you would like to do is very easily done with the Report Generation Toolkit for MS Office. It has slightly different VI that the NIReports llb, in the way that those VIs also support Word and Excel reports. If you don�t have this toolkit, you will need to use the activeX properties and methods to set this up.
    If you would only like to open an Excel spreadsheet, you can use the File I/O VIs. To read an Excel tab deliminated file, use Read From Spreadsheet File.vi. One of its outputs is a 2D array that you feed into a LabVIEW table. Once you have the data in a LabVIEW table, you can just treat as a 2D array, and perform array functions on it to manipulate with the data
    If you do have the toolkit, please look at the examples that ship with the toolkit.
    Zve
    zdana S.

Maybe you are looking for