How to get the group totals in report
HI,
Iam generating a report to display Storage Location, and Unit of Measures and Material group and also group totals.
how to display the group totals on the report.
thank q
rushi.
Hi,
This following report clearly explains how to display the subtotal and grand total of
the particular field in alv.
REPORT YMS_ALVSUBTOTAL.
*REPORT z_alv_sub_totals .
TYPE-POOLS: slis.
DATA: BEGIN OF it_output OCCURS 0,
var1(8) TYPE n,
var2(10),
var3 TYPE I,
END OF it_output.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
t_fieldcat TYPE slis_fieldcat_alv,
it_sort TYPE slis_t_sortinfo_alv,
t_sort TYPE slis_sortinfo_alv,
v_repid LIKE sy-repid.
INITIALIZATION.
v_repid = sy-repid.
START-OF-SELECTION.
PERFORM get_data.
PERFORM sort_fields.
PERFORM fill_fieldcat.
PERFORM list_display.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
FORM get_data.
it_output-var1 = 1000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
it_output-key = 'X'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'siddhu'.
it_output-var3 = '20000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'chinni'.
it_output-var3 = '100000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 2000.
it_output-var2 = 'chicchu'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 2000.
it_output-var2 = 'candy'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 4000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
ENDFORM. " GET_DATA
*& Form fill_fieldcat
text
--> p1 text
<-- p2 text
FORM fill_fieldcat.
PERFORM fill_fields USING: 'IT_OUTPUT' 'VAR1' 'Variable 1' ' ',
'IT_OUTPUT' 'VAR2' 'Variable 2' ' ',
'IT_OUTPUT' 'VAR3' 'Variable 3' 'X'.
ENDFORM. " fill_fieldcat
*& Form fill_fields
text
-->P_0146 text
-->P_0147 text
-->P_0148 text
-->P_0149 text
FORM fill_fields USING value(tabname) TYPE slis_tabname
value(fieldname) TYPE slis_fieldname
value(seltext_m) LIKE dd03p-scrtext_m
value(do_sum) TYPE c.
t_fieldcat-tabname = tabname.
t_fieldcat-fieldname = fieldname.
t_fieldcat-seltext_m = seltext_m.
IF do_sum = 'X'.
t_fieldcat-datatype = 'CURR'.
ENDIF.
t_fieldcat-do_sum = do_sum.
APPEND t_fieldcat TO it_fieldcat.
CLEAR t_fieldcat.
ENDFORM. " fill_fields
*& Form list_display
text
--> p1 text
<-- p2 text
FORM list_display.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = it_fieldcat
it_sort = it_sort[]
TABLES
t_outtab = it_output
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.
ENDFORM. " list_display
*& Form sort_fields
text
--> p1 text
<-- p2 text
FORM sort_fields.
t_sort-fieldname = 'VAR1'.
t_sort-tabname = 'IT_OUTPUT'.
t_sort-spos = 1.
t_sort-up = 'X'.
t_sort-subtot = 'X'.
APPEND t_sort TO it_sort.
CLEAR t_sort.
t_sort-fieldname = 'VAR3'.
t_sort-tabname = 'IT_OUTPUT'.
t_sort-spos = 2.
t_sort-up = 'X'.
APPEND t_sort TO it_sort.
CLEAR t_sort.
ENDFORM. " sort_fields
Thanks,
Sankar M
Similar Messages
-
How to get the Grand Total in Module pool Screen
Hi Frds.
How to get the Grand Total in Module pool Screen
Example i have 10 different materials
for each matarial has different moving . But in my case matarials is doesnt matter here
10 material Moving Average price to do Frand total and display in one column...
Please Help me out Frds.
Regards,
KabilHi
You need to calculate the total in a module of PAI (or PBO) event:
PROCESS PAI.
LOOP.....
ENDLOOP.
MODULE CALCULATE_TOTAL.
MODULE CALCULATE_TOTAL.
GRAND_TOTAL = 0.
LOOP AT ITAB,
GRAND_TOTAL = GRAND_TOTAL + ITAB-PWB.
ENDLOOP.
ENDMODULE.
In this way the grand total will be calculated as soon as the user presses enter or another command.
You can't insert the calculation in the loop of table control, because this loop runs the visible lines only, so it's better to calculate the total out of those loop, -
How to get the value from another report Customizes Form
Dear all,
I create a report such as
select * from mytable.table1
where field1 = :bind_variable
I create a menu to run this Customized Form and user have to select the bind_variable values. So I have another report created which also want this bind_variable as it WHERE Clause. But I don't want my user to key the same bind variable twice. They can just same the Customized Form and run for both report.
Could anybody know how to get the bind_variable on 1st report and used by the 2nd report.
Thank you very much.
Best Rgds,
SL VoonHi,
are you on BI7.0? There you can create variables type replacement path and get the value out from a different variable without any coding.
regards
Cornelia -
How to get the usage of SSRS reports in project server 2010
Hi
Can any body tell me how to get the usage of the SSRS reports in Project Server 2010.
Thanks
Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.Hello,
See the links below on how to get the usage for SSRS reports:
http://sqlbadboy.wordpress.com/2013/09/12/reporting-services-reports-whos-using-them/
http://www.mssqltips.com/sqlservertip/1908/analyze-report-execution-and-usage-statistics-in-sql-server-reporting-services/
http://www.mssqltips.com/sqlservertip/1306/how-to-know-what-reporting-services-reports-are-being-used/
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
How to get the stock of STO Report with suppling Plant/receiving Plant/open
How to get the stock of STO Report with suppling Plant/receiving Plant/open/close qty.
MB5T gives you Details of STO which have stok in transit.
ME2W gives you supplying plant wise STO details. Also in ME2W , in the ALV report output, if you select the "delivery Schedule line" icon , you will get details such as , STO qty, Issued qty , undelivered qty etc. -
HOW TO GET THE GRAND TOTALS IN ALV USING GRID FM
Hi,
I would like to know that am getting the sub totals using the ALV_GRID FM,
But I need Grand totals how i can get and what is the paramater to keep = x to get this Grand totals\.Hi,
If you have the DO_SUM = 'X' in the field catalog internal table for the corresponding column..Then you will get the grand total..
Thanks,
Naren -
How to get the groups info for user
Hi guys i am new to ALUI..
i am trying to do some enhancement.
i want to know how to get the information of the users group and the group details using the IDK API?
Can sombody share some code?Hello,
You are welcome. Here is one way of get what you want:
1) get all groups id's
IPortletContext - >IRemoteSession -> IUserManager - > getCurrentUserGroups() -> int []
2) get details about group
IRemoteSession.getObjectManager(ObjectClass.UserGroup ) ->
cycle over int []: {
IObjectManager -> querySingleObject(comminity id) -> IObjectQueryRow -> getName()
Because you are going to use PRC and make SOAP calls to portal don't forget setup WS to pass token to portlet (check WS settings)
Edited by Bryazgin at 05/29/2008 7:48 PM -
How to get the sum total of just one row in the dashboard
How do I get the sum total of one row in the compound layer results. This is 11g
Does anyone know?
may be sales, I need the total at the bottom of the row..
thx
ChuckI fnd the answer,
in the table view, click edit then nxt to the columns and measures there is total sum icon. Click that, and choose after -
How to get the measure total at row level for another measure calculation in DAX?
Hi There,
Using DAX, I am trying to get an expression for a calculated measure as follow:
So basically, I would like to get the AMeasure total highlighted in yellow in the A2Measure calculation:
Smeasure -(Ameasure total * WMeasure) where Ameasure total is the one highlighted.
I think my question would be how to get the total of a measure in order to used in the calculation of another measure.
Thanks and best regards,
JossHi Joss83,
If you're trying to get the result for [AMeasure] at the total level (i.e. 5.09 in your example) you can do this by creating a version of this measures that is evaluated after ignoring the filters (indirectly or explicitly) placed on
the 'Customer' and 'Player' columns. You may also need to ignore the filters place on some other tables or columns that must be ignored in order for the correct total to be returned.
Without knowing much more about your data model, I can only take a vague guess as to what this calculation would look like in your scenario:
AMeasureTotal:=
CALCULATE(
[AMeasure],
ALL(Customer[Customer]),
ALL(Player[Player])
You can read more about the 'ALL' DAX function here:
http://technet.microsoft.com/en-us/library/ee634802.aspx
Hope this helps,
Michael -
Hello all,
I am using LabVIEW 8.0 PDS.
I created a new local domain called "MyDomain" in the "NI Domain Account Manager" . I added a new User called "MyUser" and a new group called "Maintenance". I set "MyUser" to be a member of the "Maintenance" group. Then, I configured LabVIEW to invoke the login dialog at start-up in order to log "MyUser" with the correct password.
I would like to get the group name of the current user logged programmatically in a VI. I tried with the VI Server >> Application >> Security properties and methods and also with the properties and methods of the NI Security Class but it seems to be not so simple as I believed at start.
I do not find any informations or KB on this (all the documents I found deal with LV DSC or TestStand).
The final goal is to be able to manage a list of user for my application. Each user is a member of a group ("Administrator", "Operator", "Maintenance") and depending on the group, the user can or cannot access to some parts of the application.
Thanks for your help.
Matthieu
EurilogicRe,
Here is a screenshot of this functions...
If you really own LV DSC 8.2 the best thing to do is to reinstall it.
Regards,
Message Edité par Richard K. le 04-02-2007 04:00 AM
Richard Keromen
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception
Attachments:
security.jpg 3841 KB -
Hello BW gurus,
sorry for the incomplete question.
This is how i need my report.
Account Number Key Figure Type Company code Plant Sales Organization Fiscal year/period Z1/007.2006 Z1/008.2006 Z1/009.2006 Z1/010.2006 Z1/011.2006 Z1/012.2006
SALES x1
SALES x2
SALES x3
SALES x4
SALES x5
SALES x6
Overall Result SALES x1x2..x6
Similarly i need to get the cost of sales and its overall results
and then i have to get the gross margin as (Sales - Cost of Sales) for each fiscal period(columnwise).
i got the Sales and Cost of Sales like this
Plant Sales Organization Fiscal year/period
SALES
COST OF SALES
GROSS MARGIN
SALES
COST OF SALES
GROSS MARGIN
SALES
COST OF SALES
GROSS MARGIN
SALES
COST OF SALES
GROSS MARGIN
SALES
COST OF SALES
GROSS MARGIN
SALES
COST OF SALES
GROSS MARGIN
SALES
COST OF SALES
GROSS MARGIN
but i need all the sales data first and its total(S)
and then all the cost of sales data and its total(C)
and the gross margin (S-C) for individual fiscal period.
Please reply ASAP.Quick help is appreciated.
Thanks in advance,
Regards
Sam MathewHi Viraylab,
check <b>VBAP-NETPR</b> field of table <b>VBAP</b>
It gives the net price corresponding to a line item.
Goto Tcode VA03.See the <b>item overview</b> tab U will get <b>Net Price</b> field for indivisual line item.
Reward points if helpful.
Regards,
Hemant -
How to get the max total sale by date on every store
I am trying to write a query in Oracle which will return both the store_id and the maximum total sale by date
Hi,
Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002#9362002
Hjava wrote:
I am trying to write a query in Oracle which will return both the store_id and the maximum total sale by date
Do you mean you want to see the store_id that had the maximum total sale?
In general, this can be done with a Top-N Query, using an analytic function such as RANK. For an example, see http://forums.oracle.com/forums/thread.jspa?messageID=3739610
If you only want the date, the maximum total from that date, and 1 column from the same row with the maximum (e.g. store_id), then you might be able to use the aggregate LAST function instead.
What results do you want in case of a tie? (That is, if 2 or mote store_ids have the same total sale on a given date, and no other store_id has a higher total.) -
How to get the grand total ?
Hi all,
I got 1 main query say Q1 link to another 3query, Q2, Q3 & Q4. In Q2, Q3 & Q4, I got the difference qty display based on individual repeating frame. Now if I need to sum the grand total of Q2, Q3 & Q4 ? how should I do ?
I try to put the sumary up in Q1, but the system has given REP-1517 error.
Any idea please help me. Thanks.
Rgds
LimAdd summary columns in your data model. Where to put them exactly depends on your report. E.g. if you want a grand total at the end of the report, you create the column outside the query. The Object Navigator shows a Summary Columns node beneath the Queries node for these columns.
-
How to get the group key, which an approval task assign to
Hi,
When a user is assign to OIM Group (i.e. from User Detail >> Group Membership form), I will call an approval process (using Access Policy).
In that approval process, I have defined two tasks.
1) Assign Approval to Group -> NOT conditional
2) Remove OIM Group From User -> conditional
So, from the 1) task, I will assign this approval to a OIM Group.
If the user click "Approva", a provisioning process will be fired.
If the user click "Deny" (Reject), 2) task will be run.
What I want is this.
From this 2) task, I need to get the "OIM Approval group" key or name (which this approval is assigned to)......
Note: I need to get this group info in the "Approval Process Task" -> "Integration" -> "Map"
Regards,
ChaturangaHi,
Yes. I have done that.
Now what I want is this. If the approver "Deny" (Reject) the approval task, I will call another task in the approval process. From that task, I need to run a code, which remove the user from OIM Group.
So, to do it, I have written a java code and created a adapter. So, as a input parameter for that code, I need to give the approval group name(i.e. the OIM group, above approval task is assign to).
How can I get the OIM approval group, which the person who Deny the approval belongs to, from this new approval process task???
Regards,
Chaturanga -
How to get the groups a computer is member of in AD with Quest Powershell?
Hi all
I would need a script in Quest PowerShell that gathers the groups that multiple computers are member of in Active Directory. I have this script, but what it does is to get USERNAMES from a .txt file and then display the groups
each user is member of in AD. I couldn't modified it so instead of USERNAMES in the txt file I can put computers name, here's the code:
$out = @()
Get-Content M:\Tools\Reportes_Power_Shell\Contenedor_Power_Shell\Users.txt | ForEach {
$date = (Get-Date).ToString()
$username = $_
$displayName = (Get-QADUser $username -Properties DisplayName).DisplayName
$groups = Get-QADMemberOf $username | Sort-Object Name
ForEach ( $group in $groups ) {
$obj = New-Object -TypeName PSObject
$obj | Add-Member -MemberType NoteProperty -Name Date -Value $date
$obj | Add-Member -MemberType NoteProperty -Name UserName -Value $username
$obj | Add-Member -MemberType NoteProperty -Name DisplayName -Value $displayName
$obj | Add-Member -MemberType NoteProperty -Name GroupName -Value $group.name
$out += $obj
$out | Export-CSV M:\Tools\Reportes_Power_Shell\Reportes_de_Power_Shell_y_AD_Info\Users_Memberships.csv
Thanks!I did it but didn't work out, I get this error:
Get-QADMemberOf : Ambiguous identity: <NAME OF THE COMPUTER>.
At line:5 char:30
+ $groups = Get-QADMemberOf <<<< $username | Sort-Object Name
+ CategoryInfo : NotSpecified: (:) [Get-QADMemberOf], IdentityException
+ FullyQualifiedErrorId : Quest.ActiveRoles.ArsPowerShellSnapIn.BusinessLogic.IdentityException,Quest.ActiveRoles.
ArsPowerShellSnapIn.Powershell.Cmdlets.GetMemberOfCmdlet
I can't help with Quest, but here's an example using the AD module:
Get-Content .\computerList.txt | ForEach {
$computerName = $_
$props = @{
ComputerName = $computerName
Groups = ''
try {
$details = Get-ADComputer $computerName -Properties memberOf -ErrorAction Stop
$props.Groups = (($details.memberOf | ForEach { (Get-ADGroup $_).Name }) | Sort) -join ','
} catch {
$props.Groups = 'ERROR'
New-Object PsObject -Property $props
} | Select ComputerName,Groups | Export-Csv .\GroupList.csv -NoTypeInformation
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)
Maybe you are looking for
-
Not able to open R12 on fire fox
Guys, This morning I have updated my firefox and since then I am not able to go beyond self service page in R12. I am getting the below error: "In order to access this application, you must install the J2SE Plugin version 1.6.0_07. To install this pl
-
How to remove the # in excel upload
Hi experts, I am working on uploading the excel content and reading the data in the excel sheet. I am using function modules loc_conv = cl_abap_conv_in_ce=>create( input = lv_upload_file encoding = 'NON-UNICODE' endian = 'L'
-
How do I create event links in the FPM Application Editor?
I'm am attempting to add a new step to the roadmap of ESS/BEN Benefits Application. I've created a new VAC component and a corresponding view (using the "self-service administrator" role). When using the FPM Application Editor to create a new perspe
-
iMac 2010. Downloaded Yosimite. Now installing Install appears to have stopped at half way point. What next? Thanks!
-
Help please...U2 Ipod wont play when selected
my u2 ipod wont play certain sonds, its not on shuffle and i click certain songsand i can see it going past the one i want on its own and it starts playing a totally different one, Ex: i selected Back Then and it played Bang Out help i need help my i