How to create selection variable on a Key Figure
Dear Experts,
I have a key figure 'No of Days' in the BEx Query. I need a selection variable which when the users provide the input, should give me the report output where the rows shows only those whose No of days are less or equal to the input value.
I am able to create such a selection out of a Characteristics field but I am unable to create one from a key figure.
Kindly note that we are not using the BW Portal. We are running this report in the webi from a Universe created from the BE Query.I know that it is possible to ceate such a scenario in Webi, but we want the selection coming from the BEx Query for better report performance.
Thanks,
Sai
Hi Experts,
Thanks for the suggestions. I cannot use the 'Condition' since this BEx query is being called from a Webi report. MDX will not recogonize the condition.
I was able to create a Variable and use it in the calculated key figurare. The problem is , I am getting 1 where the condition is met and 0 when the condition is not met. But I want to see only the results where the condition is met. How to to avoid the rows where the result is not met.
Am I getting this because there are actually 3 other key figures along in the query in addition to the key figuare ' No of days'.
Should I add some condition to the other key figuares also.
Kindly confirm and help.
Thanks,
Sai
Similar Messages
-
How to create a new Characteristic and Key figure ?
Hi !
I am newly trying to learn APO DP and Could anyone please explain how to create a new Characteristic and Key figure in Demand Planning Administrator workbench[ RSA1] with steps?Hi,
Instead of RSA1, use RSD1 to create Characteristics & Key figure.
1. Go to transaction, select radio button for respective info object i mean Char ot key fig.
2. Enter name of the same & click on create transaction.
3. Suppose it will ask for APO or BW then select APO for key fig. so some new functionality come in to key fig. like key fig. fixing etc.
4. always copy new key fig. or characteristics from standard.
5. after creation activate the key figure.
Hope this steps will help you to create Char. & key fig.
Regards
Sujay -
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 -
How to create Variables for the Key Figures
Hi All,
How to create Variables for the Key Figures
Thanks
BhaskarHi,
It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
With rgds,
Anil Kumar Sharma .P -
How to create a variable in BEx 7.0
Hi,
Can anyone please tell me how to create a variable in BEx 7.0
In 3.5, when we right click on a characteristic, we used to get an option for restrict.
I cant find any such option in 7.0Hi,
Right click on the characteristic 0CALMONTH in the default values or drag it to char. restriction section and say restrict.Pull the drop down menu in that to select variables. There u will get a create icon.Click on that...then in details tab u can specify whether mandatory,interval and all..
Regards,
Rathy -
HOW TO CREATE A VARIABLE IN SAP SCRIPT
HI ALL,
CAN ANYONE TELL ME HOW TO CREATE A VARIABLE IN SAP SCRIPT.
THANK YOU,
BYE
TAKE CARE.Hi Ravi,
You can use like this
A text in the editor contains the following DEFINE commands:
/: DEFINE &mysymbol& = 'xxx xxx xxxxx xxxx'
&mysymbol&
/: DEFINE &mysymbol& = 'yyyyy yyy yyyy'
/ &mysymbol&
The printed text appears -
How to create select-options in module pool program
Hi
i am structed at this point could you please tell me
how to create select-options in module pool programSteps to get SELECT-OPTIONS in module pool programs.
<li>. Start one dialog program with SAPZ_TEST.
<li>. Place the below code in the TOP include of the dialog program.
PROGRAM SAPMZ_TEST.
TABLES mara.
SELECTION-SCREEN BEGIN OF SCREEN 2100 AS SUBSCREEN.
SELECT-OPTIONS: matnr FOR mara-matnr.
SELECTION-SCREEN END OF SCREEN 2100.
<li>. Create one screen 2000 .
<li>. Go to Layout of the screen and Define subscreen area on the screen and Name it as g_subscreen.
<li>. Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN g_subscreen INCLUDING 'SAPMZ_TEST' '2100'.
PROCESS AFTER INPUT.
CALL SUBSCREEN g_subscreen.
<li>. Activate all.
<li>. Create Transaction code for the dialog program SAPZ_TEST.
<li>. Execute the transaction code. You will see the select-option like we see on Selection-screen.
I hope that it gets u clear idea.
Thanks
Venkat.O -
How to create Presentation variable for columns and to use it in Narrative?
Hi All,
Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
Thanks in Advance
ThenmozhiHi Satya,
I just want to create a table that should horizontally display the values like below:
SUID Tag # :123456 Year Mfg: 2007
Description: computer corporation FA ID#: 4576
Model Number: 4569 hESC: #ert
Serial Number: 78945 Flags: c
Department: Hematology
User: thenmozhi
Database: OLAP
I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
Then the first value for example 123456 and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
SUID Tag # :678901 Year Mfg: 2008
Description: Computer Manufacturing FA ID#: 4577
Model Number: 4570 hESC: #eth
Serial Number: 78946 Flags: G
Department: Hematology
User: Rehman
Database: OLAP
Thanks
Thenmozhi -
How to creat select-option on module pool screen???
Hi All,
please tell me how to creat select-option on module pool screen???
Regards
DeepakHi Deepak Kumar Sharma,
There are Two ways to achieve it...
1) How to create a select-options in a module pool screen.
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
select-options s_matnr for mara-matnr.
SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING <program> <screen>
This call subscreen statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR'
struc_tab_and_field-tablename = con_kna1. " 'KNA1'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' '
text = g_titl1 " 'Customers'
tab_and_field = struc_tab_and_field
TABLES
RANGE = rng_kunnr
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5.
IF NOT rng_kunnr[] IS INITIAL.
Read the very first entry of the range table and pass it to
dynpro screen field
READ TABLE rng_kunnr INDEX 1.
IF sy-subrc = 0.
g_cust = rng_kunnr-low.
ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
Also have a look on below threads
how to make select option in module pool
select option in module pool program
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7 -
For Mayank Guptha : how to create formula variable in IP
Hi,
How to create formula variable, such that it will appear in the variable screen.Hi,
the variables you create in formula function are local to the function.
Ex., DATA CST_ELMNT TYPE 0COSTELMNT.
DATA QTY TYPE 0QUANTITY.
To get the variables listed in the variable screen you need o create variables at aggregation/filter level for the required characteristics. -
How to create replacement variable
Hi,
Any one has idea how to create replacement variable in bps.
I need to pass one variable value to another.\
Because both the fields are fields to be change. But user does not want to do double entry.
So need to pass one value from another. Is there any way. I can fix this issue.
Thanks
Naman ShahSo far not found any answer so closing
-
How to create the variable variant in process chains for ip
how to create the variable variant in process cahins for ip
Hi venky,
check these links
http://help.sap.com/saphelp_nw70/helpdata/EN/c0/980398e58611d194cc00a0c94260a5/content.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/c0/98038ce58611d194cc00a0c94260a5/content.htm
bhaskar -
How to create dynamic variable in HANA
Hello experts,
Please help me on how to create dynamic variable in calculation view.
Ex: variable automatically should take YTD, or MTD values so that I can directly consume column in BW on hana or BO reporting.Hi ,
Not sure on what are looking for. Have a look on the below blog once, if this is what you are looking out for:
Applying YTD in SAP HANA with SAP BO Analysis Office
Regards,
Krishna Tangudu -
Conditions: Variables on date key figures
Dear Sirs,
I am trying to create a condition on a key figure of type date (subtype: dats). I want the user to select a date interval for this condition, using variables.
The problems seems to be that the variable input screen thinks the user should enter an amount and not a date. If I enter a date in the variable then no data is beeing displayed.
So how can I get the variable to understand that the input is a date ?
Has anyone done what I try to do sucessfully.Hello Rakesh,
thanks for your input. However, I am not able to get it to work.
I create a condition on the key figure "date". I use e.g greater than. Then create a variable with replacement path to 0CALDAY, and transfer the condition.
When I run the report I get the following error.
Termination message sent
ABEND BRAIN (418): Variable VAR_20080128112329 (D2LEOFV2P3JFW0YWPGXBKJ53A) does not exist or is incorrectly used 4 D2LENS95OIB2G5DTW28S323D2
MSGV1: VAR_20080128112329
MSGV2: D2LEOFV2P3JFW0YWPGXBKJ53A
MSGV3: 4
MSGV4: D2LENS95OIB2G5DTW28S323D2
Have you managed to solve the excact same requirement?
regards,
Jørgen -
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>
Maybe you are looking for
-
I recently ran the itunes 11.1 update and itunes is now gone from my computer and will not allow it to be reinstalled. I am running Windows 7. Any ideas?
-
Best back up for college lap top
We currently have 3 mac computers all connected to external hard drives for the time machine use only. We just purchased a macbook pro for my daughter for college in the fall and are curious on the best back up source for that. The apple consultant s
-
Currently I have a bunch tracks that need to be exported in order for the mixing engineer to mix in his Protools program. Problem: I did a lot of cutting and pasting with in the tracks. So there are spaces in a track that need silence added, so that
-
Hi Gurus, I have a requirement where in I need to convert the input Date & Time in CET format to Date & Time in GMT format in the output. Could you please provide me with any ideas on how to meet this requirement. Regards, Swathi
-
Assign Smartforms to Transaction Code F.27
How to assign SMARTFORMS to transaction Code F.27