Ranked Listing in BeX
Hello All ,
I have a specific requirement where I have to give a ranked listing based on the percentages . This is pretty straight forward .
To add to the complexity the ranked list should only display top n contributors contributing X percentage of the total .
To further detail the scenario
User wants a report for top contributors accounting for X % of the total business . where X is a variable to be entered by the user
Top n doesn't suite as n is unknown .
Please send pointers
Regards
Nikhil
Hi Nikhil,
You can achieve this by creating a condition in the query designer.
Choose the create condition icon in the query designer (shiftctrlc)
Select new condition
Give a description for the condition and check the active checkbox
Choose the characteristic or characteristic combination for which this condition is to be applied.In your case it will be the characteristic 'Contributor'.
In the panel below click New.
Choose the keyfigure which is business in your case.
Select the operator Top% from the dropdown
Select the Variables entry checkbox which enables to create a variable using the wizard.Have User entry/default value as the processing type.
Click Transfer. Save and execute the query.
Thus, you have the query which displays contributors contributing to top X% of the business where X is given by the user during query run time.
Regards,
Balaji
Similar Messages
-
Crystal Reports and values list of BEx variables
Hello.
I read this - http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsandBWquery+elements
And there are writed in wiki:
"List of values for SAP variables are created automatically by Crystal Reports only when you use SAP Toolbar to create the report:
The list of values for a variable in Crystal Reports will be static, but the list will be always dymanic in InfoView as long as you use BW Publisher (save reports to BW, publish to BOE)and you logon to BOE using SAP Authentication."
I have two link to BEx queries from my CR report - and my variables have not values. I think that I don't use "SAP" menu when created the report.
But... what I can doing now? Is way transform "simple" report into "SAP" report?
May be is way create "SAP" report and after it copy all content of old report into new "SAP" report including all objects, formats, formulas, connections?
May be is way load values list from BEx query with "simple" reports?
And another question - I see that in list I get texts and codes but showing only texts in run-time. Can I tune CR for show codes too?Post to Integration Kit SAP forum
-
How to include Distribution list in Bex Broadcaster
Hi experts,
Can anyone tell me how to include distribution list in bex broadcaster?
We have created a distribution list which we use in SBWP tcode for sending reports through mail.
I want to try broadcasting reports through Bex query designer and scheduling weekly. Although bex broadcaster
provides us the facility to enter the email ids of user but it is very tedious to type all the ids. Can i incorporate
the distribution list, which we have already created, in broadcaster?Just to close this topic.
I have reported a bug to Android project, because bottom-line they are responsible for the error - not SAP BEx.
Anyone interested can see the bug report here:
[http://code.google.com/p/android/issues/detail?id=24257]
If you decide to look at the bug report, please mark it with a Star to bring focus on this problem.
Best regards,
Jacob -
About Ranking List, who can help me?
Dear Guru;
when i use ME65 - Ranking lists in IDES, and i choose purchasing organization <1000> vendor between 1000 ad 2000,
after execute , it show error message as below.. and who can help me solve it?
Runtime errors ASSIGN_OFFSET_NOTALLOWED
Occurred on 2009/12/12 at 23:36:19
Invalid field assignment in the ASSIGN statement in the program "RM06LBEU ".
What happened?
Error in ABAP application program.
The current ABAP program "RM06LBEU " had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysisHi,
I am not sure which version of IDES you are using.
Try getting the latest version wherein this problem might have been fixed.
Hope this helps. -
Hi SAP-ABAP Experts .
(a.) What is ranked list ? How it is different from simple list disply or ALV display .
May some body give any small example of ranked list ?
(b.) Difference b/t Report Painter and Sql Query ?
Regards : Rajneeshhi ,
Ranked lists
You can use the APPEND statement to create ranked lists in standard tables. To do this, create an empty table, and then use the statement:
APPEND <wa> TO <itab> SORTED BY <f>.
The new line is not added to the end of the internal table <itab>. Instead, the table is sorted by field <f> in descending order. The work area <wa> must be compatible with the line type of the internal table. You cannot use the SORTED BY addition with sorted tables.
When you use this technique, the internal table may only contain as many entries as you specified in the INITIAL SIZE parameter of the table declaration. This is an exception to the general rule, where internal tables can be extended dynamically. If you add more lines than specified, the last line is discarded. This is useful for creating ranked lists of limited length (for example "Top Ten"). You can use the APPEND statement to generate ranked lists containing up to 100 entries. When dealing with larger lists, it is advisable to sort tables normally for performance reasons.
Examples
DATA: BEGIN OF WA,
COL1 TYPE C,
COL2 TYPE I,
END OF WA.
DATA ITAB LIKE TABLE OF WA.
DO 3 TIMES.
APPEND INITIAL LINE TO ITAB.
WA-COL1 = SY-INDEX. WA-COL2 = SY-INDEX ** 2.
APPEND WA TO ITAB.
ENDDO.
LOOP AT ITAB INTO WA.
WRITE: / WA-COL1, WA-COL2.
ENDLOOP.
The output is:
0
1 1
0
2 4
0
3 9
This example creates an internal table ITAB with two columns that is filled in the DO loop. Each time the processing passes through the loop, an initialized line is appended and then the table work area is filled with the loop index and the square root of the loop index and appended.
DATA: BEGIN OF LINE1,
COL1(3) TYPE C,
COL2(2) TYPE N,
COL3 TYPE I,
END OF LINE1,
TAB1 LIKE TABLE OF LINE1.
DATA: BEGIN OF LINE2,
FIELD1(1) TYPE C,
FIELD2 LIKE TAB1,
END OF LINE2,
TAB2 LIKE TABLE OF LINE2.
LINE1-COL1 = 'abc'. LINE1-COL2 = '12'. LINE1-COL3 = 3.
APPEND LINE1 TO TAB1.
LINE1-COL1 = 'def'. LINE1-COL2 = '34'. LINE1-COL3 = 5.
APPEND LINE1 TO TAB1.
LINE2-FIELD1 = 'A'. LINE2-FIELD2 = TAB1.
APPEND LINE2 TO TAB2.
REFRESH TAB1.
LINE1-COL1 = 'ghi'. LINE1-COL2 = '56'. LINE1-COL3 = 7.
APPEND LINE1 TO TAB1.
LINE1-COL1 = 'jkl'. LINE1-COL2 = '78'. LINE1-COL3 = 9.
APPEND LINE1 TO TAB1.
LINE2-FIELD1 = 'B'. LINE2-FIELD2 = TAB1.
APPEND LINE2 TO TAB2.
LOOP AT TAB2 INTO LINE2.
WRITE: / LINE2-FIELD1.
LOOP AT LINE2-FIELD2 INTO LINE1.
WRITE: / LINE1-COL1, LINE1-COL2, LINE1-COL3.
ENDLOOP.
ENDLOOP.
The output is:
A
abc 12 3
def 34 5
B
ghi 56 7
jkl 78 9
The example creates two internal tables TAB1 and TAB2. TAB2 has a deep structure because the second component of LINE2 has the data type of internal table TAB1. LINE1 is filled and appended to TAB1. Then, LINE2 is filled and appended to TAB2. After clearing TAB1 with the REFRESH statement, the same procedure is repeated.
DATA: BEGIN OF LINE,
COL1 TYPE C,
COL2 TYPE I,
END OF LINE.
DATA: ITAB LIKE TABLE OF LINE,
JTAB LIKE ITAB.
DO 3 TIMES.
LINE-COL1 = SY-INDEX. LINE-COL2 = SY-INDEX ** 2.
APPEND LINE TO ITAB.
LINE-COL1 = SY-INDEX. LINE-COL2 = SY-INDEX ** 3.
APPEND LINE TO JTAB.
ENDDO.
APPEND LINES OF JTAB FROM 2 TO 3 TO ITAB.
LOOP AT ITAB INTO LINE.
WRITE: / LINE-COL1, LINE-COL2.
ENDLOOP.
The output is:
1 1
2 4
3 9
2 8
3 27
This example creates two internal tables of the same type, ITAB and JTAB. In the DO loop, ITAB is filled with a list of square numbers, and JTAB with a list of cube numbers. Then, the last two lines of JTAB are appended to ITAB.
DATA: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE I,
COL3 TYPE I,
END OF LINE.
DATA ITAB LIKE TABLE OF LINE INITIAL SIZE 2.
LINE-COL1 = 1. LINE-COL2 = 2. LINE-COL3 = 3.
APPEND LINE TO ITAB SORTED BY COL2.
LINE-COL1 = 4. LINE-COL2 = 5. LINE-COL3 = 6.
APPEND LINE TO ITAB SORTED BY COL2.
LINE-COL1 = 7. LINE-COL2 = 8. LINE-COL3 = 9.
APPEND LINE TO ITAB SORTED BY COL2.
LOOP AT ITAB INTO LINE.
WRITE: / LINE-COL2.
ENDLOOP.
The output is:
8
5
The program inserts three lines into the internal table ITAB using the APPEND statement and the SORTED BY addition. The line with the smallest value for the field COL2 is deleted from the table, since the number of lines that can be appended is fixed through the INITIAL SIZE 2 addition in the DATA statement.
SQL query is used for the fetching data from different tables,while report painter is used to display the data in some format.
Regards,
Veeresh -
Dearall
i am working on bi7.0 how to calculate the ranks based on the resulting values.
i wont report like this.help me in resolving this issue.Let me know know if more info is needed.
thanjs
vndor profit sales plandata rankbased onsales
v1 p01 1000 700
v1 p02 5000 500
v1 p03 400 6000
6400 7200 2
v2 p04 2000 800
v2 p05 5000 500
7000 1300 1
v3 p06 400 6000
400 6000 3
thanksHi rama,
your requirement is bit dicey to achieve, as if you check the Keyfigure propertise for Calculation of Single Row as: we have the option of rank List available, but for calulate result row as:, we dont have the same option available.
You can give this solution a try:
1) create a formula keyfigure, as SUMCT(Sales or keyfigure for your formula calculation).
2) Then in Keyfigure properties, calculate single value as Rank List.
PS: with this approach you will get the rank value at the row level of sumct. partially solving your problem
Hope this helps...
Regards,
umesh -
AdHoc - default setting for reference Currency ranked lists
Hi
Our main currency is NOK. When creating AdHoc reports with statistics or ranked lists, the currency is USD. This can be changed by chaning settings for "stats/ranked lists" in adhoc.
I assume USD is the default somehow.
Can the default be changed?
If not, is there a user parameter that can be set to change this?
BR
KirstenChecked with SAP - and USD is the default in system. Can only be changed by user settings, so I am closing this issue.
-
Data read from Memory use - ranked list
Dear Experts,
I am trying to read data from memory use -ranked list.
In general we use function pool to read the data but in case if we should read the data from a class can we do it.
{O:267}-IF_PT_HRS_D_IF~IM_CONTRACT_TES[1]-TES
in the above class in TES table we have data , we have to read data from TES .
In memory use ranked list it is like below
{O:451*\CLASS=CL_PT_HRS_IF}
Object
Regards,
Kartheek.Philip
This one is really tricky. Display value just shows the rank but it would hold the actual value when you try to do calculations.
We have had similar problem but it was not related to ranking.
One Simple approach could be
Make them use Wrokbooks and do this calculation by using a SUM formula in Excel. Excel will consider whta is being displayed as a value for that cell
One far complicated solution is you can use the Olympic ranks and Do your sum in a Macro.
What I mean is if you get the last rank to be 10 then you can write your program to do the sum as
1098765432+1.
This approach could be taken only if they are OK with Olympic ranking.
Edited by: Abhijit N on Dec 10, 2008 10:19 PM -
Hi,
Under one of my Product Group ; i have 5 Key Figures. I need to Sort based on one of these Key Figures.
When i use a condition and apply the Top N Function to it; i get repeated values of the product name in all 5 rows which do not get suppressed using the query properties.
This gets taken care of if i select single caharcterisitcs option in the condition. But using this option; the Sort applies only for the first few rows under that particular column.
Could you tell me if ranked list can be used to conduct a sort in this case . If yes - how do i use it ?
Regards
ShwetaHi Tony,
When i apply Top % to my condition ; it does sort in Descending order ; However; If i were to change your example,
Rows : Material Group
Column :Quantity
Stock
The output that i get when the sort is working is as foloows:
Material Group Quantity
Material Group Stock
and the Output that i want would be :
Material Group Quantity
Stock.
The query Property of Suppress repeated values does not apply either.
Please tell me how can i take care of this.
Regards
Shweta -
Problem in Requirement profile ranked list updation in cj20n(PS)
Hi
I have created requirement profile in HR and qualifications for emoployees.Suitability ranges are also assigned But during work force planning in Cj20 n,It is not displaying Ranked list of employees on the basis of Requirement profile assigned.
ThanksHi,
You can find the ranking list in the Person Assignment tab of network activity.
Is the Rank List icon itself missing?
Rdgs
Sudhir Reddy -
APD - Ranked List (Olympic)
Hi Gurus, I want to calculate "Ranked List (Olympic)" with APD.
I have a query with:
Columns:
Structure:
Key Figure: 0QUANTITY
Key Figure: 0QUANTITY (Ranked List (Olympic))
Rows:
Characteristic KAREAR
I have only 1 structure in the columns.
I want to load this information to ODS, but I when execute query in the APD, it shows:
Columns:
Structure:
0QUANTITY
0QUANTITY (but without Ranked List (Olympic))
Rows:
KAREAR (Characteristic)
Help me!!!Hi,
I have a query, in the columns:
Structure:
- 0QUANTITY
- 0QUANTITY (Ranked List (Olympic))
Rows:
- KAREAR (Characteristic)
I want to load this information to ODS, but I when execute query in the APD, it shows:
Columns:
Structure:
- 0QUANTITY
- 0QUANTITY (but without Ranked List (Olympic))
Rows:
- KAREAR (Characteristic)
Help me!!! -
How to add a new tab(field ) in selecting ranked list(cj20n)
Hi,
I want to add a tab/field for position of employee while selecting ranked list.As i have to select employees on the basis of their skills and positions .I have used requirement profile but it is selecting on the basis of skils and not on the basis of position.
If I select Item tab it selects on the basis of Positions But i want to select on the combination of both skills and positions.
So i want to add field (position ) when it shows ranked list of employees.
ThanksHi
I'll try to explain better my need.
I've 10 CO-PA Key-Figures used to Split in the Cost of a material in different Cost Items.
Using the customizing I fill these key-figures using some rules.
The new requirement is use SOMETIME the same KF, by displaying different Costs overwritting the original values using the exit ZXYEXF05. But I need to know when the user wants consider the original value of KF, and when he wants overwrite these values (when I have to run teh exit). So I thought to create a new Selection-screen field (Char1), to permit to the user to pass to some report this user request. I thought to define a global variable, and add it to several reports when this feature is required.
Can you suggest a better solution ???
I could create some empty KF and fill them using teh exit, but I would prefer not expand the CO-PA structure.
Thanks for help.
Claudio -
Average variance in ranking list of vendor evaluation
Dear Gurus,
When we run the ranking list for vendor evaluation for a purchase org, in the last column there is a score for average variance for each of the vendor. COuld anyone tell me the significance of the same.
Also is there any better way to get the list in tabular form/ ALV grid format.
Thanks a ton
KamalI am interested in this also. Need to trigger Evaluation survey being sent out when GR is posted.
-
Aprpaisal report - ranking list - no data
I get no data when I run the appraisal report "Ranking List". my report has a few elements (criteria groups) with FAPP columns. does it matter that I have more than 1 FAPP column in my report? can this cause the report not to run properly?
Tiberiu
Edited by: Tiberiu Sasu on Jan 7, 2011 2:12 PMThere are known issues with Interactive Reports referencing :REQUEST value, probably due to some inner logic that also handles it simultaneously - potentially causing malfunction or deadlocks.
One workaround I've learned is to create a computation to assign :REQUEST to a temporary item (a PXX_REQUEST, for instance) and reference it in the query, instead of :REQUEST. This has worked fine for me in my experience.
Let me know if that helps - pls sign the thread as 'Useful' or 'Correct' if so, hence more people can benefit.
tks,
Kleber -
Ranking lists of Vendors(ME65)
Hi all,
iam useing Tc:ME65
i given po,vendor and weighting keys , the ranking list was displayed. in that how we can get the Av.variance ?
can any body help me.
Edited by: Dhanush on Nov 5, 2008 5:41 AMhi
Evaluation Lists - ME65
Description:
Based upon an overall vendor evaluation score, the Create Ranking List transaction generates a list of vendors in descending order. Additionally, the list displays individual main criteria and average values for the individual scores.
Preliminary Steps:
Valid vendors must exist in SAP with procurement activities against each one to be evaluated. SAP cannot evaluate, compare and rank vendors without prior procurement activity.
Detailed Steps:
1. In the iPanel, My SAP Roles, select XX: Functional All Transaction Role>ME65 - Evaluation Lists. If you are in another transaction screen, enter/nME65 in the command line and click Enter.
2. In the Ranking List of Vendors screen, enter DLA1 in Purchasing organization.
3. Enter the Vendor or range of Vendors, or click the match code button to create a list to select from.
4. If applicable, enter Vendor class.
5. If applicable, enter Scope of list.
Note: Scope of List determines the list content and structure. This value defaults to STANDARD and no change is required.
6. Enter Number of vendors to define the maximum number of vendors to be displayed.
Note: The default display value for the ranking list is 50.
6. Enter ABC indicator to display vendors classified according to DLA significance.
7. Enter the Industry sector.
8. Enter Country of supply to identify vendors from a particular country or countries.
9. Enter Weighting key to determine the weight of main ranking criteria.
10. Click Execute.
11. Review the list retrieved. To see more details, select a line item and click one of the buttons. You can select:
Evaluation
Vendor
Original list
hope it clears
regards
kunal
Maybe you are looking for
-
How to find out tcode for the zprogram.
Hi All, How to find out the Tcode of a Zprogram. I will appritiate your help. Thanks, Veni.
-
Im lost! PLEASE PLEASE PLEASE HELP!!!
-
Hi I am installing (via vmware) Oracle 9i (9.2.0.1.0) on debian (kernel 2.4.18) the install went fine except for a few hitches which i fixed after a quick google search. However after the install the install window closed during the setup of services
-
Think with me here gurus, If you were to create a video in FCP/Motion that you wanted to export for a Flash Website what would your settings be? Dimensions of the project your working in? To give you an example of a website who has implemented a vide
-
JavaFX hangs when called from Java
Hello I am developing a java application with a JavaFX gui, the communication from Java works with an java interface. The communication works,but after a few updates the javaFX code hangs and subsequently the Java code also hangs. Is this a common pr