Variable on CKF

Hi,
I have created a  CKF .for Example  No of days (Z)= Y/X. is is possible to cerate a variable on Z ? i.e. on No Of days?
regards

Hi,
Do you want to filter out your query result according to some conditions (for example, to show records with stock coverage < 45 days)? And 45 days should be user entry value?
If yes, then you can create a condition on your CKF (there is an icon in Query Designer).
Click ‘New’ button. In ‘Key figure’ column choose your CKF, then choose an Operator (for example Less than). Check ‘Variables Entry’ checkbox. Click on a blank sheet icon (New variable). Create a variable, user entry, mandatory, ready for input. In the ‘Values’ column select the variable you just created. Click ‘Transfer’ and ‘OK’.
That’s all!
Best regards,
Eugene

Similar Messages

  • Variables in Transports

    Hi experts
    I am creating new queries in Development.This query is using some variables and restricted key figures.One other team is developing one new query which is using same variables and restricted keyfigures and calculated key figures. My transport will go after his transport to Quality.Will there be dependencies and problems while transporting to Quality or Production...
    Regards,
    P Olin

    Suppose If you made changes to the variables and RKFs ,  then you need to transport the changes but keep in mind that if you transport the changes the other quereis where these variables and RKFs may change and those queries may effect and may not work properly.
    Are you taking about the variables and CKF/RKFs that you are using in your query that are already existin some bodys query or you had create your own variables and RKFs for your query?
    If you are talking about the variables and RKFs that you had created seperately for your query requirement then you need to collect them in the TR before transporting and send them to Production.
    If you are talking about the already existing variables and RKFs that are used in some bodys query
    Then if you try to make changes it will not allow you to make changes unless you are the owner or creator of the variables query.
    Edited by: prashanthk on Nov 5, 2010 4:42 PM

  • Forumla Variable with Exception Aggregation

      Hello,
    I've CKF in BEx, in this CKf there is replacement path Formula variable calculating number of documents.
    Formula variable is replacing the value of Document number infoobject.
    So definition of CKF is -> Replacement path Formula variable *1
    Ckf is restricted to summation with  Exception aggregation on Document number.
    This implementation is working fine but issue is its taking lot of time in query ,like while checking RSRT olap :data transfer(Event ID) is taking lot of time,majority of the query execution time and counter is going somewhere around 100K.
    Do you know is there a way we can implement this count in transformation?
    Thanks in Advance!

    Hi,
    Doing SUM in transformation takes a long time as you need to read all the content in target.
    So it is better to fine tune the query.
    1) Is query running long time for small selections ?
    2) Trace the query in RSRT and check where it is taking long time like Data base level , Application level
    Thanks
    Jagan

  • Variables for a given cube

    Hi
    I have activated a cube 0XYZ and did not activate any queries.
    I am creating a query on my own i want know what all variables and CKF & RKF i ca use If i am creating a query on 0XYZ.
    Any way?
    Please let me know
    Thanks

    Hi,
    If you have not activated any query elements then any RKF or CKF present in the business content for this cube will not be available, and you will have to create your own.
    Variables are not tied to the cubes, but rather to the chars (if they are char value variables). Agai, if you have not installed any variables for the chars that make a part of your cube, you can create the same in the query designer.
    Hope this helps...

  • Calculated key figures Vs local formula

    HI,
    I am having 4 queries on a cube.
    i am now using calculated key figures instead of local formulae.
    I want to know "which is better in performance wise/ or may be pros and cons of using each one."
    Can any one clarify me.
    I know that
    1.when we select the option Calculation after aggregation will improve performance.
    2.we can do some more things only with Cal. Key Figs using formula variable.
    Here my concern is not that.
    I am concerned about general case like -
    i have to add, multiply or divide some direct key figures and use some data functions like nodim, NDIV0 functions.
    Thanks in advance.
    Regards,
    Raghu

    Hi Raghu,
    Formulas cannot be directly reused, but if they are saved to a global structure, then the structure may be reused. If you are creating a calculation that will be widely used, it is best to create it as global...this helps a lot when you need to revisit the definition, and make changes as one chnage is reflected in all queries.
    However, there are some functions like SUMCT, SUMGT, SUMRT, %CT, %GT, %RT which are available only to the formulas (local), so if you need to use them, you cannot use a CKF.
    In addition to the differences, A formula can only work on other formulas/selections already in your query (in the same structure as your new formula), while a calculated key figure can only work on other key figures, calculated key figures or restricted key figures. However both can use formula variables.
    CKF are calculated at the time of loading data.
    Your Formula calculates at the time of running the query.
    Hope this helps...
    Regards,
    Yokesh.

  • Keyfigures

    Where we use transactional ods and transactional cube? and why shd we use?
    In restricted kf "we hv to use variable value" only isn't it?
    calculated kf is for using "formulas' only isn't it?
    thanks,

    <b>Standard ODS Object</b>
    This object comprises of three tables (activation queue, table with active data, change log). It is completely integrated in staging process. In other words, data can be loaded into and out of the staging process.Using change log means all changes are also written and are available as a delta uploads for connected data targets. You can use these ODS objects directly in reporting if you wish.
    <b>Transactional ODS Object</b>
    An ODS object of this type only has the table with active data. This automatically means that it cannot be integrated in the staging process, since both the entry table (Activation queue) and the output table for conencted data targets (change log) are used. This ODS object type is filled using API's and can be read via a BAPI.
    Transactional ODS objects are not automatically available for reporting. If you want to use them for reporting, ou need to define an infoset for them. Queries can then be based on these Infosets.
    To Summarize
    - Data storage for external applications, such as SAP SEM
    - Direct update using APIs - no loading process
    - Data available directly
    - No change log - no data update for connected data targets
    - Reporting only using infosets.
    <b>Transactional Cube:</b> These infocubes are optimized to write data from SEM-BPS. You can store plan data using Transactional InfoCube.
    Restricted Key Figure : Restrict a Key Figure using a variable value
    CKF for formula
    Regards
    Naga Yadavalli

  • Condition on CKF (based on replacement type formula Variable) not working

    Hello Friends,
    We have a reporting requirement where in we want to find out vendors who are being paid with the multiple currancies.For this I have created a replacemnent path formula variable with reference to currancy and created a CKF with the help of this variable.
    Now as I want to display only multiple currancies I want a condition to display value > 1 on this CKF but
    this condition is not working as the replacement path variable contains value 1 for every currancy passed to it although it shows in the report for 2 currancies value as 2.
    Can anyone guide us in this matter?
    Thanks,
    Suyog.

    Friends found the Solution so closing this thread....:)

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • Displaying Customer Exit Variable with derived value from another ODS

    Hi All,
    Sorry if this question has been answered before.  I searched the forums and could not find anything specific to my problem.
    I am new to BEx Query.  Customer is requesting a variable(s) be created which will be displayed as a column along with other CKF and RKF.  This query is a payroll query for US/Canada.  This new variable will be based on the user input date for the query.  We are to take this date and go look up the actual pay date for the pay period to which the user input date belongs.  The pay date is stored in another ODS.
    So far, as far as the changes to the Customer Exit ZXRSRU01 are concerned, I would perform the logic when I_STEP = 2.  Do a basic selection off the second ODS, derive the pay date, and store in range table E_T_Range.
    The data displayed off the user input date is displayed in rows.  This is done six times, going back seven days for each row (first row is data for period user entered date to user entered date - 7 days; second row is data for period user entered date - 7 days to user entered date - 14 days; etc ...).  For this to happen  correctly, I am assuming the variable(s) are to to have characteristic types 'Not ready for input', 'Mandatory', 'Customer Exit', and 'Single Value'.
    My question is ... How do I display the six variables in columns (how are they to be defined in the query) and the characteristics I list above, are they correct? Does this need to be a replacement path variable?
    Thanks.
    Edited by: Amir Hasan on Jun 11, 2009 6:24 PM
    Edited by: Amir Hasan on Jun 11, 2009 6:25 PM

    Hi Amir,
    What i can understand from u r requirement is you want to few columns that will show something like below,
    User entered date = x
    Period of X to Period of (X-7)       Period of X to Period of (X-14).....
    This can be done by CMOD for variable only.
    Logic steps :
    1) Take the user input.
    2) Find out the period by using T009B table and store in temp variable.
    3) Do day -7 and find out period for the same
    4) Assing period of X to ls_range-high range and X-7 to ls_range-low.
    Let me know if you have any doubt
    Regards,
    Viren

  • Formula variable / Replacement path issue

    Hi Experts,
    I have a Field which has different status description.
    I want to bring the count of only one preferred description.
    Model Status
    A1     New
    A2     Open
    A3     New
    B1     Closed
    B2      Pending
    B3     New
    I want to view only the closed count of models
    Model Count of Closed
    A1     0
    A2     0
    A3     0
    B1     1
    B2      0
    B3     0
    I tried doing this using the formula variable and Replacement path with Status Field.
    But I'm unsuccessful in selection the desired status.
    Please help me to over come this.
    Thanks

    Hi Dear Prasad,
    I can't restrict the characterstic to Closed. If I do so the output will be only for Closed.
    But here I want to bring every model with value as 0 and 1 for model with closed status.
    Hi Dear Raju,
    The requirement what I have here is more complex. like, the result will be for 6 month displaying every single cal/day.
    and also I have to find out percentage of closed for every cal/day based on number of model we got.
    i have only asked a small portion of it, with this input i will manage to build the percentage etc....
    I  cannot bring counter inside. My report is already too wide to be displayed.
    I have tried similar kind of thing, using CKF, Formula Variable and Replacement path with the Char - InfoObj.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a&overridelayout=true
    But I'm not very sure how do I get only count of the my desired status.
    Please help.
    Thanks

  • Create aging bucket in BEx - based on  date variable

    Hi everyone,
    I have a report for which we need to create account receivable aging bucket to classify arrears (1>29 / 30>59 / etcu2026).
    Our solution overall architecture is the following :
    Source System (SAP) >  BW back end...Multiprovider > Super BEx Query > Universe > Webi Report
    BW 7.0
    BO XI 3.2 SP3.0
    In this report, each bucket is defined by the difference between:
    -     the Net Due Date (which is the due date of payment of the invoice)
    -     and the Current Date (date for which the report is run u2013 can be the date of the day or a date in the past)
    We can develop this either in BEx or in Webi, but to avoid potential performance issues in Webi, we take the try to develop this in BEx.
    As you can easily imagine, this BEx query will be used for many reportsu2026so not only for this specific report.
    What weu2019ve done so far:
    1-     We created a variable to prompt the user with the date he wants to run the report for
               - ZTEST is an optional variable, single value, User input, based on characteristic 0CALDAY
    2-     We developed RKF in BEx
    -     Key Figure restricted by Amount
    -     Net Due Date restricted by the variable ZTEST using the between function and an offset (to determine the range)
    => When we save the query we are getting a warning message saying u201CVariable ZTEST for characteristic Net Due Date has been converted to a required entryu201D
    Why? (you probably knowu2026) Because my RKF is using a variable with an offsetu2026which automatically turn on my variable as mandatory and no more as optional.
    Consequences:
    -     In BEx: My variable, which is required to be optional (because we donu2019t have to have this field as mandatory for each and every report running on top of this query) is now mandatory.
    -     In Webi: If I use the variable (funnel in webi), my report is working fineu2026but if I donu2019t use it in the webi report, I get an error message saying u201Cvalue required for ZTESTu201D
    o     Funnel is configured as optional in the universe designer (so the issue is not coming from here)
    => 2 consequencesu2026same issue
    Question: What can we do to keep our bucket logic running in BEx and avoid this variable to become mandatory?
    Solutions (potential)
    -     Create a custom exit routine to work around this issue u2013 how?
    -     Create CKF/Custom exit to create our bucket (using ZTEST as an entry value to determine the range) and then use the created range in our RKF to restrict the amount u2013 how? Not so easyu2026
    -     Build the logic in Webi
    -     Any other suggestions?
    Here we are, any advice would be really appreciated
    Thank you guys
    Regards
    Henri

    Hi peeps,
    We finally find a solution for this problem! So I can share it with you.
    The overall solution is pretty easy to understand.
    1st step is to prompt with the user with a 0DATE variable. The date selected becomes a date input for the next step.
    The variables is defined as a range [01/01/1900;variable_value)...in order to retrieve the right data set.
    2nd step is to use this date to create our aging bucket, dates range.
    To do so, we created 4 user exit variables (for each aging bucket).
    3rd step is to use these ranges in RKF.
    This way you get aging bucket dynamically defined by the user input pretty cool!
    Regards
    H

  • FORMULA VARIABLE "NO OF DAYS"

    Hi
    my report is based on infoset(ISARGL) and need one field (No of days)
    No of  days = 0CALDAY - POSTING DATE.
    BEFORE I WAS NOT HAVING 0CALDAY IN INFOSET(ISARGL)  AND ODS, BUT I ADDED IN BOTH ODS THIS 0CALDAY.
    POSTING DATE I HAVE IN INFOSET.
    for No of Days i am creating CKF based on formula variable.
    here i used replacement path, KEY, DATE.
    Formula variable FISFV_CD IS MADE FOR 0CALDAY.
    GETTING SYSTEM ERROR.
    Formula variable FISFV_CD is used in formula element No of Days and is
    to be replaced from characteristic 0CALDAY or from an attribute of
    0CALDAY. However, 0CALDAY is not contained in InfoProvider ISARGL.
    Neither does it reference any ISARGL characteristic to No of Days and
    0CALDAY is not a basic characteristic.

    variable FISFV_CD having  (current date)
    processing by  -          replacement path
    replace variable with -  attribute value
    attribute  -                  charac. reference (constant 1)
    dimension id -              number
    character.   -                calander day
    variable FISFV_PD having  (posting date)
    processing by  -          replacement path
    replace variable with -  attribute value
    attribute  -                  charac. reference (constant 1)
    dimension id -              number
    character.   -                posting date
    My selection screen is coming for calender date .
    now i am abele to see report but no of records coming 0.0000
    plz provide me solution

  • HOW TO CREATE A CUSTOMER EXIT VARIABLE

    <Moderator Message: use lower case letters next time, we don't want you to shout. --> see rules of engagement>
    hi,
          How to create a customer exit variable..!
    in a query designer i  have created the customer exit variable ,in the cmod i have created the project
    for the exit rsap0001 and kept the break-point....but when i executing the query via BEX-Analyzer
    where control not stoping in the break-point..
    can any one help me ..what is the approch i need to do.because i new to BI..
    Regards,
    shahina.....!
    Edited by: Siegfried Szameitat on Dec 17, 2008 10:37 AM

    Hi Shahina,
    1. Create formula variable var1 from to date using replacement path.
    2. Create another formula variable var2 for current date using customer exit or you can use standard
    formula variable for current date
    3. Create calculate key figure ckf using var1 & var2.
    ckf = var1 - var2.
    Thanks == points
    Regards
    Sudheer
    Edited by: SUDHEER on Dec 17, 2008 10:41 AM

  • How to create selection variables on the KF

    Hi,
        i need to create a variable on the CKF and the user is going to give the selections like >90% or <100%  in the variable screen before runing the report.on the report should show the values based on the selection.
    1.how to create the variables on the CKF.
    2. how to restrict the values and give the selections(like >90%,<100%) values in the selections.

    Hi Venkat,
    You can achieve this by the following way:
    1. Create a CKF or a local formula(based on which queries it needs to be used)
    2. Then go to BEX Query Designer -> View -> Conditions
    3. Create New Condition -> select 'New' -> Select your CKF/Local Formula -> Define your Operator ( BT, GT, LT, Top % etc.) -> Create a Formula variable (Ready for input with Processing type as ;manual Input')
    4. DO the char. assignement for the condition with your condition definition
    4. Execute the report with your values.
    This will solve your prob.
    Cheers,
    VA

  • Source is not a permitted variable data objects

    Hi SCN,
    So we transported queries. Collected in manually and gouped by necessary objects. We're having a problem with our variables that holds a replacement path setting for clearing date, net due date and posting date.
    Replacement path for key using 0DPM_AV1.
    When we're trying to run the queries in QAS this is the error we're getting: 'Source is not a permitted variable for (infoobject date)."
    Are we missing a step on how are we collecting our queries for transport. Any suggestion so we can overcome this problem?
    Thanks.

    Hi Karl,
    Assumed as query/target related info objects transport to qua without any issues.
    Even at Qua, target level, try to see the loaded requests, Whether they have reporting symbol or not.
    Can you try to run your query at dev system and check it.
    if there is no error from dev then again collect your query into transport from RSA1-->transport connection.
    Use grouping option as only necessary.
    Once you drag query from middle pane to right pane at RSA1-->transport connection, Expand the query which you collected into right pane.
    Below you may see all related objects of your query like CKF,RKF,Variables..etc.
    Select them all and collect into transport.
    Release and import Qua system.
    Later try to run query at Qua and see the results.
    Thanks

Maybe you are looking for