How to find group wise total in crystal report?
Dear All,
I have to find the total of a Quantity value based on the Item code.How to achieve that in Crystal report.
Scenario:
Itemcode orderno Qty
A 1 100
A 2 20
A 3 30
B 1 10
B 2 20
Now i have to find the group total based on the Item code: Like A:150 and B:30 which should come like mentioned below
A Total 150
A 1 100
A 2 20
A 3 30
B Total 30
B 1 10
B 2 20
Can anybody pls tell me how to solve this?
Hi,,Raghavendra
I attach new image... Providing better understaning....
I want to try some steps which are defined above....
My basic Requirement is ITEMCODE WISE SUM OF QUANTITY.
Similar Messages
-
How To make group wise total in Bex report
Hi!!! Guru's
i m doing reporting on SD module, so client wann see the summerised report
on delivarys, senario is the one sale order having the multiple delivery, so the
i have to show the total result for all deliverys agianst the purticular sales order
in one row.i know we can do that at the excel level but hot to do it at the query
design level.highly appreciate u r help on this.
wil asign pts for sure,,,
thanks in adv
MohanHi!!! Trippel K
thanks for reply...
my Q's is how to make the group wise total means, i m going to genaret the
report on delivery delays on cube 0SD_C04 (Delivery Service), in that the the date
is comming from the 2LIS_12_VCITM delivery item data, the schedule line data
from 2LIS_12_VCSCL, when i m getting according to date wise it showing all data from item level n schedule line, the senario is i have to use date from item level n
all delivery from schedule line, so any inputs regarding this, plz let me, wil appecite
u inputs
thanks in adv
Mohan -
How to find item wise totals and header wise total using hierarchical ALV
Hi Friends,
I came across an issue of finding item wise total using hierarchical ALV. I am getting header wise total by setting the field catalog. May you help me in finding Item wise total.
Regards
Nikhil.hi,
you must use "w_fieldcat-do_sum = 'X'" and change your layout like :
w_sort-fieldname = 'FIELD'.
w_sort-tabname = 'TABNEME'.
w_sort-up = 'X'.
w_sort-subtot = 'X'.
APPEND w_sort TO i_sort.
CLEAR w_sort.
you can use detailed code from http://wiki.sdn.sap.com/wiki/display/Snippets/Subtotalsinhirarchial+report.
regards,
orhan
Edited by: goktasor on Jun 1, 2010 11:03 AM (need points : ) ) -
How to change Group Header Font in Crystal report Left Most Group Tree?
Hi Dears!
I am using crystal report 10 with C# 2005. I have an issue that i want to change the font of Group Header Text that is visible when we click on Toggle Group Tree button and a tree pane is visible towards the left side of report viewer.Means all the Group Tree Items that are visible when we click Toggle Group Tree button on Crystal report Viewer.
I have goggled a lot but unable to find any hint. Any idea or help would be highly appreciated .
Thanks in advance.look for information on drilldowngrouplevel function. this is available in versions 9 and higher.
i cant test it in mine to give you the syntax, but you would need to create another section and conditionally surpress the section on the drilldowngrouplevel function. hope this helps -
How to find deptno wise sum(sal) using subquery
hi all,
how to find deptno wise sum(sal) using subquery.
can u tell me any one please.
thanks,
regards.If we are talking standard emp and dept tables ala scott schema then (say); -
select ename, sal, total_dept_salary
from emp,
(select sum(sal) as Total_Dept_Salary,
deptno
from empt
group by
deptno) saldept
where emp.deptno = saldept.deptno
Is that what you were after?? (I would advise against correlated sub-queries on all but the most modest of tables)
There are nicer ways of doing the subquery depending on which version of the db you are on... -
How to find out the total, subtotal in alv report
hi dears,
how to find out the total, subtotal in alv report?
pls tell me logic ,
i will be waiting for eply
regards
eswarHi,
<b>ALV Grid List with sub-totals</b>
REPORT z_demo_alv_sort.
* This program lists orders (VBAK) with sort and sub-total for *
* 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG) *
TABLES : vbak.
TYPE-POOLS: slis. " ALV Global types
SELECT-OPTIONS :
s_vkorg FOR vbak-vkorg, " Sales organization
s_kunnr FOR vbak-kunnr, " Sold-to party
s_vbeln FOR vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " Document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
* Form f_read_data
FORM f_read_data.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg.
ENDFORM. " F_READ_DATA
* Form f_display_data
FORM f_display_data.
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = 'VBAK'.
ls_fieldcat-do_sum = &2.
ls_fieldcat-cfieldname = &3.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
ls_sort-subtot = &2.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_layout TYPE slis_layout_alv.
m_fieldcat 'VKORG' '' ''.
m_fieldcat 'KUNNR' '' ''.
m_fieldcat 'VBELN' '' ''.
m_fieldcat 'NETWR' 'X' 'WAERK'.
m_fieldcat 'WAERK' '' ''.
m_sort 'VKORG' 'X'. " Sort by vkorg and subtotal
m_sort 'KUNNR' 'X'. " Sort by kunnr and subtotal
m_sort 'VBELN' ''. " Sort by vbeln
ls_layout-cell_merge = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA
***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
Regards
Sudheer -
How to implement the Oracle Group by function in Crystal reports?
Hi all,
In SQL, for example we have a group function like:
select district,state, country, continent, sum(no.of people) from world.
Now, How to implement this group function in crystal reports? Please advise.
Thanks in advance..
Regards,
sriramHi Vinay,
Thanks for the prompt reply.
In one of our report, we are supposed to perform group by for 14 columns to get sum of 3 columns and there by displaying 17 columns in the report.
When we tried in crystal reports to implement this oracle group by functionality:
1. We created 14 groups from the Insert->Group option.
2. By performing this, we got 14 group sections vertically(one inside the other).
3. Then we created the sum(15th column),sum(16th column), sum(17th column) by Insert->Summary option.
4. We suppresed all the group sections except for the last group.
5. Then, dragged all the groups to the last group section along with the summary fields.
This is how, we tried to acheive the oracle group by function in Crystal reports.
Please advise, whether our approach is right. If not, please suggest the appropriate approach with a bit detailed explanation.
Thanks,
Sriram. -
HI all
HOW to find t_code wise user ?
and uses wise t_code ?Hi ..Sachin
If u need to find, what all the transcations will be Executed for the particluar user means.. Goto Tcode SUIM.
In that Expand the TRANSACTIONS TREE.
And execute the .. EXECUTABLE FOR USER.
And give the user name..
Now u may able to know what transactions will be executed for the particular user.
If any queries Means Reply me.
Hope it will helps.
Regards
Bala.. -
How to add/create additional page in Crystal Report Layout SAP B1
Hi,
I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
Pls help me to find the solution.
Br,
Thomas MarsetyoHi,
In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
Check this Link
http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
Regards,
Manish -
How to use drill down option in Crystal Report
Dear all,
I want to know how to use drill down option in Crystal report 2008. In below i have explained my screnario
For example
My scenario is. In crystal report I have Purchase order like PO101,PO102. Each purchase order have 5 line items. If i drill down each purchase order it should display line item in crystal report.
Regards,
Baskaran.hi,
Create a Group on 'Purchase order'.
Group Expert -> Select the Purchase Order and Click the arrow button such that it appears right side. Click ok.
GH1 is inserted.
Your detail section should include 'Line items' fields.
Right Click 'Detail' section on left hand side, Click 'Hide (Drill down Ok)'.
Now you will see only 'Purchase order's in Group Headers.
Now when you click on a particular order, you will see respective line items.
Regards,
Vamsee -
How to map ECC Infoset Query to Crystal Report
Hi All,
I am using 25 standard SAP crystal reports which have been mapped on the top of ECC system. Some of reports are working well but some are not working due to unable to find query. The name of the report is Controlling Dashboard report and it has CO_OM_CA_20_Q1 query which I was unable to map on ECC using Crystal Report. I do not knw how to map ECC table infoset to Crystal report.
Can anybody assist me to get solution?Hi Efstratios,
Hope you are well!
I am experiencing the same issue:
unable to get this infoset query CO_OM_CA_20_Q1 in Crystal Report which is made on the top of ECC
I followed the BI quick guide as well, I am on EPH 4 and I am able to see both the Query Infoset CO_OM_CA_20_Q1 and its related Infoset /SREP/CO_OM_CCA_20.
But unfortunately, it wouldn't let me update the connection approprietaly.
Is this something you can assist me with?
Thanks in advance
Yann -
How to increase the width of the Crystal Report
Hello All
How to increase the width of the Crystal report template in the CR designer in .NET 2005 editor ?
I need to design a report which has to accomodate more number of columns.So achieve that i need to redesign the report having more width.
CrystalReports version 10.2.3600.0
Thanks in advance
SrivatsaHI Srivatsa,
You can make a wider report by creating virtual pages. Virtual pages are the extra pages to the right of the main page that get created to accommodate cross-tabs that are wider than a single page. By inserting a cross-tab in a report then suppressing it, you can create a report that is multiple pages wide.
Insert and Suppress a Cross-Tab
1. On the 'Insert' menu, click 'Cross-Tab'.
2. In the Cross-Tab Expert, click any field and move it into the 'Columns' box, and click any field and move it into the 'Summarized Fields' box. Do not move any fields into the 'Rows' box.
3. Click the 'Customize Style' tab and select the following check boxes:
" Suppress Empty Rows
" Suppress Empty Columns
" Suppress Row Grand Totals
" Suppress Column Grand Totals
4. Click the 'OK' button and then insert the cross-tab into the Report Header section.
5. On the 'Report' menu, click 'Format Sections'. Click 'Report Header' and select the 'Underlay Following Sections' check box.
When you run the report you will not see the cross-tab, but you will be able to scroll to the right and see multiple virtual pages.
====================
NOTES:
" As there are no rows to the Cross-Tab, it does not carry on to Page 2 and the virtual pages do not appear past the first page.
" To increase or decrease the number of virtual pages do one of the following:
- Limit the number of records for the field in the 'Column' box of the 'Cross-Tab Expert' using the 'Select Expert'.
- Change the width of the 'Column' field in the Cross-Tab by moving the edges of the field.
====================
How to Insert Fields on Virtual Pages
You cannot drag-and-drop a field onto a virtual page, you can only do so on the main page. To get a field to appear on a virtual page:
1. Insert the field on the main page.
2. Click the 'Preview' tab.
3. Drag the right edge of the field to the right, onto the virtual page.
4. Drag the left edge of the field to the right, onto the virtual page.
Hope this helps!!
Regards,
Shweta -
How to print page no/total pges in report programing?
how to print page no/total pges in report programing?
Hi
This is an example:
In TOP-OF-PAGE you can write:
WRITE: SY-PAGNO, '/', '-----'.
When the program has finished to print all data, run a routine like this:
Declare a variable
DATA: L_PAGE_COUNT(5) TYPE C,
V_LINE TYPE I. "The line where page number is written
* In my example I suppose the page number is always
* written in the first row of the page.
V_LINE = 1.
* Copy this code to the end of program
* Page count will be printed on each page here
WRITE sy-pagno TO l_page_count LEFT-JUSTIFIED.
DO sy-pagno TIMES.
READ LINE V_LINE OF PAGE sy-index.
REPLACE '-----' WITH l_page_count INTO sy-lisel.
MODIFY CURRENT LINE.
ADD 1 TO sy-index.
ENDDO.
Max -
How to use a connection ODBC in crystal reports viewer?
Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer?Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer? -
How to suppress a blank section in crystal report
how to suppress a blank section in crystal report. although i have set the property
"suppress blank section "=true ,still i m unable to suppress my section
please help me to cope up this issue.
thanks in advanceOne recommendation I make, when troubleshooting suppression issues, is to put a visible border of the section, area or object to be suppressed, and borders for all objects contained in the section or area. This will help isolate what's suppressed, and whether the section is truly blank or has content that's blank.
Furthermore, I recommend indicating which SDK and what version you're using when posting.
Sincerely,
Ted Ueda
Maybe you are looking for
-
Can't connect my external hard drive to my Mac Book Pro. Any thoughts?
I have a 2.0 TB WD Mybookessential as an external hard drive to my Mac Book Pro and I'm getting a "The disk you inserted was not readable by this computer" message every time I try to remount it. Any thoughts?
-
Formula in Excel Sheet shows #VALUE!.
Hi, I have 11gr2 Forms/Reports with Windows Server 2008 64-bit. I have Excel sheet imported from Oracle Reports with destype=enhancedspreadsheet. Problem is in my Excel sheet, that when I add formula to multiply two columns, it shows #VALUE! error, w
-
Bluetooth paired and connected, but not showing up in device list
I have a iphone 4s and a plantronics discovery 975. It was working fine, I don't recall doing any updates... But now, it's showing paired and connected, but when I make a call, it's not connecting and doesn't sho up in the the device options - only
-
Analyzer 6.1 Combo-box list sort
Does anyone know of an easy way to sort lists in combo-boxes (or check-boxes, etc...)? Thank you for your help.
-
DCs becomes broken. How to repair it?
Hello SDN! I strongly need your help. Well, it was necessary to change track parameters (just change DTR and CBS server from name to IP). After that I faced with disappearing of my dev workspace. In SDN i've found that I have to reimport SCs for deve