How to display total in a block without total showing up in relevant detail block
Hi there,
I create a worksheet, including two block, one of which have detail information with multiple characts and one key figure, another block only have sumerization information takes one cell, which is summarized key figure for that detail information block.
I implement this summary cell with formula 'GETDATA', but it is only effective after I show total for detail block.
such as for detail block:
employee_no, wage type, earning_amount.
overall result total for earning_amount
for summary block:
summary of earning_amount for all employees in the detail block.
please tell me how to display summary block without pulling in overall result for detail block.
Many Thanks,
Hi bo zhang,
This can be a work around
As Michael Tocik suggested
goto components tab, right click on data source and select copy
do not insert cross tab
then use the formula for DS_2 like
=SAPGetData("DS_2","earning_amount","employee_no=TOTAL")
this should work.
and if you do any drill down for DS_1, the above total will not chnage because that is dependent on DS_2
Hope it helps
Best Regards,
Subhash
Similar Messages
-
How to display total in ALV Header
How to display total in ALV Header?
Hi Venkey,
As far as your issue is concerned I would like to quote my perception.
Create a header internal table with title and number of records.
At the later part of your program you should have found the total number of records ,now assign it to the header internal table and print it.
For further clarification you can go check this link:
http://wiki.sdn.sap.com/wiki/display/ABAP/AddHeadertoALVreport
Thanks
P.Srikanth -
How to display total "items" and "amount " in header.jsp in CRM ISA B2B
Hi,
I am modifying header.jsp in standard CRM ISA B2B application. Here we have summary of total number of items and total amount but it is coming in to button and for that below code is there in header.jsp and it display it as button text.
if (!ui.homActivated) { %>
!!" alt="" border="0" height="16" width="20">
</td>
<td class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.minibasket.default"/>" >
<form name="basketForm" action="javascript:show_basket();">
<input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.minibasket.default"/>"/>
</form>
</td>
<% } else { %>
<!-- HOM scenario - minibasket displays collective order -->
<td class="vertical-align-middle" align="right">
!!" alt="" border="0" height="16" width="20">
</td>
<td class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.collorder.default"/>">
<form name="basketForm" action="javascript:show_collective_order();">
<input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.collorder.default"/>"/>
</form>
</td>
<% } %>
Now I want to display total number of items and total amount separately in two different <td> element.
How I can get total number of items and total amount in header.jsp I tried below code but did not get any success.
Insert below line in header.jsp with respective page import statement for class or let me know which class I have to import.
<%
HeaderSalesDocument hdr =
(HeaderSalesDocument) request.getAttribute(MaintainBasketBaseAction.RK_HEADER);
ItemList items =
(ItemList) request.getAttribute(MaintainBasketBaseAction.RK_ITEMS);
%>
And then I use
<td><%= hdr.getNetValue() %></td>
<td><%= items.size() %></td>
But it is not printing any thing and header page not display at all.
Pl. tell me how to get total amount and number of items in header area. Which class or object I have to use here.
I really appreciated any help from any one.
Thanks and regards.
Ashish Patel.Hi, I tried another logic. I took value from Standard button, in which B2B application display total items and amount and I hide this field, to another text element.
Now I Am breaking that value in words and stored them in array and then trying to display that array with particular number which contains total item and amount through Java Script on Focus.
But problem here is, It is not getting updated automatically I have to click on new text files to trigger Onfocus event. How I can achieve effect like as soon as Standard button changes it's value which is now hidden filed my new text box should update automatically.
Thanks.
Ashish -
How to display total for a column in updateble report
How can I display total on a report column?
the query is
select htmldb_item.checkbox(1,invoice_id) invoice_id,
htmldb_item.DISPLAY_AND_SAVE(2,invoice_no,15)invoice_no,
htmldb_item.DISPLAY_AND_SAVE(3,to_char(invoice_date, 'DD-MON-YYYY'),20) invoice_date,
htmldb_item.DISPLAY_AND_SAVE(4,net_amount,15) NET_AMOUNT,
htmldb_item.text(5,net_amount,null,10) amount_adj,
htmldb_item.text(6,net_amount,null,10) actual_amt
from INVOICE
where OWNER_TYPE = 'CUSTOMER'
and OWNER_ID = :P57_CUSTOMER_NAME
group by invoice_id,invoice_no, invoice_date,net_amount
In the report column attributes the sum column is checked for the sal field
When I run the report, I get a Sub-total of 0 and a Report Total of 0. What am I doing wrong?
thanksSunil,
Which column is the sal column? I canât see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you canât build sums on string columns. If you want to build sums in an updateable report / tabular form, then donât use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
Regards,
Marc -
How to display the alv report blocks wise with out using the blocked alv
Hi
How to display the alv report with out using the blocked alv function module.
Thanks
Chinnusee this Standard Program
RPR_ABAP_SOURCE_SCAN -
How to display total amount field in PO layout
Dear All,
I have a query related to Purchase Order Printing.
I copied the standard programme SAPFM06P as ZSAPFM06P. I didn't make any changes to standard program.
I copied the standard layout MEDRUCK as ZMEDRUCK.
I am able to display all the data of PO but I am facing problem in displaying <b>Total Amount</b> field (i.e sum of amount and tax value).
How can we display the Total Amount in the layout without changing the Standard program. I want to make the changes only in ZMEDRUCK for this field.
My main window details are as follows :
MatNo MatDesc Uom Quantity rate amount <b>Total amount</b>
Here I am not able to print Total amount(amount + tax value)
Please help me on this .
Thanks & Regards
RajvinderHi Rajvinder,
u need not be so much against changing the program.. infact it s the best way to get the desired output if its done properly...to be completely safe,wat u can do is insert a subroutine somewhere after the values have been populated in the program n then add these inside the subroutine to get the total in a different variable..in this way ur original data s intact n u can use ur new variable in the script as total..
neways if u dont want to change ur program, then u need to keep these things in mind..
the value of total & tax shud be available at the point of calling the perform from the sapscript so that u can pass those to a new program for addition.
eg :
while writing this in script
:/ perform add in program znew using &total& &tax& changing &final&
before this command u need to make sure that total & tax values r ther to pass to the program..
then u can write a FORM in ur znew to add these two n pass to final..
in sapscript u can then print &final&
Hope it helps,
Regards,
Bikash -
How to display icons on selection screen ,without using classes.
Hi Experts,
How can we display icons on the selection-screen ..?
one of the methods i heard frm my frnds was to use ->cl_gui_picture_viewer
but as a begginer i am not tht comfortable with classes .So is there a way around to display icons on my selection screen without using classes .
Thanx in Advance,
Regards ,
Rajesh .Hi,
here a short example:
REPORT Z_TEST2.
TABLES: SSCRFIELDS. "Felder auf Selektionsbildern
INCLUDE .
SELECTION-SCREEN: BEGIN OF BLOCK A01 WITH FRAME TITLE MELDUNG1.
SELECTION-SCREEN: SKIP 2.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 10(04) T_ICON.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: SKIP.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(34) T_AUFSD.
PARAMETERS: P_AUFSD AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(34) T_AUFCO.
PARAMETERS: P_AUFCO AS CHECKBOX DEFAULT ' '.
SELECTION-SCREEN: PUSHBUTTON 45(04) PB01 USER-COMMAND SALL.
SELECTION-SCREEN: PUSHBUTTON 50(04) PB02 USER-COMMAND DALL.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(34) T_AUFCS.
PARAMETERS: P_AUFCS AS CHECKBOX DEFAULT ' '.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 01(34) T_AUFPP.
PARAMETERS: P_AUFPP AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN: PUSHBUTTON 45(15) PB03 USER-COMMAND INIT.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: SKIP 2.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: PUSHBUTTON 45(15) PB04 USER-COMMAND ONLI.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: SKIP 2.
SELECTION-SCREEN: END OF BLOCK A01.
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'SALL'. "alle selektieren
P_AUFSD = 'X'.
P_AUFCO = 'X'.
P_AUFCS = 'X'.
P_AUFPP = 'X'.
ENDIF.
IF SSCRFIELDS-UCOMM = 'DALL'. "alle deselektieren
P_AUFSD = ' '.
P_AUFCO = ' '.
P_AUFCS = ' '.
P_AUFPP = ' '.
ENDIF.
IF SSCRFIELDS-UCOMM = 'INIT'. "initialisiern
P_AUFSD = 'X'.
P_AUFCO = ' '.
P_AUFCS = ' '.
P_AUFPP = 'X'.
ENDIF.
INITIALIZATION.
MELDUNG1 = 'Datenbankselektion'.
T_ICON = ICON_PRINT.
T_AUFSD = 'Kundenauftrag'.
T_AUFCO = 'Innenauftrag'.
T_AUFCS = 'Serviceauftrag'.
T_AUFPP = 'Fertingungsauftrag'.
PB01 = ICON_SELECT_ALL.
PB02 = ICON_DESELECT_ALL.
CONCATENATE ICON_REFRESH 'Initial' INTO PB03.
CONCATENATE ICON_EXECUTE_OBJECT 'Ausführen' INTO PB04.
START-OF-SELECTION.
write: / 'Test'.
END-OF-SELECTION.
Regards, Dieter -
How to display ICONS in normal report without using icons table
Hi Friends,
I have to display icons(traffic lights) in a normal report.
Can we do that without using icons table?
If yes, please let me know how?
Thanks,Hi Pagidala,
Go to txcode - ABAPDOCU and in that expand BC-ABAP Programming->ABAP User Dialog->Screens->complex screen elements->status icons on Screens.
In this you can see sample code which may help you.
Cheers!! -
How to display a text in smartform without compression
Hi,
My requirement is to print a text in a smartform with out compression of the line text.
ex. In my internal table having a line text as
'spoolno 25200 | pageno 500--> while printing in smartform, it was displayed as
''spoolno 25200 | pageno 500'.
but i want to print the line as it is in Internal table. please send me the solutions..
Thanks in advance.If you want your text to be read-only, you can use the RichText component instead of TextArea. Search for Text Layout Framework for more info on how to mark up your text.
-
How to display total values of revenue after applying top 5 using rank?
Dear Team,
I have a requirement to display sum of all revenues after applying top 5 using rank in Webi.
for Eg:
revenue product
100 aa
200 bb
300 cc
400 dd
500 ee
600 ff
700 gg
If i apply top 5 using rank i will be getting in my output:700, 600,500,400, 300.
But simultaneously i want to get sum of all revenue values (i.e) 2800.
How to achieve this? ur suggestion is much appreciated.
Regards,
BansiHi Bansi,
You can use =nofilter([Revenue])
or sum([Revenue] in report) -
How to display data of yuv format without converting rgb in OpenGL ES?
I have being study about OpenGL ES for iOS.
I wonder that data of YUV format is can display without converting RGB.
In most, the yuv data have to convert RGB for display. But, converting process is very slow, Then, that is not display smoothly.
So, I would like to try to dispaly YUV data without convert to RGB.
Is it possible? If possible, what can I do?
Please, let me give a advice.Hi Morgan,
I think you have at least two choices:
1 - Replace the colons with ', ' (comma and space) - sort of reasonable on screen and in an export
2 - Create a second page that has the same report but uses the "export: csv" template. Create a manual link to this page to replace the standard Export link. When such report pages are requested, they download immediately instead of displaying. You can, therefore, use commas in this one and <br> tags in the on-screen report version
Andy
ps - To display tags in a post, use &lt; for < and &gt; for > -
How to display the entire double number without the Exponent
I know this is silly, but please help.
myString ="45.5"
myBytes = Double.parseDouble(myString );
convertedBytes = (myBytes * 1048576.0);
System.out.println(myBytes + "MegaBytes = " + convertedBytes + "Bytes");
prints:
45.5MegaBytes = 4.7710208E7Bytes
How do I output:
45.5MegaBytes = 47710208.0BytesThanks,
I think I am just going to go with
println((int)Math.floor(mydouble + 0.5d));Note:
- you shouldn't cast to an int, we never know (e.g. try with > 2048MB.)
- you could use round(mydouble) instead of (long)floor(mydouble + 0.5d) (both are equivalent, but the first one looks clearer IMHO.) -
How to display total in alv only for single row
Hello,
I wish to replace VAT field in my ALV OUTPUT from another ITAB using READ TABLE. But in ALV output I have multiple rows for one document number.
So the value is assigning to all the rows in output, is it possible to assign that VAT value to only one row ( to any one record from output with corresponding document number) .
Thanks in advance.
Regards,
Ritesh InamdarHi Sudeesh,
I am fetching data for PO details, GR details along with condition types of PO.
All data is collected in ALV OUTPUT itab, after this I am trying to assign the values of VAT from another itab in ALV OUTPUT LOOP using READ TABLE with reference to PO-PO_ITEM-CONDITION_TYPE.
Now, when the alv loop is getting executed and in that I am fetching data for VAT using READ statement, the program is assigning VAT to all records of output alv with comparison of PO-PO_ITEM-CONDITION_TYPE.
see:
LOOP AT it_alv ASSIGNING <fs-alv>.
READ TABLE it_vat ASSIGNING <fs-vat>
WITH KEY ebeln = <fs-alv>-ebeln
posnr = <fs-alv>-posnr
kschl = 'JVCS'.
IF sy-subrc = 0.
<fs-alv>-vat = <fs-vat>-kbetr / 10.
<fs-alv>-vat_val = <<fs-alv>-vat * it_alv-menge.
END IF.
END LOOP.
Please refer above.
Thanks.
Ritesh -
Pop-up display Using JSP (or JSTL) without using JavaScript
Please tell me how to display a pop-up window , without using Javascript code.'
Thanks
AmarshiRemember that Java - on the web - is mainly used for server-side programming and applets. If you want client side activity to occur, you must use languages like javascript or vbscript.
Vincent -
Display the 3rd hieghest value without using rowid
HI All,
Can any one help me how to display the 3rd hieghest valuer without using a ROWID..
Thanks
BasavaFrank, using ROWNUM = 1 instead of DISTINCT could be a bit faster:
SQL> SET LINESIZE 132
SQL> EXPLAIN PLAN FOR
2 WITH got_r_num AS (
3 SELECT DISTINCT sal,
4 DENSE_RANK() OVER(ORDER BY sal DESC NULLS LAST) AS r_num
5 FROM scott.emp
6 )
7 SELECT sal
8 FROM got_r_num
9 WHERE r_num = 3
10 /
Explained.
SQL> @?\RDBMS\ADMIN\UTLXPLS
PLAN_TABLE_OUTPUT
Plan hash value: 436395657
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 9 | 234 | 5 (40)| 00:00:01 |
|* 1 | VIEW | | 9 | 234 | 5 (40)| 00:00:01 |
| 2 | HASH UNIQUE | | 9 | 36 | 5 (40)| 00:00:01 |
|* 3 | WINDOW SORT PUSHED RANK| | 9 | 36 | 5 (40)| 00:00:01 |
| 4 | TABLE ACCESS FULL | EMP | 14 | 56 | 3 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
1 - filter("R_NUM"=3)
3 - filter(DENSE_RANK() OVER ( ORDER BY INTERNAL_FUNCTION("SAL") DESC
NULLS LAST)<=3)
18 rows selected.
SQL> EXPLAIN PLAN FOR
2 WITH got_r_num AS (
3 SELECT sal,
4 DENSE_RANK() OVER(ORDER BY sal DESC NULLS LAST) AS r_num
5 FROM scott.emp
6 )
7 SELECT sal
8 FROM got_r_num
9 WHERE r_num = 3
10 AND ROWNUM = 1
11 /
Explained.
SQL> @?\RDBMS\ADMIN\UTLXPLS
PLAN_TABLE_OUTPUT
Plan hash value: 21859616
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 26 | 4 (25)| 00:00:01 |
|* 1 | COUNT STOPKEY | | | | | |
|* 2 | VIEW | | 14 | 364 | 4 (25)| 00:00:01 |
|* 3 | WINDOW SORT PUSHED RANK| | 14 | 56 | 4 (25)| 00:00:01 |
| 4 | TABLE ACCESS FULL | EMP | 14 | 56 | 3 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
1 - filter(ROWNUM=1)
2 - filter("R_NUM"=3)
3 - filter(DENSE_RANK() OVER ( ORDER BY INTERNAL_FUNCTION("SAL") DESC
NULLS LAST)<=3)
19 rows selected.
SQL> SY.
Maybe you are looking for
-
Hi, we need a reliable report out of ZENworks (or ZENworks Reporting 5) which shows us which devices are encrypted and which are not. I did not find any report which is giving me the data I am looking for and I dont know how to create this report by
-
Can you help with a misplaying online Flash game?
I don't know if this question is appropriate for this forum, but here's taking a chance, and I hope you can help. A Flash game I play at discovery.com worked fine about a year ago. I stopped playing it for several months, and then went back to it. Wh
-
I'm new to this site so I apologize for the long question. When I import raw files from my Nikon D800e into Aperture (3.2.3), they show up bright for one second and then darken slightly. Is this normal? It didn't happen with raw files from my Niko
-
I was using Oracle JDeveloper 10g to debug a pl/sql procedure. I used to do it on different Oracle server and debug works fine. This time, after I let DBA granted the DEBUG connect session and DEBUG any procedure priviledges, I got new problem. I did
-
Printing using raw pass thru mode with PCL 5e
I have an HP LaserJet P3015 printer on our network and have been doing some testing for a company that needs this printer to work. We have an application that writes using a network connection to pass thru in RAW data mode to the printer device. We u