Passing YTD selection from a main query to a detailed query using RRI

Hi,
We have created two queries: one main query on an infocube for aggregated data, one detailed query on the feeding DSO for data at the level of sales document items.
Both queries show monthly and YTD (year-to-date) actual cost figures.
The user enters for instance the month of 05.2005 on the main query in a variable ZP_MONTH.
A user exit variable ZS_YTD is calculated so that the interval 01.2005 - 05.2005 is stored in ZS_YTD.
Revenues in the month are displayed in one column.
Revenues in the YTD period are displayed in another column.
Assume the data is displayed by document types.
Then the user should select the document type and perform a jump target (Goto) to the detailed query to see which sales document items are contributing to the total revenues behind the document type.
We have defined a ZS_YTD_2 variable on the detailed query.  It is used in the field assignments in the RSBBS transaction to receive the 0CALMONTH selection (in our case 01.2005 - 05.2005).  Then on the detailed query, we defined another userexit variable to capture the selected month based on ZS_YTD_2.
Our issue is that when the user goes from the main query to the detailed query, the variable screen of the detailed query is being displayed with the variable ZS_YTD_2 open and the user can even change the selection there.
Is it possible to remove the display of this intermediate variable screen?
Thanks.

Well.  If you unflag the variable for ready for input on the detailed query, then it is not possible for that variable to receive the period selected on the main query.  Even worse, the query crashes with the message that the variable is not correctly defined.
Any other suggestion?
Thanks.

Similar Messages

  • Parition issue when selecting from the main table

    I have a partitioned table where i jsut did a partition
    exchange with another temp table.
    when I query the partition it looks good, i.e. the data is there, but when I query the data directly
    on the table no rows are returned.
    for example
    select count(*)
    from sales partition (2007)
    12455
    select count(*)
    from sales
    where year = 2007
    0 rows
    I've reviewed the parition 2007 and esnured the 'where year = ' clause is accurate via previous years.
    why am i not seeing this data in the second query?
    db = 10G R2
    thanks

    create table SALES
    nologging
    parallel
    partition by range (year,fscl_period,channel)
    PARTITION p_200701_5 values less than (2008,200702,6) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_6 values less than (2008,200702,7) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_7 values less than (2008,200702,8) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_8 values less than (2008,200702,9) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_9 values less than (2008,200702,10) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_10 values less than (2008,200702,11) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_11 values less than (2008,200702,12) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_12 values less than (2008,200702,13) TABLESPACE SALES_2007_DATA,
    PARTITION p_200701_13 values less than (2008,200702,14) TABLESPACE SALES_2007_DATA,
    PARTITION p_200702_5 values less than (2008,200703,6) TABLESPACE SALES_2007_DATA,
    as select * from table...
    note: year,fscl_period,channel are all NUMBER datatype.
    Fiscal period is month bascially
    I am wondering if doing this all this in a range partition, and not a range/list which channel may be better qualified for data wise, is the issue. Or perhaps range by year, sub by month, then list by channel. What will the impact be either way?
    Interestingly, the data will come back on a star query i.e. when the SALES table is joined to the calendar_dim (via a day_id field) and use the 2007 predicate from the calendar_dim rather than the one on SALES (the one used for the part. definition).
    Also, i did the partition exchange originally with the novalidation option. We tried again without that and the exchange failed saying some data doesn't qualify. But reviewing the data it appears it all should.
    We then just did a giant insert statement and it all went through, but i have not had teh chance to validate what partitions the data live in now.
    thanks for any help.
    jeff
    Message was edited by:
    jeffs

  • How to drill down from summary report to detail report using RRI?

    Dear all:
      A problem about RRI. Please help me!
      1.I create a BEx query 'Q1' to show summary data.
      2.I create a BEx query 'Q2' to show detail data.
      3.In Q1, all the products are shown each row.
           The 1st coulmn is 'Balance in the begin', it shows how many customer claim cases are opened before this week.
           The 2nd coulmn is 'New', it shows how many customer claim cases are initalized in this week.
           The 3rd coulmn is 'Close', it shows how many customer claim cases are closed in this week.
           The 4th coulmn is 'Balance', it shows how many customer claim cases are still opened now. And this column is calculated by this fomula as follow:
             'Balance in the begin' + 'New' - 'Close'
       4.In Q2, it lists each customer claim case. Include ClaimNo, Sold-To Party, ProductNo...
       5. I set Q1 as sender, Q2 as receiver.
       6. If I focus on the value of 'New' or 'Close' and then go to 'Q2', the correspond detail calim information in 'Q2'. But it is fail if I focus on the value 'Balance'.
       Why?
    Thanks,
    Jolin

    I don't know if you can use the hyperlink to call a subreport but the following has worked for me in Crystal 10:
    1. In your main report create a group on the field you want to pass to the subreport.
    2. In the Group Footer, use the "Insert Section below" menu command so that you have a Group Footer 1a and a Group Footer 1b.
    3. Put your table fields in the Group Footer 1b section (this would be similar to your Details data).
    4. Put the sub report in the Group Footer 1a section. Set up the links to the subreport from a table field in your main report.
    5. Right-click on the sub-report, select "Format Sub-report". Click on the "x-2" button to the right of the Suppress option and enter "DrillDownGroupLevel = 0" in the "Formula Workshop-Formula Format Editor-Suppress" window and save it.
    When you double-click on your data field (i.e. the field in Group footer 1b) it should drill-down and run your subreport.

  • Passing session id from one session to other in BI query.

    Hi all,
    i have an application developed in VC and launched in portal, on this application i have button, on push/click of this button, i am fiering a BI query to retrive data from infocube in backend BI server. here i have implemented an SSO already between portal and BI server, but on click of this button i am again asked for the authentication. I know what the problem is, on click of this button entirely new session is starting so in new session i am asked for authentication, but i guess if i pass the session id from old sesion to this new one, the cookie will get transfered and i will not be asked for authentication.
    Am i correct in this approach?
    Has anyone faced this issue,? i have searched all forums but didnt get anything relevent to my issue.
    Any help will be hghly appreciated!!
    Regards,
    Ameya

    Solved using SSO and using FQDN

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page
    with the following code :
    <HTML>
    <BODY>
    <ORACLE>DECLARE
    nre_ VARCHAR2(100);
    BEGIN
    nre_ := emp_nre;
    if nre_ is not null then
    net_portal.Popula_Agregados(nre_);
    net_portal.Popula_Docs_Agregados (nre_);
    htp.p('<iframe id=myFrame name="myFrame" frameborder=0 width="250%"
    height="300"
    src="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=
    3
    388118140&p_arg_names=_show_header&p_arg_values=NO&p_arg_names=_cad_nre_cond&p_a
    rg_values=%3D&p_arg_names=cad_nre&p_arg_values='||nre_||'">
    </iframe>');
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLERRM);
    END;
    </ORACLE>
    </BODY>
    </HTML>
    It works fine when we access the first time to the page, but if i press the
    save button after inserting or updating a detail record, the header record is
    lost. How can i avoid this situation ?

    I changed query:
    select
    Replace(
    '<img src="#IMAGE_PREFIX#ed-item.gif" border="0" alt="EditMap" usemap="#editmap***id***"></img>
    <map name="editmap***id***">
    <area shape="rect" coords="0,0,16,16" href="http://apex.oracle.com/pls/otn/f?p=&APP_ID.:'
    || decode ( type, 'FOLDER', '33', '22' )
    || ':&APP_SESSION.::&DEBUG.::P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_ID,P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_CALLING_PAGE:' || id || ',&APP_PAGE_ID." ></area></map>' ,
    '***id***', id
    ) Edit,
    id,
    type,
    name,
    decode ( type, 'FOLDER', 33, 22 ) target
    from tThe idea is - each img uses its own map.
    It works now.
    Check:
    http://apex.oracle.com/pls/otn/f?p=20980:13
    Lev
    Edited by: le on Nov 3, 2010 11:11 AM

  • How to pass Multivalue parameters from main report to the subreport to a database stored procedure

    I am having a Main Report, where the user selects the parameters, and calls the subreport which in turn calls the stored proc which updates the report parameters table, which will be used by all the other sub reports to filter data on.
    It works fine when I pass single values from the Main report to the sub report, and it updates the database, but when I map the formula field to the subreport, the subreport does not even show up, and nothing happens on the database. I am thinking the subreport is not executing. I am using the 'Change Subreport Links' to map the formula fields to the subreport parameters.
    Please let me know if there is any other work around or a sample report which solves a similar problem.

    That is definitely a problem. CR 11.0 has been out of support for 5+ years(?). CR 11.5 has been out of support for close to 3 years.
    As far as I am concerned, the suggestions given here are going for naught as presumably they are based on recent builds of CR (E.g.; CR 12.x or higher). I really doubt that Abhilash or Jamie remember if CR 11.0 had problems related to the issue at hand. But they do know that their suggestions work in current versions of CR.
    Thus a suggestion; I suspect that you should be able to obtain an image from your IT where you can install CR 11.0 and update it to CR 11.5. Then use this as a proof of concept to the powers that be in your org that it is time to get with the times. BTW.; the most current version of CR is CR 2013, version 14.1.x(!). Again, something that your org should be aware of. So, even better than updating the image to CR 11.5, download the free 30 day eval of CR 2013 and try the suggestions in that version. The eval download is here:
    SME Free Trials | SME Software | SAP
    BTW.; CR 2013 is a side by side install, meaning that it will happily co-exist with your current CR 11.0 install.
    - Ludek

  • How can i pass parameter values from html to a shell script

    Hi Guys...
    I had a requirement where i need to execute a sql statement and print the output in HTML page. This report has parameters to enter. So i created a HTML form which accepts parameters. When the submit button is pressed, the action tag in the form invokes unix shell script file. It will open sqlplus and run the sql script file .sql and print the output in the HTML page.
    sql script contains the query and some set options which prints the output in HTML page. Like "SET MARKUP HTML ON"... The query has some parameters like "select * from emp where empno = &&empnumber. I will use the same name "empnumber" while created the HTML parameter form like " <input type = "text" name="empnumber" size="10" align="left">.
    user sees this parameter form and enters some value in to that empno text box.
    My question is how can i catch these parameter values in a shell script and pass it to the sql script to execute it.
    Help Appreciated
    Thanx

    This is a A Bad Idea (tm). This type of CGI processing is old and were (and still is) full of security holes. Very easy to inject stuff (Unix commands and SQL) into it.. To get those parameters into SQL*Plus requires using Unix shell commands to process it - and something like a backquote allows all kinds of nasty stuff to be injected. The Unix shell was never designed to be used as a secure CGI environment.
    There are far better and far superior alternatives. Perl (with Perl_DBI) and PHP (using Zend Core for Oracle) come to mind as web scripting languages.
    Even easier is using HTMLDB. Very few moving parts. Is free. Supports Oracle 9.2 and 10G.

  • Passing a variable from BI to R#

    Hi
      Is there a way to pass a BI selection screen variable from BI to R3? I need to have a BI data source call an ABAP query with a user entered parameter that would be used as a selection criteria for the ABAP report
    Thanks

    Hi George,
    Try using RRI thru TCODE rssb.
    If you run the transaction RSBBS it will ask for the query name (Sender), after giving the particular query you have to click create, there you have different options to select the receiver query amongst BW BEx Report, BW Java Web Application, ABAP Reports etc etc. Select ABAP Report and give the source system and then select your Report, save it and come out of the transaction. The BW report is now linked to the ABAP Report.
    Thanks
    Jp.

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys,
    I have a situation where user picks a date from a date picker in tabular form.
    So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM.
    I have gone through the forums a lot and figured we can write a Dynamic Action using JQuery Selector. But I am not sure how to figure out the day from a date picker.
    I appreciate if some one can give your thoughts on how to proceed. It seems to be simple but looks like a tricky one. I am not familiar with writing Java Script.
    Thanks ,
    Raj

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Excute_query when new date selected from calender

    hi,
    i have a mater detail form. form is displaying current day values as default.
    i put a calendar to form for users can be select date.
    now,
    i want to excute_query when new date selected from calender.
    i writed below code to text_item(calendar) when_validate_item trigger but it nor woring
    .giving frm-40137 error.
    code is;
    :parameter.GUNLUK_TARIH := Name_In('PARAMATRELER.TARIH_SON');
    SET_RECORD_PROPERTY(1,'XXMOB_YAPBOZ_TAHTASI_GV',STATUS,QUERY_STATUS);
    go_block('XXMOB_YAPBOZ_TAHTASI_GV');
    DO_KEY('Execute_query');
    any help please
    best regards
    aykut

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • OracleBulkCopy WritetoServer does Select * from TableName , fix it please

    In Odp.Net latest version , whenever OracleBulkCopy.WritetoServer is called. It internally calls "Select * from TableName " to validate the table schema.
    I did some debugging and found that this is called in function GetMetaData() in OracleBulkCopy class .
    Please fix this issue by appending where 1=0 in the select clause so that it does not do a full table scan for every bulk copy insert.
    The whole advantage of OracleBulkcopy performance improvement is lost because of this line.
    When the Destination Table has < 1 lakh records this is not a big issue, but it degrades very badly when the destination table name has million records .
    Please release a patch as soon as possible.

    yes 100% sure, we even captured the trace logs from the Oracle Db end and we saw that "Select * from Tablename" was executed. See the trace below.
    To elaborate on it, I am a .Net Consultant, i even went into the Odp.Net dll code and verified that GetMetaData function is called when WritetoServer is called on a new OracleBulkCopyInstance.
    trace below
    SQL ID: 46dym63c8qhxd
    Plan Hash: 0
    select *
    from
    TABLEX
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 60 0 0
    Execute 0 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 0.01 0.01 0 60 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 94
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.00 0.00
    SQL ID: 5s2vzq2q78n3w
    Plan Hash: 0
    LOCK TABLE "SCHEMAX"."TABLEX" IN ROW EXCLUSIVE MODE NOWAIT
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.00 0 0 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 94 (recursive depth: 1)
    SQL ID: dbxwyh9wxp32b
    Plan Hash: 0
    LOCK TABLE "SCHEMAX"."TABLEX" PARTITION ("P3") IN EXCLUSIVE MODE
    NOWAIT
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.00 0 0 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 94 (recursive depth: 1)
    SQL ID: 9y27jut66ajz5
    Plan Hash: 0
    INSERT /*+ SYS_DL_CURSOR */ INTO "SCHEMAX"."TABLEX" PARTITION ("P3")
    ("PARTITION_ID","GID","SEGMENT_ID","RID","STATUS",
    "VERIFIC","FILE_ID","RECORD_ID","SUB_REC_ID",
    "S_ID2","FILLER1","FILLER2","FILLER3","FILLER4","FILLER5",
    "FILLER6","FILLER7","FILLER8","FILLER9","FILLER10","FILLER11","FILLER12",
    "FILLER13","FILLER14","FILLER15","FILLER16","FILLER17","FILLER18",
    "FILLER19","FILLER20","FILLER21","FILLER22","FILLER23","FILLER24",
    "FILLER25","FILLER26","FILLER27","FILLER28","FILLER29","FILLER30",
    "ID_BODY","CODE","EXP_DATE","SUB_RECORD_3","OCCUR",
    "PARENT","SEGMENT","ID_VALUE","IS_ID")
    VALUES
    (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
    NULL,NULL,NULL,NULL)
    Edited by: Y2KPRABU on Jul 16, 2012 11:38 PM

  • SQLite - select * from view

    Hello All,
    I'm completely new to this forum. I've got some pretty big tables and have created views to hold some predefined data in them.
    Now sqlite application I've used (Lita, SQLiteAdmin) does not see these views. Only from Firefox SQLiteManager add-on or the command line,  I can do a select * from my_view;
    Now when I try to query my view from Air, I receive the error #3115 table : my_view does not exist? Is there a litmitation in Air to be able to query ONLY tables?
    Thanks
    Jan

    There is no limitation against getting at view data using a select.  Here is an overly simple example using a synchronous connection:
    var conn:SQLConnection = new SQLConnection();
    conn.open(File.applicationStorageDirectory.resolvePath("test.db"));
    var sql:SQLStatement = new SQLStatement();
    sql.sqlConnection = conn;
    sql.text = "CREATE TABLE IF NOT EXISTS employees (id Integer, name String);";
    sql.execute();
    sql.text = "INSERT INTO employees VALUES (1, 'Sam');";
    sql.execute();
    sql.text = "INSERT INTO employees VALUES (2, 'Bob');";
    sql.execute();
    sql.text = "CREATE VIEW IF NOT EXISTS emp_view AS SELECT name FROM employees WHERE name LIKE 'B%';";
    sql.execute();
    sql.text = "SELECT * FROM emp_view;";
    sql.execute();
    trace(ObjectUtil.toString(sql.getResult().data));
    Which outputs:
    (Array)#0
      [0] (Object)#1
        name = "Bob"

  • Select from Multiple tables

    Hi,
    I am doing select from multiple tabels (2) in one SQL query.
    How to get the result as it says.. Column name is incorrect ?
    thanks,
    -raj

    treat the resultset as noraml. You get it in sequence as you have specified the column names. You use rs.getXXX(index) instead of columnname

  • Selection from a Maintenance View

    Hi,
        I have to fetch data from a view, unfotunately that view is a mainteance view. Is there any other way to select/fetch data from that view in my report program ?
    Regards,
    Bharath Mohan B

    Hi
    U cannot access the data from maintanence view.
    Only projection and database view can be used in ABAP code.
    If u want to access the Data from more the one table , Create the DATABASE VIEW and use this view in ur program.
    For example : UR Database view name is Ztest
    in ur program
    table Ztest.
    select * from Ztest ***************
    *******************UR Business Logic
    <b>Reward if useful</b>

  • Reference a field from master query in detail query

    Hi,
    Please tell me how do I reference a field say incident_no in my master query to a detail query.
    like
    detail.incident_no != master.incident_no
    I am joining both the queries using a link. But still I need to reference another field from the first query in my second query. I thought this was possible using formula columns or trigger's. Please help.

    Hey Vadim,
    That worked. How come.. You know I did it several times before and all it said was, that it was going to create a new parameter field called so and so.
    Good, so does it work just this time or always ? just kidding. Reports is so unpredictable, at least for me.
    Thanks Vadim,
    Joe.

Maybe you are looking for

  • In need of remote tools to manage AppleTvs(3)

    We have over 50 AppleTVs and there is a need to manage these deices remotely via ssh or some other remote access Need to reboot remotely Need to update software remotely Need to disable 2.4 Ghz Radio on wifi Need to update profiles remotely etc.. Wha

  • General method to fetch data from transparent tables with cluster field

    Hi, I want to know is there any general method to fetch data from the transparent tables which have cluster type field. For example MDTC, STXL, PCL1. thanks

  • Is there a 2D Effect for Final Cut?

    This is related to a previous question of mine about perspective. I have used the 3D effect for a piece of work, but is there a 2D effect that is available? I am able to create a 3D effect for a piece of video but I would like to move the video to th

  • I used to be able to sync only certain apps but now there is no tick box to select which ones how do I do this now

    Hi The tick box seems to have disappeared from Apps when syncing - just bought a new ipad mini and don't want all my apps on it but without the tick box I'm not sure how to select only the ones I want.  Can anyone tell me how I now select only certai

  • Upgrade from an upgrade?

    Hi my name is Colin and I am new to these forums, any way I have a question that involves some information from me up front. I bought a retail copy of Premiere Pro and then later on decided to upgrade to Production Premium so I bought an upgrade from