Group by on Report
Hi ,
I used group by on a report to count on number of Calls from one particular region. I am getting Null rows on the report . Not sure about how to not show or not include the null rows in the reports. Is there any way we can choose some thing on reports attributes section ?
Hi,
I think the problem was not due to that. If I have 12 calls registered from a region. I get to group it and sum it as number of calls in the report. The first line prints number of calls as 12 and then i get 12 blank lines in the region. So after those 12 line i get to get the results for number of calls for next region . If the number of calls is 5 in the next region. I get region 8 - 5 calls and then 5 blank lines on the report.
Thank you
Similar Messages
-
How to store the value of sum of group in Crystal Report at the runtime!
Hello all,
I creates a Formula Field that hold the value of Sum of Group in Crystal Report. I would like to know how to store it in a variable and pass it to store procedure. Is it an option in Crystal report to do it. I knew that Crystal Report can cache the report for sharing. My detailed issue as following:
- Created a Formula Field named TOTAL AMOUNT that calculated the complex expression. This TOTAL AMOUNT is dynamic based on group and variables.
- I would like to store that value from TOTAL AMOUNT and pass it to the stored procedure parameter IN.
Any helps are much appreciated. Thanks.I doubt that this is possible since it would only calculate this value once the report has data. This sounds more like a report design question that should be asked over [here|SAP Crystal Reports;
-
Problem in Exporting a Report Group having a Report Painter Report.
I am having a problem in exporting a Report group having a Report Painter report.When I am trying to export the Report Group using transaction GR57 with all dependent objects,it is displaying:
group 0102CPDNUEA-CCROSI not transported.
Transport groups separately if necessary.
There are 6 such groups which are not transported.Can anybody help me in this regards.Can anybody help me in exporting these Groups.Specifically in Report painter reports what do these Groups signify and how can we see them.Please help me....hi,
I am able to export my report groups with dependent objects successfully.
I dont know why you are getting error message. Just keep break point at ***** and execute it for single group and find out why it is giving error.
IF SY-BATCH = 'X' OR NO_LIST = 'X'. "direct or batch
SET PF-STATUS 'LIST'.
*****PERFORM TRANSPORT_OBJS USING 'X'. "transport all jobs
IF FILE_EXP <> 'X'.
READ TABLE WT_E071 INDEX 1.
IF SY-SUBRC = 0.
LEAVE.
ENDIF.
ENDIF.
ELSE. "online
SET PF-STATUS 'MENU'.
PERFORM WRITE_TRANSP_OBJS.
ENDIF.
regards,
ram -
Customer group wise sales report
can somebody give me a clue as to how to take customer group wise sales report
thanksHI,
it will not get the sales report with customer group wise in standard SAP.
in standard you will get the data for the following selection :
a. Sales Office wise : MC-E
b. Sales Organization wise : MC+2
c. Material(Article) wise : MC+Q
tell me one thing, whether u need the report customer group wise or customer account group wise.
Regards,
somu. -
Hi, can anyone help me troubleshoot the following please:
Active Directory Security Group Discovery Agent reported warnings for 524 object(s). DDRs were generated for 0 object(s) that had warning(s) while reading non-critical properties. DDRs were not generated for 524 object(s) that had warnings while reading
critical properties.
Possible cause: OU name or Security Group name may contain at least a Unicode character which has conversion problem between Unicode and your system ANSI locale(e.g. Korean characters in English System Locale). The site server might not have access to
some properties of this object. The container specified might not have the properties available.
Solution: Please verify the Active Directory schema for properties that are not replicated or locked. Refer to the discovery logs for more information.
Does the error relate to 524 security groups? There are several invalid search paths listed in adsgdis.log, are these related?
Thanks,
DaleYou'll have to examine the log to determine exactly which objects its referring to. Although this is in the context of group discovery, group discovery still creates DDRs for computer objects within those groups so it could be either groups or computers.
This is not a search path issue though as it's clear that the discovery process found 524 different objects, but as stated, it could not properly read criticial properties of those objects and thus did not create DDRs for them.
As mentioned, reading the log in detail will list the objects individually and the reason it could not create a DDR for it.
Jason | http://blog.configmgrftw.com -
Group by Left Report for Multiple Queries
Afternoon folks,
I have been pretty much writing my queries in Oracle Reports by having one long query (which includes multiple sub-queries) and then displaying the results (Mainly Counts and MEDIAN values).
This has resulted in one very long query (difficult to manage and understand), not to mention slower performance. I would like to change that my making smaller queries and use data links to join the groups.
Here is my Report request in hand. I need to build a Report that will be grouped by a Reporting Year and stratified by Age Groups and then Report various Counts of Students that are
coming from various data sources (Tables). As of now, I have the Counts coming from at least 3 different data sources. So as you can imagine, my 3 sub queries have added to one
very long query. Anymore requirements to the Report and it can lead to a big mess.
Column '# of Students Enrolled' is coming from ENROLLMENT_TB table
Columns '# of Students who took Math' and 'Marks > 60' are coming from COURSE_MATH table.
Birth Date information is in the STUDENT_TB table (Since the Report needs to be stratified by Age Groups)
Report Layout
Reporting Year Age Group # of Students Enrolled # of Students who took Math Marks > 60 Median Score
========================================================================================================================
2010 1960 - 1969 999 999 999 999
1970 - 1979 999 999 999 999
1980 - 1989 999 999 999 999
1990+ 999 999 999 999
2011 1960 - 1969 999 999 999 999
1970 - 1979 999 999 999 999
1980 - 1989 999 999 999 999
1990+ 999 999 999 999
2012 1960 - 1969 999 999 999 999
1970 - 1979 999 999 999 999
1980 - 1989 999 999 999 999
1990+ 999 999 999 999 Currently, I have 3 sub-queries
Sub Query #1: # of Students Enrolled from ENROLLMENT_TB.
Sub Query #2: # of the Enrolled Students who took Math from COURSE_MATH_TB
Sub Query #3: # of the Enrolled Students who took Math from COURSE_MATH_TB and got Marks > 60. Median Score of this sampling.
My thought would be to have them into Groups and then create a Report a s a Group Left to achieve the results. Any help or suggestions would be more than welcome.
I have begun working on this Report but it is still taking quite long (Like 4 minutes) when the individual Queries (Q_COURSE_MATH and Q_COURSE_MATCH_60) are only taking 20 seconds each.
My guess is the Grouping based on the age group is resulting in slower performance but I could be wrong.
Also, the Query runs between pages and takes a long time to run. So, when I actually ran the Report, only the first page was formatted and then subsequent pages follow.
Looking at the data model, is there something conceptually wrong?
I have also not included the Query for Enrollment Counts to keep the Report simple.
Data Links:
Q_REPORTING_YEAR and Q_COURSE_MATH (Join condition: reporting_year and age_range_order_id)
Q_REPORTING_YEAR and Q_COURSE_MATH_60 (Join condition: reporting_year and age_range_order_id)
Data Layout:
Q_REPORTING_YEAR
select yrs.reporting_year,
age_range.age_range_label,
age_range.age_range_order_id
from
select to_char(Add_Months(To_Date ('01-JAN-2009', 'DD-MON-YYYY'), 12 * LEVEL), 'YYYY') reporting_year
from DUAL
CONNECT BY LEVEL < 4
) yrs,
select decode( rownum, 10, '1990+', to_char(1900+ (rownum-1)*10)||'-'|| to_char(1900+ (rownum)*10-1)) age_range_label,
to_char(1900+ (rownum - 1)*10) age_start,
to_char(decode(rownum, 10, to_char(sysdate, 'yyyy'), 1900+ (rownum)*10-1)) age_stop,
rownum age_range_order_id
from dual
connect by rownum < 11
) age_range
order by yrs.reporting_year, age_range.age_range_order_id
Q_COURSE_MATH
select reporting_year cm_reporting_year,
age_range_label cm_age_range_label,
age_range_order_id cm_age_range_order_id,
COUNT(distinct(student_id)) cm_student_count
from
select distinct cm.student_id student_id,
to_char(cm.course_date, 'YYYY') reporting_year,
age_range.age_range_label age_range_label,
age_range.age_range_order_id age_range_order_id
from course_math cm,
student_tb s,
select decode( rownum, 10, '1990+', to_char(1900+ (rownum-1)*10)||'-'|| to_char(1900+ (rownum)*10-1)) age_range_label,
to_char(1900+ (rownum - 1)*10) age_start,
to_char(decode(rownum, 10, to_char(sysdate, 'yyyy'), 1900+ (rownum)*10-1)) age_stop,
rownum age_range_order_id
from dual
connect by rownum < 11
) age_range
where cm.student_id = s.student_id
and exists ( select 'x' from sampling_student_vw w
where w.student_id = cm.student_id )
and to_char(s.birth_date, 'YYYY') between age_range.age_start and age_range.age_stop
) q
GROUP BY q.reporting_year, q.age_range_label, q.age_range_order_id
Q_COURSE_MATH_60
select reporting_year cm_reporting_year,
age_range_label cm_age_range_label,
age_range_order_id cm_age_range_order_id,
COUNT(distinct(student_id)) cm_student_count,
MEDIAN(marks) cm_median_60
from
select distinct cm.student_id student_id,
to_char(cm.course_date, 'YYYY') reporting_year,
cm.marks marks,
age_range.age_range_label age_range_label,
age_range.age_range_order_id age_range_order_id
from course_math cm,
student_tb s,
select decode( rownum, 10, '1990+', to_char(1900+ (rownum-1)*10)||'-'|| to_char(1900+ (rownum)*10-1)) age_range_label,
to_char(1900+ (rownum - 1)*10) age_start,
to_char(decode(rownum, 10, to_char(sysdate, 'yyyy'), 1900+ (rownum)*10-1)) age_stop,
rownum age_range_order_id
from dual
connect by rownum < 11
) age_range
where cm.student_id = s.student_id
and cm.marks >= 60
and exists ( select 'x' from sampling_student_vw w
where w.student_id = cm.student_id )
and to_char(s.birth_date, 'YYYY') between age_range.age_start and age_range.age_stop
) q
GROUP BY q.reporting_year, q.age_range_label, q.age_range_order_idHi Arsalan,
"Group by" is not a valid calculation option for calculated fields in the database object, nor is it for the calculation fields in your report.
I believe that what you are trying to achieve is to have a SUM of all the sales done, grouped by Brand. This is typically something you configure while building your report(in Active Studio).
If you for example would only want to show 2 out of 5 Brands in your report I suggest you use a filter(which is configured while building your report as well).
For all calculation and operation options in calculated fields you can go to the Help section of BAM and search for "Calculation Operators and Expressions".
I hope I helped you solve your problem.
Kind regards,
Martijn van der Kamp -
Finding the Request group of a report in APPS
How do I find which request group an oracle report or a PL/SQL procedure is attached in Oracle APPS?
Please try this
SELECT FRG.REQUEST_GROUP_NAME, FE.EXECUTION_FILE_NAME, FE.EXECUTABLE_NAME
FROM FND_REQUEST_GROUP_UNITS FRGU, FND_CONCURRENT_PROGRAMS FCP , FND_REQUEST_GROUPS FRG
, FND_EXECUTABLES FE
WHERE FRGU.REQUEST_UNIT_ID = FCP.CONCURRENT_PROGRAM_ID
AND FRGU.REQUEST_GROUP_ID = FRG.REQUEST_GROUP_ID
AND FE.EXECUTABLE_ID = FCP.EXECUTABLE_ID
AND FE.EXECUTION_FILE_NAME = <REPORT NAME> -
Finding the Request group of a report
How do I find which request group an oracle report or a PL/SQL procedure is attached?
Hi
Do use the below query to get the Request Group Name and Responsibility Name...
input must be Report name
SELECT
A.RESPONSIBILITY_KEY ResponsibilityName,
B.REQUEST_GROUP_CODE RequestGroupName
FROM FND_RESPONSIBILITY A,
FND_REQUEST_GROUPS B,
FND_REQUEST_GROUP_UNITS C,
FND_CONCURRENT_PROGRAMS_VL D
WHERE A.REQUEST_GROUP_ID = B.REQUEST_GROUP_ID
AND C.REQUEST_GROUP_ID = B.REQUEST_GROUP_ID
AND C.REQUEST_UNIT_ID = D.CONCURRENT_PROGRAM_ID
AND D.USER_CONCURRENT_PROGRAM_NAME LIKE <<Report name >>
Regards
Yram -
Change account group for GR55 report using GS02
Hi All,
How do I change the account group at GS03? My account group is PESB_1050 for Facilities Costs and I can display the G/L fot that group using GS03. I need to add new G/L for account group PESB_1050 (for report GR55). I've tried to change from GS02 but the account group is not exist because it not set ID. Kindly advice..
Thanks in advanceHi Eli,
I've tried to change at GS02, but I got this error mssg 'Set PESB_1050 does not exist'.
At GS03, I keyed in PESB_1050 at Set ID field and <enter> then I can see the value (GL acnt) inside the PESB_1050. Account group is PESB_1050. Any idea how to change (delete/add GL) the value for that account group?
Thanks in advance -
How to create Infoset&user group query--(query report)
Hi Guys,
how to create Infoset&user group query--(query report),
Pls send me the exact procedure with Example....
Regards:
Kumar .Ggoto SQ03 and create an User Group If U want to create Ur Own.
Goto SQ02 to create Ur Infoset by Giving Logical database name or Simple Database table
Then Choose What ever data U need to be included in The Qurey in field Groups.
Then Generate the Infoset
Now Assign the infoset to user group
Now goto SQ01 and Click on Other user group Button and choose Ur user Group.
Then in the USer group select Ur Infoset and then create Ur own Query and save this.
Now select the infoset query and goto More functions under Query menu and Generate report name.
Now Create a transaction code for the report name generated.
Now use the Tcode.
Hope U have got the basic idea of creating Queries.
~BiSu -
Custom grouping in crystal report
I have a requirement of creating a report off BEx query (BI 7.0).
I have database field which gives around 250 rows. Now with these 250 rows I need to create a custom grouping in crystal report having 2 groups and a detail.
Some info about database field: For ex: 'A', 'B' and 'C' are 3 sample rows of the database field. I want to arrange this in such a way that.
A will form Group 1 and B will form group 2 and it is sub group of Group 1. and C is part of Group 2.
A (group 1)
B (Group 2)
C.
But when I tried it it resulted in
A (group 1)
Others
Others (group1)
B(Group 2)
C.
In this method I was successful in creating report if there were only 2 levels. But when it comes to 3rd level i am facing the problem. Any solution from experts.Hi Raghavendra,
You can create the superset group i.e Group A in ur illustration by choosing Insert -> Group from the pull-down menus and specifying the field name in the panel.
Next, in order to create the subset group i.e Group B and Group C you need to create a formula in the Formula Workshop-Formula Editor like the below syntax:
If <db_field_name> = "<value B>"
OR <db_field_name> = "<value C>"
then "Group B"
This formula can be used as your second group by choosing Insert -> Group from the pull-down menus and specifying this formula name in the panel.
Thanks,
Amogh. -
Restrict user group authorization on reporting
Hi all;
I've problem restriction of user groups on monitoring reports.
By using RSSM transaction I gave only one user group to reach the reports but I still see the other groups on report.
Thanks.
Korel.Hi Chris,
There is no standard report available for this purpose. However all this information is stored in table UME_STRINGS.
You can write your own SQL queries to generate such reports. However please note that this table is not normalized, and it's a master UME table. You should use it strictly for READ ONLY purpose.
For a sample code you which i wrote some time back, you might refer:
http://forums.sdn.sap.com/thread.jspa?threadID=2088099&messageID=10859334#10859334
Thanks
Prashant -
SQL code to display Group Header in Reports
Please provide the sample sql module to use group headers in reports.
Even after reading the Extensibility guide, I am not able to write code with proper syntax.
I think all the below 3 parameters has to be used to show group header in Reports.
"oracle.sysman.eml.ip.render.elem.TableRender.columnGroupHeader"n
"oracle.sysman.eml.ip.render.elem.TableRender.columnGroupStart Col"n
"oracle.sysman.eml.ip.render.elem.TableRender.columnGroupEndCol"n.
I am not sure whether in a single call to mgmt_ip_param_value_record function in Reports, all 3 parameters has to be called.
Please help.You will have to create a new mgmt_ip_param_value_record for each one of those.
I assume it will look something like this:
l_param_values(1) := MGMT_IP_PARAM_VALUE_RECORD(
'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupHeader1',
'My New Group');
l_param_values(2) := MGMT_IP_PARAM_VALUE_RECORD(
'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupStartCol1',
'start column');
l_param_values(3) := MGMT_IP_PARAM_VALUE_RECORD(
'oracle.sysman.eml.ip.render.elem.TableRender.columnGroupEndCol1',
'end column');
Where "start column" and "end column" would be names of columns already in your table. -
How to group all the reports and execute like single application ?
Hi,
I am trying to develop some reports in Crystal Reports XIR2 , here i have Design and Preview options that is for every report i should see , how to group all the reports and execute like single application?
any option is there to run the report
i mean is it possible to have a home page from there have links to each report and when i click on the link corresponding report should be shown , if it is possible , How?
Regards,
kathyainiYou will want to look into Crystal Reports Server, it does exactly what you describe and more:
http://www.businessobjects.com/product/catalog/crystalreports_server/
Download a trial of CR Server here:
http://www.businessobjects.com/product/freetrials.asp -
Passing record group to the report...
Hi
I am using form 6i ..
I have got error while passing record group to the report
Here is the code... , I Wrote it when_button_pressed trigger
declare
pl_id paramlist;
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT ID_NULL(pl_id) then
destroy_parameter_list(pl_id);
end if;
pl_id:=create_parameter_list('tmpdata');
ADD_PARAMETER(pl_id,'NICE_QUERY',DATA_PARAMETER,'NICE_REC' );
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
RUN_PRODUCT(REPORTS,'E:\DEPT',SYNCHRONOUS,RUNTIME,FILESYSTEM,PL_ID);
The error is frm-47012 There is no record group with this name nice_rec......
ThanksThe error message (FRM-47012) is very specific. Do you have a Record Group defined in the Record Group Node of the Navigator called 'NICE_REC'?
Hope this helps.
Craig...
-- If my response or the response of another is helpful or answers your question, please mark the response accordingly. Thanks! -
Getting value of radio group in a report
i have multiple radio gropus(one group for each row) in my report. Each row can be identified either by my rownm or id. I am looping through my report rows once the page is submitted to get the values of each radio group but I am not able to make it work...here is my code. Any suggestions?
DECLARE
v_res number;
BEGIN
FOR i IN (SELECT q_id FROM svy_q)
LOOP
EXECUTE IMMEDIATE
'begin select APEX_APPLICATION.G_F ' ||i.q_id|| ' (1) into '||v_res||' from dual; end;';
INSERT INTO SVY_R (R_ID,
Q_ID,
RESPONSE)
VALUES (1,
i.q_id,
v_res);
END LOOP;
COMMIT;
END;Sorry, got my solution. There were unintended spaces in my SQL.
Maybe you are looking for
-
Setting a Layer Break for GEAR Pro Mastering Edition with EncoreDVD & IFOEdit
Setting Layer Breaks Manually for Encore/GEAR Projects Although we can write straight to a DVD+R DL disc directly out of EncoreDVD 2.0 and we can also create our Master DLT tapes directly out of EncoreDVD 2.0 also, there are times when these options
-
Is there a plug in to resize the canvas size in Illustrator CS6? Not the artboard, the canvas size
-
Xcelcius 2008 - Dual Axis Graph Mouse Over Display
I am working on a dual-axis graph where one value is a percentage and another is numeric. I am having an issue where I cannot format the hovers into multiple formats (i.e. one as numeric, the other as a percentage). In the graph properties I only see
-
Highlight Changed Cells - Too many cells (no named range)?
Hello, I implemented the Highlight Changed Cells Function as described in the How-To-Paper from Gerd Schoeffl (How To...Highlight Changed Cells in SAP BusinessObjects Analysis for Office). In my workbook I have two tabs with different crosstabs. I no
-
Time stamp and skip test report
Hello, all I am new to teststand and just beginning to do some work with teststand. My interest is to report every step with data begin with a time stamp. I create subtest in the Numeric type property to report timestamp in the form of YYYY-MM-DD-HH