UPTO total need to display for every continue month
Hi All,
In one of my report I need two type of columns
1. Month wise total - Coming correctly
2. UPTO total- In this column I need to display total of all previous invoices upto month for that column displays for a particular Customer.
Example :-
Customer
Sep-12
Sep-11
Aug-12
Aug-11
UPTO-Sep-12
UPTO-Sep-11
UPTO Aug-12
ABC
10
12
15
13
UPTO Aug 12 + Sep 12
UP TO Aug11+sep11
UP TO Jul-12+aug12
As per above example I need a running sum but in horizontal way and as per customer and Month.
Please suggest how I can achieve this.
Thanks in advance
Ashok K Gupta
Hi,
I tried all three function of Time Series but all three are not giving appropriate result.
Thanks\
Ashok
Similar Messages
-
How to control the data to display for every users?
Hello Experts,
Im creating a module in ORACLE forms6i and I want to control all the data to display for every USERs. I have 1 Table and it has 5 columns.
My module has 5 columns and 5 rows of records to display.
Problems:
For USER1, I want to display all DATA in column3 and column4 only and all remaining columns shoud be null.
For USER2 , I want to dislplay all data in Column1 only and all remaining columns should be null.
How can i control all the data to display for each columns? Can you help me please. Im using the Clear_Items but its not working only the first row are null but the remaining
rows has its records.
Thanks.
LalaI understand that you want certain columns not to show at all on the canvas when a certain user opens the form. Then, in the when-new-form-instance trigger, you should set_item_property(x_item, visible, property_false) for each item you do not want to be dislayed, depending on the user.
-
Hi experts,
I have table with date and price . This table contains date for every day and corresponding price for that day. But I need to write a sql ,which outputs data for every three months .
Eg: If my data in a table starts from jan-15-2009 to jan-15-2010 , then I should output the data like below .
Jan-15-2009 20
APR-15-2009 40
JUL-15-2009 15
OCT-15-2009 5
JAN-15-2010 45
Request all to help me . :(
many many thanks in advance.
Regards,
DirasaAn alternative that doesn't require dates to be generated (again, apart from the setup data - nb. I have incorporated some of the logic into the data setup subquery, in order to make the final sql statement easier to read. You would replace "trunc(p_period_begin - 1 + level)" in the period_start_date column with whatever your date column is called):
with param as (select trunc(sysdate) p_period_begin, 14 days_in_period from dual),
my_tab as (select p_period_begin,
days_in_period,
p_period_begin - 1 + level dt_col,
trunc(p_period_begin) + days_in_period*floor((trunc(p_period_begin - 1 + level) - p_period_begin)/days_in_period) period_start_date,
level amount
from param
connect by level <= add_months(p_period_begin, 12) - p_period_begin + 1)
-- end of data setup
select period_start_date,
sum(amount)
from my_tab
group by period_start_date
order by period_start_date;
PERIOD_START_DATE SUM(AMOUNT)
17/11/2009 105
01/12/2009 301
15/12/2009 497
29/12/2009 693
12/01/2010 889
26/01/2010 1085
09/02/2010 1281
23/02/2010 1477
09/03/2010 1673
23/03/2010 1869
06/04/2010 2065
20/04/2010 2261
04/05/2010 2457
18/05/2010 2653
01/06/2010 2849
15/06/2010 3045
29/06/2010 3241
13/07/2010 3437
27/07/2010 3633
10/08/2010 3829
24/08/2010 4025
07/09/2010 4221
21/09/2010 4417
05/10/2010 4613
19/10/2010 4809
02/11/2010 5005
16/11/2010 731 -
I need to display all the previous months sales.
Hi Gurus,
I have a requirement were i need to display all the previous months sales.
i.e if a user enters sept 2011, then in report it should display from April 2011(which is the first month of fiscal year).h
and also it should display total sales in another column till that month.
Regards
ArunHi,
Part 2 and Part 3 of the document.
Link: [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662?QuickLink=index&overridelayout=true]
Link: [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10fc4382-afa6-2c10-1380-fa224fe4324f?QuickLink=index&overridelayout=true]
Documents by 'Surendra Kumar Reddy Koduru' are always useful. Try to go through all of them.
All the best!!! -
Continuation: need data grouped for every week
SELECT * FROM aetnah_file_emp_cust_hist
WHERE pctl_employee_seqnum= 133774This query returns too many rows.
Now my requirement is that I need to get the most recent contrib_amt from this table for every week based on date column CTL_INS_DTTM.
This column CTL_INS_DTTM stores data about when a row wass inserted into this table.
pctl_employee_seqnum CTL_INS_DTTM(MM/DD/YYYY) contrib_amt
133774 01/01/2009 100
133774 01/02/2009 200
133774 01/03/2009 300
133774 01/04/2009 400
133774 01/05/2009 500
133774 01/06/2009
133774 01/07/2009 700
133774 01/08/2009 800
133774 01/10/2009 900
133774 01/12/2009 1000
133774 01/13/2009 1100
133774 01/14/2009 1200
I will need 52 columns (1 year = 52 weeks) totally and the most recent data for each week.
Ex:
Desired output:
01/07/2009 01/14/2009 01/21/2009 01/28/2009
700 1200 NULL 200
SELECT pctl_employee_seqnum, CTL_INS_DTTM, contrib_amt
FROM (
SELECT pctl_employee_seqnum, CTL_INS_DTTM, contrib_amt, ROW_NUMBER() OVER(PARTITION BY TO_CHAR(CTL_INS_DTTM, 'WMONYYYY')ORDER BY CTL_INS_DTTM DESC) RNO
FROM aetnah_file_emp_cust_hist
WHERE pctl_employee_seqnum= 133774
WHERE rno = 1This code above is doing that but I need to transpose this row wise data into column wise as mentioned on Desired output.
Total # of columns:52
Apologize for opening a new thread.....please help on this transpose issue
Thank You AllHi,
TO_CHAR (ctl_ins_dttm, 'WMONYYYY') will result in 59 or 60 groups per year, since all months (except February in common years) have (incomplete) 5th weeks.
If you want 52 equal-sized groups, then TO_CHAR (ctl_ins_dttm, 'WWYYYY') will get you closer. (You'll still have an incomplete week 53.)
To pivot those rows into one column, you can do something like:
SELECT MAX (CASE WHEN TO_CHAR (ctl_ins_dttm, 'WW') = '01' THEN contrib_amt END) AS week_01
, MAX (CASE WHEN TO_CHAR (ctl_ins_dttm, 'WW') = '02' THEN contrib_amt END) AS week_02
, MAX (CASE WHEN TO_CHAR (ctl_ins_dttm, 'WW') = '03' THEN contrib_amt END) AS week_03
, ...If you want data (like "01/07/2009") as the columns headers, then you'll have to use dynamic SQL. -
FPC wont let me render! I'm a video editor and have over 70 gb worth of videos on the imac which all need to be kept for various clients/backup/original versons but now beloved imac is full, only had it for 5 months! Will Ineed external hard drive every 5 months?? This can't be I've already resorted to getting rid of unsed applications such as garage band, iTunes,address book ect. I've trashed everything I could. what next ???
My video files are massive, converting them to a different format doesn't reduce the size of them it just turns them into mp4 or apple pro res ect
This iMac is for work only so there's no pictures, no music, no conacts, no messenger, no games, nonothing but videos!!Have a look at this: http://grandperspectiv.sourceforge.net/
It will show you exactly what is taking up all of your space.
You also may want to consider some kind of external storage just for your video projects. -
Project Server 2010 Resource Assigments - Need a license for every Resource?
I am trying to determine the requirements for Project Server 2010 licenses.
In Project Server 2010, I need to add resources to the pool, then assign a resource to a project task. The task will be maintained/statused through a manager, not the resource.
Does that resource need to have a Project Server license even if the resource never accesses Project Server even through PWA?Hi JenKranich,
You need licences only for users that will access
Project Server data by any means :
MS Project Pro, Sharepoint sites and/or
PWA.
But resources not associated with users are not "real person" accessing data but just informal entity, thus no need for licences for those resources.
It is important to note that if those resources can access the SharePoint site, since it contains Project Server data (risks, issues, deliverables), then they DO need a licence.
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS -
Need new display for White mac Book
My macbook has had a white display for the last year and a half...I have connectors to hook it to my tv...and that is how I use it.. I was wondering how do i go by getting a new dispay when my macbook product has been discontinued...
You can get the screen replaced on a White or Black non-unibody MacBook for $180 by mail. http://www.ebay.com/itm/Apple-MacBook-13-LCD-Screen-Repair-Replacement-/27048982 6401
-
Need to Clear table every 2 months....Urgent plsss
I need to clear a table every 2 months in a report program. Can anyone tell me how i can do this ???
Hi,
You can do it programatically.
first store the range of month in internal table. e.g in ur case the months are 04 to 08.
In ur print subroutine for header.
write this code.
loop at itab.
case sy-tabix.
when 1.
write: 10 itab-month.
when 2.
write: 20 itab-month.
when 3.
write: 30 itab-month.
when 4.
write: 40 itab-month.
when 5.
write: 50 itab-month.
endcase.
endloop.
this will display months in column.
Now you 've to display the required data for these months.
e.g ur main itab in which all the data is populated is itab_main.
loop at itab_main.
loop at itab. " months itab
case sy-tabix.
when 1.
write: 10 itab_main-value.
when 2.
write: 20 itab_main-value.
when 3.
write: 30 itab_main-value.
when 4.
write: 40 itab_main-value.
when 5.
write: 50 itab_main-value.
endcase.
endloop.
endloop.
This will display your output in columns for months.
Solution 2.
if u want to display ur month outpur in a new row.
U can use event.
at new month.
sort ur table by year month first.
hope it work.
Regards -
Need to display a group by month
i need to group my data by month, there are some dates that dont exist
i am using a date field but doenst contain every month.
i need to display jan, feb etc even if the date doesnt exist in the field
any ideas???To actually make it useful you will need to join it to your original data set. Unfortunately, you probably don't have the "MonthNumber" anywhere in your original data set, making a direct link impossible... as it is now.
So to carry the example out into something useful... (again for SQL Server... And using the AdventureWorks sample database)
IF object_id('tempdb..#Temp') IS NOT NULL
BEGIN
DROP TABLE #Temp
END
CREATE TABLE #Temp (Number INT, MonthName VarChar(20))
INSERT INTO #Temp (Number, MonthName) Values (1, 'January')
WHILE (SELECT MAX(Number) FROM #Temp) < 12
BEGIN
INSERT INTO #Temp (Number, MonthName) SELECT MAX(Number)+1, DateName(mm,DateAdd(mm,MAX(Number),0)) FROM #Temp
END
SELECT
c.FirstName,
c.LastName,
c.ModifiedDate,
t.Number,
t.MonthName
FROM #Temp AS t
LEFT OUTER JOIN Person.Contact AS c
ON t.Number = DatePart(mm,c.ModifiedDate)
ORDER BY c.ModifiedDate
DROP TABLE #Temp
... which will produce results like this...
FirstName LastName ModifiedDate Number MonthName
David Wruck 1999-01-31 00:00:00.000 1 January
Candy Spoon 1999-01-31 00:00:00.000 1 January
Jane Parkinson 1999-01-31 00:00:00.000 1 January
Nuan Yu 1999-01-31 00:00:00.000 1 January
Bjorn Rettig 1999-02-01 00:00:00.000 2 February
Manoj Syamala 1999-02-01 00:00:00.000 2 February
William Vong 1999-02-01 00:00:00.000 2 February
Marie Reinhart 1999-02-01 00:00:00.000 2 February
Hope this helps,
Jason -
Contracts Price updation for every three months
Hi Experts,
we need to change multiple condition enties in contracts.All prices need to change and we need to update them
to new level. Since the field NET PRICE is grey I have to open each
individual item in the valid period and change price by price.
Since we have to update approx. 20 contracts every 3 months we would like to know
if there is an easier function / possibility to upload the data to SAP
for the contracts.
Please provide you needful suggesitions.
Rgds,
RKHI Jack,
I can see this report RM06ENP0 with Tcode ME3P.
Can you pls guide me how to run the report RM06ENP0 with the "No Date Check" selected.
I mean where i have to select and what type of inputs need to maintain.
I dont have any idea if i run this report what will happend and how the prices will change for all contracts
Pls elaborate in detail.
Above "Qui" mentioned to use MEKR Tcode,if you have any idea on this also pls share me some points.
Brgds,
RK -
Need working days for a particular month and year
Hi,
I need the number of working days for a particular month and year.Saturdays and Sundays are holidays.
Regards,
VigneshTry this:
SQL> var yr NUMBER;
SQL> exec :yr := 2010;
PL/SQL procedure successfully completed.
SQL> with t as (select :yr yr from dual)
2 SELECT TO_CHAR(dat,'MON-RR'),COUNT(*) FROM
3 (select TO_DATE('01-JAN-'||yr) + lv dat FROM
4 (select level - 1 lv,yr from t
5 connect by level <= TO_DATE('31-DEC-'||yr) - TO_DATE('01-JAN-'||yr) + 1))
6 WHERE TO_CHAR(Dat,'DY') NOT IN ('SAT','SUN')
7 GROUP BY TO_CHAR(dat,'MON-RR');
TO_CHAR(DAT, COUNT(*)
APR-10 22
AUG-10 22
DEC-10 23
FEB-10 20
JAN-10 21
JUL-10 22
JUN-10 22
MAR-10 23
MAY-10 21
NOV-10 22
OCT-10 21
TO_CHAR(DAT, COUNT(*)
SEP-10 22
12 rows selected.
SQL> Edited by: AP on Jul 27, 2010 7:54 AM -
Customized netweaver login screen needs seperate login for every mime
Hi all,
we are running ECC6 and have customzed our netweaver login screen (copied CL_ICF_SYSTEM_LOGIN to <ownClass>, redefined HTM_LOGIN, maintained it in SICF, etc.).
And it works great - but:
At the first call the system wants login/pw of each mime used on the login screen.
But only for the first time.
I can't repeat it.
But it happens to every user.
Correctly deleting cookies (close all screens; control->internet options-> delete cookies) CANNOT repeat the behaviour.
Globally invalidating http server cache CANNOT repeat the behaviour.
mimes on login screen are called like:
https://<servername>:<https-port>/sap/bc/bsp/sap/public/bc/bsp/<applname>/xy.jpg
So we need a login to see our login screen
pls help...> All URLs under /sap/public run with user SAPSYS and so don't need any login.
Bugger here is that the code which retrieves the object from the MIME repository makes an authorization check.
CL_MIME_SERVICES method -> MIME_CHECK_AUTHORITY
So it cannot run under SAPSYS as the user cannot be assigned any authority, let alone S_DEVELOP... (which in my opinion is much too strict here...). You will need to save a SERVICE user's logon credentials into the ICF service to make it visible to the user who has not logged in yet.
Or... use SSO..
Cheers,
Julius -
Need mirrored display for harddrive erase
I am trying to erase my hard drive in order to get rid of it. My laptop screen is broken (parts are blacked out and entire screen goes black). I have it hooked to an external monitor with that monitot being the default and the mirrored display option checked. However, when I put in the installation disk and hit c to start the erasing process, only the Macbook monitor works. This doesn't help me because I cannot see the options. Any advice on how to keep the external monitor on mirrored display? It seems to jump to extended because I can see a background but nothing else. When I do a hard shut down and turn back on, the mirrored option is back working. I am stumped.
In System Preferences>Display on the MacBook screen there should be an Arrangement tab when you have the MacBook hooked up to the monitor and both screens working. When you click the Arrangement tab do you see two monitors side by side? One of them will have a Menu Bar at the top. Just click on the Menu Bar and drag it to the second monitor. That will make the second monitor your main screen.
The monitor will now have the Dock and Menu Bar and windows will open on it. -
Ssh-agent need to start for every terminal since Yosemite
Hi
Since I have upgraded to Yosemite I have to manually start the ssh-agent on every new terminal/bash window/tab.
I know I could manually start the agent in bash_profile but trying to work out what may be causing the problem...?
Steps:
Load terminal
ssh-add -list
- Could not open a connection to your authentication agent.
ssh-add ~/.ssh/myPrivateKey
- Could not open a connection to your authentication agent.
ssh-agent -s
ssh-add ~/.ssh/myPrivateKey
ssd-add -list
- success
Load a new tab - rince and repeat...
Mac Book Pro Mid 2010
Yosemite 10.10
Bash 4.3.30
Thanks!
0Bash 4.3.30
That's not the system bash.
Maybe you are looking for
-
Hp laserjet pro mfp m126nw printing issues in windows server 2008 r2 standard
hp laserjet pro mfp m126nw printing issues in windows server 2008 r2 standard printer installed but print not coming ... please give me solutions of this problem
-
This is kind of a mess of a question without any real specifics. I'm just having a heck of a time managing my MP3's since I upgraded my zen touch to Plays for Sure. I joined napster to go, and I have the windows media player 0, and I downloaded the n
-
Hi guru's MWST 010 Access not executed (Requirement 008 not fulfilled) can anyone please tell me why this error coming in pricing.I checked the entry for condition record as well.
-
Setting parameters for synching pci-6534 cards via RTSI bus
I have been performing high-speed, buffered, looping output with one pci-6534 card. I am now adding a second 6534 card that I need to sync to the first card via the RTSI bus. I have successfully used the RTSI bus to see the master REQ1 and ACK1 sig
-
What is the Easiest way to sequence records in a Interface?
I very simply want to add a sequence number in the Mapping definition to an interface as I process records and write to a simple file. I want to start at 1 each time and process to X. I would think their should be a reserved word like (rowcount or co