Can I define a Function as part of the Report?

In an Oracle Report, I want to define a Function, to use in the report query. I defined a Function CALC_DIFFERENCE under Program Units. It compiled OK.
But when I tried to use this function in the query it get them message ORA-00904 “CALC_DIFFERENCE” invalid identifier.
Can I define a Function as part of the Report? Or does it need to be on the database?
Report Builder 9.0.4.0.33
Thanks

You have to put it in the database if you want to use it in your query. The reason is simple: the query runs in the database, so it won't see the function in the Report.
If you really need the function in the report (because it uses other values only known in the report), you have to create a formula column.

Similar Messages

  • Possiblity to expand / narrow / reset all drillstroughable parts of the report with one button

    Hi,
    has anyone done that bevore? Is this possible ..
    I have parts of a big Report, that are expanded (where i can see all detaildata) and parts where the detaildata is there, but arent showed by Standard (are narrowed).
    I wish i could have a button, where i can expand / narrow all expandable/narrowable parts of the reports from 1 button.
    Why?
    1) To print the Report i could press "Expand all" and then print, so i get all the detials of the Report.
    2) for a better first look i could Show all expandable reportparts narrowed. Then click expand all to see all Details.
    and maybe to reset all expandable parts to the Default (Settings when loaded) there could be a reset button to.
    Any Chance?
    THX, greets pib

    Hi Pe.bo,
    Per my understanding that you want to add an button in the report to control the Expand All and Collapse All of the drill down report, right?
    I have tested on my local environment and we can do this by creating an parameter to control the show/hide of the details, We can add two radio button image (Radio on, Radio Off)and add the "Go to Report"action on the image which
    display most similar to the button and will display the result of Expand All and Collapse All once you click on the radio button.
    Step by Step details information in below article for your reference to help you achieve the result:
    http://blogs.interfacett.com/how-to-implement-expand-allcollapse-all-for-drill-down-in-sql-ssrs
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Report Builder: can i define a function in  the rdf file ?

    Hi All,
    About the report builder, can i define a function in the rdf file ? and then i want invoke it in the report SQL, just like :
    function Get_Ap_Prepay_Balance(p_Invoice_Id IN NUMBER, p_End_Date IN DATE) RETURN NUMBER IS
    l_Amount number;
    begin
    RETURN l_Amount;
    end;
    thanks.

    You can create functions in reports, but slightly different from doing it in PL/SQL
    function Get_Ap_Prepay_Balance return number is
    l_Amount number;
    begin
    assuming that you have invoice_id in your select statement and p_End_Date is a report parameter, you can refer to them in your function as :p_End_Date and :invoice_id
    for example select prepay_amount_remaining into l_Amount from ap_invoice_distributions where invoice_id = :invoice_id and accounting_date = :p_End_Date
    return(l_Amount);
    hope this helps

  • How can I make signature darker when I print the report?

    I need to put my manager's signature on the report. The signature is too light, How can I make it darker when I print the report?
    I used file link and OLE, both did't make it.
    Thanks.

    No way to do it directly in the report. You need to work with signature image file using any graphic software to increase its contrast. The easiest probably would be to use Paintbrush and change the image to black-and-white, then save back as jpeg file.

  • Can we define a function in a sub process?

    Hi ,
    I want to know whether we can define a function in a sub-process ? coz I see only notifications defined in the sub_process in seeded oracle workflows .
    also highlight if we are the running the workflow from developer studio do we need call the main process first or the sub-process first ?
    Regards,
    Shashk

    Hello Shashk,
    Yes functions can be used in sub-processes. If you are creating a custom function, it must be defined in a specific fashion to work with WF. See the Workflow Developer Guide for your version. 2.6.2 available here:
    [http://download.oracle.com/docs/cd/B10501_01/workflow.920/a95265/toc.htm|http://download.oracle.com/docs/cd/B10501_01/workflow.920/a95265/toc.htm]
    Not sure about Developer Studio per se but typically you can run any process in a workflow that is marked 'runnable'.
    - James

  • How can I define a function in "decide" step in process chain?

    Hi guys,
    I have a process chain und want to use the "decide" step in this process chain. It seems possible that a funktion can be created ( "Customer defined"  ) in this step. But how can I create it and how can I check the available code?
    Thanks for any hint!
    Regards,
    Youyou

    It's a helpfel document!
    But I steel have a question:
    I want to use a self-defeind function. And I also see it is possible to use such function here.
    But I am not sure how I can define this function, via BADI?
    And how can I use this function here. (Maybe if I can define it, then it shows automatically...)
    Regards,
    Liying

  • How can I select only a small part of the image to clone or edit etc?

    I want to select part of the image to clone is, and just edit the selected part. I know i can do this on photoshop but how do i do it on Aperture?

    You use the "Retouche" brush in Aperture and set it to "clone".
    Option-Click on the location you want to clone from to select a source, and then brush over the location where you want to clone to. The cloned region will follow the shape of the brushed area. You do not lasso the shape to to copy and paste it like in Photoshop.
    For example: Duplicating a penguin: The sourcepoint has been set to the beak of the second penguin, and then I brushed along the path where I want to penguin clone to appear.
    If I brush the whole area eventually the penguin will be copied completely. You'll have to experiment a bit with the brush size and softnees to ensure that the cloned object will blend in.
    Regards
    Léonie

  • I have an Iphone 4. I have a video I took with the built in camera. Is there a way I can edit it to isolate a part of the video that I can print a single frame?

    I am looking fo someone who can tell me how to edit a video taken with my Iphone 4 so i can copy/print a single frame from that video rather than the entire video. Thanks in advance

    What you can do is play back the video in the Photos app, then pause it. Tap the screen to make the controls go away. Then you can take a screenshot: Quickly press then release the home and power buttons at the same time.

  • How can i disable some text and item in the reports from printing

    i have a requirment to prepare a report for cheque printing on a formatted cheque paper..so i want the data should be printed in the paper not the whole thing..how can i do this...
    it is like this
    Name:- <coming from database>
    Address :-
    Rs :-
    in printing i need only the data not Name,Address and Rs headings..
    plz help me out??

    Hi,
    The usual method to influence whether an item should be printed or not is to adjust the function which lies underneath the item (simply return FALSE when you don't need it. You can also adjust the input and then return TRUE). I hope this will help you to solve your problem.
    Regards,
    Vincent ([email protected])

  • Rank function without filter in the report

    Hi,
    I have a problem with Rank() function. The problem is the next one.
    I have a table with this rows:
    User | DATE | Cost
    user1 | 12/02/2011 | 10,4
    user1 | 13/02/2011 | 11,1
    user1 | 13/02/2011 | 10,1
    user1 | 13/02/2011 | 8,1
    user2 | 12/02/2011 | 1,4
    user2 | 13/02/2011 | 12,1
    user2 | 13/02/2011 | 22,1
    user2 | 13/02/2011 | 8,1
    In the rpd I have a agregate row as SUM(COST), and I need extract te ranking of this SUM(COST) per user, The sum of user1 is 39,7 and the sum of the user 2 is 43,7. If I show in the report all users, the ranking is correct Rank=1 per user2 and Rank=2 per user1, but the problem is that I only want show the user1, when I add a filter to the report user='user1' the ranking value changes from 2 to 1. I need that the ranking value doesn´t change when I introduce a filter.
    Any idea about how to solve this problem?
    Thanks

    Hi Antonio,
    On the Rank column in the answers edit the formula as given below.
    Case when username = 'user2' then Rank(sum(cost)) else 0 end
    Then apply a filter on the Rank column as Rank > 0.
    I hope this one helps you.
    Regards
    AP

  • Can we use own customise calender for scheduling the Reports

    Hi,
    We are using different calender for the business and hence our number of weeks in each month differs. For e.g. we have 6 weeks for Jan and Dec where as 4 weeks for rest of the months.
    In this scenario, we want to schedule reports after Period (month for our calender) close.
    Suppose we want to schedule report after 3rd day of period close. So, our Jan period will close somewhere in mid Feb (6 weeks of Jan), i.e. 15 Feb. In this scenario, reports should get generated on 18th Feb.
    For leap year we will have 7 weeks in Jan, rest same.
    How can we achieve this?
    Regards,
    Arjun Kushwaha

    Hi,
    yes you can create your own Calender for scheduling Reports. Just Log- in into the CMC and click on "Calendar". By creating a new Calendar you can mark the Dates where the Report should run.
    Regards
    -Seb.

  • Re: Final Cut Express. I have an old 8mm film converted to avi. Some is good, some is too dark. Can I apply brightness to only parts of the clip? David

    I have an old 8mm film converted to avi. Some of it is good, some is dark. Can I brighten parts of this clip or must I split it into multiple clips first?

    forgot to mention MPEGStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html

  • How can I burn just a selected part of the project to DVD?

    Afternoon all,
    we downloaded a number of clips from our HDV that we wanted to use in making a short movie (1 hour's worth of clips will end up being a movie of about half that length). After doing that, we decided to do a 'preview' of 2 minutes worth of mixed clips (5 in total) with music.....I made a new copy of the whole project and then deleted everything that we didn't want from the original collection of 1 hours worth of downloaded clips so that the project just left 2 minutes worth of clips.
    When we tried to burn this 2 minutes to DVD it seemed to be trying to do the whole project including a whole lot of nothing where I've deleted everything.
    Could you please tell me how to select only the 2 minutes worth of 5 clips and audio so that I can burn only that bit to DVD and also upload it to YouTube.
    A million thanks from a challenged newbie who can't find any instructions for doing this..
    JON

    Jon,
    It sounds like you did, just as you should, Save_As and Delete everything that is unwanted. If you did the Deletion from the Timeline, there should be nothing from the old Project, that should be included. A DVD is Transcoded and burned from the Timeline. If the Assets are not there, they will not included in the DVD, even if you did not Delete anything from the Project Panel.
    Tell us about the Clips now on your Timeline. Also, can you check the Timeline, by hitting the \ (Backslash key), and looking near the end of the Timeline. Do you have any "orphans" out there? Check all Video Tracks, even if you have to scroll to see them all. Does the Duration of the Timeline (viewed in the Program Monitor) match what you think that it should? If not, then you most likely have orphans, that you missed Deleteing.
    Good luck,
    Hunt

  • How can you get a picture of part of the screen?

    I'm trying to get the crosshatch on my screen to draw a box and capture a screen image, but I can't remember the keys. I thought that it was something and F4 but nothing is working. Can anyone clarify this for me. Thanks
    Powerbook G4   Mac OS X (10.4.2)  

    Welcome to Apple Discussions!
    Command-shift-4.
    Command is the Apple logo key.
    Here's the complete screen capture guide:
    http://www.dummies.com/WileyCDA/DummiesArticle/id-2485.html

  • Customers are not required as part of the reporting

    Hi,
    We have some transaction data for customers. It was said that the report should not be a problem if some customer master data is not loaded to BW - that is some customer data is loaded and some has not. What are the things that could happen if the transaction data is loaded to BW without the customer master data even though if all the report is using only the time characteristics and not dependent on the customers - that is no customers are queried for the report for the key figures.
    Would you recommend to load the customer master data, or reporting that is based on the time is enough and there should be no requirement to load the some of the customer master data?
    Thanks
    Will

    hi will,
    as everybody said its not necessary to load the master data for reporting..
    but please keep in mind that if you are reading the customer master data tables I(/BIC/M<IOBJ>, /BIC/P<IOBJ>) in any of your update rules / transfer rules  then you need to take a note of that. As you may not have the master data until the transaction data is loaded so dependancy need to be maintain for all those loads that read customer master data table.
    hope it helps.
    Thanks,
    Soumya

Maybe you are looking for

  • Nokia 2730 Classic PC connectivity

    I have installed latest ovi suit to my pc & after connecting my 2730 C phone thr. data cable, it shows internet connection established successfully, but actual data transfer does not taking place. Pls. Help

  • Having Touble Importing Files

    Hello, I have many movie clips in my Iphoto Library that were taken with my Sony Cybershot camera. How can I import them into Imovie 08??

  • Blocks in image

    Does anyone know what might be causing this when I make an m2v from HD footage? http://www.flickr.com/photos/70235619@N00/156309657/

  • How to drop a procedure, if already exists

    Hi, I want to run an sql script in Hana Studio that will drop a procedure if this procedure already exists. Otherwise nothing will happen. Thank you in advance. D.E.

  • EIGRP and Load Balacing Per Packet CEF required on both ends???

    Here's what I have. -2 T1's with same EIGRP metric -CEF is enabled and load sharing currently 1 Link is being used more than the other due to nature of load sharing and not per packet using CEF. I need per packet setup to see if this improves perform