How to do a Count for Key Figure?
Hi,
I have a KF which gives me results in %. For each of these results, I need to compare if the result value is less than 80% or greater than 120%. If it lies b/w 80% -120% then I need to display a count '1' & '0' otherwise.
Could you suggest how do I go about doing this?
Thanks in advance!
Create a CKF on the KF and use boolean to get 1 & 0.
(KF<80 OR KF>100)0 +(KF >=80 AND KF<=100)1
This should do it
Hope it helps.
Bhargava
Message was edited by:
Kumar Bhargava
Message was edited by:
Kumar Bhargava
Similar Messages
-
How to write conversion routine for key figure?
Our customer has this requirment:
we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this: 00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time, BW system will report a error that say it is not acceptable time. If we want to define a integer, but we need display it like hhmmss format. We know we can write conversion routine for char. but I don't how to write conversion routine for key figure. Please give me any hint if any other solutions?
Edited by: SY DONG on Dec 2, 2010 3:36 AMIf you want to do in Transformation Layer :
You can use routine ...break up the seconds into minute hour and seconds
you will have to handle few cases in this:
let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
DATA: lv_seconds type i,
lv_hrs type i,
lv_sec type i,
lv_min type i.
lv_hrs = lv_seconds / 3600
if lv_hrs >= 1.
lv_min = (lv_hrs - trunc(lv_hrs))*60
here again handle seconds if min >60.
else.
lv_hrs = '00'.
lv_min = lv_hrs*60
It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
Regards,
RK -
How to create a variable for key figure (value will be entered by the user
I want to create one query, where the user has to entered a max value when the query is started, so that only the query rows will be listed, where the key figure value (integer) of the row is smaller than the max value given.
How can i define that variable which has to start at the begin of the query; and also the restricted key figure iin consideration of the KF variable.
Thanks for helping
Ar.Hi Arnaud,
Go to Conditions-> Right click -> New Condition -> Edit -> NEw -> Selct the KEy figures from the dropdown( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
Save & Execute, you will find it in your selction criteria.
Regards
Sunil -
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
MaggeHi,
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 -
Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update
Hello Experts,
I am getting the below warning while I am installing the business content for Purchasing Cube 0PUR_C04 update Rules
"Unit 0ORDER_CURR for key figure 0ORDER_VAL is not recognized in the update rules"
And the business content activation is terminated.
Can you please let me know how i could resolve.
Thanks
PadmaHi Amrit,
Nice to know Toons suggestions have helped you to resolve your issue.
There is one bug waiting to explode soon although.
Check this out after your last insert
INSERT INTO mth_equipment_shifts_d(equipment_fk_key,availability_date,shift_workday_fk_key,from_date,To_Date,line_num,availability_flag,entity_type,creation_date,last_update_date,creation_system_id,
last_update_system_id) (
SELECT b.entity_pk_key entity_pk_key,a.shift_date shift_date,a.shift_workday_pk_key shift_workday_fk_key,Trunc(a.shift_date) from_date,Trunc(a.shift_date) To_Date,1 line_num,'Y',
b.entity_type entity_type,SYSDATE,SYSDATE,-1,-99999
--INTO l_site_id,l_entity_pk_key,l_entity_name,l_entity_type,l_production_entity,
--l_shift_workday_pk_key,l1_shift_date,l_from_date,l_to_date
FROM mth_workday_shifts_d a ,
SELECT plant_fk_key site_id, entity_pk_key, entity_name, entity_type, production_entity production_entity
FROM mth.mth_equip_entities_mst
UNION ALL
SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, 'Site', production_site production_entity
FROM mth.mth_plants_d
UNION ALL
SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, resource_name entity_name, 'Resource', production_resource production_entity
FROM mth.mth_resources_d
UNION ALL
SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, 'Equipment', production_equipment production_entity
FROM mth.mth_equipments_d
)b
WHERE b.site_id = a.plant_fk_key
AND a.plant_fk_key=l_plant_fk_key
AND shift_date>=l_start_date
AND shift_date<=l_end_date
AND UPPER(a.shift_type)='BOTH'
AND a.FROM_DATE IS NULL
AND a .To_Date IS NULL
--AND a.line_num=NULL
AND a.shift_num IS NULL
There is no COMMIT
You may want to check that out.
Cheers!!!
Bhushan -
Currency translation for key figure in bex not working.
Hi friends,
i want to do currency translation for key figure(invoice value in local currency).
i have followed the steps as under:
1st Transferring Global Table Contents: Currencies from R/3 Systems
2nd than transfer exchange rate - from r/3 to bi
3 than In SPRO settings of BW there is option "consider translation ratios in translation"
4th than used transaction RSCUR for creating currency translation type: parameter(exchange rate:m, soure currency fom data records, target currency ISK, time ref: current date)
5th than in BEX query designer have sated this for key figure
but when i run query in RSRT, curreny amount not getting convert?
am i missing any step?
pl. guide.
thanks dushyant.Hi Dushyant,
Are these steps followed in Query designer??
In the Query designer, for that particular key figure property, under Conversion tab >> Currency Translation >> Conversion Type, select the currency translation type you created in RSCUR.
And in the target currency, select accordingly.
If you are going to use a variable, use the following link..
http://help.sap.com/saphelp_nw04/helpdata/en/08/81b98b95e911d4b2ca0050da4c74dc/content.htm
See also..
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
Hope this helps..!
-Pradnya
Edited by: Pradnya Rane on Apr 8, 2009 7:58 AM -
How to create a non-cumulative key figure & How to make a info cube as so
Hi Experts,
How to create a non-cumulative key figure & How to make an info cube as non-cumulative cube?
Can any one kindly provide me the steps we need to performe?
Thanks in Advance,
RajHi Azael,
In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
Hope this helps!
Regards
Sriram -
How to find MATCH count for # in a String
Hi all,
How to find MATCH count for # in a String.
Ex: 6170#0400-0002-00#API3PT#AL#AUST#DEVE#KG#100.00#100.00#100.00#0.00##10.20
Regards,
Balavardhan.K>
balavardhan k wrote:
> I have used below syntax to find count but it is not returning the value and SY-SUBRC = 4.
>
>
> Data : l_text type string.
>
> l_text = '6170#0400-0002-00#API3PT#AL#AUST#DEVE#KG#100.00#100.00#100.00#0.00##10.20'.
>
>
> FIND ALL OCCURRENCES OF '#' IN L_TEXT MATCH COUNT mcnt .
Then it's not a # but possible a horizontal tab-sign.
Do a find on cl_abap_char_utilities=>horizontal_tab instead.
Edited by: Maen Anachronos on Nov 23, 2010 2:48 PM -
Can we give the more than 2 decimals for key figure
Hi,
can we give the more than 2 decimals for key figure while entering the manuall planning.
Ex:There is keyfigure called 0DEBIT which is having values as 1000.00 USD, 137688.00 USD.which are displaying bydefault whenever we entered the values while planing or File.
what Customer is asking us 0DEBIT keyfigure values should be display 1000.0000 USD, 137688.0000 USD. ( added two more decimals for keyfigure value).
Can we maintained decimals more than two.........?
Thanks,
Ven
Edited by: vanarasi venkat on Apr 13, 2009 4:35 AMHi,
Though you can specify the no of decimal places for each keyfigure in the 2nd screen of layout builder but say if you have entered scaling factor as 1 and decimal places as 4 and user enters value as 15.2546, then in the cube it will be stored as 15.25 because physically the keyfigure can store values only upto two decimal places, so it will round up the figure to two decimal places. But, if you specify the scaling factor as 2 and decimal places as 4 than value 15.2546 will be stored in the cube as 1525.46.
If above explanation doesn't help you i finding out the solution for your requirement than you have to either change the number of decimal places in the keyfigure or tell user that technically it's not possible in BPS.
Regards,
Deepti -
Key figure description for key figure YKFRFCFGD does not exist in liveCache
Dear SAP Gurus,
We have upgraded our APO 3.10 to SCM 5.1,
Sopport Pack details:
SAP_BASIS 700 16
SAP_ABA 700 16
ST-PI 2005_1_700 6
PI_BASIS2006_1_700 6
SAP_BW 700 18
SAP_AP 700 13
LCAPPS 2006_700 4
EA-IPPE 400 13
SCEMSRV 510 7
SCM 510 6
SCMBPLUS 510 6
SCMEWM 510 6
SCMSNC 510 6
SCM_BASIS 510 9
BI_CONT 703 10
QIE 200 5
ST-A/PI 01K_SCM500 0
and Live cache 7.4.02.29 from to 7.7.03.23
We facing following issue during APO operation in live cache.
Error details:
"Characteristic combinations with liveCache anchor but without time series"
"Key figure description for key figure YKFRFCFGD does not exist in liveCache"
"There is an inconsisteny between the key figure descriptions in liveCache and in the database. The key figure description of key figure YKFRFCFGD exists in the database but not in liveCache."
Kindly help me out on this.Please execute Live cache consistecny check:
for Planning area , check all the option.
/SAPAPO/TS_LCM_CONS_CHECK
MPOS:
/SAPAPO/TS_PSTRU_CONS_CHECK
Manish -
How to choose the characteristics and key figures for a cube
Hi Gurus,
To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?To create a CO-PA cube, based on a DataSource, what chars and kfs should I select from std objects? I have the list of fields from the datasource, but how to interpret what infoobject/s are relevant for each io?
Hi,
For CO-PA since it is a generated DataSource, except for the common characteristics ( E.g. Company Code, Controlling Area ) where you get standard InfoObjects for all other Characteristics and Key Figures you end up creating custom or Z characteristics and key figures. This is unavoidable.
Assigning points is the only way of saying thanks in SDN
Thanks,
Shan. -
How to search for Key Figures in Query Designer 7.0?
Hi,
in BEx Query Designer 3.5 there was a search function to look after key figures or characteristics. Is there a search function in Query Designer 7.0?
Thanks.Hi,
QD 3.x version has "Find" option to identify the KF and Characteristics,but the same is not available with QD 7.x.
Reason could be:
With QD 7.x,just by typing the starting letters of KF or Characteristics by Keyboard itself,it will highlight you the entries.Hence there is no explicit Find option provided.But in case of QD 3.x,they gave it explicitely.
Rgds,
Murali -
Currency Translation for Key Figures with Value More Than One Currency
Hi...
I have query which display key figure GL Account Balance. The currency that used for this key figure is USD and IDR. How we want display value based on selection screen? So if we input currency USD, all value that use currency IDR translated to USD and all value that use currency USD not changed. Otherwise if we input IDR, all value that use currency USD translated to IDR and all value that use currency IDR not changed.
How we do this in query designer? Thank you.
I have use currency translation :
1. (Right Click Key Figures >> Properties >> Currency Conversion Key)
2. Target Currency Using Variables Entry
but seems the result is not correct. Can anyone help me ?
Regards,
SatriaHi all,
Thanks for your help, but still I have problem. I have create one currency conversion type, ZXXX. This currency conversion type is using exchange rate type = "M",source curr from Data Rec, sel of targ currency with translation,
and fixed time ref = "Current Date".
Problem:
1. With this setting, i create currency translation in BEx, but the result is not same, it's like the exchange rate not using the same setting with data in ECC (I compare data with transaction fs10N). Is my setting for exchange rate not correct?
2. When I try to display GL Account Balance --> Calculated Key Figure (Total Debet - Total Credit) for period 0, the translation not working. Example if the value is IDR 1234 then the value in USD still USD 1234. Why this happen?
Thank you
Regards,
Satria -
How to use a non cumulative key figure in a multi planning area
Hi
I'm new to bps, my problem is
I need to read the last stock quantity and value at plant and material level to do further calculations in a fox formula, so i made a planning area for the cube 0rt_c36 and another for my tc cube where the results should go, then i combine these areas in a multiplanning area.
problems arise when selecting the key figure in the ratios tab of the multi area, the ratios 0CPTOTSTOBU (last stock) and 0CPTOTSTOPV (last stock purchase value) are not available, only the inflow and outflow ratios are 0CPTOTREBU and 0CPTOTREPV.
I know when reporting, the actual value for stock is calculated by bex, namely, there is no data store at database level, so the question is:
How to obtain last stock for using in bps??
thank you for any help
regards
A. GarduñHi Azael,
In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
Hope this helps!
Regards
Sriram -
How to add Characteristic text to Key figures in Bex report?
The result set of a report is like this
Q1 Q2 Q3 Q4
Payment amount Payment 2000 4000 1200 1400
Recovery 1200 1400 100 200
Commission Payment 4000 5000 2000 2000
Recovery 2000 2000 100 100
Total Payment 1500 1200 5000 4000
Recovery 600 200 1000 200
The first Column Payment amount, Commission and Total are key figures.
Payment and recovery are text of a Characteristic Infoobject ( Flag type : X = Payment, # = Recovery ).
Now the requirement is not to have Characteristic Infobject as Column but to have them as text beside keyfigure.
LIike this
Q1 Q2 Q3 Q4
Payment amount (Payment) 2000 4000 1200 1400
Payment amount (Recovery) 1200 1400 100 200
Commission (Payment) 4000 5000 2000 2000
Commission (Recovery) 2000 2000 100 100
Total (Payment) 1500 1200 5000 4000
Total (Recovery) 600 200 1000 200
How to achieve this kind of result?Create Restricted Keyfigures to achieve this requirement.
create 2 RKF for Payment Amount Keyfigure
Create RKF1 with Payment Amount keyfigure and restrict flag type with "X" and then
Create RKF2 with Payment Amount keyfigure and restrict flag type with "#".
And use the RKF's in the query.
Similarly create two RKF's for each Keyfigure used in the query and restrict it with flag type.
--- Thanks...
Maybe you are looking for
-
Can i use pen drive to install boot camp on my mac?
Can i use usb pen drive to install boot camp on my mac?
-
Use of an application view for SAP R/3
Hello, I created an Application View of my SAP R/3 backend and integrated it into Weblogic Workshop. I fire a request to the BAPI through the App View, but nothing happens. I thought I get a response through the response event??? Maybe someone has an
-
Tab Order setting does not persist
Hi There, We have one specific form (a dynamic, flowed form, with repeating subforms and fragments), that we need to have automatic Tab Ordering. We have found that (for this form only) the Tab Order keeps resetting to Custom. We are working on the
-
Queue Issue, reentrant/multiple calls
I have a slight problem using queues. I've read the posts that are close to my problem but i haven't figured out how to solve my case. I have a "main window" where i want the queue to show constantly. Then i have 5 places that can add values to a sin
-
I created a view but i am unable to select the colums
i created a view using a procedure when i do select * from v_view; i am getting colums but i am when i am doing select cola,colb,colc from v_view; i am getting an error message Error starting at line 1 in command: select Tr_obj_no from V_GLFUNCT Erro