Customer exist code 4 automatic recognisation of restricted key figures.

I have a scenerio like this.
I have Product Dimension(zpddim1) in that product release (zpdrl) In infocube(zcubepd) . Based on this
If you look at In Bex at the key figure we have created one Restrictedkey(2006.03,2006.09....) figure per Release. As the release goes forward in future(for e.g. 2006.09) then we have to add additional key figure Can you find out a way, where the query automatically recognizes the release adds it part of the data(key figure).
for the above scenerio I hav to create customer exists(I am writing code in ZXRSRU01 include program).
please help me how write the code for above scenerio.
what are the conditions,how fetch the data from that,how to create internal tables for that & all which are necessary.
It's very Urgent.please send replys asap.
(I will Assign max points if your reply helps me)
Thanks,
James

Let me try to understand case 1 first.
<i>"Strange behaviour 1:
When including the CKF A in a query and restricting it on the actuals infoprovider, what do you get? I created a test query with two columns: actuals and one specific budget version. So in the columns the restriction is on budget version. In the actuals column I get the expected result, i.e. the loaded data. In the budget column I would expect nothing, as I have restricted the CKF on the actuals infoprovider only. But I do get data. I get B/4 for the correct budget version. So it seems the lower level restriction on infoprovider is overriding the higher level restriction in this column."</i>
I assume you are creating two new RKF on CKF A. Let us say R1 and R2. Is this correct?
R1 (and R2) is restricting A on 'budget version' or 'infoprovider'? It seems you are interchanging these two, though I assume these are separate characteristics.

Similar Messages

  • Customer Ext Variable is NOT working correctly in the Restricted Key Figure

    Hi all,
       I have created a variable ZVCBLMTH (Period from 01/1996 to Last Month) with reference to
        0CALMONTH  and it will be populated through  Customer Exit and it works fine.
        In the selection for 0CALMONTH, I gave the range as '05/2008' to '08/2008' and this new
        variable  passed the value of  range as '01/1996' to '04/2008' in RSRT.
        The properties of the variable are:
              Type of Variable -  Characteristic, Processing by - Customer Exit, Variable Represents - Interval
              and Variable is - Optional.
              No change in the result after changing the 'Variable is' from Optional to 'Mandatory'.
      This variable is used in Restricted Key Figure to calculate the number of matching records between
       01/1996 & 04/2008 and somehow it is not recognizing this variable and NOT passing the results correctly.
       But, there are records with 0CALMONTH between 01/1996 & 04/2008.   
       How could I test that which value is passed into the Restricted Key Figure for this variable, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat.

    Hi Clemens Li
    I agreed on your point. When we define the Internal table the type for element EQUNR & QUMNR , we are referring the SAP data element for EQUNR, QMNUM field.
    Our doubt is even though we refer the standard data element, in the ALV display, it shows with leading zeros and also it creates problems in the filtering and in the filter window all values instead of unique nos.
    Hi Abhii
    I have given below the fieldcat coding.
    Friends, can you kindly clarify the above said problems. Since we use SAP ECC 6.0 any notes or patches apply is required. ( this is the basic functionality in ALV, that is my doubt).
        wls_fieldcat-col_pos   = wpv_pos.
        wls_fieldcat-fieldname = wpv_champ.
        wls_fieldcat-tabname   = wlc_tabname.
      wls_fieldcat-seltext_s = wls_fieldcat-seltext_m
        wls_fieldcat-seltext_l = wpv_libelle.
        wls_fieldcat-ddictxt   = 'L'.
        wls_fieldcat-no_out    = wv_no_out.
        APPEND wls_fieldcat TO gt_fieldcat.
    Kind regards,
    Jegathees P.

  • One Variable 2 Restricted key figures on 2 different Dimensions

    Hi all,
    Here is my problem:
    I have a cube based on SD sales items. I want to calculate 2 retricted key figures on the 0net_value retricted by a date.
    The first key would be restricted by the installation date, and the second one by the cancellation date.
    Those two dates are set using a user input.
    When I try to do this here the error message I get:
    "Variable ZD_CSDATE is used in both (structure) element EL099Z0TL38F14TMC6AL7XKQD, and element EN4ZFAZEYGZ36B06JU04297W5 for various characteristics (0CANC_DATE, 0UCINSTDATE). This is not permitted as the characteristic is required for the F4 value help structure."
    I created 2 variables set by customer exit, this solve the problem but is not convenient at all. So who could use one and only one variable or how can create a variable by copy of another one?
    Thanks
    Matthieu

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    I am sure you can make more than one Restricted Key Figures which are restricted to same variable value for some Characteristic.  And secondly there is no easy copy and paste option to create 2 Customer Exit Variables. You need to find out the ABAP Code written using T-Code: CMODE for the Variable Exit and there you can copy and paste a part of this code to populate new variable. If you check the ABAP Code, you would understand what I am saying.<Br>
    I am more surprised at that F4 Help in the error message. Please investigate more in that direction.
    <Br><Br>Hope it helps.
    <Br>
    Cheers
    Abhijit
    <Br>* It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you
    </FONT>

  • Creation of restricted key figure

    hi experts,
    when i will create restricted key figure and calculated key figure for reporting.any one suggest that.
    regards,
    balu.

    Hi,
    Restricted Key fig:
    By using restricted key fig you can restrict only one key fig column based on the value of char.  Assume that you have a query with key figs Price, Qty and Revenue.If u  restrict Revenue based on chars i.e either time or customer Id or Material Id etc only that revenue key fig coulumn will be effected.
    Calculate Key Fig:
    Calculated Key fig is nothing but creation of new key fig using existing key figures. Assume that you have a query with key figs Price and  Qty only. If you want to find Revenue as 
    Revenue = Price * Qty, go for Calculated Key figure.
    Assign points if  it helps u.
    Cheers....
    Sk Babu

  • Very Very Urgent Issue: Restricted Key Figure does not return any data

    Hi all,
    Please help me solving this urgent issue.
    created customer exit variable on characterstics version and also
    other customer exit variable on Value type.
    I coded that in variable exit. Problem is when I include these in
    restrickted keyfigure My query does not return me any data.
    But if I remove from restrickted key firgure and put it as normal
    charaterstics I see the variable is getting populated.
    Also in RSRT the SQl generated when these are included in RKF is not
    correct.
    I debugged and know they are getting populated. As when included in RKF
    I can also see the values of customer exit variables from information
    tab.
    I also know that there is data in cube for those restrictions.
    I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
    FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
    Thanks
    SAP BW
    **Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any data

    Hi,
    Everyone out there this is very urgent. If someone can help me solving this problem.
    We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
    I posted one oss notes also regarding this issue. But got no reply from SAP.
    So, Please help me solving this issue.
    Thanks
    SAP BW

  • How to copy restricted key figures in query designer ?

    hi,
    i have created a query in query designer (BI 7.0).
    How can i copy existing restricted key figures ? i can't find anything. i always have to create a new one, and then i have to do all the things like 'details of selection' etc.... manually. that CANNOT be, there MUST be a way to copy those key figures.
    any ideas ?
    best regards, Martin

    Hi Martin,
    Restricted key figures can be stored on the infoprovider basis . For which right click on the key figure (left hand side pane ), Select the necessary key figure and assign the restriction through characteristics combination, and give it a restriction and save it . Next tiem when you create query on the same info provider it should appear in the left hand side as readymade reusable piece .
    Hope that helps.
    Regards
    Mr Kapadia

  • Duplicated Restricted Key Figures?

    My queries for the Sales Overview Cube (0SD_C03) have "duplicated" Restricted Key Figures. Neither myself nor my query designer has created them. Example:
    Z0COST_1
    Z0COST_2
    Z0COST_3
    Z0COST_4
    Has anyone else encountered this problem?
    Thanks in advance.

    Hi Michael;
    If you have copied your query the restricted key figures and calculated key figures would also be created automatically with sequential order _2, _3, _4 and so on. Pls check you might have copied the query. In this case I would recomend you to create structures.
    Hope this helps.
    BK

  • Restricted Key Figure with interval variable

    Hi,
    I've a restricted key figure for KF 0AMOUNT restricted by 0FISCPER. There is a variable restriction on 0FISCPER which determines the period interval in customer exit.
    e.g. 001.2008 to 009.2008
    The problem is, in query this RKF is returning only the values for period 009.2008. It should return the total for all the periods.
    Can you tell me what could be missing?
    Regards,
    Amit

    Hi Amit,
    please check the cutomer exit, as the range might not be properly defined in the exit.
    Firstly check if the variable is defined as range or single value, and if defined as range please check the below mentioned lines in the exit:
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    as they stand for:
    SIGN     (I)ncluding [ ] or (E)xcluding ] [
    OPT     Operators: EQ =, BT [ ], LE <=, LT <, GE >=, GT >, CP, and so on.
    hope it helps
    Regards,
    Umesh

  • Restricted key figure doesn't work when restricted objected used in Structure

    Hi Experts,
    We've a requirement where user wants to restrict ABC key figure with z object. This z objects also used in structure as well, because of that this restricted key figure is not working.
    We understand it can't be used in two structure and user wants to keep this object in structure as well.
    Is there a workaround to make it work?
    Requirement brief overview:
    Say I've restricted key figure gross avail percentage and which is restricted by retail group A and B. This retail group is also used in Structure as well (in row). As said users want to keep retails group in structure and want to restrict only one key figure with two retail group A and B.
    But this combination is not working. Please can someone recommend any other way to achieve this requirement.
    Thanks,

    Hi Yasmine,
    Yes, I've reloaded the data again. Also, I've mapped correctly in cube. But still I can't see data.
    I've checked customer master data , there is no data for this field.
    In transformation I've mapped retail group with the new field as well.
    When I tried to activate master data , it's saying it's possible only via attribute change run.
    I've realised 0CUSTOMER_ZRETGRP (old field) also used in two aggregates.
    Do I need to add this in aggregates?
    How to activate master data so data will appear in cube?
    Is there any programme to activate via attribute change run?
    Thanks

  • Creating Restricted Key Figure

    Hello all,
                  When creating a Restricted Key figure do we need to drag and drop both the key figure and also the characteristic?

    If you are creating a Restricted key figure by right clicking on the 'Key figures' section in the Infoprovider panel to the left in Query designer then you need to explicitly drag both key figure and then all the characteristics on which you want to restrict this keyfigure.
    On the other hand if you are restricting a existing key figure in the Columns section,  then you just need to drag the characteristics.
    Step by step procedure at
    http://help.sap.com/saphelp_nw2004s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/frameset.htm
    Regards, Uday
    Assign points for helpful answers and get one point for yourself

  • Text Variable for a Restricted Key Figure

    Hi,
    I have a version comparison query three Restricted Key figures based on 0QUANTITY each of which are restricted by Version, Value Type and Fiscal Year. All three are in my query columns. The users select 3 sets of version, value type and fiscal year in the selection for comparison.
    They want to see the text of the version they have selected as the description of the column. How can i achieve this with text variables on these 3 Restricted Key Figures which have multiple restrictions. Please advise
    Thanks
    Rashmi.

    Hi Rashimi,
    As u said this can be acheived by text Variable,
    I have adoubt here,are  there THREE columns for Quantity or just ONE column with three Restrictions.
    In case it is three Columns then u can go with Text variables else probably u may have to populate it in three Columns and by using Workbook you can combine them in one Column.....i.e One column with all the restrictions -text.
    And here is how u create a  text variable.....
    Create text Variables,For Example ,say 0FISCALYEAR.
    1)Right Click on the 0FISCALYEAR and Create a input Variable say YFISCYEAR and save.
    2)If ur using 0FISCALYEAR in the RKF,then drag both the 0FISCALYEAR and KF say 0QUANTITY in the new selection.
    3)After the Description of the RKF there is a = sign click on that to VIEW and CREATE Text variable.
    4)Create New Variable ,enter the tech name(say YFYEAR) and dscription and in the same screen choose type Replacement PAth after which u will get a set of infobjects.
    5)choose 0FISCALYEAR
    6)In the Next screen choose the Tech name of the Input variabble(0FISCALYEAR) and save.
    7)In the description of the RKF ,type as 0FISCALYEAR &YFYEAR&.
    Check this too .....
    /people/surendrakumarreddy.koduru/blog/2009/02/26/using-text-variables-with-customer-exits-in-report-headings
    rgds
    SVU123

  • Restricted key figure advice please...

    greetings sdn. i need your advise on how to go about this type of report layout.
    i have 2 main columns, customer type and customer type b. and then 3 sub columns; consumption ranges and total.
    each customer should only fall in one category, either type a or type b.
                     type a                    type b
             (1-10)  (11-20)  tot   (1-10)  (11-20)  tot
    cust x      1              1
    cust y                                      1      1
    i made 2 restricted key figures; the 1st is volume restricted by the customer type a and the 2nd is also volume restricted by customer type b.
    when running the report, the customer volumes fall in the right columns. however, each customer is counted in both sub column totals.
                     type a                    type b
             (1-10)  (11-20)  tot   (1-10)  (11-20)  tot
    cust x      1              1                       1
    cust y                     1                1      1
    your advise will be most appreciated.
    thanks.

    hi venkata,
    i already sent you the screen capture of the query result
    thanks
    jay
    hi srini.
    i already made the formulas as you described. and the volume is falling in their respective columns according to customer type.
    the problem is that every customer is incremented in both count columns of both customer types (e.g. a customer who belongs in the 'customer type a' column is also counted in the 'customer type b' column).
    thanks
    jay

  • The use of restricted key figures in real time scenario

    Hi all,
    Please let me know the use of restricted key figures in real-time business scenarios....plz someone explain it with <b><u>example</u></b>...
    Also, can restricted keys be defined globally with same infoprovider...???????????
    Your response is thankfully acknowledged,
    thanks and regards,
    shalini.

    Hi,
    You can restrict the key figures of an InfoProvider for reuse by selecting one of more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures or key figures that are already restricted. Which means you can define and use them globally in reporting for a particular infoprovider.
    Example:
    You have to show the sales for different product typessay 1, 2, 3, 4, 5, 6, for a company code.
    now you can define a RKF with company code and sales keyfigure.
    In the report, in columns, you use this RKF in new selection and restrict it with product type in 6 diff columns.
    New Selection.
    Restrict it with RKF
    Restrict it with product type 1.
    similarly for others..
    Hope this helps you....

  • How To Transport a Restricted Key Figures

    Dear all,
    can u plz tell me how to transport Restricted key figures for the first time.
    i mean shall i create new package or shall i use the existing package only?
    Regards
    venu

    Dear Venkat,
    In qaulity the sales value for a week is showing correctly where as in the production the sales value is showing only for one material that to in the -ve...we have so many materials....
    When i open a Query Designer in quality the system is giving a status message
    <b>[E865(RSO)]ERRORS: System is not set to Changeable - objects are not changeable</b>
    [<i>b]When i click the documetaion on the error message the following is appearing:</b></i>
    Errors: System is not set to changeable - objects are not changeable [E865(RSO)]
    Diagnosis
    You want to change objects although the system setting is "Not Changeable".
    System Response
    The objects cannot be changed.
    Procedure
    Change the setting for the system or client to "changeable". You can do this using transaction SE06 or SCC4.
    Venu

  • Complex restricted key figure

    Hello, how can I create a complex restricted key figure?
    I need a RKF with:
    0AMOUNT only when Payer = 1500 and Customer = 9100 and Ship_to = from 431 to 433
    All data comes from an infocube. It is just an example, not real data, focused on how to create a restricted KF with the above conditions.
    Any response will be appreciated.

    Hi,
    In Query designer, Rclick on the Keyfigures(left side of window)  and choose Restricted Keyfigures,
    in the properties window give the technical name and description and save it.
    Rclick on the RKF which you created just now, and give edit option, a new window will open,
    Drag an d drop the fields like payer, customer in the details of selection tab.
    then Rclick on the field say payer, restrict and give the value as 1500, do this for all the fields.
    now save and execute the report.
    let me know if u need more help.
    regards,
    adlin

Maybe you are looking for

  • Not able to add songs to ipod

    ever since i updated my ipod i am not able to get my songs back onto my ipod

  • Adobe form in Web Dynpro Submit Button Problem

    Hi all, I've created an Adobe form as a UI element in Web Dynpro as a development component. In this Adobe form, I've included a "Submit to SAP" button from the Web Dynpro Library. My whole purpose is to expose this DC as a callable object into Guide

  • Excise Invoice report

    Dear All, kindly tell me the reporting t.code for seeing list of excise invoice cancelled during the fiscal year 2008. Also to see list of excise invoice posted in this fiscal year. Rgds Srini

  • Interaction history search problems

    Hi Gurus, Good day, I am having problem when i save a service ticket its getting saved 3 times 2 times as business activity with blank description and one time as customised transaction, and when i search in interaction history its not showing anythi

  • Scale Pricing

    Hi, I am facing an issue where i have maintained scales as shown below: Scale Type     Scale Quantity     Unit    Amount     Unit    per   UOM From                  1                       DAY   4200         SGD   7      DAY