Year wise total
Hi i am getting data for month wise..
month wise diffrent data is coming ...
i want to sum year wise total based on month wise total..
how can i do this...
As a sample code...i given here..
give your code too..
data: yr(4) type c,
sum(10) type p decimals 2.
sum = 0.
sort itab by mdate.
loop at itab into wa.
sum = sum + amount.
at end of mdate+0(4).
write:/ sum.
sum = 0.
end at.
endloop.
Message was edited by:
Ramu
Similar Messages
-
GRR3 report is not showing cost centers monthly wise totals
Hi,
we are having cost center report for full year company code currency report which was working in R3 system. after upgrade it is not showing monthly wise total currency values but when drill down it to actual line item level it is showing all totals. can anybody hlep me to identy issue.
Thanks,Dear Venu
Check any other standard summarisation report and see whether they are giving data or not. If not you need to implement note 1817039 to fetch summarisation data. But before that I suggest once again you do data collection upto the period and try running your report.If no success then read the note and apply it.
Regards
Rajneesh Saxena -
Primary Cost Element Report - Cost Center wise Totals
Dear Seniors,
Requirement is to have a report which gives Cost Center wise Totals (Net posted amount) for Primary cost elements with the following fields --
Company Code
G/L account
Business Area
Cost Center
Accounting Period
Fiscal Year
Net Posted Amount
Debit / Credit Indicator
Currecny
Which Table gives me this information ?
Thanks and Regards
KVKRHi
If you are on New GL - Then FAGLFLEXT (Totals table)
If not - Then GLT0 or tables startng with GLT*
You can also use reports FBL3N and subtotal on Cost Element/Cost Center
br, Ajay M -
How to save and month and year wise values
Hi friends,
in my ztable i have to enter values manually for month and year wise..
so i have to create parameter for month and year how to create it.
in my parameter month and year fields..
once he given month and year then he should enter values for fields..
i have doubt how to give parameter for this...table..
example: month: 1
year : 2007
after that user enter values for following fields.
kunnr
name
core values
noncorevalues
above fields user will enter values month wise ..
once he enter the values for january it should save ...
next he enter values for february and it will save..
when ever he want to see the january month data how can he see..
is there any logic for the above problem...Hai venkat,
I am not totally clear with your question some how i understood. I give my opinion may be it ll help ful to you.
In your ztable you want to enter the values for the fields kunnr, name, core values ,noncorevalues as per month.
As i say in your ztable add another field as month with other 4 fields. Provide the table maintenance for your table or else in se11 -> table display ->utilities -> table contents -> create entries is one way.
If you proivided maintenance for your table go to SM30. where you can manually enter values .
<b>reward if useful</b>
Regards,
sunil kairam. -
Need information in Year wise report
Dear All,
I am doing year wise report, in that i got total quantity for every month.
But my problem is if there is no transaction in that month i didn't get for that month, i need that month with total quantity is 0.
Please help to solve this issue.
thanks & Regards
AdinaTry this..
SELECT sum(po.No_POS) over(order by mths.dt) Quantity ,
to_char(trunc(mths.dt,'MM') , 'MON-YYYY') "Month"
from
(select count(poh.segment1) No_POS
, to_char(trunc(poh.approved_date,'MM') , 'MM-YYYY') Month_PO
from po_headers_all poh
where poh.type_lookup_code='BLANKET'
and poh.approved_flag='Y'
and poh.approved_date>=nvl(:P_FROM_DATE,poh.approved_date)
and poh.approved_date<=nvl(:P_TO_DATE,poh.approved_date)
group by trunc(poh.approved_date,'MM'))po,
(SELECT add_months('01-DEC-2005', lvl) dt
FROM (select level lvl
from dual
connect by level < 1000)) mths
WHERE to_char(trunc(mths.dt,'MM') , 'MM-YYYY')= po.Month_PO(+)
and mths.dt between :P_FROM_DATE and :P_TO_DATE
order by mths.dtMessage was edited by:
jeneesh
Tested Like..
SQL> select * from po_headers_all;
SEGMENT1 APPROVED_
1 28-SEP-07
2 23-SEP-07
1 09-AUG-07
SQL> SELECT sum(nvl(po.No_POS,0)) over(order by mths.dt) Quantity ,
2 to_char(trunc(mths.dt,'MM') , 'MON-YYYY') "Month"
3 from
4 (select count(poh.segment1) No_POS
5 , to_char(trunc(poh.approved_date,'MM') , 'MM-YYYY') Month_PO
6 from po_headers_all poh
7 --where poh.type_lookup_code='BLANKET'
8 --and poh.approved_flag='Y'
9 --and poh.approved_date>=nvl(:P_FROM_DATE,poh.approved_date)
10 --and poh.approved_date<=nvl(:P_TO_DATE,poh.approved_date)
11 group by trunc(poh.approved_date,'MM'))po,
12 --date is changed here and no extra subquery needed
13 (SELECT add_months(sysdate-365, level) dt
14 from dual
15 --dates are HARDCODED here
16 connect by level < (months_between(sysdate,sysdate-365)+1)) mths
17 WHERE to_char(trunc(mths.dt,'MM') , 'MM-YYYY')= po.Month_PO(+)
18 order by mths.dt;
QUANTITY Month
0 OCT-2006
0 NOV-2006
0 DEC-2006
0 JAN-2007
0 FEB-2007
0 MAR-2007
0 APR-2007
0 MAY-2007
0 JUN-2007
0 JUL-2007
1 AUG-2007
3 SEP-2007
12 rows selected. -
XML Publisher - Page Wise Total
We are facing problem in incorporating ‘Page Wise Total’ in Invoice Report - Invoices print at format CAP_ETA for Germany. It an XML Report and its output appear in PDF format. As per the new requirement sent by L1 team, we are required to make changes in RTF, to show ‘Page Wise Total’.
We have worked on this enhancement but unable to display ‘Page Wise Total’. We are able to display Sum Total of all the records appeared in three different blocks of records for that particular page at the end of the footer of Page, but not yet able to SUM UP total of these three Sum Total of three different blocks on that particular page.
For e.g. First page of my XML Report display three different Block of data as shown below with Subtotal of 38,600.00, 4,453.47 for 1st and 2nd Block respectively, but 3rd block records appeared partially on the first page and remaining appeared on the next page. So My Report should display ‘Page Wise Total’ or ‘Amount Forward’ as 52853.47, which sholud be carried forward to next page as ‘Amount Forward’ - 52853.47. The next page/second page will dispaly the remaing line records of the 3rd block and Subtotal( Please see attachment New_Layout_Invoice_TUM_English.doc)
Name Description Unit Quantity Price Amount in Euro
Rösner Fees Day 17.00 1,400.00 23,800.00
Schreiber, Clemens Fees Day 2.00 1,400.00 2,800.00
Slegers, Arnd Fees Day 4.00 1,400.00 5,500.00
Weiler, Andreas Fees Day 4.00 1,400.00 6,400.00
Subtotal: 27.00 38,600.00
Römer, Michael Expenses 2,253.79
Schreiber, Clemens Expenses 157.69
Slegers, Arnd Expenses 519.78
Weiler, Andreas Expenses 1,522.21
Subtotal: 4,453.47
Rösner, Michael Travel expenses 2,400.00
Schreiber, Clemens Travel expenses 2,000.00
Siegers, Arndt Travel expenses 1,800.00
Weiler, Andreas Travel expenses 2,000.00
Marek, Gruchala Travel expenses 1,600.00
Amount forward 52853.47
As mentioned above we are able to show independently three different Page Wise Total of each of these blocks by using syntax:
<?add-page-total:block1amount;’L_AMOUNT’?>, this syntax is used to sum up all the line records appeared in a block for a particular page and
<?show-page-total: block1amount;’#####.##0,000’;’ ###.##0,000)’?> is used to display the Sum Total calculated by above syntax.
But we are not able to further sum up all these Page Wise Total of different blocks.
Please find attached copy of RTF file from Production (V18_CAR253E1), copy of RTF (V18_CAR253E1_TEST Where we are testing these new changes) and .out XML output file.
I need help on this issue
Thanks & Regards,
Praveen S Negi
[email protected]
91-09930799325Hi Praveen,
You got the solution for page total in Invoice Report in XML publisher report.
Can you pls help regarding the same, i want to display total amount in the invoice report.
Thanks in advance,
Sunny -
month,year wise query.
Posted: Jan 3, 2012 11:28 AM Edit Reply
i have from anf to date parameter
if i enter from date 13-jan-2011 and to date is null (upto as on date )
i created matrix format.
but i need the how to print the months in matrix column cell
ex: dec/2010 jan/2011 feb/2011 mar/2011 .... dec/2011 jan/2012
based on from and to date parameters.
we need to start 31/dec/2010
how to write the query.what is the month & year on which you're based, to collect the data?
Thanks & Best Regards,
HuaMin -
Report display will be 2010,2011 year wise display and 2012 Month display
Hi,
I want to Create Report, output will be 2010,2011 year wise display, 2012,2013 month wise display and Fiscal year quarter display, all are display based on input value of Fiscal year data, please anyone guide me, How to do?
Thanks,
NandishHi,
How to assign KF to Time Characteristics,My report dsplay will be like this, For example
Input Fiscal YEAR=2010 to 2013
Material 2010 2011 APR.2012 to MARCH 2013
Quantity A1 200 300 * *
Quantity A2 300 400 * *
Also Display quarter wise display. How to do
Thanks,
Nandish -
Hello,
I want the GL account balances report on a yearly basis. Even though its not having any cumulative balances
For Example: if i provide range of FY from 2007 to 2014 then it should display the balances each year wise including Zero balances.
Kindly help me on this...!Hi Venkatesh
For GL following are the Tcode as mentioned below
1) FBL3N / FS10N
2) s_alr_87012301
3) s_alr_87012277
4) s_pl0_86000030
5) s_pl0_86000031
6) s_alr_87012282
7) s_alr_87012332
8) s_lar_87012287
9) s_alr_87012289
10) S_alr_87012291
11) s_alr_87012293
12) s_lar_87012341
13) s_lar_87012342
14) s_lar_87012344
15) s_alr_87012346
16) s_alr_87012347
Hope this will help you
thanks
Trinath -
Can i get month, quarterly, half yearly, yearly wise sales report basing on
hi,
sap gurus,
good evening to all,
how can i get month, quarterly, half yearly, yearly wise sales report basing on division and material.
is there any std transaction code for that.
customization is requried for that.
regards,
balaji.t
09990019711Standard SAP SD Reports:=
Statistic Group:
Purpose u2013 To capture data for Standard Reports, we require to activate Statistic Group as under:
--> Item category (Configuration)
--> Sales document type (Configuration)
--> Customer (Maintain in Master data)
--> Material (Maintain in Master data)
When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
Configuration:
IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
1. Maintain Statistics Groups for Customers
2. Maintain Statistics Groups for Material
3. Maintain Statistics Groups for Sales Documents
4. Assign Statistics Groups for Each Sales Document Type
5. Assign Statistics Groups for each Sales Document Item Type .....
All Standard Reports which are available are as under:
SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
3. Sales organization -> Sales organization / Sales office / Sales employee
4. Shipping point -> Deliveries / Returns
5. SD documents -> Orders / Deliveries / Billing documents ...
& so on.
Regards,
Rajesh banka -
Urgent:page wise total in smartforms
hi,all
How to do page wise total in smartforms ?
use table in smartforms for summary in pagebreak
ex. page1
10 (line 1)
20 (line 2)
30 (line 3)
total 100
page 2
40 (line 1)
50 (line 2)
total 50
Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)
Total in page 2 inccorrect = line2 (in page2) .
please help me guys to solve this problem..r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
first create a variable in Global difinations-->global data tab.(ex v_tot)
then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...
then in theTABLE>footer>inset a line display the variable(total u r using).here
after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
lem me know if u have any clarifications.
u can calculate as the above way for all the 6 fields.
please Avoid postin duplicate threads -
How to get data with out having any date/timestamp columns by year wise
hi,
how can i select years wise rows from tables,if that have not any date/timestamp column.Well Govind it quite depends on what is the data type of that column and the format in which it is stored.
If the data type is varchar2/varchar and all the values are in a uniform format then there is no problem. All you need to use is the to_date function to convert the supplied strings to default date format and then use to_char function to only extract the YY or YYYY or RR or RRRR aspect of the data.
For example: If the column is called 'hire_date' and it's data type is varchar2 and the entries in this column are all in a uniform format, say month,date,year like January,12,1999. What you need to do is convert this string to a default date value using to_date function, like to_date(hire_date,'format_model') In the format model mention the format of the hire_date string. The out put of this function can be fed into to_char to extract the year, like to_char(output_of_to_date,'YYYY')
I hope you got what I meant. Let me know if it was of any use. -
How to display values year wise in a request
Hi All,
My requirement is I have 3 years of data. I need to display that data year-wise in different tables at a time i.e., suppose if i have 2010,2011,2012 data then i need to display 2010 data in one table ,2011 data in next table and 2012 data in another table in same request. At a time i should get all three years of data but in different tables.
Here table in the sense data should be separated year_wise.
How can I achieve this?
Thanks in Advance,
Regards,
SindhuHi,
It is good know you got your requirement.
Pivot table is on of the specialized view we are using to create the report. The options available in the view is same like Microsoft Excel Pivot table view.
Pivot table optioins:
Page: It is like prompt in the view itselft. If we are adding column in the page it will show all the values of that column for e.g if you are adding year column into that page tab it will show the values of the year, so we can select any particular year and can filter the report in the view itself.
Section: It will separate the report into different section by the column value which we are having in section tab.
Measures: It is the special place for adding number columns (e.g amount, employee count, quantity,revenue and etc, like that ) basically called measures in the fact table. The column dragged into the measures have special aggregation rules such as sum, min, max, avg,count and etc
excluded: if want to add any column in the saved request but donot want to display, you can drag that column into excluded tab.
Rows: These option will display the report by value of the column wise.
Columns: It will separate the measure value by the column what we are having in this tab. (for e.g if we are putting year in column tab the column 'Revenue' in the measure table will be separated by year wise.
Please mark the answer if it helpful. -
Hi...
Can any one help for How to maintain year wise data in sql server.
In my project i manage year wise data i.e 1st April to 31 march.
At the end of the year the current year closing balances need to update as opening balance for the next year and previous data wont be changed.
And i dont know how to create year wise folders in one database....
Please show me some suggestion...Hi
According to your description, we got that you want to manage year wise data in one database. You can try to create a partitioned table with a Year column to store all the data. The partitioning feature is supported in SQL Server 2005 and later versions of
SQL Server. There are four major steps for implementing partitioning.
1. Create a filegroup or filegroups and corresponding files that will hold the partitions specified by the partition scheme.
2. Create a partition function that maps the rows of a table into partitions based on the values of a specified column.
3. Create a partition scheme that maps the partitions of a partitioned table to the new filegroups.
4. Create or modify a table and specify the partition scheme as the storage location.
For how to create a partitioned table, please review the following links:
Create Partitioned Tables and Indexes:http://msdn.microsoft.com/en-us/library/ms188730.aspx
Creating a table with horizontal partitioning in SQL Server:
http://www.mssqltips.com/sqlservertip/1796/creating-a-table-with-horizontal-partitioning-in-sql-server/
Thanks
Lydia Zhang -
hi experts,
i made an alv,which shows o/p like this:
truckno(likp-traid)| dono(likpvbeln)|party nm(kna1-name1)|skucode(lips-arktx)| qty(lips-lfimg)
wb03-7809 | 80000345 | msaha | frooti_pet | 40,000 cs
wb03-7809 | 80000346 | msaha | frooti_ tetra | 20,000 cs
wb03-7809 | 80000345 | msaha | appy1 ltr | 60,000 cs,
but client requirement is that,
they need item wise total ie say, frooti_pet is assigned against dono(80000345), bt this item can also be assigned against another do say(80000389) with sum qty in it.
they want total sum of a particular skucode(item) means frooti_pet(item wise) , that may be assigned in diff dono , but duff dono may be assigned in same truck
o/p will show,
like
truck no| skucode| total(partycular item wise).
how to do it?
thnx in advance.Declare the fields in the internal table in the below order.
dono(likpvbeln)|
skucode(lips-arktx)|
truckno(likp-traid)|
party nm(kna1-name1)|
qty(lips-lfimg)
Above the loop sort the internal table as follows.
Sort itab by dono skucode.
Loop at itab.
at end of skucode.
sum.
here move the Quantity to another variable.
endat.
endloop.
Edited by: Poorna Chandrasekhar on Jan 23, 2009 12:07 PM
Maybe you are looking for
-
What's with the pricing changes in tv shows?
I thought that the prices of "certian" tv shows was supposed to be going down, but I'm seeing them go up. Example 1: Had in my wish list to start buying CSI:Crime Scene Investigation. Price at the time of adding to wish list, $14.99. Now noticing the
-
I was reviewing add-on plugs and now i cannot get this articular one to go away. If it continues to be a problem I will have to uninstall mozilla.firefox. I appreciate any help you can give. thanks Sharon
-
Tracking history of update from forms
hello I want to keep track of changes to my table namely A .I have a history table namely B, its copy of table A. Whenever the user makes any changes to any of the record of table A that record along with the changes made should be copied into the hi
-
Hi, I am using OC4J that comes with the Jdeveloper. i have a login page that i wanna use for my projects. i put user name and password info in jazn-data.xml and also in principals.xml found in the same directory. but it is not working. Please help me
-
Lightoom wont import raw files from my EOS400D
I've just reinstalled my PC, this time using the 64-bit version of Windows Vista (no particular reason other than wanting to see whats it like). However when I tried to import the photos from my EOS400, all the raw format files were completely ignore