Hi guys,
I have a question on how can I get this kind of report. Is this possible in query designer or in the back-end?
Here is my final report format per MONTH:
But in order for me to tag a material as class A, B, or C, I need to do some computations as shown below.
First problem is, how can I sort the MATERIAL per GROUP based on their AMOUNT in DESCENDING ORDER? I'm thinking of creating a CONDITION of TOP N (N = 100,000 to be safe since we have thousands of materials) with reference to MATERIAL and GROUP. I did not try this yet but do you guys think this will work as shown above?
EDIT:
Tried using the CONDITION but it is not sorting the AMOUNT based on the MATERIAL NUMBER per GROUP. Maybe there is other way to achieve this?
EDIT:
The other problem is, how can I compute the NUMERATOR part? There is a CUMULATED option in the CALCULATIONS tab of a key figure in query designer but as far as I know it is only for DISPLAY PURPOSE. So even if I can see the CUMULATED value along the column, I still cannot compute the % part since the values shown is not the real value. In short, using it will not work. How do you guys think I can achieve the NUMERATOR part? I already have an idea about this but I need to do some back-end work. I'm trying my luck and hoping if this can be achieved in the query designer or if I can get simpler solution. :-)
Amount = this is my key figure (CAN BE DONE)
Numerator = this is the cumulative value of all materials per group starting from the highest to the lowest value of amount
Denominator = this is the total amount of all materials per group (CAN BE DONE).
I think I can do the denominator part using CONSTANT SELECTION.
% = Numerator / Denominator (CAN BE DONE)
Class = material will be tagged as class A if it is part of the TOP 80%; class B if it is part of 80% - 95%; and class C for other 5%. (CAN BE DONE)
I think I can do the CLASS tagging using CELL. But if you have other suggestions, please say so. I did not try it yet since my problem first is how to compute the NUMERATOR part. :-D
Thank you so much.
Loed
Hi,
Search for ABC Classification . Use T-Code RSDMWB and cread model and use in Analysis Process Designer(RSANWB)
https://blogs.sap.com/2005/08/10/customer-prioritization-using-abc-classification-model/
Regards,
Anand
Hi Anand,
I tried to use the ABC classification. However, it's not working for 2 or more reference characteristics? Is that correct? Or did I miss something?
In the blog that you have posted, it is only using CUSTOMER ID. In my case, if I only use MATERIAL, the ABC classification is working. However, I also need to consider the GROUP infoobject. How will I make it work? I already tried to have 2 CLASSIFIED OBJECT (material and group) but it is not working properly.
Any help?
Thank you.
Loed
Hi Anand,
Here are the steps I did.
First.
RSDMWB to create the model.
I saw these in the blog you have posted.
So I did assign the ff objects:
***I used Cumulated Percentage of Classified Object since I wanted to consider both of my classified objects..
A from 0 to 80 CLOSED
B from 80 to 95 OPEN ON LEFT
C from 95 to 100 OPEN ON LEFT
Second.
Created the APD.
QUERY -> ABC CLASS -> MASTERDATA
***I will be using the result of ABC class as the value of the CLASS infoobject, which is an attribute of MATERIAL NUMBER..
***My query contains GROUP and MATERIAL NUMBER in ROW and AMOUNT object in COLUMN..
Did I miss something?
Thank you.
Loed
Hi,
if you can convince the business to use 1 - 2 - 3 in stead of A - B - C ... then you just need a calculated KF to have your result
Hi Koen,
How will I do that 1 - 2 - 3? Is the NUMERATOR part possible?
Thank you.
Loed
Hi,
for example formula beneath
([kf percent] > 0) + ([kf percent] > 80) + (kf percent] > 95)
If percentage = 99 your category will be 3
(1+1+1)
If percentage = 83 your category will be 2
(1+1+0)
if percentage = 43 your category will be 1
(1+0+0)
Hi Koen,
Which KF percentage are your referring? Is it the % in my sample above? But I can't get % if I don't have the values of my NUMERATOR. Do you also have an idea how to get the NUMERATOR part?
Regards,
Loed
create formula Numerator= [amount] but set cumul flag on in calcutation tab
Hi Koen,
CUMULATIVE flag on the CALCULATIONS tab is for DISPLAY purpose only. I can't use it in the calculation of any formula. So in this case, I can't use it in my % formula. Did you make it work in any formula when ticking the CUMULATIVE part?
Thank you.
Loed
Yeah I reckoned you would say that :)
I have tried this and I think it looks good:
setup: Groep & Material Group (> show result rows)
Amount= first column of key figures
Nominator you can calculate it as in my previous post, but you are right it is useless in the whole calcul setup
Denominator is set as SUMCT 'Amount'
% is Amount %A Denominator
% Cumul is % with the cumul flag on
Can you try this?
Hi Koen,
I tried it. But how will I know which material will be part of CLASS A-B-C or 1-2-3?
Thanks.
Loed
Yeah, I just got the exceptions colouring on it, like you said you can't do anything via/with the cumul, would that be okay for you, it is a nice visualitzation though ;)
:-D
What's the setting of your EXCEPTION? I will give it a try. ;-)
I think I got your idea. So 3 colors for 0 to 80, 80 to 95, and 95 to 100? If yes, I found an error in the design. :-D
Your idea will work IF and ONLY IF I can sort the MATERIAL PER GROUP in DESCENDING order based on their AMOUNT. However, the query sorts the data in ALPHABETICAL ORDER or ASCENDING ORDER based on the layout of the characteristics, NOT BASED in the key figure. Do you have a way to do this SORTING?
of course,
create a condition on amount and set TOP % = 100
set the condition active and it will sort your report neatly