Designing column wise report
Hi,
I am newbie in Crystal report. I stuck into a design problem of crystal report. I would like to design a report as per the desired-report.png (attached).
My dataset is like report2.xml and relationship specified in relationship-diagram.png (attached)
The problem is crystal report make the Cartesian product of these two table which result in several rows. I am using .Net windows application to build this report.
Could anyone please suggest how to design this type of report ?
Existing thread for complete detail Multi Column report
Could anyone please help ?
So, if you are working with Bhushan on the issue here: Multi Column report
why create a new discussion on the same subject? As per the SCN Rules of Engagement, cross posting is not a recommended way to go...
I will lock this Discussion and add a question to the other one.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Similar Messages
-
How to display top 2 countries in 2 columns in Report Designer
Hello Gurus ,
I have a requirement where top 2 countries has to be displayed in two different columns in Report Designer.
is there are way to do that, i tried many differetn ways but was not successfull, apart from creating text variables and writing customer exit.
I appreciate your help
Thanks,
KumarHi,
I am not sure what version you are, from version 9.3 I think there is a "Top" function, just highlight the row, tick the option for "Top", set the number and the column
Failing that if you need to use rank could you not hide the column.
Cheers
John
http://john-goodwin.blogspot.com/ -
Colors in ALV report - column wise
Hi,
I have a ALV report. I want color in my report like Column Wise.
ex.
Document No........Date.........Amount......Document No......Date........Amount........Document Nov........Date.............Amount....
2008000123...10.07.2009....2000.00......2008000133....10.07.2009....2000.00.....2008000143.......10.07.2009.......2000.00
2008000124...10.07.2009....2000.00......2008000134....10.07.2009....2000.00.....2008000144.......10.07.2009.......2000.00
2008000125...10.07.2009....2000.00......2008000135....10.07.2009....2000.00.....2008000145.......10.07.2009.......2000.00
Please see, there is 3 times Document No, Date and Amount. I want that there should come diff. colors for diff. document numbers.
It is possible or not. If yes, then how...
Thanks...Hi,
go though this link....
i hope this will help u
TABLES:
SPFLI.
TYPE-POOLS:
SLIS.
PARAMETERS:
P_COL TYPE I ,
P_ROW TYPE I,
P_COLOR(4) TYPE C .
DATA:
T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
FS_FIELDCAT LIKE LINE OF T_FIELDCAT,
FS_LAYOUT TYPE SLIS_LAYOUT_ALV ,
W_COLOR(4) ,
W_ROW TYPE I,
W_FIELDNAME(20),
W_PROG TYPE SY-REPID.
DATA:
BEGIN OF T_SPFLI OCCURS 0,
COLOR(4),
CHECKBOX ,
CELL TYPE SLIS_T_SPECIALCOL_ALV,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
CITYFROM TYPE SPFLI-CITYFROM,
CITYTO TYPE SPFLI-CITYTO,
DISTANCE TYPE SPFLI-DISTANCE,
END OF T_SPFLI.
DATA:
FS_CELL LIKE LINE OF T_SPFLI-CELL.
SELECT *
FROM SPFLI
INTO CORRESPONDING FIELDS OF TABLE T_SPFLI.
W_COLOR = P_COLOR.
T_SPFLI-COLOR = P_COLOR.
IF P_COL IS INITIAL AND P_ROW GT 0.
MODIFY T_SPFLI INDEX P_ROW TRANSPORTING COLOR.
ENDIF.
FS_FIELDCAT-FIELDNAME = 'CARRID'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 1.
FS_FIELDCAT-KEY = 'X'.
FS_FIELDCAT-HOTSPOT = 'X'.
APPEND FS_FIELDCAT TO T_FIELDCAT.
CLEAR FS_FIELDCAT .
FS_FIELDCAT-FIELDNAME = 'CONNID'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 2.
FS_FIELDCAT-KEY = 'X'.
FS_FIELDCAT-HOTSPOT = 'X'.
APPEND FS_FIELDCAT TO T_FIELDCAT.
CLEAR FS_FIELDCAT .
FS_FIELDCAT-FIELDNAME = 'DISTANCE'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 3.
FS_FIELDCAT-KEY = ' '.
FS_FIELDCAT-EDIT = 'X'.
APPEND FS_FIELDCAT TO T_FIELDCAT.
CLEAR FS_FIELDCAT.
FS_FIELDCAT-FIELDNAME = 'CITYFROM'.
FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
FS_FIELDCAT-COL_POS = 4.
FS_FIELDCAT-KEY = ' '.
APPEND FS_FIELDCAT TO T_FIELDCAT.
LOOP AT T_FIELDCAT INTO FS_FIELDCAT.
IF FS_FIELDCAT-COL_POS EQ P_COL.
FS_FIELDCAT-EMPHASIZE = P_COLOR.
W_FIELDNAME = FS_FIELDCAT-FIELDNAME.
IF P_ROW IS INITIAL AND P_COL GT 0.
MODIFY T_FIELDCAT FROM FS_FIELDCAT TRANSPORTING EMPHASIZE.
ENDIF.
ENDIF.
ENDLOOP.
FS_CELL-FIELDNAME = W_FIELDNAME .
FS_CELL-COLOR-COL = 6.
FS_CELL-NOKEYCOL = 'X'.
APPEND FS_CELL TO T_SPFLI-CELL.
IF P_ROW IS NOT INITIAL AND P_COL IS NOT INITIAL.
MODIFY T_SPFLI INDEX P_ROW TRANSPORTING CELL.
ENDIF.
FS_LAYOUT-INFO_FIELDNAME = 'COLOR'.
FS_LAYOUT-BOX_FIELDNAME = 'CHECKBOX'.
FS_LAYOUT-COLTAB_FIELDNAME = 'CELL'.
FS_LAYOUT-F2CODE = '&ETA'.
W_PROG = SY-REPID.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_PROG
IS_LAYOUT = FS_LAYOUT
IT_FIELDCAT = T_FIELDCAT
TABLES
T_OUTTAB = T_SPFLI
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
NOTE
Column and Row are colored with a coded color u2018Cxyzu2019.
Where C: Color (coding must begin with C)
X: Color Number
Y: Bold
Z: Inverse.
Thanks
Ashu -
Need suggestion for designing a BEx report
Hi,
I need suggestions for designing a BEx report.
Iu2019ve a DSO with below structure:
1. Functional Location u2013 Key
2. Maintenance Plan u2013 Key
3. Maintenance Item u2013 Key
4. Call # - Key
5. Cycle u2013 Data Field
6. Planned Date u2013 Data Field
7. Completion Date u2013 Data Field
This DSO contains data like:
Functional -
Plan --- Item -
Call# --- Cycle -
Planned Dt -
Completion Dt
Location
11177 -
134 -
20 -
1 -
T1 -
02-Jan-2011 -
10-Jan-2011
11177 -
134 -
20 -
2 -
T2 -
15-Feb-2011 -
11177 -
134 -
20 -
3 -
T1 -
15-Mar-2011 -
11177 -
134 -
20 -
4 -
M1 -
30-Mar-2011 -
25000 -
170 -
145 -
1 -
T1 -
19-Jan-2011 -
19-Jan-2011
25000 -
134 -
145 -
2 -
T2 -
20-Feb-2011 -
25-Feb-2011
25000 -
134 -
145 -
3 -
T1 -
14-Mar-2011 -
Now Iu2019ve to create a report which will be executed at the end of every month and should display the list of Functional Locations whose Cycles were planned in that particular month, along with the last completed Cycle/Date.
Thus based upon above data, if I execute report at the end of (say) March then report must display:
Functional --- Curr. Cycle --- Planned Date --- Prev. completed Cycle --- Prev Completed Date
Location
11177 -
T1 -
15-Mar-2011 -
--- T1 -
-- 10-Jan-2011
11177 -
M1 -
30-Mar-2011 -
--- T1 -
-- 10-Jan-2011
25000 -
T1 -
14-Mar-2011 -
--- T2 -
-- 25-Feb-2011
Any idea how can I display Previous Completed Cycle and Completion Date (i.e. the last two columns)?
Regards,
Vikrant.hi vikrant,
You can a Cube at the reporting layer which gets data from DSO and which has these 2 extra characteristics completion date and previous cycle along with other chars and keyfigures from DSO.
You can populate these based on your logic in the field routine.
Hope it helps.
Regards
Dev -
How to make fields grow dynamically within the same page and in column wise
Hi,
Like the newspaper format: Where contents of news are shown columns wise.
We need to make the fields in a page grow column wise within that same page.
For example, in a page:
Column 1 Column 2
ASDASDASDGKASHDGKAA | ASDFASGFHSJFAJKSD
ASDFASDFASDJFASGJKDFHA | ASDFASDASDFASDFASD
AFSDFASDFASDHGFKASDFASD | ASDFASDFASDFASDFASDFA
ASDFSDGFJASHDGFJKASHDGKFAS |
ASDFAGASDHFKASHDGFHASDJKFHASJKHF |
ASDFHASGDKFASDJGHFASDFJKSDGFJKAGSDJ |
If the Column 1 is full with the fields in the page it should start filling the column 2 which is also in the same page.
If the Column 2 is also full then only it should move to the next page and should continue the same scenario.
Please suggest a better way to do this in the Adobe Output Designer.
Thanks and regards,
Gurunath V.
E-Mail: [email protected]
P.S: Please also mail to my e-mail ID.Hi Gurunath, if you steel need a solution on this problem, I think this could help:
1- place two fields on the form (JF01, JF02), one under each other.
2- Make two subform with them (Sline1, Sline2)
3- Make the field JF02 expand on same subform.
4- Modify the preamble in this way:
^define group:D_line1 \field$POSITION\reserve"0.333",in\subformSline1.\positionsave,"first_line"
^define group:JF01!OnOverflow \groupG_Sline2.\fieldJF02.
^define group:G_Sline2!OnBOF \positionrestore,"first_line"\positionright,"3.65",in
In the data file put all the text in JF01.
-The first line say:
When JF01 is called, save it's y position (\positionsave,"first_line")
-The second line means:
when the text overflow JF01 put it in JF02.
(cause JF02 overflow on itself all the remaining data is overflowed in JF02)
-The third line means:
if JF02 arrives at the end of the page (OnBOF), restore the saved position ( \positionrestore,"first_line") and move to the right of "3,65" inches (\positionright,"3.65",in).
In other words, when JF02 arrive at the and of the age, the next field JF02 is positioned at the same height of JF01 and is shifted on the right
Take care that in this way JF02 cannot anymore go o a new page.
Hope this help.
Andrea -
How 2 Change of column wise o/p to row wise output in ABAP?
Hi all,
I am getting the output in column wise as normally but how can I get the ouput in row wise.in ABAP.
its urgent. can any one help me how to change the output layout?
thanks in advance,
Sakthi.Cif it is normal report .then
go through the write statents . one of that is below
Loop at itab .
write : itab .
endloop.
if it is ALV then you have to define an internal table which are the fieldds you want palce in the Row .
so that
data c type i value '1'.
loop at itab .
fieldcatalog-fieldname = itab-field.
fieldcatalog-col_pos = c.
append fieldcatalog to fieldcatalog.
clear fieldcatalog
c = c + 1.
endloop.
so that the Col_pos will be increased and the Column data will be moved into Row .
reward points if it is usefull...
Girish -
Hi All,
I have designed a crystal report in the following manner
1.the report is grouping the data by column1 and then by column 2 i.e
column1
column2
2.the db object conatins nearly 70000 rows of data.
3.when the report is run it is not displaying data rather it runs for some time,later a run time error is thrown
Can some one suggest me a solution.
Regards
babuBabu,
1) Copy the SQL Query that Crystal Reports is generating from the Database Menu > Show SQL Query
Try running that query in a querying tool that matches your database connection method, odbc, oledb, etc... Are results returned from that tool?
2) Are there timeout limits on the database?
3) Can you limit the number of records returned to the report through record selection and does it run to completion? If so keep increasing the number of records returned until it fails
4) What is the error message you are receiving? -
Problem in designing the complex report for the client requirement
Post Author: venkateshvarakala
CA Forum: General
Hi,
I have problem in designing the report (Crystal Report 9.0) with multiple groups wih a sub report in each group with a a group header and footer with a
detail section in each report.
My requirement is as follows.1) Xxxx-sub reportwill have one header conetnt and footer content and detail ection in the middle grouped on one parameter2) Yyyyysub reportwill have one header conetnt and footer content and detail ection in the middle grouped on one parameter3) Zzzzzsub reportwill have one header conetnt and footer content and detail ection in the middle grouped on one parameter4)ABCdsub reportwill have one header one footer in group headers grouper on two prameters, My requirement demands customised detail section i.e.static conetent followed by detail section and a static conetnt(which should not repeat with child table records,should come only once with the a record and
s) and detail section.
example:
main table of the sub report 4 has records m1,m2,m3,m4... and child table has
m1c1m,m1c2,m1c3,m1c4,m2c1,m2c2,m2c3,m2c4,m3c1,m3c2,m3c3,m3c4,m4c1,m4c2,m4c3,m4c4...
The staic content should come only with m1,m2,m3,m4 not with m1c1,m1c2....like this I need in two places in the same report which may have 500 recors printed in single report.
all the above section should be suppressable with a condition including the top 3 reports.
I am able to get the top 3 reports as per the requirement but my forth sub report is getting displayed after each sub-group 1,2,3 which is not happening with
1,2,3. Only 4th set is repeating with 1,2,3.
THis report is attached with 6 datasets.
I linked the main report main table with 1,2,3 (main Table) report filling table but when I am trying to link the 4th table main table I am able to link but
I am not getting the result on the report.All the dataset has the one common column. sub report 1,2,3 are filled with common datasets with condition suppressing where as 4th report is filled with
different results .
1) My question is why the 4 the report is report is repeating with 1,2,3 why 1,2,3 are coming as expected.2) Is it possible to create
Please help me in designing the report as per the requiremnt and suggest me if I need any design modifictions.
Your suggestions and inputs are highy appreciated.Thanks for sparing time in going through my problem and I will be grateful if give solution and share if you have similar experiences.
Thanks
Venkatesh Varakala.If you create a multiprovider with the two ODS you wont have this problem.
Hope it helps.
Regards. -
How to design Group Left Report using RTF method ( XML Publisher )
Hi,
I need to design Group Left Report using basic RTF method. I am able to design basic simple report and Group Above Report but I am not getting Group Left Report. Can anyone help me out.
Thx N Regs,
Khan.Group Left report can be done using table consisting of 1 row and 2 columns. Group header goes to the column 1, group details go to the second column. Group details can be also designed using table, in this case you get table within table cell. "for-each.." statement for the upper level group to be placed in the left column before the group header data. "end for-each.." to be placed in the second column after the detail data.
-
Hi Experts,
Could pls help me to create spacer column(Empty Column) in Report.
Thanks&Regards,
Sankara Reddy.Dear Nsreddy,
For include Spacer Column (Empty Column) in Report, you have a different way,
One of then work with cell in BEx Query Designer within two structures, one in rows and the other in column.
The other hand in create a WoorkBook and embed two queries.
I hope those suggestion can help you son highline to answer your question,
Luis -
Hi,
How to display monthly expenditure related to a Cost Center. I tried the standard report but there it is showing accumulatived figure for 12 months. But I want to show monthly expenditure related to a Cost Center.
General selections:
Controlling Area - XXXX,
Fiscal Year - 2009,
Posting Period from -1 to - 12,
Cost Center - 1000
Then it should like below format.
Cost Element APRIL MAY JUNE JULY ............... TOTAL YEAR
Stationery 10 - 50 - 60
Salaries 150 125 - 225 500
Admin Exp. 25 10 - - 35
TOTAL 185 135 50 225 595
If we select only 2 months, then only 2 months expenditure should be display in the above format. I tried the in the report painter but if I am selecting the Period in the column then it is not coming in the General selections. If I am selecting Period under General selections then in the report it is shoing cumulative figure.
So can some one please through some light on this.
Thanks in advance.
Rams NHi Pawan,
I copied the Standard Report from 1VK. Problem is, My clinet wants to select give the Transaction date in the general selection and then he want to see the same in the month wise report. For ex.
Controlling are - XXXX
Period or Date - 01.04.2009 to 31.05.2009
Cost Center - 1000 and Execute.
Then Report should be display APRIL and MAY expenditure seperatly. This is the requirement.
My problem is, if I am selecting the period in the column then I am not able to specify the same in the general selection.
Thanks & Regards,
Rams N -
Oracle BAM – Designing Custom HTML Report
Hello,
I read an article about designing custom HTML reports http://www.oracle.com/technetwork/middleware/bam/technote-bam-customhtmlreport-131058.pdf . In my situation , I want to use circle instead of table to display data values. How can I do that ? Can I use JavaScript in the HTML String ?Update:
This is interesting. So when my coworker asked me how get the tooltip effect, I said it was super straight forward. All they had to do was something like:
<span title="My tooltip">My Column Header</span>
And it would work. After trying all kinds of HTML, I despaired of a simple fix.
Then we set the HardenXSS flag to false in the server instance config file, and I tried that exact code again. It still was not parsing the column header correctly. Then one of my other coworkers, tells me that he put a line break tag in, and it rendered the break.
o.O
So I tried the following:
<b title="My tooltip">My Column Header</b>
Which of course worked. Why is span being discriminated against? I have no idea.
So basically, for column header tooltips, disable XSS hardening, and use a bold tag. (why bold? it was the first thing that came to mind, and since the default font-weight of a table header is bold, it should be practically unnoticable).
The next question is, what exactly is the impact of disabling the HardenXSS. I'm not sure if it allows certain HTML elements only, or if it allows any HTML (or more to the point the script tags). I wonder if anyone has done a vulnerability assesment of having hardening turned off.
--james
Message was edited by:
jholder
Message was edited by:
jholder
Fixed html entities -
Display data as rowwise (horizontally ) instead of column wise ( verticaly)
I am displaying the data from milti select prompt of BI Answers in BIP report.
The data from the table is displayed as
Table structure :
Company. Unit name f_company_._unit_e
output :
unit1
unit2
unit3
I want output as unit1, unit2, unit3
Thanks
Aj
Edited by: user9031011 on May 11, 2010 7:35 AM
Edited by: user9031011 on May 11, 2010 7:46 AMHi Aj,
First of all, correct me my previous solution.
1. If you want to print the units in column wise i.e. if the for loop is in a table and you want each unit to be displayed in a separate columns side by side then in one of the table cell (i.e. in the for-each field of the cell) keep below code,
<?for-each@column:ROW?> <?EMPNO?> <?end for-each?>
2. If you want to print as a normal text (with out table) then use
<?for-each@inlines:ROW?> <?EMPNO?> <?end for-each?>
Second, to modify the form field,
Select the for-each form field, go to to Add-Ins -> Tools -> Field Browser , then double click the for-each and in the edit box change the text according to your requirement, then click 'Update' button.
You can also place that for-each condition out side(i mean with out form field) -
ECRF Designing Services - Case Report Form Design
What is CRF?
CRF is an acronym for Case Report Form. A printed, optical, or electronic document designed to record all of the protocol-required information to be reported to the Sponsor on each trial subject.
A CRF is used to record all relevant individual subject or study patient data. The Sponsor will use this data to perform statistical analysis; the resultant analyses are included in the medical report.The CRF is designed by the Study Sponsor, possibly in collaboration with the Investigator, and is based on the Study Protocol.
Our Case Report Form Designing:
Our team of knowledgeable Clinical Data Handlers holds the skills to execute to the best quality which would lay a strong foundation to the Clinical trial. Informatics Outsourcing's experience will aid in,
* Completion of projects with reduced errors
* Translation of compound protocols into standard pages
* Offering flexibility and cost effective CRF design
* Offering Case Report Form (CRF) Design either from the Case Report Form (CRF) Guide or converting paper CRF into Electronic Case Report Form Design ( ECRF)
More about our CRF designing services Please Find at Google - Informatics Outsourcingyou could add a field, set the source of the field to hire_date (assuming hire_date is a column in the data model), and put a format mask of whatever format you want. then set visible to No.
then instead of &<hire_date> you can instead type &<name of your new field>. -
Display data column wise in alv
my problem is i want to display data in column wise in alv grid display
for example it will display
Name1 Amount
GTS 12000
TSL 8970
MJB 4678
but i want like:
GTS TSL MJB
12000 8970 4678
Edited by: jadav_avani on Nov 15, 2010 8:33 AM
Moderator Message: Search for available information.
Edited by: kishan P on Nov 15, 2010 1:50 PMmy problem is i want to display data in column wise in alv grid display
for example it will display
Name1 Amount
GTS 12000
TSL 8970
MJB 4678
but i want like:
GTS TSL MJB
12000 8970 4678
Edited by: jadav_avani on Nov 15, 2010 8:33 AM
Moderator Message: Search for available information.
Edited by: kishan P on Nov 15, 2010 1:50 PM
Maybe you are looking for
-
HELP! How to import .mpg movies from a photocamera?
I'm trying to import mpg movies in Imovie, but it doesn't accept this format. I also tried to convert it to a mp4 file, but they are low res and I need high res (tv use). Please help me out! Thanks!!!
-
Access iphoto 08 file on shared storage device from multiple machines
I recently installed ilife 08 on both an imac and macbook. Previously (iphoto 06), both devices accessed the iphoto library on a shared storage device without any problems. After the upgrade, my imac is able to view thelibrary but my macbook (the sec
-
Hi I want to get input ZIPCODE from user and want to get distance from my Location > user enter zipcode (home town location ) > send data to google maps >return of distance from user's location to my location is that possible ?
-
It was at 6 to 10 seconds but I unchecked Enable Prtoected Mode at startup and unchecked Enable Enhanced Security. Looking for more idea's / suggestions to getting this to open instant / 1 second. Impacting several users. Win 7 Enterprise SP 1 Intel
-
I recently bought a new laptop. I had been capturing my video files on my old laptop to a external hard drive. Today i received a message that my scratch disk was full. Upon further research it turns out i had not made the external HD the default. I