Formula Column in Report template

I have a report template to use in all the report. I want to have a formula column on it to take a control value(location/Organization) where the report is being printing. Is it possible to have a formula column in a report template? if it possible how can I do it? otherwise how can i achieve this task?
Thank in advance
Muza.

What is the application release?
Can you find any details about the error in the OPP log file?
Please search MOS website for "Cannot view XML input using XSL style sheet" and go through the docs.
Thanks,
Hussein

Similar Messages

  • Formula Columns in Data Template

    Hi,
    Is it posiible to have formula columns in data template apart from summary columns.please suggest.
    Regards

    You can put those formula-logic in sql query.
    summation/avg functions can be used directly in element.

  • Syntax of formula column in data template

    Hi All,
    I am trying to generate XML output from Data Template. But I am struggling with how to implement formula column. I am using this syntax. But it is not working. Please anybody send me working formula column syntax.
    <element name="PO_NUMBER" value="PO_NUMBER" />
    <function name="CF_DUMMY" dataType="number" >
    <textSource>
    <! [CDATA [
    function CF_DUMMY return number is
    begin
    return 3;
    end;
    ]]>
    </textSource>
    </function>
    </group>

    The call is done directly in the query.
    In your Template header you can reference the database package to use this for example for triggers in your template:
    <dataTemplate .... defaultPackage="myPackage" ...>
    Then your Query looks like
    <sqlStatement name="Q_2">
    <![CDATA[select empno,ename,myPackage.cf_myformula(sal, comm) as Income from emp WHERE deptno=:abeilung]]>
    </sqlStatement>
    In your dataStructure Section you than can reference the formula like any other column
    <element name="INCOME" dataType="number" value="INCOME"/>
    Additionaly you can have triggers like before report trigger, where the logic is in the same database package:
    <dataTrigger name="beforeReport" source="myPackage.beforeRepLogic"/>
    Regards
    Rainer

  • Formula Column in Report 9i Builder

    Hi,
    I use this configuration
    Report Builder 9.2.0.1.0
    Windows XP Service Pack 1
    NLS_LANG "BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"
    When I try to create a formula column that returns number, I have to choose datatype 'Nu'mero' (with accented u)as this is the only avaiable in the combo box. However when I write this PL/SQL code for the column:
    function CF_17Formula return Number is
    begin
    RETURN(1);
    end;
    Reports gives me the message:
    REP-0737: Deve ser uma funcao com retorno do tipo 'nu'mero'.
    In English this message could be
    REP-0737: Should be a function with return type 'nu'mero'.
    I don't have this problem with Character or Date formula columns (these datatypes are called Caracter and Data in Portuguese).
    It seems that Reports is having problems with u' (accented u) character. If I change NLS_LANG to AMERICAN_AMERICA.WE8ISO8859P1 everything works fine because I can choose Number in the Formula Column Datatype in the Property Inspector.
    The problem is in the function declaration not in the Return statement.
    Could anyone help me? Tks.
    Edmar

    Edmar,
    You are right. I could reproduce this issue.
    I have filed a bug to fix it from the development in next patch
    Thanks
    The Oracle Reports Team

  • Carl - Show Hide columns and report templates

    Carl,
    I've implemented the show/hide report column techniques from your demo pages. Thanks for that, it's working well.
    I am having a slight issue. I'm using theme12, and when I implement the technique there with the alternating row color template, the functionality works fine. But when I switch to standard report template I have some issues.
    Debugging the code :
    function html_HideCellColumn(pId){
    35 var l_Cell = html_GetElement(pId);
    36 var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    37 var l_Rows = l_Table.rows;
    38 l_CellI = getCellIndex(l_Cell.parentNode,l_Cell)
    39 for (var i=0;i<l_Rows.length;i++){
    40 html_HideElement(l_Rows.cells[l_CellI]);
    41 }
    42 return;
    the pId is what expect before line 35, but after, it looks like the html_GetElement is returning null.
    Is there something in the template that would cause this change? I am able to reproduce this behavior consistently. Thanks for any input.

    Hello,
    The table headers in the standard report template of that theme are missing the id attribute so changing this.
    &lt;th class="t12header" #ALIGNMENT# >#COLUMN_HEADER#&lt;/th>
    to
    &lt;th class="t12header" #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#&lt;/th>
    and your good to go.
    Carl

  • Place Holder Formula column in reports doing problem

    Hi
    I am working on some existing reports where there are many palceholders formula coloumns using no return values and they are blank and giving me errors
    can anybody tell me what should i write on that place holder formula columns for the return values
    should i write return 0 fro number and return null for char
    or any other values from some package or field
    please guide me
    Thanks
    Junaid

    palceholders formula coloumns Are they placeholder Items or formula items ? As you say they are missing return values i would guess its formula-items.
    should i write return 0 fro number and return null for char In general, formual items should return some meaningful value depending on the requirement behind the report, if they do not:
    Are they used somewhere in the report ? If not, delete them instead of returning some useless value. If they are used, you're up to the requirement again and have to check whats the sense behind it.

  • Formulas in Financial Report Templates

    Hi,
    Is there any documentation regarding how to create formulas for the Financial Templates. I do know how to create the Templates but I dont know how and what formulas to use.
    Rgds
    Kalli

    Hi Kalli,
    As you know how to create template then after creation of template click on "Add Same-Level Acct" and create one account where you want then select that account and click on Subtotal check box. After this on same form "Formula" button will activate then you can do formulation.
    Thanks
    Sachin

  • Formula line in Report painter

    Hello,
    Can I use 'IF' phrase in Formula column in Report painter ?  If so what's the right Syntax .
    Thank you,
    Ran.

    Hi Ran,
    Glad to hear from you too!
    Did you put '.' in the formula at the end of the message? You shouldn't in this kind of statement, so the expression should be:
    IF X005 > 0 THEN X004 + X003 + X005 ELSE X004 + X003
    Regards,
    Eli
    P.S. I tried it, just in case, and it works.

  • Formula Columns are not appearing in pdf format

    hi all,
    i have a report that contains some formula columns, the report is running correctly in the report builder, but when running the report through the web as .pdf format all report field appear except those formula columns,
    is there anyone who can help me?
    M. Hammouri

    What version of Reports do you use..???
    Greetings...

  • How to give the calculation in Finacial report templates asper indian local

    Dear experts
    help me, how to give calculation in Financail report Templates in SAP b1 for calculating  Gross profit and Netprofit seperately.  I am facing some error while giving formula in financial report templates.
    Thanks
    Regards

    Hi Mathiladath,
    Try this,
    ->> Financials. -> Financial Report Templates in that follow this steps.
    1.Report. -> Choose (Profit and Loss)
    2.Template.-> Define New -> Give the name for template.
    3.And click the Generate Chart of account button in bottom right.
    4.put the Tick mark in Subtotal Check box
    5.now u can see Formula button (Click and Open the Formula Definition window and put the Formula)
    using this button create appropriate formula for your requirement(ask help your A/C department)
    6.Chose this template in P/L.
    Regards,
    Madhan.

  • Financial report Templates - PLD

    Dear SAP Experts
    I have given the formula in Financial report template for calculating Gross profit and it is showing in the reports, but when i taking the pld reports for Pand L, the value of gross profit is not showing.
    How do i bring that Gross profit value in the PLD?
    Thanks
    Regards

    Hi,
    At which level u have assign new "Gross Profit" variable...please check the level onces u get complete report of P&L
    AT what level u have create Child in COA and Generate level should be same to view yr amount in PLD...
    Level can be change just by click and select as per yr need...
    Thanks
    Kevin

  • Interactive report template

    Hi,
    How can I change the template for interactive reports? Can I use a custom template for an interactive report?
    Regards,
    Eugene

    Hi,
    BTW, if anyone cares, you can still include the sortable column headers into the Row Level templates. Basically just copy the header out of the Column-based Report template and paste it into your custom Row-Level template.
    For example:
    <th#ALIGNMENT# foobar id="#COLUMN_HEADER_NAME#" class="t13ReportHeader">#COLUMN_HEADER#</th>I had a gotcha with mine where the column header section started indented one column to the left, due to something in the region header (I guess?). I couldn't figure out how to fix it without a kludge. So I simply closed the previous table row then started a new one by pasting it into the region header.
    </tr><tr>Inelegant but functional! :-/
    Just trying to pass on little hacks as I learn.
    Your mileage may vary...
    Stew

  • Formula column equivalent in Data Template

    Hi all,
    I'm working with my first data template and fumbling my way through. I was able to generate the XML output and apply my template. I have some idea on how to burst too, but I'm stuck on how to get the current user's email address. In Oracle Reports, I could just create a formula column and get any specific information needed. How do I do the same in Data Templates?
    TIA,
    Alka

    HI,
    Can I know How can we create the formula column like if then else logic in the Data template?
    Regards
    Boopathi

  • Export Oracle report formula column to XMLP

    hi
    i am thinking about exporting an rdf report to xmlp and i am worried about keeping my formula columns in the xmlpublisher report.
    what is gonna happen to them ?
    thx
    Dan

    If you are using Oracle Reports XML output as the datasource, the formula column will be in the XML, recognizable by the tag name. If you are using a data template to produce the datasource, the formula colum can be defined in the template.

  • Report Template href with column value

    I have created a Report template and want to have a field that is a href with link to other page passing column value. I'm having trouble passing the column value. If I hard code the value the href code works. If I try to pass #1# or the column name with # surrounding the link doesn't work. Any ideas would be appreciated.
    This works:
    <td><img src="/i/edit.gif" border="0" alt="Edit Icon">
    </td>
    This doesn't:
    <td><img src="/i/edit.gif" border="0" alt="Edit Icon">
    </td>
    Thanks
    Mary Jo Al-Shihabi

    Hi Sergio, thanks I finally got it working using a call to javascript:popupURL.
    <td><align="center">#PORT_APP_ID#</td>
    Thanks
    Mary Jo

Maybe you are looking for

  • Photoshop cc on macbook pro retina display?

    Is there a way to disable the native retina view in Photoshop CC? At the moment I can't use Photoshop at all because I can simply not see what I am doing in that tiny document view. I want to see my documents/images in the same size as I see them els

  • How can i access gmail's smtp server using java mail api

    i m using java mail api to access gmails pop and smtp service to receive and send mail from ur gmail account. I m able to access gmails pop server using the ssl and port 995 , but i can not use its smtp server to which i m connecting using ssl on 465

  • Having problem in app store cos id is wrong

    Hi there, I've recently registered my sister's account in app store but the problem is the e-mail id is wrong so I can't get the verification code. Please advise me that what can I do further?

  • My title bar in safari in my iPad won't dissapear

    When I first got my iPad 2 I would go to safari and go to yahoo.com and the title bar with my tabs would automaaticlly dissapear. Now if I open any website like apple.com, the tabs stay up where I can see them. They don't dissapear. Usually they hide

  • XI Error Handling options

    Hello, Can anyone guide me on what are the options available for XI monitoring and error handling..for the support strategy.. and some URL and links on those will be helpful. For instance ALERTS can be used,... or Regular Monitoring in SXMB_Moni (thi