how to get valid profit center values - abap

a small report program requires me to enter profit center group values.How can i view the valid values of profit center groups .i picked up a few values from cepc tables that are not working.

Select SETNAME from the table SETLEAF with a SETCLASS value of '0106'.
To narrow down the results you can specify a Controlling Area in the SUBCLASS field or a Profit Center in the VALFROM field.
Source: http://forums.sdn.sap.com/message.jspa?messageID=8647500

You can use transaction KCH3 to display profit centre groups if you're just looking for some valid values.

Related

Merge row cells after Summing up multiple rows by grouping in ssrs

I have a matrix report in SSRS which is grouped by Product Class, Tax Type and Depot Name as shown in the following image.
What I am trying to achieve is to get the sum of both the Order Volume and Marker Volume based on the tax type grouping and populate them respectively in the order volume total and marker volume total fields.
So I put the following queries for them respectively:
=Sum(Fields!OrderVolume.Value, "TaxType")
=Sum(Fields!MarkerVolume.Value, "TaxType")
I then got the total as expected but it's splitting. How can I merge both of them (order volume total and marker volume total) based on the Tax Type?
Kindly help,
Best Regards

Highlighting differences in child values for parent values in OBIEE or SQL

I can't seem to figure out how to select instances where values in the green circle would be highlighted/selected for every parent/orange-circle value. What would this sort of operation be called?
Trying to translate that into an understandable requirement: You want to select (means filter for) "Load IDs" which have more than 1 "Purchase Order Numbers"?
That's what it reads to me from your data grid because the PO Number is the one that changes the query grain and causes two rows. Everything else is the same.
If that's the case then create a measure which counts the PO Numbers and filter on that.

SSRS Divide Sums from Different Scopes Returns 0

I have a grouped dataset. From the parent group down, the group names are:
Company > Plant > Details. In the end, I want to be able to take the sales of each plant and see what percentage it is of the entire company's sales. Let's say the company has a total sales of $500 and the sales of "Plant A" were $100 and "Plant B" sales were $400. I would image that I would need an expression at the Plant grouping level that was like:
=Sum(Sales)/Sum(Sales, "Company")
And I would get .2 for Plant A and .8 for Plant B. But if I do that, I get 0. I am at a complete loss. Any help with this would be greatly appreciated.
Additional information:
My exact setup is a little more complex than the example I gave below, but I believe the general idea still holds the same. I have a total of 6 groups:
The circled group is the equivalent of the "Plant" Group in my example. Here is the row group in my tablix for the GroupBy group (the one with the arrow pointing to it).
The expression that is circled in the picture above is the expression in question to get my percentage (right now really just a decimal, not formatted to be a percentage yet).
=sum(Fields!ActualCurrent.Value)/sum(Fields!ActualCurrent.Value, "Company")
Fields!ActualCurrent.Value is the equivalent of "Sales" in my example above. The expression above returns 0 for all groups. But yet, if I change it to
=sum(Fields!ActualCurrent.Value)+sum(Fields!ActualCurrent.Value, "Company")
It will produce the equivalent of $600 for "Plant A" and $900 for "Plant B."
I can't seem to find how it reacts as expected when adding the two sums, but produces 0 when I divide them.
It would be useful to see where are you using that expression to determine what is wrong here, but I think you can use this guide to get your desired result.
Create a tablix like this:
Note I've added Company and Plant fields as groups. Also I've deleted details group. Right click details and select Delete group and set Delete group only option.
Now in the percentage column use the following expression:
=FORMAT(
SUM(Fields!Sales.Value,"Plant")/SUM(Fields!Sales.Value,"Company")
,"P2"
)
The sum of every plan divided by the sum of the whole company group. It is not necessary but I am using FORMAT function to format the float value returned by the expression to percentage format using two decimal places.
It should show something like this:
UPDATE: Try scoping the sum to your specific group: GroupBy
=sum(Fields!ActualCurrent.Value, "GroupBy")/sum(Fields!ActualCurrent.Value, "Company")
UPDATE 2: Format the cell to show decimal digits.
Use thiss expression:
=FORMAT(
sum(Fields!ActualCurrent.Value, "GroupBy")/sum(Fields!ActualCurrent.Value, "Company"),
"F2"
)
It will format the value returned by the expression as a float with two decimal digits.
If you want to show the value in percentage format replace F2 in the expression for P2 (Percentage format with two decimal digits.)
Let me know if this helps.

crystal reports top 1 for group

Hi I am trying to return the record with the highest date for each inidivdual in a database. The fields I am working with are {Entity.TaxID} which is the unique identifer for each individual. Each individual has multiple records and I am trying to show only the record with the largest {Tran.IssueDate}.
Does anyone know how to return only the largest {Tran.IssueDate} for a group of {Entity.TaxID}? Thanks
Create a group with {Entity.TaxID}.
Place the {Tran.IssueDate} in detail.
In group footer take Maximum {Tran.IssueDate}
To take maximum.
Right click on `{Tran.IssueDate}` and go to `Insert summary`... there take maximum.

How to aggregate details in Pentaho Report Designer (PRD) 3.9?

Very new to Pentaho Reporting,
I have a query grabbing columns categories, quantity, and gross. It returns about 200 rows.
Without changing the query, is there a way for the report to display the aggregates for each category (I have category as a group)? For example, All you can eat should only display a sum of the Amount and GrossValue columns.
Same for dessert (notice there are two group headers - why?)
You just need to get used to with pentaho report designer.
Refer information given at the end of this page simple report.
You can add one parameter in group footer and set its properties.
They provides properties like aggregation-type, which can be set as Sum or count and then it will show at the end of each group with sum or count of the rows as per the type you specified.