How to get Oracle Form Parameter Value into Oracle Report

Hi,
Please guide for the following:
On a form, there is one Control Block (CB1), having two TEXT ITEMS, namely From_Date & To_Date respectively. The user inputs from and to dates, for example From_Date: 01-JAN-2009 and To_Date: 31-DEC-2009 and then press "Print Report" button.
I want to get From_Date & To_Date in the report, as per below mentioned heading:
SALES REPORT
From: 01-JAN-2009 To: 31-DEC-2009
Regards,

You can use ADD_PARAMETER builtin,
The following example creates a parameter List, adds two parameters to it, and then passes the List to a form by way of the CALL_FORM procedure:
<pre>
/** Declare a variable of type ParamList to store ** the parameter List ID */
DECLARE
PARAM_ID ParamList;
BEGIN
/* ** Create a parameter List named "input_params" */
PARAM_ID := Create_Parameter_List('input_params');
/* ** Add two parameters to the List to pass values for each user-defined parameters defined in the target form; for each parameter, specify its key, type (text or data), and value */
Add_Parameter(PARAM_ID, 'FROM_DATE'', TEXT_PARAMETER, to_char(:CB1.From_Date, 'DD-MON-RRRR'));
Add_Parameter(PARAM_ID, 'TO_DATE', TEXT_PARAMETER, to_char(:CB1.To_Date, 'DD-MON-RRRR'));
/* ** Now call the report, referencing the parameter List ID ** in the last argument to the report calling procedure */
END;
</pre>
Edited by: Charan on Jul 13, 2011 9:08 AM

Similar Messages

  • How to get BW-BPS variable value into Visual Basic?

    Hello,
    Scenario:
    Time characteristic 0FISCYEAR has a variable ZVFYEAR. In layout this time characteristic is defined as DATA COLUMN. When user changes VFYEAR variable’s value i want to get the value of variable into Visual Basic and to format header for table in the layout.
    How to get BW-BPS variable value into Visual Basic?
    Could you help me?
    Thanks in advance.
    Best Regards,
    Arunas Stonys

    Hi,
    If i understand your requirments correctly ,you need to read the value of the Variable and Put it on the layout. Here is how  i would solve this,
    Read the value of the variable using an ABAP program.The logic for this would be to read the variable value and post it on the layout on a cell.You can do this by calling the ABAP program on opening the layout.this can be done using LB_EXIT_FM  T-code. Now using the  SAP delivered SAPAfterDataPut  macro, read the cell in which you have placed the variable values and assign it to the necessary values you want to on the layout.All this will be done before the layout opens.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • How to include input user parameter values in XML report output?

    How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
    Rgds,
    manish

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

  • How to get the selection parameter values to Posting logic method

    How can i  read the selection parameter values at " posting logic" method, which are given in  " Select Option function module"?

    max bianchi wrote:
    Hi
    >
    > The selection-screen data are stored in ABAP memory, so it need to clear it .
    >
    > Now how set ID parameter can depend on SAP release, anyway in ECC 6 this should work:
    >
    >
    INITIALIZATION.
    >   DATA: BEGIN OF MEMKEY,
    >           REPORT  TYPE SY-REPID VALUE SY-REPID,
    >           VARIANT TYPE RSVAR-VARIANT,
    >           INT_MODE(2) TYPE N,
    >           KIND(1)     TYPE C,
    >         END OF MEMKEY.
    >
    >   SYSTEM-CALL INTERNAL MODE INTO MEMKEY-INT_MODE.
    >   FREE MEMORY ID MEMKEY.
    >
    > But in this way it'll clea whole selection-screen...do you wnat do it?
    >
    > Max
    @Max : The above hack seem to work fine unless you assign a  'DEFAULT' value to the selection fields.
    @OP   : Here is an other work around,  however, this approach needs an additional effort to create
        new PF-STATUS('MYLIST') and assign a function code of your choice to the function keys in the standard toolbar and handle them in the 'AT USER-COMMAND'   event as shown below. Let us know if you have/find any issues with this.
    PARAMETERS:
      p_test TYPE char5 DEFAULT '123'.
    AT USER-COMMAND.
      CASE syst-ucomm.
        WHEN 'MBACK'.
          SUBMIT zytest WITH p_test = '' VIA SELECTION-SCREEN.
      ENDCASE.
    START-OF-SELECTION.
      SET PF-STATUS 'MYLIST'.
    -Rajesh.

  • How to get Description of parameter filed in Crystal report 2008

    Hi expert,
    I am creating a crystal report from Query ,which is created in BEX    Query designer 7.
    In query designer i have some selection variable.
    The requirement from clint is that they want to see what value is selected for all  variable.
    when i tried to put all parameter field in crystal report it is showing only Technical name of value selected not  description and also it show only for variable which is single value variable  not for the range value variable and multiple selection variable.
    can any one help me How to get description of value in report and can it is possible to show Range value and multiple value for a particular variable .
    i am using Crystal report 2008 SP3 version.
    Thanks and regards
    devendra

    Moved to BEx forum

  • How to get rid of unassigned values in the report

    hai to all,
    here is the issue,
       while running a report(sales per country), iam getting the data,after that when i drill down on <u><b>sales document number</b></u> iam getting some unassigned data, with Sales document number as #, and some value in the keyfigure.what is the reason behind this?
    Here is another issue that i want to find all the sales documents which have the value # in the report?, is it possible?    the same case with <u><b>Customer country</b></u>, on the same report.
    pl anyone help me
    br
    venkat/shyam

    Hi Shyam.
    Regarding the first issue: Well, you've loaded some data records into your cube where the "Sales Doc Field" is empty.  Did you load through PSA? The best way to scan your PSA (I believe) is to find the underlying table and have a look at it via SE16. In this way you don't have to  scan through every data single package. This can be done via "display data flow" from your cube and switch on technical names. There you have it. (It's called /BIC/B00...etcetc you might have to add i few zeroes though when you enter it into SE16). Get request ID from "Infocube Managment". In SE16 seelction screen use F2 to set the "sales Doc No." field even to blank.
    Second issue is a bit easier: in your query (or a working copy of your query) restrict on "Sales Doc No" or "Customer Coutry" to only include value "#". In the same way you can remove the unassigned values be excluding value "#".
    Hope this works for you.
    Chears, Jørn

  • How to get data from MS CRM into Crystal Reports

    Hello All,
    Can anybody tell me how to get data into   crystal XI reports with MS CRM.
    Thanks in Advance
    Ramesh

    First you should refer to the Rules of Engagement and then add more info.
    Start off by telling us what version of CR are you using and what is MS CRM?
    Thank you
    Don

  • Conversion of oracle forms 4.5 into oracle forms 9i

    Hi Gurus!
    Its becoming a bit more difficult for me to find the solutoin of the following problem!
    Scenario is that i have a form developed in oracle forms 4.5, after conversion in oracle forms 9i, i am getting fixed as,
    I have two text items say item1 and item2, item2's "Synchronize with item" property is set to "item1" and there is also a
    WHEN-VALIDATE-ITEM trigger on item2, and as u know in 9i forms WHEN-VALIDATE-ITEM trigger on child item in this case item2 is
    ignored, now if i move that trigger to item1(in this case the master item) then trigger is fired but then the business
    logic/flow change as originally i didnt require any WHEN-VALIDATE-ITEM trigger on master item i.e item1
    So wot should i do to resolve this problem/situation?
    Plz let me know if i have conveyed successfully!
    Thanx in advance!

    Hi my company specialises in doing exactly this.
    Please look at our web site www.transenigma.co.uk to see out conversion tools. We can take you from Forms v2 right htrough to Forms 6i web forms, and anywhere in between.
    If we can help you, please send us an email.
    Tony

  • How to use different default parameter value for different report subscriptions

    In ssrs is it possible to define different default parameter values for different subscriptions? In the following example I have a report which has two subscriptions with different start date and end date values:
    Report name – Testsubscription.rdl
    Subscription-1
    Input parameter (default values):
    start_date = first day of current Month
    end_date = till date
    Subscription-2
    Input parameter (default values):
    start_date = first day of current Quarter
    end_date = till date
    I know an alternative way of doing this would be to copy the rdl file with a different name but I am curious whether this can be done within a single report definition file. I am using SQL Server 2008 R2 Standard Edition.
    Thanks!
    spp

    Hi sppdba,
    As per my understanding, there is a report with two parameter: start_date and end_date, you want to configure subscription for the report, and set different default values for start date and end date. And you want to know if it is possible to achieve you
    goal by using a single report definition file.
    Since you are using SQL Server 2008 R2 Standard Edition, we need to achieve your goal by configuring two subscriptions for the report. For detail information, please refer to the following steps:
      1. In design surface, right click start_date and open Parameter Properties dialog box.
      2. In General pane, type Name and Prompt, set Data Type to Date/Time.
      3. Click Available Values in left pane, select Specify Values.
      4. Click Add button, in Label text box, type “First day of Current Month”, click (fx) button in Value section, then type the expression like below:
    =DateSerial(Year(Now()), Month(Now()), 1)
      5. Click Add button, in Label text box, type “First day of Current Quarter”, click (fx) button in Value section, then type the expression like below, then click OK.
    =DateSerial(Year(Now()), (3*DatePart("q",Now()))-2, 1)
      6. Right click end_date and open Parameter Properties dialog box.
      7. In Available Values pane, select Specify Values.
      8. Click Add button, in Label text box, type “Today”, click (fx) button in Value section, then type the expression =Today(), then click OK.
    Now that the parameters are created, we need to configure subscription for the report. For detail information, please follow these steps:
      1. Open Report Manager, and locate the report for which you want to create a new subscription.
      2. Hover over the report, and click the drop-down arrow.
      3. In the drop-down menu, click Manage. This opens the General properties page for the report.
      4. Select the Subscriptions tab, and then click New Subscription.
      5. Select the delivery extension and data source for the subscription.
      6. Select a method of delivery, then choose report delivery options.
      7. Specify conditions that cause the subscription to process and delivery to occur.
      8. Set start_date to First day of Current Month, end_date to Today, then click OK.
      9. Create a new subscription as step4 to 7, set start_date to First day of Current Quarter, end_date to Today, then click OK.
    The following screenshots are for your reference:
    For detail information about Creating Standard Subscriptions, please refer to the following document:
    http://msdn.microsoft.com/en-us/data/ms156307(v=sql.105)
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • How to get field and variable value in oracle

    Hi all,
    I'm finding very difficulty to get a field value.. In oracle 11i form there is a field name called total accured and it has value 519.. but i'm not able get this .i search in all tables so iwent to help--> tools-->examine--(diagnostic)-->
    i get Block :'XYZ' field: "Balance" and value:'519' and search in table shown in help.
    Please can anyone help me to get this field and it's value. it is in HRMS.
    Thank You

    It may be a derived / calculated field, which is why you might not be finding it in a table.
    For information on the last query run (may give a clue) do help -> examine, then change block to "SYSTEM" and Field to "LAST_QUERY".
    Also, Help -> Record History will show you the table or view that the data comes from. May also lead to a clue.And this is what is mentioned in the doc referenced above.
    Thanks,
    Hussein

  • How to get this sql query value in oracle query?

    Hi all,
    i am using one query in sql that is
    select @EarlyLeaversMin = DATEDIFF(Minute,@OutTime,@nshiftmax)
    suppose first line query is getting 60 minutes.
    select @EarlyLeaversMin1=DATEDIFF(Minute,@temphrs,@ShiftTime)
    second line query is also getting 60 minutes
    set @EarlyLeaversMin=@EarlyLeaversMin+@EarlyLeaversMin1+1
    and now here it's calculating both variable minutes and storing in @earlyleaversmin that should store like 60+60+1=121 mintes
    select @EarlyLeaverstimeformat = CONVERT(char(8),Dateadd(n,@EarlyLeaversMin,0),108)
    so now it will store in this query that value in this format : 01:21:00
    can i use the same which it's happening here??
    thanks

    Oracle handles dates and time very differently from SQL Server (as I gather others on this forum have already tried to explain to you).
    Anyway, Oracle does not have a TIME datetype, but what it does have are INTERVALs. In this case you would use INTERVAL DAY TO SECOND. It's not completely clear what you mean by "store in this query that value" but we can use INTERVALS as both table columns and PL/SQL variables.
    So your first query would be something like this:
    declare
        interval_var  INTERVAL DAY TO SECOND;
    begin
         select (nshiftmax - outtime) day to second
         into interval_var
         from whatever;We can do arithmetic with interval variables.
         select (nshiftmax - outtime) day to second +  (shifttime - temphrs) day to second
         into interval_var
         from whatever;To add a hard-coded interval such as 1 minute you can use this functionality:
         interval_var := interval_var + to_dsinterval('0 0:1:0');There's loads of info in the Oracle documentation. [url http://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements001.htm#sthref115]Find out more.
    Cheers, APC

  • How to Increase distributed Transaction parameter value in oracle 10g r2

    Hello,
    Can you please let me know how to increase the value of Distributed Transaction Parameter in oralce 10g R2
    Thanks
    Usman

    Why do you want to increase this?
    If you are getting ORA-02042, you have to reduce the number of concurrent distributed transactions you are running or restart your database to clear existing ones.

  • How to get a form parameter and refresh the web web page itself?

    I thought its easy as a piece of cake. But what I found out is that somehow it is getting the parameter after the web page is refreshed!
    Any advice is greatly appreciated. Thanks!
    for navigation method
       //navigation method
        public Object refresh()
            return Navigation.HOME;
        }for web page
    <h:commandLink value="Regenerate resutls"  action="#{bean.refresh}">
                       <f:param name="algorithm" value="#{HomeMBean.algorithm}"/>
                    </h:commandLink>

    What I am trying to say here is:
    for a web page, I want to refresh the web page based on a parameter chosen by users,
    In web page:
    <h:commandLink value="Regenerate resutls"  action="#{bean.refresh}">
                <f:param name="algorithm" value="#{HomeMBean.algorithm}"/>
    </h:commandLink>in managed bean:
        //navigation method
        public Object refresh()
            return Navigation.HOME;
        }also in managed bean:
    String algorithm = FacesContext.getCurrentInstance().
    getExternalContext().getRequestParameterMap().get("algorithm");
            logger.debug("parameter="+algorithm);What I observed is I will never get the parameter "algorithm" before the web page is refreshed. In other words, the method setAlgorithm() is always called after the web page is rendered.
    I in fact want to render the web page based on the parameter "algorithm".
    I spent quite a lot time on it but can't figure out why.
    My guess is for managed beans, I can't rely on one property to generate another property, is that right?
    How should I solve this problem? Thanks a million!

  • How can I show Search Form parameter values in URI of Results page?

    I have searched through these pages for posts relating to caching but haven't seen any that relate to my issue.
    We run a website that accesses data through search forms and returns matching data to the requester in a results page. The search criteria are entered in a form and the results page is generated by a servlet that gets the search parameter values that the user entered using the GET method.
    I would like rewrite this Search page using JDeveloper to bring our old code up to date and take advantage of new features that should help performance. In particular, I want to utilise the WebCache.
    To use the WebCache effectively, the cache needs to know what the search criteria were when it delivers a page so that repeated requests using the same criteria can be served directly from the cache.
    The data retrieved by a query may change from one search to to the next so I can't use time-based caching. But, I can use the WebCache Invalidation interface from the back-end DB server to flush old data out of the WebCache when it is changed, but to flush out the correct pages I need to know the parameter values passed.
    If I just follow the demos, it seems like the search parameters are all hidden in beans or something which means that the Web Cache can't be used for what I want. The parameter values are important.
    So my question is: is there a way of showing the search parameters used in the URI to the Results page? Can the old GET method of parameter passing be used (or can I somehow just put the old style parameters onto the URI?)
    Alternatively, is there a simple How To or Demo on how to use the Web Caching facility with JSF?
    (ADF Caching and Java Object caching do not seem appropriate for my needs. ADF caching seems to be limited to having fragments cached for fixed periods of time and Java Object caching is orders of magnitude slower and involves the Application Server.)
    Thanks for any advice,
    Andy

    Sorry - should have said I'm using JDev 10.1.3.0.4 with JSF & ADF BC.

Maybe you are looking for

  • Problems in Solaris 10 installation

    Hi, I m installing Solaris 10 on my laptop. But I am getting error " /pci@0, 0/pci103c, 30bb@1d, 7(ehci0): ehci_init_ctrl unable to take control from BIOS. EHCI system disabled". In installation guide, it is problem with motherboard (6204987). Can yo

  • Time is taking more than usual in running a report???

    hello expert, i have a report who run successfully in a usually normal time, but from few day it is taking more time than usual. i did not made any changes in code, every thing is same. please suggest me to tune report performance?? thanks yash

  • Is it possible to reset the cursor pointer

    Hi, My requirement is : I have a program like this Create or replace proc_1( out_cur out sys_refcur) -- local variable declarations. begin open out_cur for select col1,col2 from table1 where col3=4; fetch out_cut into l_col1,l_col3; --- some operatio

  • My MBP mid 2014 is using too much RAM

    My MBP mid 2014 is using too much ram on kernel task, and some others what can I do to fix this?

  • Can't get my Imac to boot from external HD

    Hello everybody out there in the community, while preparing my system to update to Lion, I noticed, that my Imac appears not to boot from an external HD, when selected. When I press option-key and select the clone HD, I nevertheless hear the booting