Key figs not populating in Multiprovider Query

Folks,
I have created a multiprovider on a Order Header and and Order Items with the following fields -
Order Header - Sales Doc
                         Orde_ date
                         Promotion_Code
Order Items - Sales Doc
                      Order_date
                       Sale_amt
                      Order_cnt
                      Line_Cnt
My Report should display -
      __Order_date__   __Prom_Code__  __Order_Cnt__ __Lin_Cnt__  __Sale_ amt__
Even though I have order date as 1st column in my report (which is common field in both providers), in the report it is displaying as 2 different rows for each Order date.
1st row displaying Promotion_code from Provider 1 and the 2nd row displaying all the Key fig's.
How can I get all fields in one row? please share your thoughts..
Thanks,
KK

Thanks Mansi and Arun for your response, Promotion code infoobject is only available in Header Cube...Is there any alternative way of doing this other than adding this field in Order item and doing look up in header cube?? I do not want to do a look up as it will effect my dataload performance.
Thanks,
KK
Edited by: kumar K on Aug 21, 2009 12:14 PM

Similar Messages

  • Converted key figures not populating

    Hi Experts,
    The query run shows up the converted key figures but the APD is not populating the same, i tried moving the key figures that are not populating in the query around, and it seemed to work in quality, why it is not populating in APD in the production system?

    Hi,
    The infobject has been defined with datatype "DATE" only. It has also been mapped from datasource to infocube correctly as these key figures are populating correctly for some of the sales documents in the report. It is not like that for all the sales documents the key figures are not converting properly.
    Some Sales documents are not converting into the date fields but for some conversion happens properly in the BEx report. This is the issue.
    Please guide accordingly.
    Many thanks,
    Anamika

  • Virtual Key Figures its not populated when execute query

    Hi All
    I did a BADI for populate a Virtual Key Figure, I follow the instructions of link
    Link:[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c?quicklink=index&overridelayout=true]
    In addition I add the code section of data declarated on example of: CL_EXM_IM_RSR_OLAP_BADI section define: IF_EX_RSR_OLAP_BADI~DEFINE, only information that said:
      DATA: l_s_chanm   TYPE rrke_s_chanm,
            l_kyfnm     TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
            <l_s_chanm> TYPE rrke_s_chanm.
    I test the query on RSRT and the virtual Key Figure is "0.00" this look like if the virtual key figure is not populated.
    I did other things like:
    Set a Break Point on COMPUTE section of my BADI, I saw that the value is assigned, but I don't know how I can continue reviewing the pass of this value to result of query.
    I generate again the query on RSRT.
    My code is:
    IF_EX_RSR_OLAP_BADI~DEFINE
    method IF_EX_RSR_OLAP_BADI~DEFINE.
      data: L_S_CHANM   type RRKE_S_CHANM,
            L_KYFNM     type RSD_KYFNM.
      field-symbols:
            <L_S_CHANM> type RRKE_S_CHANM.
      case I_S_RKB1D-INFOCUBE.
        when 'ZGTO_OB2'.
          append 'ZVIRTKF' to C_T_KYFNM.
      endcase.
    endmethod. 
    IF_EX_RSR_OLAP_BADI~COMPUTE
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
      field-symbols <FS_ZVIRTKF> type any.
      P_KYF_ZVIRTKF = 16.
      assign component P_KYF_ZVIRTKF of structure C_S_DATA
      to <FS_ZVIRTKF>.
      <FS_ZVIRTKF> = 10 .
    endmethod.
    I will appreciate your recommendations, Thanks in advanced.
    Al

    Thank you very much Sanganya
    I saw this:
    I put a break point on P_KYF_ZVIRTKF = 16., then I saw that P_KYF_ZVIRTKF obtain value 16.
    Then on sentence: assign component P_KYF_ZVIRTKF of structure C_S_DATA
    to <FS_ZVIRTKF> , when the system pass this line, I review the sy-subrc and is equal 4, as I understood the ASSIGN sentence did not be complete, the value shoul be 0.
    Then when the system try to run the sentence: <FS_ZVIRTKF> = 10  the system send an Execution error that say:  GETWA_NOT_ASSIGNED...
      Error analysis
        You attempted to access an unassigned field symbol
        (data segment 32780).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    Exactly the line selected with error is:
    >>>>    <fs_zvirtkf> = '10.0'.
    I will appreciate your help
    Thank you
    Al

  • Restricted key figure not populating data

    Hi Guru's,
    I am facing problem with restricted keyfigure. I have restricted amount with cal year which is not populating data.
    This key figure is having data in provider.
    Could you let me know how to overcome this .
    Thanks in advance.
    Thanks,
    Vijay.

    Hi,
    The quesry is on Multiprovider? or infoset? it matters first..... or directly on cube? check it and apply relevent infoprovider properties for logic check.
    Check the global filters are there any infoprovider  restrications etc...
    And also while checking the datafor the KF in infoprovide " use ALL the restrictions that are in query and impact the data"
    also try removing the restiction and look for data...
    Hope this helps.'

  • Virtual Characteristic value not populating in the query output

    Hi Experts,
    I am new to BAPI and I am using this to populate the values of virtual characteristics.
    I wrote the below code to populate if an order status got some status value then i need to populate the flag y if not n.
    I got the order value in the reprot. I need to go to order master data and should get the status and then i have to do the comparision and populate the flag zww_teco in the report.
    The below is the compute method of my implementation class.
    FIELD-SYMBOLS :
    <fs_0cs_order> TYPE ANY,
    <fs_zww_teco> TYPE ANY,
    <fs_status>  TYPE ANY.
    if p_cha_0cs_order > 0.
      ASSIGN COMPONENT p_cha_0cs_order OF STRUCTURE C_S_DATA to <fs_0cs_order>.
    endif.
    if p_cha_zww_teco > 0.
      ASSIGN COMPONENT p_cha_zww_teco OF STRUCTURE C_S_DATA to <fs_zww_teco>.
    endif.
    Select single /BIC/ZSYSTATUS
        from /BI0/PCS_ORDER into <fs_status>
       where CS_ORDER = <fs_cs_order>.
    if <fs_status> CP 'TECO'.
      <fs_zww_teco> = 'Y'.
    else.
        <fs_zww_teco> = 'N'.
    endif.
    But I am not sure why the values are not populated. But when i debug , i could see the values for
    P_cha_0cs_order = 35
    p_cha_zww_teco = 54
    But i could get the values of <fs_0cs_order>, <fs_zww_teco> after assign component statement.
    And it is firing me a dump in select statement. Also when I click c_s_data i am getting S____274, S____505 fields like that in the structure but i could see p_cha_0cs_order
    Can you please guide where i am missing ...
    Thanks
    Vamsi
    Edited by: vamsi talluri on Nov 9, 2011 6:14 PM

    Hi Sushant,
      RSRT --> Enter Query Name
    Click on Technical Information --> If " Virtual Char./Key Figures " = Y
    In my case , even then i clciked generate report,
    even after that P_CHA_0CS_ORDER = 35
    and after assign component P_CHA_0CS_ORDER of structure c_s_data to <FS_0CS_ORDER>.
    the <FS_0CS_ORDER> is nothing , here i should get the value of cs_order value of that record but it is coming empty which i am not able to rectify. How should i change or i need to put any other setting to get the value populated into my <FS_0CS_ORDER>.
    Can you please guide me .
    Thanks
    Vamsi

  • Issue with Bex report - key Figures not populating correctly.

    Hi Experts,
    I am facing an issue with a Bex report. There are three key figures of data type DATE having "Dec - Counter or amount field with comma and sign" datatype. After executing the query, in the report, for some sales documents the key figure fields are coming as 'X' and rest others are coming correctly in the date format as mm\dd\yyyy.
    When i check in the cube, these key figures shows values in decimal format and not in date format. The conversion is happening during execution.
    Pleas show me some light on how to identify the cause of getting 'X' for some Sales documents in the report eventhough some are coming correctly.
    Thanks,
    Anamika
    Edited by: Anamika Soni on Mar 12, 2010 10:48 AM

    Hi,
    The infobject has been defined with datatype "DATE" only. It has also been mapped from datasource to infocube correctly as these key figures are populating correctly for some of the sales documents in the report. It is not like that for all the sales documents the key figures are not converting properly.
    Some Sales documents are not converting into the date fields but for some conversion happens properly in the BEx report. This is the issue.
    Please guide accordingly.
    Many thanks,
    Anamika

  • Virtual Char/KF not populated in the query ????

    Hi,
    Can anybody suggest why Virtual char/KF are not populated in Query. I just want to populate the value from existing cube characterstics/KF value.
    Code as follows:
    Cube : ZDEBC01
    Virtual Char: ZVIRTUAL1
    Virtual KF :  ZVIRTUALK
    *&  Include           ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    CASE I_S_RKB1D-INFOCUBE.
      WHEN 'ZDEBC01'.
        L_S_CHANM-CHANM = '0SOLD_TO'.
        L_S_CHANM-MODE  = rrke_c_mode-READ.
        APPEND L_S_CHANM TO E_T_CHANM.
        L_S_CHANM-CHANM = 'ZVIRTUAL1'.
        L_S_CHANM-MODE  = rrke_c_mode-NO_SELECTION.
        APPEND L_S_CHANM TO E_T_CHANM.
        APPEND '0INVCD_QTY' TO E_T_KYFNM.
        APPEND 'ZVIRTUALK' TO E_T_KYFNM.
    ENDCASE.
    *&  Include           ZXRSRTOP
    DATA: G_POS_ZDEBC01_ZVIRTUAL1 TYPE /BIC/OIZVIRTUAL1.
    DATA: G_POS_ZDEBC01_ZVIRTUALK  TYPE I.
    DATA: G_POS_ZDEBC01_0SOLD_TO  TYPE /BI0/OISOLD_TO.
    DATA: G_POS_ZDEBC01_0INVCD_QTY TYPE I.
    *&  Include           ZXRSRZZZ
    FORM USER_ZDEBC01 USING    I_S_RKB1D TYPE RSR_S_RKB1D
                               CHANGING C_S_DATA  TYPE ANY.
      FIELD-SYMBOLS <L_ZVIRTUAL1>.
      FIELD-SYMBOLS <L_ZVIRTUALK>.
      FIELD-SYMBOLS <L_0SOLD_TO>.
      FIELD-SYMBOLS <L_0INVCD_QTY>.
      ASSIGN COMPONENT G_POS_ZDEBC01_0SOLD_TO
          OF STRUCTURE C_S_DATA TO <L_0SOLD_TO>.
      ASSIGN COMPONENT G_POS_ZDEBC01_0INVCD_QTY
          OF STRUCTURE C_S_DATA TO <L_0INVCD_QTY>.
      ASSIGN COMPONENT G_POS_ZDEBC01_ZVIRTUAL1
          OF STRUCTURE C_S_DATA TO <L_ZVIRTUAL1>.
      ASSIGN COMPONENT G_POS_ZDEBC01_ZVIRTUALK
          OF STRUCTURE C_S_DATA TO <L_ZVIRTUALK>.
      <L_ZVIRTUAL1> = <L_0SOLD_TO>+0(3).
      <L_ZVIRTUALK> = <L_0INVCD_QTY> + 1000 .
    ENDFORM.                    "USER_ZDEBC01
    Thanks,
    Debasish
    null

    Hi,
    in your code all variables:
    DATA: G_POS_ZDEBC01_ZVIRTUAL1 TYPE /BIC/OIZVIRTUAL1.
    DATA: G_POS_ZDEBC01_ZVIRTUALK TYPE I.
    DATA: G_POS_ZDEBC01_0SOLD_TO TYPE /BI0/OISOLD_TO.
    DATA: G_POS_ZDEBC01_0INVCD_QTY TYPE I.
    must be of type i.
    regards
    Siggi

  • Delivery Quantity not Populating in Multiprovider

    Hi
       I created a Multiprovider on ORDER and DELIVERY cubes, and created a QUERY on this Multipartite. In the QUERY OUT put I am not able to get the DELIVERY QUANTITY where as I am able to get ORDER QUANTITY. but iam able to get both in the LISTCUBE of MULTIPROVIDER.
        Please help in this regard
    Thanks
    BHANU

    Bhanuprakash,
    Just try listing out characteristics from both cubes in your query , if they come out matched with each other , then your multiprovider is working right , else it means that the multiprovider design should be relooked.
    Arun

  • Dynamic Texts from Bex ( for Key Figures ) not coming to WEBI Query

    Hi Gurus,
    We have a Query in BEx : Each  Key figure column text changes dynamically - Like based on Present month
    it will Display Month +1 Month +2  up to Month +12.  Used  dynamic Text variables .
    But when i created the universe and Webi report , i am missing the text in the column for Key figures .
    How should i get the column text in Webi which is same as in Bex : Points will be awarded for helpful
    answers.
    Thanks
    Magge

    Hi,
    text variables with replacement path are supported in BO4.0, see following document: SAP BusinessObjects BI4 - Supported BEx Query Elements
    As an example after entering 2012 in the prompts window, the name of the corresponding key figure will dynamically change:
    After refreshing and selecting 2013, the column name will update:
    Im not sure though if this is the case with unv universe access to BEx queries.
    Best regards,
    Victor

  • Previous fiscper data is not populating in FIAP Query

    Hi All,
    I am designing a query in FIAP, i copied the standard query which is built on 0FIAP_C02, my requirement is as follows.....
    User enters the Fiscal  Year Period (  ex 01.2010) and the query result should show values of  Credit posting value , debit posting value and balance for Current  fiscal year period  and previous fiscal year period values respectively...
    i tried with variable offset to get the result i.e Fiscal yrperiod-12 , but this is not working.......i tried with selections and restricted keyfigures but it doesnt work for me.
    Plz suggest me any alternate solutions.
    Thanks,
    Yunus

    if you use fiscal period - 12 then it will show for last 12 months rather than last year data..use fiscal year - 1 rather than period...

  • Bank Key i not Populating in IDOC type PAYEXT

    Hi All,
    I'm running program RFFOEDI1, to generate idocs.
    The idocs once generated gives all the required info except the bank key, instead i'm getting the SWIFT code
    I found a blog that said
    If i could populate FIIBKCDE with value 011 instead of 002, bank key would show in that field
    Right now its 002 and therefore its pulling the swift code instead of the bank key
    Any help on this will be appreciated
    Thanks

    Hi
    I remember such instances and suddenly it appears that there could be a technical error
    I suggest to call in the ABAP colleague, check the program, explain the process, test run
    I think some substitution is not getting picked some where
    reg
    suresh

  • Named query, primary keys must not contain null

    We have an question on the named query. Here is the scenario:
    Class JoinClassC (id, name, desc, comment) is mapped to two tables Join_Table_A (id, name, description) and Join_Table_B (id, name, comments); Join_Table_A is the primary table; two tables are associated via primary key.
    Defined a named query (findByName, ReadAllQuery/SQL) for JoinClassC descriptor. The sql is:
    SELECT a.ID,a.NAME,a.DESCRIPTION,b.COMMENTS FROM JOIN_TABLE_A a, JOIN_TABLE_B b WHERE a.NAME=#name AND a.ID=b.ID AND a.NAME=b.NAME
    Getting QueryException while executing the query. Here is the trace:
    [3/2/05 13:50:24:795 EST] f8b62aa SystemOut O 2005.03.02 01:50:24.795--ServerSession(738697921)--Thread[Servlet.Engine.Transports : 4,5,main]--Connection(1095574161)--SELECT a.ID,a.NAME,a.DESCRIPTION,b.COMMENTS FROM JOIN_TABLE_A a, JOIN_TABLE_B b WHERE a.NAME='persistence' AND a.ID=b.ID AND a.NAME=b.NAME
    2005.03.02 01:50:24.835--ClientSession(1127670417)--Thread[Servlet.Engine.Transports : 4,5,main]--Exception [TOPLINK-6044] (OracleAS TopLink - 10g (9.0.4.4) (Build 040627)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRow(
         USER04.JOIN_TABLE_B.ID =&gt; 2
         USER04.JOIN_TABLE_A.NAME =&gt; persistence
         USER04.JOIN_TABLE_A.DESCRIPTION =&gt; FJF Persistence Fram
         USER04.JOIN_TABLE_B.COMMENTS =&gt; The Persistence Fram)] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(com.ford.it.persistence.unittest.dom.JoinClassC)Local Exception Stack:
    Exception [TOPLINK-6044] (OracleAS TopLink - 10g (9.0.4.4) (Build 040627)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRow(
         USER04.JOIN_TABLE_B.ID =&gt; 2
         USER04.JOIN_TABLE_A.NAME =&gt; persistence
         USER04.JOIN_TABLE_A.DESCRIPTION =&gt; FJF Persistence Fram
         USER04.JOIN_TABLE_B.COMMENTS =&gt; The Persistence Fram)] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(com.ford.it.persistence.unittest.dom.JoinClassC)
         at oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:542)
    Adding b.ID to the sql select will solve the problem.
    Question: does the primary key must be present in the sql select to run this kind of query? Any way to work around the restriction?
    Your help would be greatly appreciated.
    Haiwei

    The problem is that you need to select both primary keys for the multiple table descriptor.
    i.e.
    SELECT a.ID,a.NAME,a.DESCRIPTION,b.ID, b.COMMENTS FROM JOIN_TABLE_A a, JOIN_TABLE_B b WHERE a.NAME=#name AND a.ID=b.ID AND a.NAME=b.NAME
    Your SQL needs to return the same data that TopLink would have selected, which includes the primary key for both tables. TopLink expects both a.ID and b.ID fields in the select, because your only select one and the field names are the same TopLink thought the ID field was for b.ID not a.ID, if you select both it will be ok.

  • Chracteristic values folder  not populated for Infoobject in query

    The Query is created on an Infoset, based on 2 ODS's. In one of the ODS, the new infoobject is created and the INFOSET is adjusted appropriately . The values are displaynig correctly in the ODS and in the INFOSET, but not showing in the query. The " Chracteristics values" folder is not populating in the Query.
    am i missing something?
    points will be awarded.

    Hi,
    check this note:
    BW InfoSet: Include filter value in on-condition
    SAP Note Number: [1064698|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31303634363938%7d]
    Hope this helps.
    Regards
    Andreas

  • Virtual Key figure not getting populated

    Hi All,
    I have included a virtual key figure in a multiprovider  on which the query is created and its underlying ODS.
    This issue is the virtual key figure is not getting populated . I am not sure what I am missing
    I did the following :
    1) Tried Debugging - Put a break point and execute the query in RSRT.It  did not go to the Exit. I also tried  generating the query from RSRT.
    I am using the BADI (RSR_OLAP_BADI) to populate the Vir Key Fig.
    Please guide me.
    Thanks,
    HM

    Hi All,
    Now that I am able to get the logic to come up in debug. I am faced with another issue.
    I am implementing  avery simple logic . I added a integer type key figure to the ODS and I am tryin to assign value 1 to the the key figure in the code (I am assigning 1 just ot check if the value is passed to query or not. I do have acomplex logic tha i need to implement).
    Here I am able ot see the value in the debug but in the qury the value is not populated.
    N ot sure what might be going wrong.
    code is
    l_z_avg = 1.
    <fs_zavglate> = l_z_avg .
    Appreciate help.
    Thanks,
    HM

  • BI: some dimensions in multiprovider not showing in the query

    Dear all,
    i have created  cube top of DSO and i created  multiprovider with that cube and with 2 master info object
    but  when i create query it showing only few dimensions in the multiprovider so kindly help me on this
    for example multiprovider has 11 custom dimensions and 3 standard dimensions..!
    Thanks
    sivakumar Ramakrishnan.

    Can you elaborate, how many and which of the dimensions are not shown?(And please specify if they have some special properties like line item,high cardinality etc).Also check whether you have the same problem with the key figures in the multiprovider.
    Also, I know that it sounds silly but check the dataprovider of the query is whether the correct multiprovider.Check that there is characteristic in the dimension which does not appear.Then exit query designer, activate the multiprovider and go to query again.

Maybe you are looking for