Dynamic report based on Parameters and a Button

Trying to make a dynmic report based on Parameters entered.Wanted to refresh report when i click on a button say "OK" based on parameters entered.
(1) created 2 text boxes -- Parameters --One date and other employee No
(2) on the same page i created a report-region which id dynamic "PL/SQL Function Returning SQL Query "
In this query i am using the parameters created in step1
(3) Then i created a Button say "OK" .
(4) When i enter parameters and then press OK i need to refresh my report in region defined in step2
This refresh is not happening .
Not sure what is missing
I tried using branching it didn't work
In the dynamic region it shows "No data found"
Please help

sachin
1) make sure there is no Optional Redirect defined on the OK button. That is, make sure the page is really submitted.
2) in the PL/SQL body generating the query, print out the query using htp.p() so you get to see it and test it.
3) use the session state link in the developer toolbar in conjunction with the technique in step 2) to debug your query
Maybe the report region is refreshing, but it just isn't returning any results.
Sergio

Similar Messages

  • Develop report based on INFOCUBE and ODS

    Hi,
      Pls, can anybody help regarding developing reports based on INFOCUBE
    and ODS object
    i am using SAP BW 7.0
    what is the transaction code for reports
    what are the steps to develop reports
    Thanks\
    - Mubeen.

    There is no transaction code as such as you have to use the front-end application to create queries off your Cubes/ ODS.
    open Bex query designer -> select info provider (cube or ods) -> drag and drop the keyfigures in columns, -> char in rows -> save.
    Also look at
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm

  • How to export multiple copies reoprts based on parameters and with pre-defined naming

    Hi All:
    I have a problem of using SSRS 2012, we have multiple clients and they wanted us to deliver the pre-defined excel reports to different branches based on selecting the "branch name" parameter, also they have a naming rule for the excel
    report file.
    We cannot use the subscription as they need to do it in one batch and upload to an FTP file, therefore we are doing this manually for over 300 reports. Is this a convenient way to generate them in one batch as well as customising their file names?
    Thanks a lot for your help.
    Cheers
    Johnny

    Hi JohnnyKahWang,
    As per my understanding, there are multiple clients, you want to deliver reports to clients according to branch name parameter, and naming the excel file according to the rule. If that is the case, we can use data-driven subscription to achieve your goal.
    Reporting Services provides data-driven subscriptions so that you can customize the distribution of a report based on dynamic subscriber data. Data-driven subscriptions use query results to determine the recipients of the subscription, delivery settings,
    and report parameter values. At run time, the report server runs a query to get values used for subscription settings. We can use the Create Data-driven Subscription pages to define the query and assign query values to subscription settings. For detail information,
    please refer to the following steps:
      1. Open Report Manager, and locate the report for which you want to create a data-driven 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 Data-driven Subscription.
      5. Choose a method of delivery, then select data source for the subscription.
      6. Specify a query that retrieves subscriber data like below:
    CREATE TABLE Name (
    BranchName varchar(20),
    ExcelFileName varchar(20),
    Email_to varchar(50)
    INSERT INTO Name values
    ('Branch1', 'Name1', '[email protected]'),
    ('Branch2', 'Name2', '[email protected]'),
    ('Branch3','Name3', '[email protected]');
      IF we chose Windows File Share delivery extension, we can define path in the query.
      7. Specify delivery extension options like below:
      8. Specify report parameters to BranchName.
      9. Specify when the subscription is processed, then click Finish to save the configuration.
    For more information about Data-driven Subscription, please refer to the following documents:
    http://msbimentalist.wordpress.com/2013/08/26/how-to-create-data-driven-subscription-in-ssrs/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Execute a Query from a report sending it parameters and capture the result

    Hello everybody,
    Greetings from Peru, I want your help, Do you know how to execute a query from a report sending parameteres and capture the result in a internal table?
    The attached imaged has in red square the parameteres I want to send from a report.
    The idea is to have a JOB that executes everyday and parameters like DATE PERIOD will change automatically.
    Thanks for your time.

    Hi Enrique,
    You can call a query from a report by using submit statement.
    Every query has a corresponding program associated with it.
    Execute the query from SQ01. On te selection screen of query, goto SYSTEM  from menu and then click on STATUS, you will get program name (In this case aqzzzent_struct=zmm_ent_struc1). Use this program to call the query from your custom program.
    Also populate the rspar int table as per the selection criteria you want to pass to query.
       DATA: rspar     TYPE TABLE OF rsparams,
        wa_rspar  LIKE LINE OF rspar.
          wa_rspar-selname = 'SP$00001'.
          wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'.
          wa_rspar-option = 'BT'.
          wa_rspar-low  = s_cmp_cd-low.
          wa_rspar-high = s_cmp_cd-high.
          APPEND wa_rspar TO rspar.
       SUBMIT aqzzzent_struct=zmm_ent_struc1 WITH SELECTION-TABLE rspar AND RETURN.
    Thanks,
    Sachin

  • Issues in Multiprovider Report, based on Purchase and Inventory Infocubes

    Dear Gurus,
                       There are two reports (1. Report gives INVENTORY details and other report is linked to this report which displays PURCHASE data related to material on INV report Using RRI.) , user wants all the INV info along with PR, PO, PDATE, PRECIEPT.... in the same report.
    To satisfy the above requirement, a multiprovider is created on the above of PUR, INV Infocubes, with Identify (assign) condition for 0CALDAY, 0MATERIAL, 0MAT_PLANT, 0PLANT. Does anymore Infoobject need to be included for assign condition?
    Another Report Template is created to make it out. Time Variable for this Report is in "01.12.2010 - 31.12.2010" format, is this a valid time variable or do I need to create another which considers sys-datum-1.
    Issue: I am unable to get the data for the Fields "Cur.Stock","Total Consumptionu201D, u201CAverage Consumptiom","Below from Consumption","CnsStckReceipts " and getting wrong data for "BLW SFTY"....
    Your help is much appreciated.

    Hi,
    Please check the data in the underlying cube and also check teh multiprovder
    data by t-code listcube.Make sure you have done the proper identation.
    Thanks,
    Saveen

  • Report based on parameters

    I would like to create a report that runs a different sql statement based on the parameters passed in. The column layout won't change but the group by sections will(I think I can handle that by suppressing field when parameter is null). For example, the parameter asks for Division, Branch and Group. If the user only puts in Division I would like to run a different sql statement then if the user provides Division, Branch or Division, Branch and Group. Thank you very much in advance for your help!
    Holly

    You should start by looking at lexical parameters in the on-line help and seeing how you can alter SQL statements programatically using them.
    You should also look at using format triggers to turn 'off' certain layout objects (by returning false).
    Hope this helps,
    Danny

  • Dynamic report columns in parameterized report

    Hi all,
    Just wanted to share some ideas... I was looking for a way to allow users to seect which columns to display in a parameterized report.
    I came across Denes Kubicek's solution on his APEX demo site (the "Pick Columns" page)... works beautifully.
    The only problem I had was that some of the report columns required joins to other tables. (up to 5 left outer joins). Could not figure out how to do this based on Denes sample solution. I then thought of creating a view, which joined all the required fields for output. I then run my report against the view... this works even better.
    I also used a shuttle instead of a multi-select list, since I have about 25 columns to pick from... I find the shuttle a lot more flexible (re-ordering of columns etc..)
    One thing I still haven't figured out yet though, is how to make the columns sortable? If I check off the sort check box on the report atttributes for the generic "col0"... I get an oracle error...
    If anyone has figured this one out, please let me know..
    Thanks to Denes for the solution...
    Stephane

    Actually, getting the error, albeit intermittently...
    Here is the SQL debug output
    select ECC_No,Opportunity_Name,Opportunity_Status from custom_report_vw where NVL(opportunity_type_id,-1) = decode(:P12_type_id,-1,NVL(opportunity_type_id,-1),:P12_type_id) and NVL(DEPARTMENT_ID,-1) = decode(:P12_dept,-1,NVL(DEPARTMENT_ID,-1),:P12_dept) and 
    NVL(max_5_effort_days,'%null%') = decode(:P12_5_EFFORT_DAYS,'%null%',NVL(max_5_effort_days,'%null%'),:P12_5_EFFORT_DAYS) and
    NVL(IN_FLIGHT,'%null%') = decode(:P12_IN_FLIGHT,'%null%',NVL(IN_FLIGHT,'%null%'),:P12_IN_FLIGHT) and NVL(CLIENT_FUNDED,'%null%') = decode(:P12_CLIENT_FUNDED,'%null%',NVL(CLIENT_FUNDED,'%null%'),:P12_CLIENT_FUNDED)  and 
    NVL(opportunity_category_id,-1) = decode(:P12_category_id,-1,NVL(opportunity_category_id,-1),:P12_category_id) 
    and NVL(priority_id,-1) = decode(:P12_priority,-1,NVL(priority_ID,-1),:P12_priority) and 
    NVL(work_type_id,-1) = decode(:P12_WORK_TYPE,-1,NVL(work_type_id,-1),:P12_WORK_TYPE)
    order by 4,1
    failed to parse SQL query:
    ORA-01785: ORDER BY item must be the number of a SELECT-list expressionFor some reason, in the order by it puts 4,1... but I only have 3 columns in my select list...
    If I choose an additional column, then the query works. I'm also confused as to why it sorts on the 1st column as well? In my report attributes, I do not specify a sort sequence, so I figure it would simply sort on the chosen column index.
    This query used was working fine yesterday with one or two columns...
    Any ideas?

  • Generate dynamic reports using sql query and send via mail

    Can anyone provide me the links to dynamically generate the sql query based reports and send it to Mail. it should be called from the scheduler program using PL/SQL

    suppose you have the query as
    spool myrep.txt
    select * from emp where rowid<3;
    spool off
    write the query in the emp.sql query at any directory like d:\sqljobs\emp.sql
    the call make a batch file like sndml.bat and write the following codes
    sqlplus scott/tiger@orcl @d:\sqljobs\emp.sql
    explorer mailto:[email protected] d"\sqljobs\myrep.txt
    or if you are using any mailing software then you can use that..

  • How can I compare two periods in a report based on parameters

    Hi all,
    I'm wondering how can I create a matrix report which compares the sales of two periods. These periods are variable and coming from the parameter section that the user is using. For example, I have got the following table "Sales". Columns are:
    ID (not visible in report, can be used to lookup)
    Country
    Customer
    Year
    Quarter
    Month
    Gross sales
    The output that I would like to get is the following
    Parameter period 1: 2013 Q1
    Parameter period 2: 2013 Q3
    The report should look something like this:
                                          2013 Q1         
    2013 Q3
    USA                Microsoft         50000          75000
    So in the third column you'll see the sales based on parameter period 1, and the fourth column shows the sales based on parameter period 2.
    Thanks for the help!

    Just to be sure I understand...
    You have 1 primary dataset that returns records that will be displayed in a tablix in your report. The data will include sales information records from various years, quarters, etc. You want your report user to be able to select 2 sets of data for comparison
    based on quarter. Is this correct?
    To do this, start by adding a Matrix to the report. Set the Column Group to group on the expression:
    =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Set this same formula as the group header. Now Set the existing Row Group to group on Customer. Add a parent group above this Row Group and group on Country. In the detail cell set the value to:
    =Sum(Fields!GrossSales.Value)
    You will also need to access the tablix properties and set a filter as follows:
    Expression: =CStr(Fields!Year.Value)+" "+Fields!Quarter.Value
    Operator: In
    Value: @Quarters
    For this filter to work, you will need to create the @Quarters parameter as follows:
    On General tab:
    Name - Quarters
    Prompt - Select Quarters to Compare
    Data type - Text
    Allow multiple values - Checked
    Visible - Selected
    Available Values:
    Get values from query - Selected
    Dataset - dsQuarters
    Value field - YearQuarter
    Label field - YearQuarter
    Default Values:
    No default value - Selected
    Advanced: Leave at default settings
    For the parameter to work you need to create the dsQuarters dataset. This dataset needs to return a single column of distinct values for Year + " " + Quarter based on the same query that you use for your primary dataset. Add the distinct keyword (if using
    TSql) or equivelent and eliminate all of the unnecessary columns. Set it to return Year + " " + Quarter AS YearQuarter.
    Let me know if you have questions or if I missed something.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • SES report based SES sheet and Posting date wise

    Hi All,
    Please let me know is there any standard report is available to view the SES sheets created against a PO and within a date range (posting date based).
    I have tried below T-Codes but  i am not getting Posting date field in these codes.
    1.ME2S
    2.ML84
    3.MSRV6
    Regards,
    Bhadra

    May I know what do your mean by posting date ?
    When you accept the SES, at that time you can see posting date..
    Either there are two date you can see in SES,
    1. Document Date , 2. Created Date.
    The document date will shows in every report..
    But Created date will available only in table level..
    Check table ESSR, Here you will find entry date, SES number and PO number also..
    Regards
    Dev

  • Dynamic domain-based entity creation and relation to base entity

    Hi everyone -
    My first post here...  I have a base entity (PROJECT) with an attribute called RecordType (a domain-based attribute).  Depending on the value of RecordType, the business wants to use that result set as input for another reference entity, and then
    relate them together in a possible {one|many}-to-many relationship.  For example:
    If RecordType = Strategy, then there is a need to create a separate entity called STRATEGY with the results of that filter.  The PROJECT entity and STRATEGY now need to be related together in a PROJECT_STRATEGY relationship table.
    There seem to be a couple of options, but none are elegant, and some simply don't work:
    Option #1 (doesn't work): I create the relationship table (PROJECT_STRATEGY) with a domain-based attribute of the PROJECT entity and a second domain-based attribute of the PROJECT entity (but called Strategy), and then try to create a business
    rule that limits the selection of the second domain-based attribute by RecordType.  MDS tells me I can't use a domain-based attribute in the business rule.
    Option #2: I create a SQL Server view called STRATEGY (which is a query based on the PROJECT entity - "where RecordType = 'Strategy') and use that as the reference set.  However, there is now no way to utilize that result set inside MDS. 
    In other words, I cannot use it as a domain-based attribute in the PROJECT_STRATEGY relationship table.  This means that an external system/UI would need to enable the relationship selection and write back into the PROJECT_STRATEGY relationship table
    inside MDS.
    Option #3: I create a STRATEGY entity that is auto-updated (via SQL Server job) every 10 minutes or so from the PROJECT entity (can't figure out how to load a reference entity based on a result set from an existing entity).  This allows me to create
    two domain-based attributes in the PROJECT_STRATEGY table (as described in Option #1), but is also what I call a non-standard customization, so I have been reticent to go this route.
    So, my questions/comments are:
    Is there any way to make Option #1 work (using business rules)?
    Option #2: Our development team doesn't want to create a separate system/UI to relate the list of PROJECTs to the list of STRATEGYs and then write them back into the PROJECT_STRATEGY relationship table.  This also limits the ability to maintain the
    PROJECT_STRATEGY table inside MDS since the STRATEGY domain-based attribute would become a free-form attribute at that point.  Is there any way to register a view as a reference entity?
    Should I explore Option #3?  Non-standard, non-native functionality introduced into MDS (any system, really) is something I wanted to avoid, but only from a purity and possible upgrade standpoint.  Should I get over this?
    I have looked at derived and explicit hierarchies for the PROJECT entity, but they do not seem to apply in the scenario above.
    Has anyone tried to create {one|many}-to-many relationships between a base entity and a subset of that base entity without resorting to non-standard customizations within MDS?  Is this as bizarre as it sounds?
    Any help would be greatly appreciated.
    Thanks.

    Hi,
    I f you are going with rtti approach.... for dynamic creation....you can assign the checktable field in field cat
    ls_fcat-ref_table  = space.
        ls_fcat-ref_table  = 'ZST_DISTRIBUTED_EFFORT'.
        ls_fcat-ref_field  = 'WORK_EFFORT'.
        ls_fcat-rollname   = 'DPR_TV_EFFORT'.
        ls_fcat-domname    = 'DPR_WORK'.
        ls_fcat-reptext    = ls_fcat-fieldname.
        ls_fcat-scrtext_l  = ls_fcat-fieldname.
        ls_fcat-scrtext_m  = ls_fcat-fieldname.
        ls_fcat-scrtext_s  = ls_fcat-fieldname.
        ls_fcat-emphasize  = me->gc_flag_enable.
        ls_fcat-col_pos    = lv_counter.
    ls_fcat-checktable = ' '.
        APPEND ls_fcat TO lt_fcat.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog           = lt_fcat
        IMPORTING
          ep_table                  = et_dynamic_table
        EXCEPTIONS
          generate_subpool_dir_full = 1
          OTHERS                    = 2.
      IF sy-subrc NE 0.
        es_message-id         = sy-msgid.
        es_message-type       = sy-msgty.
        es_message-number     = sy-msgno.
        es_message-message_v1 = sy-msgv1.
        es_message-message_v2 = sy-msgv2.
        es_message-message_v3 = sy-msgv3.
        es_message-message_v4 = sy-msgv4.
    Thanks,
    Shailaja Ainala.

  • Crystal Report based on Universe and RAS SDK missing functionality

    Hi,
    In Crystal Report Designer Application i can select Universe as a data source for the Crystal Report and on the query panel construct the actual query using Universe objects and conditions.
    Now, my question is how can i do the same PROGRAMMATICALLY. I.e. i want to make a new or take an existing crystal report, check if it's based on universe, then access the actual universe query structure and construct/modify the query by operating with the actual Universe objects and conditions.
    I tried to use RAS SDK for this, but i could only access Tables that dont even show on which universe they are based on. 
    Should i use some other SDK to do this?
    Thanks,
    Roman.

    Thanks for your response. Ok, if it's so complicated, then i'm not concerned about universe query creation. I have more specific questions now:
    1) You've said that CrystalReport stores Universe SI_CUID values that it connects to. Let's say i have 3 tables based on universes in the report. What is the best way to determing which universe correspond to which table using RAS SDK?
    I looked at ConnectionInfo for each table, it sais that it's based on universe, but it DOES NOT have universe CUID property.
    Using Enterprise SDK i can access SI_UNIVERSE_INFO of ProcessingInfo for report InfoObject and see the list of universes used, but they are not matched to the actual tables, so i cannot really find out which universe belongs to which table.
    2) If EXISTING CrystalReport is based on Universe, is it possible to retrieve the actual universe objects and conditions used in this report? I can see that field names correspond to object names, BUT i also need a parent class name, becuase object is NOT identified by it's name only withing the universe.

  • Development of report based on AR and AP cubes

    Hi All,
    I have 2 cubes i.e., 0FIAR_C03 and 0FI_APC03. AR cubes has got 0Debitor and 0Creditor, where 0Debitor is referencing 0Customer in AR cube and 0Creditor is referencing 0Vendor for AP cubes. Business has asked to develop a report so that it should show with Customer the balance of Customer and also for same customer it should show balance of Vendor. I have created a multiprovider and tried to develop a report on it but its not showing according to my requirement. Could any one please tell me how develop a report for this?
    Thanks

    Hi,
      Does the AR cube contain customer also or it is not present in the cube at all. You can have relation like this....
    AR cube
    Customer amount
    AP
    Customer vendor amount.
    Then you can define relation in the report via multiprovider. I hope you got my point....

  • Hyperion Planning dynamic forms based on start and end date across years

    Hi All,
    I have a requirement where i need to be able to view a form showing periods across years that are dynamically built depending on the start and end dates. If i have a start date of 01/11/2009 and an end date of 31/7/2013 i want to be able to view a form that shows all of the periods (Jan,Feb etc) in a form that is driven by these dates, in addition it will need to show the actual scenario up to the current month and the forecast from the current month to the end date. So basically if a user inputs the start and end dates the form will display the relevant periods driven by these dates.
    Any tips very much appreciated!

    Hello,
    This is difficult to realize, but you can get quite far with a workaround. The first question is, where do you want to input your selection of time periods? Assuming you have a webform with the complete timeline in months and years and you type in the start period and end period.
    Webforms have the option to suppress rows and columns.
    This can be extended with option of empty cells or not empty cells.
    You will need to apply your creativity on this.
    Put every month-year combination in a column and add the suppression.
    Calculate the timeline between start period and end period with a dummy member, so data exists for these and columns will show.
    Maybe you will need to copy the required timeline into a separate version for this, to avoid having periods which were outside the selection and still have data.
    I hope these hints help a bit in this challenge.
    Regards,
    Philip Hulsebosch
    www.trexco.nl

  • Dynamic Buffering Based on Bandwidth and Datarate

    I'm trying to determine an initial value for NetStream.bufferTime based on the client's calculated bandwidth and the video's bitrate.
    As far as I can tell you can't do this, because you must have an initial buffer set BEFORE you call NetStream.play() (or use the default 2 seconds) and FMS does not call NetStream.onMetaData, where one would normally find the videodatarate, until after NetStream.play() is called.
    Even if you modify NetStream.bufferTime during the onMetaData call back it doesn't effect when the video starts playing or when the NetStatus event registers "NetStatus.Buffer.Full".
    Therefore my question is:
    How do I find the Video Data Rate BEFORE I call NetStream.play?
    -Or-
    How do how do I reset the initial bufferTime before acctual play back begins and the NetStatus event fires with "NetStatus.Buffer.Full"

    I think you are right. Without playing the stream you cant decide it datarate.

Maybe you are looking for