Simple drill down report

Based on How-to Document "Build drill down report" I have set two page items in a column link on page 1: P2_IDOWNER, P2_IDTABLE
On target page (page 2), I have inserted item values in the title region using syntax: &P2_IDOWNER. , &P2_IDTABLE. (no problem)
However, the SQL query in page 2 does not work (zero files returned) using syntax :P2_IDOWNER, :P2_IDTABLE
Region Source
select *
from loadtable
where idowner = :P2_IDOWNER
and idtable = :P2_IDTABLE
any help with syntax on "Region Source"?
Note: field format for both (idowner and idtable) is CHAR

thanks Sergio but, that's not the cause of the problem.
I also tried to execute the query writing items in quotation marks because of format fields:
select *
from loadtable
where idowner = ':P2_IDOWNER'
and idtable = ':P2_IDTABLE'
... but it didn´t work
Think I need an alternative way to write the "Region Source" (maybe PL/SQL?)

Similar Messages

  • Calendar with Drill Down Report

    Hello,
    Everybody.
    I am new to Application Express.
    Please any one tell me step by step how to make calendar with drill down report.
    Waiting for valuable reply.
    Thanks
    Rahul

    Not sure if this is what you wanted, but I have links on a calendar, and when you click them, it branches to another page with details about the event.
    To do this, create a calendar region. The SQL statement should have at least 2 columns: The date of the "event", and the text to display as a link. You should also choose a primary key that you want to pass to the drill down report when the user clicks. Something like this:
    select hiredate date_scheduled,
              ename display_column,
              empno
       from empIn the calendar attributes of that region, there is a place to designate which column is the date, and which should be displayed. Go down a little further and set the column link. Put the page you want to show the drilldown report on, and set any variables you need to.
    Hopefully that helped. Its pretty simple once you play around with it - start simple and then once you get the hang of it, make it more complex.

  • Total Label in Drill down reports

    This is a simple case scenario. I created one drill down report by Country --> State --> City and set this object as section. It has revenue Column in it. Now I did Summation on the Revenue column and it shows like this
    USA  -- (Section)
    Column1, Column2
    XXX, 3  
    Sum, 3
    Now instead of Sum, I would like the label to replace it with country name and when I drill down to second level, it should replace it with the State name and again on level 3 replace it with City name.
    Could anyone help me on achieving this. Is it doable? I have been trying to achieve this but had no success.
    Thanks for your help in advance.
    Rids

    Yes, It can be achieved with the help of the DrillFilters() function.
    You can build the logic using if-else condition. Here is the one for you:
    =If(Drillfilters([City])<>"") Then [City] Else If(Drillfilters([State])<>"") Then [State] Else If(Drillfilters([Country])<>"")
    Then [Country]
    Regards,
    Rohit

  • Multi-Use Drill Down Reports?

    Hi,
    I'm just starting out with reporting in SSRS so this may be a silly question but I'm struggling to find a way to do what I want :)
    I have a large graphical report with several top 10 reports on different a cube. (eg. top 10 number of events, top ten numbers of computers affected) 
    I want drill down reports for both the Event Name and Computer Name, also to be able to click on the header of the report and get a complete unrestricted report. I have created a drill down report that has all the data and if I choose one item (say computer
    name) I can drop down to the drill down and filter the table in that with the computer name and return any results for that computer. I cant figure out how to have a secondary link that passes a wildcard to returns all results. I'd also like to have the ability
    to send an event name to the same drill down and a wildcard for the computer name. However I cant figure out how to get the filter on the table to accept any wildcards. 
    I dont want to have to create multiple reports for each of the different drilldowns, is this possible? (Easy to understand answers for a newbie if possible :) )

    Hi Chris_C2000,
    If I understand correctly, you have configure “Go to report” action in your report. It is Drillthrough in SSRS. You want to pass a value link to the corresponding report. We can add parameters in the drillthrough report, then pass parameters values to the
    report.
    I have create a simple report in my test environment. Suppose we have the same dataset (DataSet1) in main report and subreport with two fields: CalendarYear, SalesAmount. Please refer to it.
    Subreport:
    Add a table in the report body, fill with CalendarYear, SalesAmount fields.
    Add another dataset (DataSet2) with CalenderYear field.
    Add a parameter (CalenderYear) get Available Values from DataSet2 CalenderYear field.
    Add filter in the DataSet1, with values below:
    Expression: [CalenderYear]
    Operator: =
    Value: [@CalenderYear]
    Main report:
    Add a chart in the report, fill SalesAmount in the Values dialog box, CalenderYear in the Category Groups dialog box.
    Right click the bar in the chart, click Series Properties.
    Click Action in the left pane. Select “Go to report” option.
    Select the subreport below “Specify a report” prompt.
    Click Add icon below, and fill with following values:
    Name: CalenderYear                 Value: [CalenderYear]
    Then, when we preview the report, we can click the specific bar link to the subreport get the corresponding data.
    Reference:
    http://technet.microsoft.com/en-us/library/aa337477(v=sql.105).aspx
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • FI Drill down reports

    I am practicing SAP FICO configuration.... Can anyone give me an example of FI drill down reporting like financial statemnet comparision and also for profit center reporting ....jus some simple example to get the idea of drill down reports.

    Refer to the book from SAP.....If I remember correctly, its "SAP Reporting Made Easy". You can look for it in amazon.
    Though the reports in SAP are not clean, you can get some idea about reports and also how "not clean" they are.

  • Drill Down Reports - Very Urgent

    I have the following situation.
    I want to create a drill down report and pass parameters from the
    master report to the detail.
    I built 2 simple tabular reports Drill1 (master) and Drill2 (detail). I have placed a button in the repeating frame of the Drill1 report, and I wrote the following code in its trigger:
    srw.run_report('report=DRILL2');
    I have tested the report and it works just fine.
    But .... I want to pass as a parameter to the second report the value of a field. According to the documentation I shall change the button trigger to
    srw.run_report('report=DRILL2 paramform=No p_1=''' || :field1 || ''''); -- (the value is a string)
    I did so but it gives me the REP-0159 error. Am I doing something wrong?
    Note that I am using reports version 6.8.12.1
    Thanks
    Ioanna

    hi Ioanna,
    The Problem seems to be with the quotes in your srw.run_report command line . The appropriate commandline should be
    srw.run_report('report=DRILL2 paramform=No p_1='||:field1||' ... <rest of the cmd line >');
    ( note the quotes before / after ||:fie1d1|| .. )
    Regards
    Oracle Reports Team

  • How To Create Drill down report in oracle report 6i version

    HI,
    I have one table having dept no , emp_no ,Sal like field.
    I want drill down report master column dept_no.
    i want one click on dept_no & i want to see detail of emp & Sal on it
    How can i do this please guide me.
    Thanks in advance
    Rahil

    Hi
    One simple concept is,
    Make dept only report call it as dept.rdf
    Now create another report call it as emp_details.rdf,
    Now in Dept.rdf. Make push button and call the emp_details repot by passing dept no varailble.
    Hope you got idea of drill Down on 6I
    Edited by: O.Developer on Dec 19, 2012 9:20 AM

  • Sorting drill down report

    Mr. Kubicek's "Report on Report" is excellent if anyone is looking for a drill down report, but if Denes or someone could help me with one last piece, I would be indebted.
    I have aggregated values for the columns I wanted to total for each employee in Report 1: "Total # of Sales" and "Total $ Sales". These totals become links for the drill down in Report 2. Clicking on the aggregate total of "Total $ Sales" in Report 1 will show all related individual sales records for that employee in Report 2.
    My problem is in sorting Report 1 by the aggregate columns, "Total # of Employees" and "Total $ Sales". The columns do not sort correctly from high to low etc. I have copied Denes report code exactly. What do I add or change to sort these two aggregate columns from high to low? Thank you all.
    Mike

    Thanks so much, Dimitri. I don't have the link, but here is my query (does this give you enough to diagnose?). The columns etc differ from my original post (I was trying to keep it simple in my example...).
    SELECT "l_t_num","l_truck_name",
    '<span style="font-weight:bold;">'
    || '<a href="f?p=&APP_ID.:113:&SESSION.::NO::'
             || 'P113_TRUCKNO,P113_TRUCKNO_COUNT,P113_TRUCKNO_PAID:'
             || l_t_num"
    || ','
    || "l_t_num"
    || ','
    || NULL
    || '">'
    || COUNT (*)
    || '</a></span>' "l_file_number",
    '<span style="font-weight:bold;">'
    || '<a href="f?p=&APP_ID.:113:&SESSION.::NO::'
    || 'P113_TRUCKNO,P113_TRUCKNO_COUNT,P113_TRUCKNO_PAID:'
    || "l_t_num"
    || ','
    || NULL
    || ','
    || "l_t_num"
    || '">'
    || TO_CHAR (SUM ("l_due_to_truck"), 'FML999G999G999G999G990')
    || '</a></span>' sum_truck_cost
    FROM "LOADS_HISTORY_NC"
    where instr(':' || :P113_YEAR || ':',SUBSTR("l_file_number",3,2)) > 0
    AND instr(':' || :P113_MONTH || ':', SUBSTR("l_file_number",5,2)) > 0
    GROUP BY "l_t_num", "l_truck_name"
    The two results columns are 'sum_truck_cost' and a count of "l_file_number" for each carrier ("l_truck_name"). These two columns in my report are aggregate values and are links. Clicking on either the 'sum_truck_cost' value or count value opens a second report with the individual records. I have enabled the sorting option for these columns in Report Attributes, but manually sorting the columns does not put the records in correct asc or desc order based on either total.
    This is almost exactly as Denes has on his site, so he has a working example. I have only inserted my own columns into his code etc. Thank you so much Dimitri!!
    Mike

  • New to Application Express - Drill down report question

    Good evening group. I'm new to this Application and DB but can't find quite the correct answer.
    QUESTION 1 - I have found and successfully used the "Drill down report example". However, I am only able to do it from a brand new application. That doesn't seem quite right though.
    QUESTION 2 - I dropped a column while cleaning/correcting my data but I can't seem to get rid of it from a couple of simple HTML reports. I can't find out how to remove the column (granted I am looking for the gui tool). I would use the "query source" under the "report attributes" tab but the lower section (I believe they are the joins) have me perplexed.
    Any thoughts, help would be greatly appreciated.
    -Dave

    Hi Dave,
    >> QUESTION 1 - I have found and successfully used the "Drill down report example". However, I am only able to do it from a brand new application. That doesn't seem quite right though.
    I'm not being a smart alec, but I don't see the question in this.
    >> QUESTION 2 - I dropped a column while cleaning/correcting my data but I can't seem to get rid of it from a couple of simple HTML reports. I can't find out how to remove the column (granted I am looking for the gui tool). I would use the "query source" under the "report attributes" tab but the lower section (I believe they are the joins) have me perplexed.
    For now, don't worry about the WHERE clause of the SQL query unless the column you dropped is in the WHERE clause as well. Beginning with SELECT and up until FROM in the query statement, if you see your column, remove it from there.
    If you post your query and the column to be removed, we can help further.
    Joel

  • Drill down report update

    Hi,
    How to add several currency value (USD, LKR) in drill down report - in Due Date Analysis for open Item report (S_ALR_87012168)
    Thanx.

    Hi,
    How to add several currency value (USD, LKR) in drill down report - in Due Date Analysis for open Item report (S_ALR_87012168)
    Thanx.

  • Drill-Down Report Printing Problem for Selection Parameters

    Dear Experts,
    Have tried to configure Drill-Down Report for Vendor Balances,
    Am having trouble when printing this drill-down report, Printing is coming OK but it comes with ALL selection parameters, for e.g, have entered 20 vendor codes for the balance display, system first prints all selection parameters and then it prints the output of vendor balances,
    User does not want selection Parameters to be printed with the Report Output. Please find below screenshot for the problem.
    Input Parameter Screen
    Report Output Screen
    Print Preview Screen (First Page - Selection Parameters)
    Your help is much appreciated, if anyone can guide me, how to switch off selection parameters from Print Output of Drill-Down Report
    Thanks
    Regards
    P

    Hello Ms. Preeti,
    Thanks for your reply, Have designed the report through FKI0 (FKI*)
    Have already looked these setting, but these are not helping really, PFB screenshot for settings am having in my system, if you have any idea which can avoid User Input Parameters from printing then it will be really great help
    Thanks for your help
    Kind Regards
    P

  • Drill Down Report Performance issue?

    Hi,
    why drill down report is slower performance comparing with Action link/Navigation method? what could be the back end processing?
    Thanks
    MRD

    Need to know/see your config to tell why it is slow, I would suggest to follow best practices for the same.
    Drill down back end process something like:
    Report fetch next level columns and the all aggregated measures are grouped by next level this may take some time unless you go with aggregate table (is part of best practices)
    Appreciate if you mark as correct/helpful

  • Hiding fields in ALV DRILLED DOWN REPORT

    Hi
    My scenario is like this i created a alv drilled down report , in that once the user executes it ,it will displays the header contents of the purchase order.
    If the user double clicks on any of the header line item it will displays the item detials of the particular header data..
    My probelm is if i double click  it i am getting the header details added with the item fields..i want to hide the header detials if i want to c the item level details..
    Can any suggest me some better ways to hide the header contents ??
    Arun Joseph

    hi,
    check ur field cat...
    R u using same name?
    If possible paste ur code here...

  • Drill down report...

    HI abapers,
    How to create drill down report in alv.
    When i double click the particular field, another report has to pop up and display the details of that particular field.
    for eg,
    When double click the amount spent field other report has to say, For which material the amonut has spend.
    Thanking You
    arvind

    hi arv,
    for me your scenario is not clear..
    you want to drill down the alv .. and show the report in the same program or you want to call another program when u try to hit the alv report..
    well for drilling down the same program.. you can use the following method
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK                 = ' '
        I_BYPASSING_BUFFER                = ' '
        I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                 =  GV_REPID
        I_CALLBACK_PF_STATUS_SET          = ' '
         I_CALLBACK_USER_COMMAND            = 'TOP1'     " drill down
         I_CALLBACK_TOP_OF_PAGE             = 'TOP2'
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    FORM TOP1 USING UCOMM TYPE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
    READ TABLE GT_FINAL_TOTAL INTO GS_FINAL INDEX SELFIELD-TABINDEX.
    CASE SELFIELD-TABINDEX.
    WHEN SELFIELD-TABINDEX.
    perfrom itab2_operation. " in this form you will write the code to get the data for drill dispplay
    now defing fieldcatalog again : example :
        GS_FCAT-COL_POS = 1.
        GS_FCAT-FIELDNAME = 'EBELN'.
        GS_FCAT-SELTEXT_L =  TEXT-001.
        GS_FCAT-FIX_COLUMN = 'X'.
        GS_FCAT-OUTPUTLEN = 13.
        APPEND GS_FCAT TO GT_FCA
    and  call alv display again :
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
        I_CALLBACK_PROGRAM                =  GV_REPID
      I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_TOP_OF_PAGE            = 'TOP2'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      = ''
      I_GRID_SETTINGS                   =
        IS_LAYOUT                         = GS_LAYOUT
          IT_FIELDCAT                     = GT_FCAT
    and if you want to call another progam when u hit..u have to use..submit key work
    like  SUBMIT  ZAFI013R VIA SELECTION-SCREEN AND RETURN.

  • Drill down reports in character mode

    How to make drill down reports in character mode(remember not bitmapped)using report designer 6
    null

    I solved the problem in UNIX with this script, replacing the special characters:
    sed -i 's/special_1/¡/'  $salida
    sed -i 's/special_2/¢/'  $salida
    sed -i 's/special_3/£/'  $salida
    sed -i 's/special_4/¤/'  $salida
    sed -i 's/special_5/¥/'  $salida
    sed -i 's/special_6/¦/'  $salida
    sed -i 's/special_7/§/'  $salida
    sed -i 's/special_8/¨/'  $salida
    sed -i 's/special_9/©/'  $salida
    sed -i 's/special_10/ª/' $salida

Maybe you are looking for

  • Lead selection with a tree-based table.

    I've created a recursive context node to display contents of a KM folder.  The structure has been mapped to a table, which works just fine.  I can expand nodes of the tree and display the contents of sub-folders.  Great.  However, I need to know whic

  • While posting material in mb1c i am getting error message period 012/2006

    hi every one how ru n advance happy new year while i was posting stock in mb1c i am getting an error message period 012/2006 is not open for account type S and G/L account 799999 so plz anyone help me in solving this error. thanks & regards venuprasa

  • Upgraded to iTunes 6 and cant find my music files

    I upgraded to version 6 today and afterwards almost all of my files give me the error message: file could not be used because the original file could not be found. Would you like to locate it? I lost a lot of music i purchased through iTunes and I do

  • HELP! White Screen then Completely Unresponsive

    I have a year-old Ipod nano 6th generation (small, touch-screen). Last night I fell asleep with the ipod still on (which I've done many times before with no problem) and when I woke up, I hit the start button and it only had a plain white screen. Aft

  • Invalid sim  after updated to 5.1.1

    I have updated iphone from ios 4.3 to 5.0.1. After updating ios, the phone doesn't recognize sim and keep saying sim invalid. However there is no problem with sim and phone never been hacked (jailbroken).