How to Sort one key figure values in two column based on single char
hi gurus,
I would really appreciate if some one can help me out with my question.
I have to design a query based on a Multiprovider built on three ODS, Purchasing, Confirmations & Invoic ODS
Purchase order Value and Number data in PO ODS, and confirmations is in CONFODS, Invoice Values in INV ODS,
The design of the requirement is
Vendor --> PO --> Material PO Value --> Text PO Value --> Confirmation value --> Invoice value
There are Two POS 1. Material PO & 2. Text PO
I need to display all the Purchase orders for a vendor and in different columns i need to display the value of the Material PO and Text PO and their Confirmation Value and how much is the invoiced value for every PO.
Can anybody tell me what should i do in the Query Designer to display the necessary values.
Thank you
Hi william,
When i put in the PO KF in the column and also the Confirmation KF in other Column it either shows me # for both the entries or it shows me values in only one of the column
if PO is displayed the Confirmation is not displayed and if Confirmation is displayed PO values are shown as # i dont know what wrong i am doing.
if you have idea can you tell me what i should do when i want two different values from two ODS if there are no characteristics that are matching in either of the ODS should i go for Multi Provider and if so how should be my designing. i would really appreciate if you can tell me taking a scenerio.
Thanks
Similar Messages
-
Need to compare values in two columns of one table against values in two columns in another table
Hi, as the title reads, I'm looking for an approach that will allow me to compare values in two columns of one table against values in two columns in another table.
Say, for instance, here are my tables:
Table1:
Server,Login
ABCDEF,JOHN
ABCDEF,JANE
FEDCBA,SEAN
FEDCBA,SHAWN
Table2:
Server,Login
ABCDEF,JOHN
ABCDEF,JANE
FEDCBA,SHAWN
In comparing the two tables, I'd like my query to report the rows in table1 NOT found in table2. In this case, it'll be the 3rd row of table one:
Server,Login
FEDCBA,SEAN
Thanks.create table Table1([Server] varchar(50), Login varchar(50))
Insert into Table1 values ('ABCDEF','JOHN'),('ABCDEF','JANE'),('FEDCBA','SEAN'),('FEDCBA','SHAWN')
create table Table2([Server] varchar(50), Login varchar(50))
Insert into Table2 values ('ABCDEF','JOHN'),('ABCDEF','JANE'), ('FEDCBA','SHAWN')
select [Server] ,Login from Table1
Except
select [Server] ,Login from Table2
select [Server] ,Login from Table1 t1
where not exists(Select 1 from Table2 where t1.[Server] = t1.[Server] AND Login=t1.Login)
drop table Table1,Table2 -
Hi friends...
I have a scenerio , where I have loaded the data from 3 different data sources say A , B and C in to 2 different DSO s and in to 2 different Info Cubes. And I have built Multi Provider from this 2 Info cubes.
In the data source B , I have BELNR (Parked document number ).WRBTR (for Amount). In the report I have to show a field called Nr of Documents Parked and Value of Documents Parked. Same thing for Data Source C, for Blocked Documents. Now My question is there is no Key Figure in My Data Model to Count the Nr of Parked / Blocked Docs....So in the Reporting how can I show this ? Do I need to use Customer Exits ? Do I need to have CKF /RKF ? if so , from what Key figures ? or Can I get the Count from the Backend (Modelling itself by using a Keyfigure with any Code)?...not only this 2 , I have lot many custom things to do in my Model...If any one can get me some idea on this , remaining will be very easier for me as they all are similar things to do....
Please let me know if you have any questions or I need to elabarate it more to get an Idea on this....
Thanks in advanceTHANKS GUYS ,
I wrote the transformation routiene to count all the parked documents as
IMPORTING
request type rsrequest
datapackid type rsdatapid
SOURCE_FIELDS-/BIC/ZPARKBEF TYPE /BIC/OIZPARKBEF
EXPORTING
RESULT type tys_TG_1-RSTT_IPTDA
DATA TMP TYPE tys_TG_1-RSTT_IPTDA.
IF SOURCE_FIELDS-/BIC/ZPARKBEF = 'Y'.
TMP = TMP + 1.
ENDIF.
RESULT = TMP .
But when I see the Infocube data its showing only 0 for Parked Before value 'N' and 1 for Parked Before vale 'Y'. But I want to calculate total number of parked documents ..How can I do this?
Thanks -
How to calculate the key figure value on other key figure
Hi,
I have a material character and Packing Hour, No of Boxes key figures. My requirement is i need to calculate the % no of boxes are Packed <2 Hour , 2 to 3 Hour and above 4 hour based on the packing hour.
Sample data
Material Packing hour No of boxes
001 1 hr 5 box
002 2 hr 3 box
003 2hr 7 box
004 3hr 2 box
005 5hr 1 box
Here we are not considering meterial. We are considering Only Packing hour and no of box to calculate % no of Boxes within a time period. Please help me out...to calculate % no of boxes based on hour period
Thanks,
Rama Devihi
its like creating buckets for analysis...
u'll have to create formula in KF...
1.
if (Pack Hrs <= 2) * No Of Boxes
2.
If (Pack Hr >= 3 or Pck Hr <= 4) * No Of Boxes
like this u'll have to create bucket.. -
I am using BEx Query Designer to build a query and I have two key figures. I would like to sort the results by one the ascending values of one of my key figures. The output seems to sort it by the characteristics by default. Is there a way to have the query sorted by key figure values instead?
The default sort option by characteristic only. I don't think there is an option to sort by key figure.
However, you can use conditions to display Top N, Botton N, Top %, Bottom % records. For instance you want to show top 10 customer by Sales Amount key figure, crate a condition on sales amount key figure and select the operator TOP N and give the value 10. It will show top 10 customers by sales amount in descending order. I hope this helps.
Edited by: sapwings on Feb 24, 2011 4:53 PM -
BEx report -two different calculations for a result for one key figure how?
All,
Maybe someone could help me with the following, we have a requirement to setup for one key figure two calculations for result rows. One result (average) for one level, and on a higher level -grand total have a (sum), as for our business it makes sense to do it this way. We have setup average for this KF, we get correct results (see below values 7,5 & 6,5) however for the grand total (across multiple products) so for one level up we need to have a different calculation. How could we achieve this?
Here is an example:
location product inventory
AAAA 11111 5
AAAA 11111 5
AAAA 11111 10
AAAA 11111 10
AAAA Result 7,5 ---> average
AAAA 22222 5
AAAA 22222 6
AAAA 22222 7
AAAA 22222 8
AAAA Result 6,5 -
> average
AAAA Result (across products) 14 ---> here I want to have a sum of averagesThis could be achieve only IF you upload a hierarchy for product inventory with different levels, wherein each level show subtotals and finally grand total will be shown at the end of the results.
-
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 -
Code to sum up multiple record key figure values from one ODS to another OD
We've got two ODSs: ODS1 and ODS2 and ODS1 feeds data to ODS2 through update rule. In ODS1, multiple records could contain one same doc records and we would like to sum up a key figure value for these multip records with the same doc number in the update rule and populate a key figure (a sum-up value or total value) in ODS2 for this doc number. We wonder how the code would look like.
Welcome the valuable input!
ThanksHello Kevin,
In this case there is no need of a code. As in ODS2, contract number is a key and PO is not a part of key, you can have update type for the key figure as "Addition". Value for that particular key figure will be added for all the recordes with same contract number irrespective of PO number.
Hope it helps.
Regards,
Praveen -
How to find if one key figure is used in any report
Dear Experts ,
I have one key figure info object .I wanted to know how to find this key figure is used in which report .
As I know "where used list " but this will not help me .
Any suggestions please share .
PuruHi Puru,
Try following approach,
goto RSZELTTXT table and put your key figure name in the long text and click on execute. Get the list of all the ETULID's and go to table RSZCOMPDIR from this table for all the ETLUID's get all the list of COMPUID's and from COMPUID's you will be able to find all the reports from RSRREPDIR in which that key figure is getting used.
Regards,
Durgesh. -
How to identify which key figure will the numeric pointer for deltas?
Hi All,
I have created a numeric pointer for generic extraction ? but how to identify which key figure will the numeric pointer will use for deltas ?
how to identify the key figures which is suitable for numeric pointer. And the generic extraction is based upon the copa table?
Can anyone suggest me how the numeric pointer works and how to identify deltas are carried out at numeric pointer?
Thanks
PoojaPooja,
If you are using a generic extractor which is based on COPA table, then numeric pointer may not be the suggested delta extraction mechanism.
A time stamp would be the better one to use. In a time stamp, you can give a lower limit value of 300 seconds.. so that it will try to fetch the missed records.
Moreover, a delta would be based on a character, preferably a time char.
In your requirement, try to figure out the character on whichdeltas will be based.
Sasi -
Key Figure value in Cube showing with extra zeros
Loaded data into the cube. When I display the result
Key figure values are showing with 2 extra zeroes and Quantity value shaowing with 3 extra zeroes.
Original value
Price, Quantity, Sales Rev
2 1 2
3 2 6
When display value from cube
Price, Quantity, Sales Rev
2,00 1,000 2,00
3,00 2,000 6,00
Why zero is showing? How can I display the original value? In PSA, values are showing correctly.
Thanks,Hi,
These are the zeroes after the decimal places. this is the property of the key figure.
In your report you can change the display value. In the display properties of the Key figure under the number of decimal places make it as 0. This will remove the zeroes.
Hope it helps.
Regards,
Gaurav
Edited by: Gaurav Kothari on Oct 16, 2008 10:35 AM -
Dynamic Description for Key figure values
Hi Experts,
I got a requirement for change the description in query analyzer.
Month 200901 200902 200903
qty value Past PRICE qty value future price qty value future price
Material 10 50 5 7 70 10 7 77 11
My requirement is price heading we need to show current date to previous months header is Past price and current date to future months we need to Future price.
Already I tried with two restricted key figures with current montthless than one key figure and currentmonthgreater than one keyfigure. When I using in query both key figure displayed in both sides.
I want to show past price heading for Less than current month and future price heading for greater than current month.
Please let me know any possibilities to show the description dynamically.
Thanks,
ChandraHi,
Here I'm giving sample code this will give the Date and Date-1 and Date-2 based on your Input date ZCDAY.Create 'ZT_DAY' 'ZT_DAY1' and 'ZT_DAY2' Text varaibles and use the code.
In the same way change the code for your requirement.
TO get the Date (TEXT VAR) based on ZCDAY Input variable***********
WHEN 'ZT_DAY' .
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
IF sy-subrc = 0.
CLEAR: l_s_range.
l_s_range-low+0(2) = loc_var_range-low+6(2).
l_s_range-low+2(1) = '.'.
l_s_range-low+3(2) = loc_var_range-low+4(2).
l_s_range-low+5(1) ='.'.
l_s_range-low+6(4) = loc_var_range-low+0(4).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDLOOP.
TO get the Date-1(TEXT VAR) based on ZCDAY Input variable***********
WHEN 'ZT_DAY1' .
DATA: ZT_DT1 TYPE SY-DATUM,
ZT_DT2 TYPE SY-DATUM,
ZT_SDT TYPE SY-DATUM,
ZT_YR(4) TYPE N,
ZT_DY(2) TYPE N,
ZT_MT(2) TYPE N,
ZE_TT(2) TYPE N.
ZT_SDT = SY-DATUM.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
IF sy-subrc = 0.
CLEAR: l_s_range.
ZT_DY = loc_var_range-low+6(2).
ZT_MT = loc_var_range-low+4(2).
ZT_YR = loc_var_range-low+0(4).
CONCATENATE ZT_YR ZT_MT ZT_DY INTO ZT_DT1. "YYYYMMDD
CALL FUNCTION 'DATE_CREATE_2'
EXPORTING
i_datum_ein = ZT_DT1
I_KZ_INCL_AUS = '1'
I_KZ_INCL_EIN = '0'
I_KZ_ULT_AUS = 'X'
I_KZ_ULT_EIN = 'X'
I_STGMETH = '0'
I_SZBMETH = '0'
I_TAGE = 0
IMPORTING
E_DATUM_AUS = ZT_DT2.
l_s_range-low+0(2) = ZT_DT2+6(2).
l_s_range-low+2(1) = '.'.
l_s_range-low+3(2) = ZT_DT2+4(2).
l_s_range-low+5(1) ='.'.
l_s_range-low+6(4) = ZT_DT2+0(4).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDLOOP.
***TO get the Date-2 based on ZCDAY Input variable***********
WHEN 'ZT_DAY2' .
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
IF sy-subrc = 0.
CLEAR: l_s_range.
ZT_DY = loc_var_range-low+6(2).
ZT_MT = loc_var_range-low+4(2).
ZT_YR = loc_var_range-low+0(4).
CONCATENATE ZT_YR ZT_MT ZT_DY INTO ZT_DT1. "YYYYMMDD
CALL FUNCTION 'DATE_CREATE_2'
EXPORTING
i_datum_ein = ZT_DT1
I_KZ_INCL_AUS = '2'
I_KZ_INCL_EIN = '0'
I_KZ_ULT_AUS = 'X'
I_KZ_ULT_EIN = 'X'
I_STGMETH = '0'
I_SZBMETH = '0'
I_TAGE = 0
IMPORTING
E_DATUM_AUS = ZT_DT2.
l_s_range-low+0(2) = ZT_DT2+6(2).
l_s_range-low+2(1) = '.'.
l_s_range-low+3(2) = ZT_DT2+4(2).
l_s_range-low+5(1) ='.'.
l_s_range-low+6(4) = ZT_DT2+0(4).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDLOOP.
Thanks
Reddy -
How use non cumulative key figure and noncumulative key figure screenshot
how use non cumulative key figure and noncumulative key figure screenshot
Hello,
Please see this docs for Non-Cumulative and Snapshot scenario,
[How to Handle Inventory Management Scenarios in BW (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
[Non-Cumulative Values / Stock Handling|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8dfe6-fe1c-2a10-e8bd-c7acc921f366]
Thanks
Chandran -
Need help for report Variable to restrict the key figure value...
Hai gurus,
Now i have data in the cube as follows...
Reuisition HR INTW date LM INTW DATE TEL INTW DATE HR Count LM Count TEL Count
a1 01.01.2010 02.01.2010 01.04.2010 1 1 1
a2 02.02.2010 03.02.2010 02.02.2010 1 1 1
a3 03.03.2010 04.03.2010 03.03.2010 1 1 1
when i execute the report it shd ask the prompts with Date interval as in the below...
HR INTW date
LM INTW DATE
TEL INTW DATE
if i dont give any interval in the variable prompt it should display all the recors as follows
Reuisition HR Count LM Count TEL Count
a1 1 1 1
a2 1 1 1
a3 1 1 1
If i give LM INTW DATE interval as 01.01.2010 to 31.02.2010
then it should display all the other counts as in the output_1 , but for LM count for a3 it should show 0.
Reuisition HR Count LM Count TEL Count
a1 1 1 1
a2 1 1 1
a3 1 0 1
that means wherever i restrict the data depending on the variable that only that interval key figure value shd be in the report..
for this scenario, which variable i need to use... and how i need to restict the KFig value in the report...
Right now i am getting like this but it is restricting the records,,, where it should not restrict the records...in the report..
Please guide me for the same...
If any concerns about the scenario please let me know...
Regards,
VJhi chowdary ,
could you tell me the var. creation in detail and with which reference object i need to create ...
whether i need to take LM_DATE / 0DATE while creating variable...
and i kept this variables it in filter section, based on the LM_DATE Object.
i have tried both.. y'day when i take 0DATE it giving me some results...
But at the same time it is restricting the records..
i think it could be a problem with var.. properties?
need more inputs pls.
Regards,
VJ -
Sorting a Key Figure by default in a query
Hi,
I'm trying to set up a query with a key figure that is sorted in descending order by default everytime. I tried creating the following condition:
Key Figure - Sales Volume
Operator - Top %
Values - 100
This sorts the key figure in descending order to a point. When I add a characteristic to the report (for example, sold to), the sorting is no longer active. I would like this key figure to remain sorted in descending order regardless of the any manipulation to the report. But, I'd still like the user to have the ability to change the sorting if they want to sort by another key figure (ascending or descending)
I'm using the BI 7.0 Query Designer.
Thanks!!Check this:
Sort Key Figures and Maximum query result
Organising key figures in BEx Query Designer
ordering display in a KF
Hope it helps..
Maybe you are looking for
-
I have problem with running excel macro in report generation tool kit
I am trying to use Excel Run Macro.vi but run into a problem: Exception occured in Microsoft Excel, The macro 'personal.xls!Macro1' cannot be found.. Help Path is C:\Program Files\Microsoft Office\Office\1033\xlmain9.chm and context 0 in Excel Run Ma
-
Solution to iPod Touch Podcast Sync Problem
Like many of you, I had problems syncing my podcasts to my iPod Touch. I have the newest model with 2.1.1, and I had the same problem where (in iTunes) I would drag and drop the podcasts onto my iTouch and nothing would happen. They would not be list
-
BlackBerry App World does not think it has access to Internet when Tethered - only in WiFi
App World does not work when I am Tethered - it does recognize tethering as being connected to the Internet - it only works with WiFi. Is anyone else experiencing this?
-
Populating a field using rule generator adapter
Hi How a form field is populated using Rule Generator Adapter. And what we should do if we want the same field do not appear in the form, though it's value should be participate in task(create user update user etc). Thanks Kanchan
-
Bad documentation on HelloWorldSwing?
Hi, Scrupulously following the instructions on my first Swing program, I got a dozen errors and no Swing. Googling my exact error message, I found numerous others hitting the same obstacle. // Just to make sure I had the right compiler: C:\bin\java\h