Compounding query

hi
I have created a infoobject(zcomp), It has an attribute which has text values.
Zcomp  has a compounding characteristic(Ocomp_code),
I added zcomp into a cube, in this cube, zcomp display as 0000234322. but in query level
it display like 0010/234322. where 0010 is company code. but the texts of 234322 is not displayed.
I think it may happen while adding compounding characteristics, so I want to get texts for Zcomp.
help me

hi,
right click the char in the query and display as  Name else in the display option of infoobject definition choose display as text.
Ramesh
Edited by: ramesh kumar on Mar 3, 2008 12:31 PM

Similar Messages

  • Read consistency with compound query

    Does read consistency work for the whole compound query or does it work only for every single query in the compound query ?
    I mean if I issue the following statement
    select * from TABLE
    union all
    select * from TABLE
    if in the mean time an update has taken place on the table by an other session and also a commit is it possible that the second part of the union query to see that update ?
    Thanks

    My real life problem is the following:
    I have a movements table and an online_stoc table, I keep the online_stoc table sincronized with the movements table using a trigger on the movements table.
    When I issue a statement
    select item, sum(qta_din), sum(qta_sta)
    from
    select item, sum(qta) qta_din, 0 qta_sta
    from movements
    group by item
    union all
    select item, 0 qta_din, qta qta_sta
    from online_stoc
    group by item
    having sum(qta_din) <> sum(qta_sta)
    it should not give anny rows back and I almost always see this correct result.
    But I experienced one time that this query gave back a line and after a checking I saw that during the query execution time there was an insert transaction on the table movements that commited during te query.
    So I don't understand how was it possible.
    Thanks

  • Need help with compound query

    I have a group of four tables that I need to query. Here are the 4 tables:
    <br>
    CREATE TABLE "APP_ATS"."BOX_INFORMATION" <br>
    (     "REC_COUNT_PK" NUMBER(7,0), <br>
         "BOX_ID" NUMBER(5,0), <br>
         "CUSTODIAN_SAP_NUMBER" VARCHAR2(5), <br>
         "FACILITY_KEY_FK" NUMBER(3,0), <br>
         CONSTRAINT "APP_ATS__BOX_INFORMATION__PK" PRIMARY KEY ("REC_COUNT_PK"),<br>
         CONSTRAINT "APP_ATS__BOX_INFO__FACIL__FK" FOREIGN KEY ("FACILITY_KEY_FK")<br>
         REFERENCES "APP_ATS"."FACILITY_DATA" ("FACILITY_KEY_PK") ENABLE)<br>
    <br>
    CREATE TABLE "APP_ATS"."FACILITY_DATA" <br>
    (     "FACILITY_KEY_PK" NUMBER(3,0), <br>
         "FACILITY_NAME" VARCHAR2(100), <br>
         CONSTRAINT "APP_ATS__FACILITY_DATA__PK" PRIMARY KEY ("FACILITY_KEY_PK"))<br>
    <br>
    CREATE TABLE "APP_ATS"."EMP_WORK_INFO"<br>
    (     "EMPLOYEE_NUMBER" varchar2(5), <br>
         "LAST_NAME" varchar2(50), <br>
         "PREFERRED_NAME" varchar2(50)) <br>
    <br>
    CREATE TABLE "APP_ATS"."BOX_CONTENT_GROUP_INFORMATION" <br>
    (     "CONTENT_KEY_PK" NUMBER(6,0), <br>
         "REC_COUNT_FK" NUMBER(7,0), <br>
         "BOX_ID_FK" NUMBER(5,0), <br>
         "GROUP_DESCRIPTION" VARCHAR2(1999 BYTE), <br>
         "GROUP_COUNTER" NUMBER(4,0), <br>
         CONSTRAINT "APP_ATS__BOX_CONT_GRP_INFO__PK" PRIMARY KEY ("CONTENT_KEY_PK"),<br>
         CONSTRAINT "APP_ATS__BX_C_G_INF__BX_ID__FK" FOREIGN KEY ("REC_COUNT_FK")<br>
         REFERENCES "APP_ATS"."BOX_INFORMATION" ("REC_COUNT_PK") ENABLE) <br>
    <br>
    If the box_information table has these records:<br>
    1,1,'00001',1<br>
    2,4,'00002',1<br>
    3,2,'00003',2<br>
    <br>
    The facility_data table has these records:<br>
    1,'County Records'<br>
    2,'DataStor'<br>
    <br>
    The Emp_Work_Info table has:<br>
    '00001','Jones','Fred'<br>
    '00002','Grobnik','Igor'<br>
    '00003','Marley','Bob'<br>
    <br>
    The box_content_group_information has:<br>
    1,1,1,'first box group 1',1<br>
    2,1,1,'first box group 2',2<br>
    3,2,4,'fourth box group 1',1<br>
    4,3,2,'second box group 1',1<br>
    <br>
    I need a query that returns a record set that looks like this:<br>
    BoxID,Preferred_Name,last_name,facility_name,descriptions<br>
    1,Fred,Jones,County Records,first box group 1|-|first box group 2<br>
    2,Bob,Marley,DataStor,second box group 1<br>
    4,Igor,Grobnik,County Records,fourth box group 1<br>
    <br>
    Since the first 3 tables have a 1 to 1 relationship I can get that part working fine with this:<br>
    <br>
    select Box_ID, EMDS_PREFERRED_NAME, EMDS_LAST_NAME, FACILITY_NAME<br>
    FROM App_ATS.Facility_Data, App_ATS.Box_Information, EMP_WORK_INFO<br>
    WHERE App_ATS.Facility_Data.Facility_key_PK = App_ATS.Box_Information.Facility_key_fk<br>
    AND App_ATS.Box_Information.CUSTODIAN_SAP_NUMBER = EMP_WORK_INFO.EMPLOYEE_NUMBER;<br>
    <br>
    The problem is that for each box_information row I may have multiple BOX_CONTENT_GROUP_INFORMATION rows and I need the record set to
    return only one row per box_information row.<br>
    <br>
    I found a function that concatenates a single field from multiple rows into a single string but it isn't designed to group on any particular field so if I use it each record has all of the descriptions instead of only those for that box_ID. The function:<br>
    <br>
    create or replace function glue<br>
    ( p_cursor sys_refcursor,<br>
    p_delimiter varchar2 := '|-|') <br>
    return varchar2<br>
    is<br>
    l_value varchar2(32000);<br>
    l_result varchar2(32000);<br>
    begin<br>
    loop<br>
    fetch p_cursor into l_value;<br>
    exit when p_cursor%notfound;<br>
    if l_result is not null then<br>
    l_result := l_result || p_delimiter;<br>
    end if;<br>
    l_result := l_result || l_value;<br>
    end loop;<br>
    return l_result;<br>
    end glue;<br>
    <br>
    **It was called join but I like glue better, join is a key word. Thanks to whomsoever came up with it.<br>
    <br>
    Please help me figure out how to do this!<br>

    Right. Listing the table creation scripts, each row of data for each table and then the snapshot of what I expect isn't enough, it has to be an actual set of insert statements? Here they are then:
    Insert into app_ats.box_information (REC_COUNT_PK, BOX_ID, CUSTODIAN_SAP_NUMBER, FACILITY_KEY_FK) Values (1,1,'00001',1);
    Insert into app_ats.box_information (REC_COUNT_PK, BOX_ID, CUSTODIAN_SAP_NUMBER, FACILITY_KEY_FK) Values (2,4,'00002',1);
    Insert into app_ats.box_information (REC_COUNT_PK, BOX_ID, CUSTODIAN_SAP_NUMBER, FACILITY_KEY_FK) Values (3,2,'00003',2);
    Insert into app_ats.facility_data (FACILITY_KEY_PK, FACILITY_NAME) values (1,'County Records');
    Insert into app_ats.facility_data (FACILITY_KEY_PK, FACILITY_NAME) values (2,'DataStor');
    Insert into app_ats.Emp_Work_Info (EMPLOYEE_NUMBER, LAST_NAME, PREFERRED_NAME) values ('00001','Jones','Fred');
    Insert into app_ats.Emp_Work_Info (EMPLOYEE_NUMBER, LAST_NAME, PREFERRED_NAME) values ('00002','Grobnik','Igor');
    Insert into app_ats.Emp_Work_Info (EMPLOYEE_NUMBER, LAST_NAME, PREFERRED_NAME) values ('00003','Marley','Bob');
    Insert into app_ats.box_content_group_information (CONTENT_KEY_PK, REC_COUNT_FK, BOX_ID_FK, GROUP_DESCRIPTION, GROUP_COUNTER) values (1,1,1,'first box group 1',1);
    Insert into app_ats.box_content_group_information (CONTENT_KEY_PK, REC_COUNT_FK, BOX_ID_FK, GROUP_DESCRIPTION, GROUP_COUNTER) values (2,1,1,'first box group 2',2);
    Insert into app_ats.box_content_group_information (CONTENT_KEY_PK, REC_COUNT_FK, BOX_ID_FK, GROUP_DESCRIPTION, GROUP_COUNTER) values (3,2,4,'fourth box group 1',1);
    Insert into app_ats.box_content_group_information (CONTENT_KEY_PK, REC_COUNT_FK, BOX_ID_FK, GROUP_DESCRIPTION, GROUP_COUNTER) values (4,3,2,'second box group 1',1);
    There you go! Now everyone has the full set of scripts as well as the expected output. I anxiously await your brilliant solution.

  • Compound vs Simple query

    This is a mystery that we hope someone can help us better understand.
    We are seeing a single compound query take much longer than a series of individual queries.
    The filter of the compound query is of this form:
    (|(uniquemember=[dn1])(uniquemember=[dn2])(uniquemember=[dn3])...(uniquemember=[dnN]))
    The series of compound queries are conducted in a for-loop and the filter is of the form:
    (uniquemember=[dn1])
    (uniquemember=[dn2])
    (uniquemember=[dn3])
    (uniquemember=[dnN])
    Run     Compound Query (milliseconds)
    1     1250
    2      1250
    3      1235
    avg     1245
    Run     Total of N Simple Queries in For Loop (milliseconds)
    1     156
    2     156
    3     141
    avg     151 In the case of this test comparison N=16.

    Shane, I don't have an answer for your questions by like you, my company will be accessing all data through stored procedures and I would like talk to you to discuss the obstacle that you guys had to overcome.
    Please email me. Maybe I can call to discuss more.
    thanks a lot.
    rodney barrett
    [email protected]

  • Can I retrieve data from a multiple select query?

    I recently have been able to consolidate many queries into one large one, or into large compound queries. I found an instance where I am using a select query in a for loop that may execute up to 400 times. I tried building a huge compound query, and using DB Tools Execute Query vi, followed by the DB Tools Fetch Recordset Data vi. The query executes at the database without an error, but the Fetch Recordset Data vi only returns the first instance. Is there a way to retrieve all the data without having to send up to 400 separate select queries?

    Sorry I didn't replt earlier, I was on vacation. The query I am using is to check serial numbers, and determine if they are all valid. The programs purpose is to define a serial number to a pre-existing part number. Our company makes inclinometers and accelerometers, and this entire series of LabVIEW programs is designed to automate the calibration and testing of these units. The part number definitions can contain 3 or 4 hundred parameters, so the database itself consistes of 44 tables with potentially several hundred columns per table. It is designed to not only provide definitions to every part number, but also to store all potential raw unit data to be calculated and formed into a report at any time. The logistics of getting that much data in and out of the database have forced me to do things more effeciently. The actual query in question is to take each serial number either manually entered, or automatically picked, and see if they already exist with the part number they are being defined as. If there are any duplicates, then the program will alert the operator that serial numbers x, y, and z for instance have already been asigned as the part number in question. Currently I run a simple query once for each serial number. This works, but there may be 200 serial numbers assigned. Also the serial numbers can contain upper or lower case letters. By making all the serial number letters into capitals, then into lower case, it could mean up to 400 individual queries going out over the LAN. This is a bandwidth hog, and time consuming. I started experimenting with compound queries. The actual query used is below.
    SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000005';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000006';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000007';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000008';SELECT SERIALNO FROM "maintable" WHERE PARTNO = '475196-001' AND SERIALNO = '3000009'
    When I execute this query, SQL Server 2000 has no problem with it, but the DB Tools Fetch Recordset Data vi only returns the first match. I think my answer may lie with OR statements. Rather than sending what amounts to potentially dozens of individual queries, I should be able to chain them into one query with a lot of OR statements. As long as the OR statement is not an exclusive OR statement, I think it should work. I haven't tried it yet, and it may take some time to get the syntax right. The query is built in a for loop with the number of iterations equal to the number of serial numbers being defined. Once I get this working I will alter it to include both upper and lower case letters that can be included in the query. Any suggestiona of how the query should be structured would be most helpful, or another way to achieve what I am trying to accomplish.
    SciManStev

  • Can Oracle pick an index hint for an index that's inside of a sub query?

    I have a query like the following:
    Select /*INDEX(Table1 TABLE1_IDX) INDEX(Table3 Table3_IDX) */
    from (select /*INDEX(Table1 TABLE1_IDX) */
    T1.col1,t1.col2,...
    from Table1 T1
    Join Table2 T2
    ON T1.col1 = T2.col1
    T1.col2 = T2.col2) Tsub
    Right Outer Join Table3 T3
    ON T3.col1 = Tsub.col1
    T3.col2 = Tsub.col2
    Will Oracle pick up and use the index for Table1 in the join to Table3 even though it's being refernced from with in a sub-select statement? Will it know to use the index for the 'Tsub' alias to join it to Table3?

    "Hints apply only to the optimization of the block of a statement in which they appear. A statement block is any one of the following statements or parts of statements:
    A simple SELECT, UPDATE, or DELETE statement
    A parent statement or subquery of a complex statement
    A part of a compound query"
    however, your outer query has NOTHING named "table1". hints must use the ALIAS (if one is given), so your outer hint for table1_idx should reference "TSUB".
    but even more to the point, once the subquery is complete, you'll outer-join table3 to it, which doesn't need an index on tsub.

  • IN clause with ORDER BY clause in sub-queries

    Hello,
    We generate dynamic queries with the following statement pattern (could be many union/intersect sub-queries):
    select my_col
    from my_table
    where my_col IN
    select table_2.my_col , x_col from table_2 where x_col > 10
    UNION
    select table_3.my_col , y_col from table_3 where y_col > 20
    INTERSECT
    select table_4.my_col , z_col from table_4 where z_col is between 30 and 50
    I know that I can do just the sub-queries w/ an ORDER BY clause as follows (as long as the 2nd parameter in the select stmts are of the same type):
    select table_2.my_col , x_col from table_2 where x_col > 10
    UNION
    select table_3.my_col , y_col from table_3 where y_col > 20
    INTERSECT
    select table_4.my_col , z_col from table_4 where z_col is between 30 and 50
    order by 2 desc
    But my questions are:
    1. What is (if there is) the syntax that will ensure that the result set order will be that of the ordering of the sub-queries?
    Or does my SQL stmt have to have syntactically (but not semantically) change to achieve this?
    Thanks,
    Jim

    Randolf Geist wrote:
    just a minor doubt - I think it is not officially supported to have separate ORDER BYs in a compound query with set operators (e.g. UNION / UNION ALL subsets). Of course one could use inline views with NO_MERGE + NO_ELIMINATE_OBY hints, but I think the only officially supported approach is to use a single, final ORDER BY (that needs to use positional notation as far as I remember).
    Randolf,
    You're right, of course, about the separate "order by" clauses.
    Interestingly the following type of thing does work though (in 10.2.0.3, at least):
    with v1 as (
        select * from t1 where col1 = 'ABC' order by col2
    v2 as (
        select * from t1 where col1 = 'DEF' order by col2
    select * from v1
    union all
    select * from v2
    ;A quick check the execution plan suggsts that Oracle appears to be convering this to the following - even though its technically not acceptable in normal circumstances:
    select * from t1 where col1 = 'ABC' order by col2
    union all
    select * from t1 where col1 = 'DEF' order by col2
    ;Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Concatenation and Union all

    Hi,
    From Oracle 9i performance guide:
    "Concatenation is useful for statements with different conditions combined with an OR clause"
    "If a query contains a WHERE clause with multiple conditions combined with OR operators, then the optimizer transforms it into an equivalent compound query that uses the UNION ALL set operator, if this makes the query execute more efficiently"
    Can anyone tell me when concatenation is better than union and vice versa?

    skde wrote:
    Hi,
    From Oracle 9i performance guide:
    "Concatenation is useful for statements with different conditions combined with an OR clause"
    "If a query contains a WHERE clause with multiple conditions combined with OR operators, then the optimizer transforms it into an equivalent compound query that uses the UNION ALL set operator, if this makes the query execute more efficiently"
    Can anyone tell me when concatenation is better than union and vice versa?Concatenation is not exactly the same as UNION ALL (the ALL is important, by the way), as it has to eliminate repetitions of data. You may rewrite an 'OR' query as a UNION ALL, concatenation is simply Oracle's strategy for doing this. There's an example on my blog which might help you understand the issues: http://jonathanlewis.wordpress.com/2007/02/26/subquery-with-or/
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    +"I believe in evidence. I believe in observation, measurement, and reasoning, confirmed by independent observers. I'll believe anything, no matter how wild and ridiculous, if there is evidence for it. The wilder and more ridiculous something is, however, the firmer and more solid the evidence will have to be."+
    Isaac Asimov                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • WITH CLAUSE: ORA-32034

    Hello,
    I have a query that requires WITH clauses since it reiterates a similar select, so I'm down with 2 WITH clause which I cannot unionize. How can I do this?
    Thanks Pierre
    with DURCDR as (select CALLINGPARTYNUMBER,CALLINGPARTYIMSI,CALLINGPARTYIMEI,CALLEDPARTYNUMBER,CALLEDPAR
    TYIMSI,CALLEDPARTYIMEI,
    CHARGINGSTARTTIME,REDIRECTINGPARTYIMEI,REDIRECTINGPARTYIMSI,REDIRECTINGPARTYNUMB
    ER from bgw_durcdr where CHARGINGSTARTTIME BETWEEN '01-05-2007:00:00:00' and '01-05-2007:23:59:59'
    and (CALLEDPARTYIMEI IN '2980' or CALLINGPARTYIMEI IN '2980' OR REDIRECTINGPARTYIMEI IN '2980'))
    SELECT
    CALLEDPARTYNUMBER,
    CALLEDPARTYIMSI,
    CALLEDPARTYIMEI,
    CHARGINGSTARTTIME
    FROM DURCDR
    UNION
    SELECT
    CALLINGPARTYNUMBER,
    CALLINGPARTYIMSI,
    CALLINGPARTYIMEI,
    CHARGINGSTARTTIME
    FROM DURCDR
    UNION
    SELECT
    REDIRECTINGPARTYIMEI,
    REDIRECTINGPARTYIMSI,
    REDIRECTINGPARTYNUMBER,
    CHARGINGSTARTTIME
    FROM
    DURCDR ==> GET ERROR ORA-32034
    UNION
    WITH EVTCDR AS(select DESTINATION,DESTINATIONIMSI,DESTINATIONIMEI,CHARGINGSTARTTIME,ORIGINIMEI,ORIGINI
    MSI,ORIGIN,REDIRECTINGPA
    RTYIMEI,REDIRECTINGPARTYIMSI,REDIRECTINGPARTYNUMBER FROM BGW_EVTCDR WHERE CHARGINGSTARTTIME BETWEEN '01-05-2007:00:00:00' and '01-05-2007:23:59:59'
    AND( DESTINATIONIMEI IN '2980' OR ORIGINIMEI IN '2980' OR REDIRECTINGPARTYIMEI IN '2980'))
    SELECT
    DESTINATION,
    DESTINATIONIMSI,
    DESTINATIONIMEI,
    CHARGINGSTARTTIME
    FROM EVTCDR
    UNION
    SELECT
    ORIGINIMEI,
    ORIGINIMSI,
    ORIGIN,
    CHARGINGSTARTTIME
    FROM EVTCDR
    UNION
    SELECT
    REDIRECTINGPARTYIMEI,
    REDIRECTINGPARTYIMSI,
    REDIRECTINGPARTYNUMBER,
    CHARGINGSTARTTIME
    FROM EVTCDR;

    (although the example you gave still fails in v10) Really ?
    SQL> select banner from v$version where rownum = 1;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    SQL> with d as (select deptno from emp), 
      2  s as (select deptno from dept) 
      3  select * from d 
      4  union 
      5  select * from s;
        DEPTNO
            10
            20
            30
            40Your example works with subquery which is the separate select statement.
    SQL> with t as (select 1 a from dual)
      2  select * from t where a in (
      3  with x as (select 2 b from dual)
      4  select b from x
      5  )
      6  /
    no rows selected
    SQL> with t as (select 1 a from dual),
      2  x as (select 2 b from dual)
      3  select * from t where a in (
      4  select b from x
      5  )
      6  /
    no rows selectedhttp://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2065646
    Restrictions on Subquery Factoring This clause is subject to the following restrictions:
    You can specify only one subquery_factoring_clause in a single SQL statement. You cannot specify a query_name in its own subquery. However, any query_name defined in the subquery_factoring_clause can be used in any subsequent named query block in the subquery_factoring_clause.
    In a compound query with set operators, you cannot use the query_name for any of the component queries, but you can use the query_name in the FROM clause of any of the component queries.
    Rgds.

  • Issue with compounding characteristics in the query

    Hello guyz
    I have an issue with 2 chars one compounding the other in the query. The 2 chars are : Action Type and Action Reason in HR. Action type is the compounding char. for action reason.
    For example: we have
    Action Type    Action Reason
    01                        A1
    01                        A2
    02                        A1         
    02                        A2
    Now I want to restrict a key figure based on specific action reasons and types. But when I pick AT: 01, AR: A1, it selects AT: 02, AR: A1. The reason why it does this is because, there are 2 A1s under action reason and it picks the one at the end (ie last record with value A1 in the table)
    But my compounding works when i create variables for the same and have them as user entry variables.
    My question: How do i pick specific action reasons for specific action types (for restricting key figures) in the above example?
    Thanks.

    Well.. thank you Ashish for your help so far.
    Now, these Chars. are coming directly from a data source to the cube. From my previous example again, the thing that i dont understand is:
    When i try restrict the KF with AR, on the left hand side of the pop up window i see:
           AR
    [01, A1] --> Very good
    [01, A2] --> Good
    [02, A3[ --> OK
    [02, A4] --> Bad
    [02, A1] --> Very Bad
    But, when i drag 'A1' (Very Good)  to restrict on the KF on the right hand side of the window, I only get:
    A1 (Very good), what i want to drag is [01, A1] --> very good.. action type value should come along with action reason.. right??
    when i save the query, logout and log back in, I see:
    A1 (Very Bad)
    Question: Why dosen't Action type char come along with action reason on the right hand side.. its a compounding char right?? So it should determine what value action reason takes?
    Any idea??

  • Selection varuable on Compounded Info Object in Query Designer

    Hi,
       To identify  the inconsistencies inconsistencies in the source system abt the description
    I am Text Description of Application Status Source System dependent
    Application Status is compounded on Source System....
    There will be 3 values for Application Status
    N - New
    R - Renewal in Progress
    C - Complete
    And i had 12 Different source Systems
    As per my requirment i made selection variable on Application Status in the Query..So if the user want to see all ther complete application he has to select 12 different values (App Status is compounded on Source System)
    Is there any way that i can fix this in query designer so that user will have a option to select either of 3 Values (N,R,C)
    Thanks

    Hi,
    Yes, it is simple.You have to create a variable on "source system" too and put it on the selection screen. Make it mandatory and put it above the variable for application status on the selection screen. So after the user selects the system from which he wants the data, he will see only three options in the F4 help of the "application status".
    Regards,
    Shweta
    P.S. Assign points if it helps.

  • Compounded source system shows in query results

    Hi All,
    I have characteristics compounded with 0soursystem.  In query results it shows P1/SA01, for example.  I want to truncate so it will only show SA01 and NOT the source system id P1.  How do you do this?
    Cheers,
    Mike

    Dear Mike,
    I would like to do exactly the same thing, but untill now without success. The 0SOURSYSTEM is displayed in query as part of key of characteristic to which it is compounded.
    Could you describe in detail what you have done and context?
    Thanks in advance,
    Josko.

  • Region in Query without compounded attribute

    In Query the 0Region is displayed as US/UT, as it is having a compounded attribute 0Country.
    But the client needs only the region i.e UT
    How to get this ?
    Thanks.
    Anita

    What abour your earlier thread 'Refresh Sheet'?
    https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=2924647
    please  Try to respond to our replies.Have you not read Rules of Engagement?
    Welcome and Rules of Engagement

  • Text value is not getting displayed in Query designer !!

    Dear experts..,
    i have created a new query in query designer using my info provider and then selected one field in default value and then trying to restrict that particular field while selecting the restriction in query designer am getting the exact text value but after generating the report instead of text value , key value is getting displayed....so how can i get text instead of key value??
    please help me friends....
    i have posted in OSS mesage also...i got a reply like...even i didnt understand his reply too...what he is trying to say?
    whether can i get text display or not???
    can any one help me in this regard???
    SAP Reply----
    Hello kumar,
    After another analysis I have to inform you about general concept of
    "compounded characteristics".
    A compounded characteristic bounds two characteristics. The technical
    name is generated by both technical names of the two characteristics
    combined by two underlines "__".
    An individual text is only available for one single combination of both
    characteristics.
    Example:
    =======
    Compounded characteristic "Famous family name" is a combination of
    characteristic "COUNTRY" & "ETHNIC". Technical name: COUNTRY__ETHNIC
    Values for Country: USA, Australia
    Values for Ethnic: Asian, Latino
    Possible value combinations with individual text:
    USA & Asian; text: "Ling"
    USA & Latino; text: "Sanchez"
    Australia & Asian; text: "Chu"
    Australia & Latino; text: "Garcia"
    (Keep in mind the individual text only valid for the specific
    combination.)
    In analogy to the issue that you reported, you want to restrict this
    compounded characteristic. In the window where you select the restrictedvalue (called Selector) you'll see on the left hand side all available
    combinations of the characters with an individual text.
    You select family name "Chu" and drag'n'drop it to the right side.
    Actually you can only restrict the right compounded characteristic. In
    our example you would restrict on characteristic "ETHNIC" with value
    "Asian". (When you switch on technical names this comes more clear). Thetext "Chu" is displayed in the context of Selector because you selected
    value combination Australia & Asian. But in the end it's just a
    placeholder(!) for any combination of characteristic "ETHNIC" and value
    #Asian#; in our example it could be USA & Asian "Ling" or Australia &
    Asian "Chu").
    By leaving the Selector the individual text is gone because now the
    context is lost between the two characteristics. You have just a
    restriction on characteristic "ETHNIC" with value "Asian". An individualtext can't be displayed because the compounded characteristic is not
    specified for this restriction.
    You're right, it is confusing when "loosing" the text of a restriction.
    But accoring to the concepts of the compounded characteristics it
    is a correct behavior.

    Hi anandkumar,
    I belive this issue can be resolved by changing the  Query proprties for the perticular field.
    Kindly check the Field proerties in query designer and ensure that Text is enabled ather than Key.
    __Field property check up:__Go to query designer->click onn the field-> Right hand side in properties click on display tab-> select Text in drop down menu of Display as tab.
    FURTHER CHECK UP: check the master data avaiulability for the perticular info object, if masterdata is not available, do the text data for txt data availability in report level.
    Hope this helps you!!
    Best Regards,
    Maruthi

  • Creation of query

    Hi Friends,
    Consider the following scenario.Following are the stock values on each day in an ODS.
    <b>DATE     MATERIAL     QTY
    1-Jan     A     100
    1-Jan     C     1000
    5-Jan     A     110
    8-Jan     B     50
    9-Jan     B     75
    9-Jan     C     1100
    11-Jan     A     120
    18-Jan     B     10
    19-Jan     A     75
    26-Jan     A     225
    29-Jan     C     750</b>
    (Note: MATERIAL refers to compound of Material, plant, storage location, etc.)
    the user runs the query on Jan 7 for balance on Jan 6 (through a date variable) the max date in the ODS for Material A is Jan 5 and that for material C is Jan 1. The query should retrieve 110 units for A and 1000 for C.  The front end variable controls the time slice....
    <b>How do I put this in a query</b>? Any help will be appreciated.

    Hi,
    Try the following approach. This is just an idea.I never used this in my project.
    1) Use one z Key figure to represent the Quantity. This KF should have 'Last Value' for Exceptional Aggregation and 0calday as the 'Agg Reference char'.
    2) In the query define a variable on 0calday to take user single entry(say ZVAR1)
    3) Define restriction on quantity(z KF) with this variable like as follows:
    KF : ZKeyFigure
    0calday  > ZVAR1.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for