Summing Up of Dynamic Group Columns
Hi Vertri,
I was stuck up again in summing up values for each column...
Please give me a hand...
I emailed you the rtf file I'm working on.
Thanks.
Just send an update ,
use as below
<?xdoxslt:set_variable($_XDOCTX, ‘SUMCCE’, xdoxslt:round(sum(current-group()[./Level_Code_Label = 'CASH AND CASH EQUIV']/actuals_USD_amount) div 1000) + xdoxslt:round(sum(current-group()[./Level_Code_Label = 'ACCTS RECEIVABLE NET']/actuals_USD_amount) div 1000) + xdoxslt:round(sum(current-group()[./Level_Code_Label = 'UNBILLED SERVICES']/actuals_USD_amount) div 1000))?>
Similar Messages
-
Summing values in dynamic table columns
I'm having some difficulty figuring out how to sum column
values in dynamic tables. In other words, I have created a dynamic
table (php/mysql). One column has a list of prices, and I need to
sum the list of prices. I know this is pretty simple stuff. Can
someone direct me to an example of the appropriate code?"firalivet" <[email protected]> wrote in
message
news:go1j76$d4l$[email protected]..
> One column
> has a list of prices, and I need to sum the list of
prices. I know
> this is
> pretty simple stuff.
There are several ways to do this, but a simple way is to
create a
variable to hold a running total and add the current price to
it when
you display each row. The following is a simplified example
of the
code:
<?php $total = 0; ?>
<?>php do { // this is the start of the repeat region
?>
<tr><td><?php echo
$row_recordsetName['price']; $total +=
$row_recordsetName['price']; ?></td></tr>
<?php } while ($row_recordsetName =
mysql_fetch_array($recordsetName)); // end of repeat region
?>
<tr><td><?php echo $total;
?></td></tr>
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com -
Grouping of chracateristics by using dynamic data columns
Hi all,
I want to create a BPS Layout (BW3.5) with the material in the lead column and a KeyFigures, the year and the salesgroup in the data column. The salesgroup is the dynamic characteristic.
Example:
I want to have:
SG1 2007/ SG1 2008/ SG2 2007/ SG2 2008...
What the system is doing is:
SG1 2007/ SG2 2007/ SG1 2008/ SG2 2008
My question is: how can I change the grouping of the columns from year to salesorg?
Can anybody help me?
Best regards,
RainerHi Rainer,
Thanks for your appreciation.
I thought there is not material in your lead column, okay if your case like that i suggest you like this.
I suggest to .
To choose Layout Category:
1. Key Figures in Data Column
Define data column dynamically for : Sales Group
And make the fiscal year, and material as lead column.
In the data column tab, define the key-figures there and mark Dynamic checkbox.
Or if you want to group based on the fiscal year, you can make the fiscal year as you dynamic data column.
Hopefully it can help you a lot.
Best regards,
Niel.
thanks for the points you choose to assign. -
Create grouped column headers dynamically
Hi all,
I want to create grouped column headers dynamically.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
DATA lr_column_group TYPE REF TO cl_wd_table_column_group.
DATA lr_caption TYPE REF TO cl_wd_caption.
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Min' ).
lr_column_group = cl_wd_table_column_group=>NEW_TABLE_COLUMN_GROUP( ).
lr_column_group->set_header( EXPORTING the_header = lr_caption ).
CALL METHOD lr_column_group->add_column
EXPORTING
index = 1
the_column = lr_table_column.
lr_table->ADD_GROUPED_COLUMN( EXPORTING the_grouped_column = lr_column_group ).
But I don't understand how I can get the grouping of the columns.
The following structure should be realized:
FR | Headline 1 | Headline 2 |
SR | Min | Max | Min | Max |
FR = first row
SR = second row
regards
Edited by: Wolfgang Bauer on May 19, 2010 7:52 AMLOOP AT it_comp_header INTO wa_comp_header.
Minimum
counter = counter + 1.
CONDENSE counter.
CONCATENATE 'INPUT_' counter INTO id.
c_count = sy-index.
c_count = counter.
CONDENSE c_count.
CONCATENATE 'IT_BIN_COMP.MIN' c_count INTO binding.
cl_wd_input_field=>new_input_field(
EXPORTING
bind_value = binding
id = id
RECEIVING
control = lr_input ).
lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Min' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Max' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Sorting Bin' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_caption = cl_wd_caption=>new_caption( ).
text = wa_comp_header-chip.
lr_caption->set_text( text ).
lr_column_group->set_header( lr_caption ).
lr_table->add_grouped_column( lr_column_group ).
ENDLOOP.
Sub product
lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Sub Product' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table->add_grouped_column( lr_column_group ).
Remarks
lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Remarks' ).
lr_table_column->set_header( lr_caption ).
lr_column_group->add_column( lr_table_column ).
lr_table->add_grouped_column( lr_column_group ). -
Post Author: tadj188#
CA Forum: Formula
Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
Background:
1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using subreports. A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report with their respective detail lines). I had multiple subreports and each subreport became one union.
Created and tested, already:
1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
Issue:
1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
Other Ideas Appreciated:
1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
Thank you.
Tadjexport all image of each page try like this
var myDoc = app.activeDocument;
var myFolder = myDoc.filePath;
var myImage = myDoc.allGraphics;
for (var i=0; myImage.length>i; i++){
app.select(myImage[i]);
var MyImageNmae = myImage[i].itemLink.name;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
alert(myImage[i].itemLink.name) -
Dynamic Lead column repeats the same value
Hi, I have a dynamic lead column with reporting groups attached to them. Also, I have date column in the data column which is also dynamic. In the layout the reporting group field shows only the first entry in the variable and repeats itself. When I enter the data and save it, data is saved in the right reporting groups...If I replace day with week(and no further changes in the layout) reporting groups show up...is it something to do with date field?
Reporting Group 01/01/2008 01/02/2008 01/03/2008
1 $100 $ 120 $ 150
1 $110 $ 130 $ 160
In the database it shows the second line reporting group as 2(which I want) but in the layout it shows up as 1.
How can I make it show the correct value. Thanks,
BulusuHi,
When any of the dynamic lead columns or data columns you select them as dynamic, automatically the Infoobject is filled by the system and it would be greyed out. Copy the same infoobject like 0FISCPER, 0FISCYEAR and paste in the Description of the layout (for that dynamic column). Then it will pick up on its own.
Otherwise if you put your own description like date, month and year etc. for all the columns or rows, as the case may be, it will give similar description.
Regards,
Ravi -
Adding dynamic split column width to my report
I'm trying to add a dynamic split-column-width to my report in BI Publisher. I do not have a need for a column header. I tried to add this line to my existing line of code for the cell.
*<?split-column-width:COLUMN_DATA?>*
C *<?split-column-width:COLUMN_DATA?>* <?for-each-group@cell:current-group();COLUMN_ORDER?> COLUMN_DATAEC
I do not under stand the user's guide. What should be placed where to accomplish the dynamic column width and keep my current cell group?
thank you for your time.In the Discoverer Plus (web version but not vieweer), go to Sheet -> Format. For each column click on Format Data and make sure Word Wrap in unchecked. Then click on Format Heading and check on Word Wrap. This will word wrap the column heading but stretch the column to maximum length of the data in the column.
I think be default word wrap in unchecked unless otherwise specified when the workbook was created. -
Dynamic Group Resolution Limit?
We recently created a few dynamic groups to assign certain roles and access automatically. I have it set up to resolve these groups via a script that runs at the end of a maintenance job.
The issue we encountered upon our initial load was that it would only add 1000 users at a time via the script. Is there a setting somewhere in the console that puts this limit in place?
Alternatively, I tried to resolve the group from the group properties themselves. This also failed as it gave me a time out message; however it would not allow me to retry because a process to resolve the group was already running! Has anyone encountered this and found a way to terminate that process?
I was just wondering if anyone else had encountered these issues and how they resolved them.
Thanks,
JaredYes, on the initial load, they will only load 1000 at a time. We ran into this problem too (had one group of 12,000 people) but just ran it 13 times using Right Click -> Recalculate.
When they crash or deadlock, they will claim to still be running for a long time. This is because of the way they do locking:
1) When the recalculation starts, it chcecks the ModifyTime column on the attribute "MX_DG_AUTORESOLVE_INTERVAL" for that Dynamic Group. If it is in the past, it continues to step two, otherwise it aborts with the error saying it is already running.
2) It sets the ModifyTime on that attribute to a future date (I forget how long exactly, but we're talking about DAYS in the future).
3) It does the calculations.
4) It sets the ModifyTime to the time it finished.
So, you see the problem -- when it crashes, the time remains far in the future.
You mentioned you run the update from a script, and that is what we do too. There is supposed to be a way to trigger the calculation based on an Attribute Change, but the feature does not work as documented in the manual. Frustrating...
Anyway, this is how I get around the issue in our script:
function recalcInternetGroups(Par){
uSleep(10000); //Give any previous attempts at least 10 seconds to finish resolving
importPackage(Packages.com.valero.idm);
var sqlClass = new SQLServerConnection();
var SQL = "Select MSKEY FROM dbo.MXIV_SENTRIES WHERE searchvalue LIKE 'INTERNET_LEVEL_%' AND attrname = 'MSKEYVALUE'"
groups = uSelect(SQL);
var result = groups.split('!!'); //We have 9 INTERNET_LEVEL groups, refresh them all
for (var i=0; i<result.length; i++) {
dynamic_group = result<i>;
// Manually set the date into the past (picked the date I wrote this script, as it doesn't matter how far in the past)
var sql2 = "update MXI_VALUES set Modifytime = '2010-10-15 00:00:00.000' where MSKEY = " + dynamic_group + " and Attr_ID = 33";
var resultUpdate = '' + sqlClass.uUpdate(sql2);
recalc = uIS_ResolveDynamicGroup(dynamic_group);
if (recalc.indexOf("ERROR")>0) {
uError("Recalculating " + uIS_GetValue(dynamic_group, uGetIDStore(), "MSKEYVALUE"));
uError(recalc);
} else {
uWarning("Recalculating " + uIS_GetValue(dynamic_group, uGetIDStore(), "MSKEYVALUE") + ' ' + recalc);
You'll note we have our own function to allow us to run database updates in Javascript, which is required for this to work, since uSelect() won't perform updates. Anyway, doing that solves the problem. I guess you could do the same thing if you just made a To Database pass that runs before this and does these changes.
If you pick up any other tips or tricks on dealing with Dynamic Groups, let me know, as we use them fairly extensively and still find them somewhat frustrating at times. -
ALV: Extra row to group columns
Hi,
I want to add one more row above column headers (Coltext) to group columns:
1st row: | A | B | C
2nd row: |X | Y | Z | X | Y | Z | X | Y | Z
3rd row: <a long fix text>
following rows are the contents
Three parent columns, 3 child columns under each parent.
How to do it using SALV/ ALV OO?
If the columns are all dynamic ( might be more than 3 columns each parent), how to do?
Thanks in advance!Thanks!
I did some research and maybe I can use CL_GUI_COLUMN_TREE class to achieve this. Is there a way to edit the fields of the columns?
HD -
Newbie Dynamic Group by clause
Example
create table test( awhite numeric(6,0)
, DMonth numeric(2,0)
, Goalnumber numeric(2,0)
, Objnumber numeric(2,0));
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(5,6,1,1);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(8,6,1,2);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(12,6,2,1);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(16,10,2,1);
insert into test(awhite,DMonth,Goalnumber,Objnumber)
values(4,10,2,1);
===========================
I need this to be ONE query with a parameter
Select SUM(Awhite) SWhite
,DMonth
,CASE WHEN &groupbyobj<2 THEN
to_number('99')
ELSE
Goalnumber
END Goalnumber
,CASE WHEN &groupbyobj<3 THEN
to_number('99')
ELSE
Objnumber
END Objnumber
FROM Test
GROUP BY Goalnumber,Objnumber,DMonth
============================
So when the groupbyobj=3, I want the output to look like
SWHITE DMONTH GOALNUMBER OBJNUMBER
5 6 1 1
8 6 1 2
12 6 2 1
20 10 2 1
==============================
So when the groupbyobj=2, I want it grouped by GOALNUMBER
SWHITE DMONTH GOALNUMBER OBJNUMBER
13 6 1 99
12 6 2 99
20 10 2 99
So when the groupbyobj=1, I want it grouped by DMonth
SWHITE DMONTH GOALNUMBER OBJNUMBER
25 6 99 99
20 10 99 99
I ADDED the above "99" to the output above. I could not get my query to output that.
QUESTION- How can I create A DYNAMIC Group by clause based on the parameter
(Groupbyobj) Selected?
TIA
Steve42I noticed I got the numbers 1 until 3 just the other way round, so here is a new version.
SQL> var P_GROUPING_SET number
SQL> exec :P_GROUPING_SET := 1
PL/SQL-procedure is geslaagd.
SQL> select sum(awhite) swhite
2 , dmonth
3 , nvl(goalnumber,99) goalnumber
4 , nvl(objnumber,99) objnumber
5 from test
6 group by dmonth
7 , rollup(goalnumber,objnumber)
8 having case grouping_id(goalnumber,objnumber)
9 when 0 then 3
10 when 1 then 2
11 when 3 then 1
12 end = :P_GROUPING_SET
13 /
SWHITE DMONTH GOALNUMBER OBJNUMBER
25 6 99 99
20 10 99 99
2 rijen zijn geselecteerd.
SQL> exec :P_GROUPING_SET := 2
PL/SQL-procedure is geslaagd.
SQL> select sum(awhite) swhite
2 , dmonth
3 , nvl(goalnumber,99) goalnumber
4 , nvl(objnumber,99) objnumber
5 from test
6 group by dmonth
7 , rollup(goalnumber,objnumber)
8 having case grouping_id(goalnumber,objnumber)
9 when 0 then 3
10 when 1 then 2
11 when 3 then 1
12 end = :P_GROUPING_SET
13 /
SWHITE DMONTH GOALNUMBER OBJNUMBER
13 6 1 99
12 6 2 99
20 10 2 99
3 rijen zijn geselecteerd.
SQL> exec :P_GROUPING_SET := 3
PL/SQL-procedure is geslaagd.
SQL> select sum(awhite) swhite
2 , dmonth
3 , nvl(goalnumber,99) goalnumber
4 , nvl(objnumber,99) objnumber
5 from test
6 group by dmonth
7 , rollup(goalnumber,objnumber)
8 having case grouping_id(goalnumber,objnumber)
9 when 0 then 3
10 when 1 then 2
11 when 3 then 1
12 end = :P_GROUPING_SET
13 /
SWHITE DMONTH GOALNUMBER OBJNUMBER
5 6 1 1
8 6 1 2
12 6 2 1
20 10 2 1
4 rijen zijn geselecteerd. -
Hi All,
I have a two reports in my dashboard, One for asking list of search key words when user click Search (html button) it navigates to report two with the necessary parameters and filter done.
Now there is one new requirement came up like, user want the list of column names in the dropdown box for group by. User select the filter value and select the group by column in the list then click search. This should pass the filter values as well as the group by column to the report2. The result should be filtered based on the filter values and must be grouped by the selected column.
Can anyone provide a solution or idea for this?Hi.
Try to put the group by column drop-down value from the dashboard prompt into presentation variable and then use this value to form a dynamic group by in Answers with case statement like I did in this example:
http://108obiee.blogspot.com/2009/08/dynamic-dashboard-prompts-and-columns.html
Regards
Goran
http://108obiee.blogspot.com -
what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?
there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem -
Function short dump - A dynamically specified column name is unknown.
Hello,
I've created BRF fuction according to the Note 1466868 - Dunning by collection strategy with BRFplus. I get short dump during simulation of function with following exception:
"A dynamically specified column name is unknown. "
Runtime Errors SAPSQL_INVALID_FIELDNAME
Exception CX_SY_DYNAMIC_OSQL_SEMANTICS
No. Ty. Program Include Line
Name
19 METHOD CL_FDT_ELEMENT================CP CL_FDT_ELEMENT================CM012 129
CL_FDT_ELEMENT=>GET_VALUES_DDIC
18 METHOD CL_FDT_ELEMENT================CP CL_FDT_ELEMENT================CM011 124
CL_FDT_ELEMENT=>GET_VALUES
17 METHOD CL_FDT_WD_RENDER_VALUE_INPUT==CP CL_FDT_WD_RENDER_VALUE_INPUT==CM00G 139
CL_FDT_WD_RENDER_VALUE_INPUT=>VALIDATE_VALUES
In my opinion there is uncorrect query.
Current version:
. SELECT FIKRS AS VALUE NAME AS TEXT FROM FMBS_BS_T
INTO CORRESPONDING FIELDS OF TABLE lt_value
WHERE LANGU EQ 'E'.
instead of:
. SELECT FM_AREA AS VALUE NAME AS TEXT FROM FMBS_BS_T
INTO CORRESPONDING FIELDS OF TABLE lt_value
WHERE LANGU EQ 'E'.
My sap version:
EHP4 FOR SAP ERP 6.0 / NW7.01
SAP_BASIS 701 0003 SAPKB70103
Do you know any note or solution to resolve this problem.
Best regards,
Jacek WitczakHi, I came back to working on "Dunning by collection strategy with BRFplus". According to your sugestions, I raised the level of components:
SAP_BASIS Level 09
SAP_ABA level 09
PI_BASIS level 09
SAP_BW level 09
But still I have the same short dump.
Shoudl we raise any other components? Maybe you know note, which resolve this problem? -
XML Publisher - Dynamic Data Columns Issue
Hi,
I am creating a amortization report where I need to show the amortization schedule for unearned revenue. Customers have signed different years of contract and I need to show the amount as per their remaining contract months. So if there are 2 month remaining in the contract then I should show the data for 2 months only and if there are 10 months then I should display 10 months. If we run the report for both customers then it should display two lines in report. For first customer the data should be only for 2 months and for second row(customer) there should be data for next 10 months. These months should be columns in the report(like excel columns, not rows). I need to display all months in columns instead of rows.
I have acheived that using Dynamic Data Columns as mentioned in the user guide. Everything is working fine except following issues -
1. How to create page level total?_
I have created page total in my template using <?add-page-total:TOTUREV;'UREV'?> and displaying using <?show-page-total:TOTUREV?> but when I run the report in excel format these page total do not display. These columns are static columns not dynamic.
If I run the report in pdf format then the static column total is displayed correctly.
2. When I run the report in excel format then report run fine and it shows all the columns properly but if I run the report in pdf format then the dynamic column are not displayed in their own columns, all the columns are overwriting each other in a single columns itself, its not expanding.
3. How do I get the total for the dynamic columns?_
I need to display the page level total for the dynamic columns also, how do I do that?
4. When I run the report in excel format the 2 decimal places of the numbers are gone(it works fine in pdf output), like 12.50 becomes 12.5 and 14.00 becomes 14. I need to maintain those 2 decimal places. I have tried using <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?format-number:CVALUE;'999999D99'?></fo:bidi-override> but this does not solve my problem completely. It shows the values correctly in excel but then I am not able to do any calculation on those columns, looks like it converts them to text values.
Any help is really appreicated. Please let me know if you need the xml template and data file.
Regards
HiteshHi Hitesh,
Can you please upload your RTF and XML template file? I will try to spend sometime on this issue.
Cheers
Sachin -
SUB Totals within a Dynamic Data Column
Has anyone ever calculated SUB Totals in a Layout with a Dynamic Data Column?
The TOTAL for all data is expressed on the Data Column tab of the Layout as C(1):C(1) - 0FISCPER / Posting Period is the Dynamic Characteristic. When the system actually displays the 12 columns of data for the Year, the formula for TOTAL is also adjusted - no problem here. But the user also wants SUB Totals, by Quarter, within the Year.
Any insight or suggections are appreciated !
Thanks,
LyleHello,
use variables Q1, ..., Q4 for the quarters and create
data colums as follows
1 Q1 dynamic = X
2 Total C(1)
3 Q2 dynamic = X
4 Total C(3)
5 Q3 dynamic = X
6 Total C(5)
7 Q4 dynamic = X
8 Total C(7)
9 Year Total C(2)C(4)C(6)+C(8)
Regards,
Gregor
Maybe you are looking for
-
Finder not working anymore in Mavericks
Today i have upgraded my mountain lion to mavericks,when done my mavericks can not see anyfile or driver on the desktop I can not open Finder,anyone can help me to fix it?I wana download mavericks again to re install but my app store can not download
-
Hi all I have a requirement to break a table between the pages . i used here contionus break even then it not breaking the table .on my proforma invoice .in which i am using fix the no .of rows per page logic on my rtf thanks in advance goutham
-
Customer Satifaction survey through CRM
In R17,Can we conduct after sale Customer satisfaction survey & do the analysis & reporting of the responses from customer collectively?
-
Using one swf to preload another swf
Hey everyone, I have two swf files, one is a preloader and the second is the main file. I want to preload the main file using my preload swf. It works, however the main swf starts to play after about 11% of it is preloaded, how can i stop this? I wan
-
hi, we have recently setup a new JRUN instance for creating a dev environment for our website. But when rendering the site there is sme error that is coming for which I have searched a lot but we are still not able to figure out what is the problem: