Subtotals problem in hierarchy selection

Dear all,
we have a technical problem in query 'Deviation Analysis'. When data is
displayed as a hierarchy ('Brand local hierarchy', or 'Universal
hierarchy'), calculations ("Calculate Result as...") in Subtotals of
'Formulas' are ignored. Calculations in Subtotals are correct when
hierarchy view is deactivated. For instance,
execute query with following selection:
Company Code = ES01
Sales Organisation = ES20
Calendar Month = 01.2005
1. HIERARCHY DEACTIVATED
Deactivate Hierarchy of 'Prod-L2 Brand'. Check Subtotal in column 'Volume
Deviation Last Year' = -517. Bear in mind that 'Properties' of Key Figure
'Volume Deviation Last Year' define Subtotal as a 'Summation' of singles
values above. Then Subtotal result we get here is correct.
2. HIERARCHY ACTIVATED
Then activate hierarchy of 'Prod-L2 Brand'. In the same figure 'Volume
Deviation Last Year' you will get a different Subtotal = -831, which
actually displays a Subtotal result as if nothing was defined in
'Properties' of Key Figure 'Volume Deviation Last Year'. It seems to ignore
'Summation' subtotal result.
As users need to report data with this special hierarchy for Brand, we
really need to have correct subtotal result in situation 2, that is when
hierarchy is active.
pls help me...Thanx in advance..

Rajesh,
You might want to check out this note, 460255, which exaplains the limitations and behavior of the result rows when hierarchies are used in the query definition.
Good Luck
Gova

Similar Messages

  • Problem with hierarchy variable while displaying query in Portal

    Hi,
    I came up with an problem with a query in the portal.  The problem is :
    I have one query which is displayed in the portal. The Query has hierarchial selection criteria. I am executing the same query using analyzer. Its taking the variable from the selection and displaying it on the analyzer. I have used the option to " display the query on web " from the BEX query designer. From there its opening and displaying the results with the given selection criteria.
    Where as when i open the query seperately in portal, its not displaying the results.
    I came to know from one of my colleague that the porblem is with the Web item and the hierarchial variable declared in WAD  was different from the variable declared in the BEX Query designer.
    I never Worked with WAD. I tried finding out the variable definition. But i was unable to find out where the Hierarchial variable was defined.
    Please help me out regarding the same.

    The problem is sovled.
    Poornima.

  • Subtotals for a hierarchy

    Hi fellow SDNers:
      I wanted to find out if there is a way to display the "subtotals" for a hierarchy (consisting of 5 levels) wherein the requirement is to display the sales subtotals for the hierarchy levels 3, 4, 5 but nor for levels 1 & 2
    i.e. when the query is displaying the sales information for the product hierarchy levels 1 and 2 we do not want to see the subtotals but when further drilled down to level 3 onwards, we should be able to see the subtotals
    thanks in advance for your help !

    Hi PRE
          when  ever you dont want to some levels in your hierarchy... that you can do in query designer itself..  open your analyser.. in that  select ur  info object  and right click and   and goto  properties.. select ur hierarchy  name..
            and right click  and  select restrict    now you will get one pop up window..(variable  window) in that  you can  select  your required levels only..
        now execute it.. and check it... there you can get only selected levels only...for ur requirement.. now you can take results for each level ..
    if it helpfull  to u.. plz ASSIGN POINTS..
    Thanks
    @jay

  • Problem in multiple selections in a jList

    I have two jLists. Now I have to select some items from one jlist and have to transfer in the other one. But while trying to do it in the runtime I am getting some unexpected runtime errors including "Exception occurred during event dispatching". When I try to transfer only one item it works fine but shows problem in multiple selections. Pleast give your suggestions.

    [_First suggestion_|http://catb.org/~esr/faqs/smart-questions.html]
    [_Second suggestion_|http://mindprod.com/jgloss/sscce.html]
    db

  • Problem in AT selection screen validation

    Hi,
    I am having problem in AT SELECTION SCREEN Validation.
    I have 2 radiobutton and 6 parameter. if i click first radio button  all the 6 radiobutton should enable and take the user input, that is working fine for me.
    if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.
    My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN.
    For first radioutton all the validation working  fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.
    I want the same validation to be done for second radio button after user pressing enter.
    PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,
               p_multi RADIOBUTTON GROUP rad1.
    PARAMETERS: s_pwwrk LIKE plaf-pwwrk.          
    PARAMETERS: p_lgort LIKE plaf-lgort.
    PARAMETERS: p_kostl LIKE cobl-kostl.
    here is my code:
    AT SELECTION SCREEN.
    CLEAR t001w.
      CLEAR t001k.
      CLEAR marv.
      SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
      IF sy-subrc NE 0.
        MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
      ELSE.
        SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
        SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
        IF p_budat0(4) NE marv-lfgja OR p_budat4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
            IF p_budat0(4) NE marv-vmgja OR p_budat4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                                'is closed.
                                            Please try again.'.
            ENDIF.
          ELSE.
            MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                              'is closed.
                                          Please try again.'.
          ENDIF.
        ENDIF.
      ENDIF.

    For your Case ,
    If i understand clearly,You can do the validation when you want on AT SELECTION SCREEN ON WP_FIELD.
    If you say your validation to be done only for Selection of Second Radio Button, then..
    AT SELECTION SCREEN.
    if p_multi  eq 'X'. "<- Make Validation to be done only if user select Second Button
    CLEAR t001w.
    CLEAR t001k.
    CLEAR marv.
    SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
    IF sy-subrc NE 0.
    MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
    ELSE.
    SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
    SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
    IF p_budat+0(4) NE marv-lfgja OR p_budat+4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
    IF p_budat+0(4) NE marv-vmgja OR p_budat+4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ELSE.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ENDIF.
    ENDIF.
    endif.

  • Problem in my Select query

    Hi Experts,
    I need a clarification in my Select query.
    Have created a custom search help and my requirement is I have Request ID, Last and First Name as my search parameters. I need to fetch the values from my Ztable on search with the above said search parameters, where its workflow status = 30.
       * Get Request ID
      lv_pattern = <ls_query_params>-request_id.
      IF lv_pattern CA '*'.
        REPLACE ALL OCCURRENCES OF '*' IN lv_pattern WITH '%'.
      ENDIF. " IF lv_pattern CA '*'
      IF lv_pattern IS INITIAL.
        lv_pattern = '%'.
      ENDIF. " IF lv_pattern IS INITIAL
    ** Get NACHN - Lastname
        lv_last_name = <ls_query_params>-nachn.
        IF lv_last_name CA '*'.
          REPLACE ALL OCCURRENCES OF '*' IN lv_last_name WITH '%'.
        ENDIF. " IF lv_pattern CA '*'
        IF lv_last_name IS INITIAL.
          lv_last_name = '%'.
        ENDIF. " IF lv_pattern IS INITIAL
    ** Get VORNA - First Name
        lv_first_name = <ls_query_params>-vorna.
        IF lv_first_name CA '*'.
          REPLACE ALL OCCURRENCES OF '*' IN lv_first_name WITH '%'.
        ENDIF. " IF lv_pattern CA '*'
        IF lv_first_name IS INITIAL.
          lv_first_name = '%'.
        ENDIF. " IF lv_pattern IS INITIAL
    *Selecting the RequestID/Last and First Name values with workflow status as 30.
    SELECT zzreq_id " Internal number for appropriation request
                nachn
               vorna
      INTO TABLE lt_select_list
      FROM ZTABLE
      WHERE (  ( zzreq_id LIKE lv_pattern ) and
                     ( nachn like lv_last_name ) or
                      ( vorna LIKE lv_first_name ) )
           AND zzstatus = lv_workflow_status.
    My problem is, ofcourse this query is selecting all the records where status = 30 and even it works correctly, If I searches with Request ID(* or *3*).
    But am not able to select the records, if I searches with Last or First Name. Guess I did some thing wrong in select query.
    Please advice me.
    With Regards,
    Ram.

    Re: Problem in my Select query
    Krishna kumar Jun 9, 2014 7:52 AM (in response to Ramakrishnan Murugan)
    Hi Ramakrishnan,
                         Can you just try the below Select Query,
    SELECT zzreq_id
                nachn
               vorna
      INTO TABLE lt_select_list
      FROM ZTABLE
      WHERE ( zzreq_id     LIKE    lv_pattern                and
                         nachn         LIKE    lv_last_name         and
                         vorna          LIKE     lv_first_name )    and
                          zzstatus = lv_workflow_status.
    Cheers,
    Krishnakumar B.
    I think the above suggested query is same as your solution.

  • Problem in standard select query in fagll03

    Good Morning frndz,
    I m facing a problem while runnin fagll03. when executed it gives timeout error.
    When I debug it  , it gets stuck in a select query
    SELECT SINGLE * FROM t800m INTO CORRESPONDING FIELDS OF ls_b
    WHERE totable = ls_t800a-ntable
    AND fromtable = 'ACCIT_GLX'
    AND tofield = id_glflex_fieldname
    AND seqnr = space.
    The content in variable ls_t800a-ntable was FAGLFLEXA  and in id_glflex_fieldname was USNAM.
    When I cheked in table t800m, the entry could not be found. But in the report instead of setting
    sy-subrc = 0 , it is stuck in the select query itself....kindly suggest y it is happening so
    Regards,
    Vincy

    Re: Problem in my Select query
    Krishna kumar Jun 9, 2014 7:52 AM (in response to Ramakrishnan Murugan)
    Hi Ramakrishnan,
                         Can you just try the below Select Query,
    SELECT zzreq_id
                nachn
               vorna
      INTO TABLE lt_select_list
      FROM ZTABLE
      WHERE ( zzreq_id     LIKE    lv_pattern                and
                         nachn         LIKE    lv_last_name         and
                         vorna          LIKE     lv_first_name )    and
                          zzstatus = lv_workflow_status.
    Cheers,
    Krishnakumar B.
    I think the above suggested query is same as your solution.

  • Hierarchy selection tab missing in infopackage

    Hi Experts,
    i am looking how to load multiple hierarchies to Bi so inorder to know available hierarchies from OLTP in hierarchy selection tab in infopackage which was not available at all. i had only data selection tab.i am using version Bi 7.0
    how can i found  hierarchy selection tab in infopackage
    Regards,
    narasimha.

    Hierarchy loading is the same for info object which is created under the info object itself.
    loading is uploading the data to the hierarchy, creating hierarchy is you will be maintaing the structure of the hierarchy under that info object
    Are you sure you have Hierarchy maintained for your info object?
    If the hierarchies are maintained you will find the Bell type symbol under the info objects in info providers tab.
    As told by mti - drill down till you find the data source --right click on it and select create info package - here you can find the tab hierarchy selection tab (which is the second tab in that screen).
    Check the below link to know more abt hierarchies
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/fd4e3c97f6bb3ee10000000a114084/frameset.htm

  • Problem in displaying selected page items in the title in Graph

    Hi There;
    I have a problem in displaying selected value of named page item in the graphs.
    Eg. I have in my worksheet a page item named "Location"; when I use "&WorksheetName &Location" in the title of worksheet it is displaying both the worksheet title and value of selected page item "Location" in my example.
    But when I use the same (&WorksheetName &Location) in the title of graph or Axis of the graph, it would show up only the name of the worksheet but not the value of page item "Location", instead it would print "&Location"
    Any idea why it is not able to reference the select page item in Discoverer graph? I am using Oracle BI Discoverer 10.1.2.1.
    Thanks in Advance,
    Regards,
    Nidhi Jethoo

    Hi Michael;
    Thanks a lot. It might not have been considered necessary but you do require, e.g in my case I am plotting Average value of a Parameter and it does make sense in including the name/value of Parameter(surface water temp/bottom watter temp) as an Axis instead of just a constant Parameter or say Average Parameter. So that user can plot the variation of different parameters by changing the page items and when user changes the value of parameter and export the graph he/she has the parameter name(actual value) in the graph.
    But I can include all the parameters (&Parameters) or all the page items(using &PageItems) in graph then why not individual page-item and individual parameter.
    I would log a SR and see what they say.
    Thanks again,
    Nidhi

  • Problem in passing selection screen values using CALL TRANSACTION.

    Hi All
    I am facing problem in transfering selection screen values to the called transaction. I am trying to pass the path of the transaction filer but to no avail. The variable for filepath is not empty.
    Below is my code:
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFBASM00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'RFPDO1-FEBUMSF'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'RFPDO1-FEBUMSF'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_OKCODE'.
    wa_bdcdata-fval = 'PASS'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    opt-dismode = 'E'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Please help.
    Harsh

    Hi Harsh,
    I think you have entered wrong main program for tcode 'FF_5' and wrong screen field for the file name. Use the below code instead of yours.
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params,
           gv_filepath type char128 value 'C:\testfile.txt'.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFEBKA00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'UMSFILE'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'UMSFILE'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    *wa_bdcdata-fnam = 'BDC_OKCODE'.
    *wa_bdcdata-fval = 'PASS'.
    *APPEND wa_bdcdata TO lt_bdcdata.
    *CLEAR wa_bdcdata.
    opt-dismode = 'A'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Thanks.
    Regards,
    Jey

  • Problem during hierarchy load from ECC 6.0 to BW

    Hello,
    I encountered a problem during hierarchy loads from ECC to BW:
    I get the following in BW:
    Error when updating Idocs in Source System
    Diagnosis
    Errors have been reported in Source System during IDoc update:
    Once I go into ERP and look at the IDocs I get the following message:
    Idoc Error 26:
    EDI: Syntax error in IDoc (segment cannot be identified)
    Message no. E0078
    Diagnosis
    The segment E1RSSH does not occur at the current level of the basic type (extension ).
    This error can have several reasons:
    The segment E1RSSH is assigned to a group whose header segment does not occur.
    The segment E1RSSH does not exist in the syntax description of the basic type  (extension ).
    The sequence of segments in the group in which the segment appears is incorrect.
    Previous errors ('mandatory' segment or group missing) may be due to this error.
    Procedure
    Please check the IDoc or the syntax description of the basic type  (extension ).
    Can anyone help?

    The most basic setting in a BW system is its connectivity with the R/3 system (which is a basis team activity, but BI consultant can always help).
    Issue: While creating source system, I am getting an error "Segment E1RSSH does not exist".
    Diagnosis
    Segment E1RSSH is in the syntax description, but it does not exist.
    The issue was that some of the entries in the table EDISEGMENT were missing.
    As this a standard table, it is recommended to restore the table from Backup or from another BI system. (Please ask your basis team to do it.)
    Now, the significance of the segments: We all know that we require 3 message types in total to communicate with R/3 system. RSRQST, RSSEND and RSINFO.
    Now each of the message types has some segments which help in communication.
    You can see this segment types in the t-code we30. Just enter the basic idoc type and click on display.
    This error is not a common error, but can be useful if at any stage of implementation or support, the table gets disturbed and you have issues with source system connectivity.
    Thanks
    SM

  • Problem with the selection screen in submit program

    Hi Friends,
    i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
    I have implemented the code same as below.
    submit ztest with tknum =p_tknum and  return.
    Can you pleaes help me how to avoid the submit program selection screen.
    Thanks,
    Charan

    Hi Charan,
    You have to give the selection screen values when you submit a job.
    Press F1 on submit and you will see more details.
    Here is an example from ABAP Documentation.
    Program accessed
    REPORT report1.
    DATA text(10) TYPE c.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
         DATA: text(10)   TYPE c,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Jovito.

  • How-to Dynamic Hierarchy Selection.

    Hi guys,
    does anyone know how to implement "Dynamic Hierarchy Selection"? I have a main hierarchy but would like to filter it further while loading the hierarchy.
    E.g. I have a financial statement verison with both Balance Sheet and P/L items, i would like to separate the main into two new hierarchies, one BS and P/L hierarchies instead, apparently the infopackage allows you to write small codes to dynamically select which hierarhcy you want.
    Cheers.

    Hi,
    We donot have this type selection at the time of upload. The thing we can do is upload both versions into BIW and in the report we can use Hierarchy variable to have dynamic selection of hierarchy.
    with rgds,
    Anil Kumar Sharma .P

  • CostCenter Hierarchy selection in the Infopackage

    Hi Everyone,
    For CostCenter hierarchy, in the Infopackage Hierarchy Selection tab, I can able to find the Parent Node for loading, but there is no Child node available.
    Can anyone help on how to bring the child node into the Hierarchy selection tab, and also how to check the Hierarchy node in ECC side.
    Thanks in advance,
    Satish.

    Hi,
    You can enter multiple single valus for any field in the infopackage. Just select the row for material type and then click on the insert duplicate button ( + sign ) which is at the bottom letf hand side in the 'Data Selection' tab within the infopackage. You will usually find this 'insert duplicate' icon next to the 'Check' push button.
    You can insert as many rows as you want for material type by select the material type rown and clicking on this icon. You can then enter the three values in the three rows for material type.
    Regards,
    Shilpa

  • Hierarchy upload-InfoPackage-Hierarchy Selection tab

    I have to upload hierarchy for Internal Order. I have InforPackage but on the Hierarchy Selection tab there is no hierarchy that I am supposed to upload (it's called A1). Do I have to extract the missing hierarchy from R/3? Can someone please provide the steps that should be taken?
    It's very urgent as I have to finish it today (well, the deadline is the end of this weekend).
    TIA,
    A.

    Hi Arek,
    Is ur infosource is properly assigned to the Hierarchy Data source or not!!!!
    If not then u need to check the proper data source(From R3) which needs to be used for ur loading.... based on that..
    If the DS is available in R3 then replicate the same and assign to ur Infosource..and maintain the proper TS and TR accordingly with the Idocs transfer method..
    once this is done then u can able to see the required hierarchy for ur purpose..
    make sure that the Hierarchy is available from ur source system.. then only it will be available in the IP selection tab.
    thanks
    Hope this helps

Maybe you are looking for

  • I can't make my new wrt160nv2 work at all

    I have a linksys cablemodem and router befsr41v4.3. I've been running a vista machine and xp machine with no problems for the last 2 years. Just got a Toshiba laptap that we want to connect to the internet also but use around the house so bought a WR

  • Java App error

    When I open Firefox I get a Java App error. "TypeError: Components.classes['@ica.com/XPCOM/ICAFFComponent;1'] is undefined". Have a very hard time running any site with Java. I really like Firefox and have it set up for use with all my daily work. I

  • HT1567 my ipod wont sync with itunes

    my ipod will not sync with itunes

  • ImageIO: ERROR - MetadataLib.dylib not found

    Hi all, I am downloading image from server and displaying in a table view. When the images are downloaded from server and displaying in table i am getting a error message "ImageIO: ERROR - MetadataLib.dylib not found" and the application quits furthe

  • How to setup a T3 connection for use in weblogic

    When I try to make a t3 connection using the existing http port that I have, I get the following exception Error message :javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://srvr:7092: Bootstrap unable to get a t3 c