Date value for every 14 days
Hi ,
I have webi report which uses date as prompt and I have a bar chart on which I have to show this date on x-axis with variation of 14 days from the date selected by the user till 1 year.
If user selects 01-jan-2009, then on x-axis I have to show 01-jan-2009 , 14-jan2009, 28-jan-2009 , etc.,.,.,.
Please help me to implement this.
Im just a kid in WEBI
Regards,
Dirasa
Dirasa,
Just for clarification, you want to roll the dates for the first, fourteenth, and twenty-eighth for any month that is processed in the report?
Thanks,
John
Similar Messages
-
In ALV: Subtotals for every month, not for every day, possible?
Hello,
in my Alv-Grid I have a date column, which I want to use to generate subtotals. But I don't want to have a subtotal for every date, but for every month. Is there a method to accomplish this with subtotals? Thanks.
Regards, Lars.Hi Stembergg,
1. Its not possible with only date field.
2. However, if you have one EXTRA FIELD
which contains the Month
only then it is possible.
( You may hide this extra field if u don't
won't to display. But anyhow, u need to
modify your logic and the internal table
and accordingly populate the extra field)
3. There is contraint in alv
that we cannot use any function for any column value
for any claculation/grouping purpose.
Hope it helps.
Regards,
Amit M.
Message was edited by: Amit Mittal -
How to calculate acquisition value for specified day
Hi,
in my z program I have a problem how to calculate acquisition value for my asset for specified day.
Example:
I have asset created 8.7.2008 with TTYPE 104 (External asset acquisition) with value 5950.
30.11.2008 there is another TTYPE 272 (Retirement of current-yr acquis., w/o revenue) with value 950.
So BEFORE 30.11.2008 acquisition value is 5950. After is 5000. Is there any function module (or something else) in SAP system where I can send asset number and date a it return to me acquisition value for that day?
Many thanks for any answer!Hi,
your suggestion means that I have to compute acquisition value by myself (sum all TTYPE 1** - sum all TTYPE 2**). So SAP does't provide such functionality (LDB ADA have it, because it can compute acquisitiob value for specific day)?
Mant thanks for answer -
Calendar Shows Appointment for Every Day please help
First off, I'm a Microsoft .NET programmer and I LOVE my IPhone, my IPod and my Shuffle!
My IPhone Calendar shows the little "dot" for every day, even when I don't have appointments.
Can someone please help me get the dots off so I can look at my calendar and tell when I have events scheduled?
Here is my setup:
Outlook 2003 - Not connected to Exchange
Windows XP Pro
Thank you!
IBM Compatible Windows XP Pro I love my IPhone and IPod and Shuffle!When I click on the day it says "No Events".
I have people's birthday's that occur every year if that's what you mean by reoccurring, but who doesn't have that in their calendar?
I can take the date back to 1997 to way before I started entering appointments and it still shows the "dots".
The things I've read explain the "dots" mean I have an appointment on that day.
I appreciate the help so far. Solving this would be a great improvement for my calendar!
Thank you for your time. -
How to fetch year till date value for earning for current ,last and year
hi,
how to fetch year till date value for earning for current ,last and year before that from payroll result
plz reply soon,
pratyushDear Pratyush,
Pick this from CRT.
Use LDB PNPCE & Fire event GET PAYROLL &
then you can pick from CRT.
Hope this helps.
Kindly reward in case useful.
Regards & Thanks,
Darshan Mulmule -
How to avoid the Amount and Date values for VOID Cheques
Hi All,
I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
Can any one tel me how to avoid the Amount and Date values for VOID Cheques
Your help will be greatly appreciated.
Regards
YathishHi,
I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
Regards
Subramanian -
I have 2 displays 1920x1080 and 3840x2160,
I use 1920x1080 for every day work, some pages I would like to open in or redirect to the 3840x2160 display, is this possible?No, but there is a developer tool that you can add a custom size to. It is called Responsive Design View.
-
Team Calendar Iview showing all employees absent for every day?
Hi All,
We're using r/3 4.7, ESS 50.4 and MSS 60.1.20. The team calendar displays with all employees absent for every day. Clearly, this is not correct.
Is there extra config to be done or something that we are missing?
Thanks in advance,
Liz.config issue
-
Tuning code to return results for EVERY DAYS even if there is no data.
Hi,
SELECT a,b,c,DAY (some days aren't in the results because the is no data for this day)This code returns all days of the month
SELECT DAYS_OF_MONTH FROM DUAL....How can I use both queries together so that the result returns data for all days (if no data it will write 0)
Someone said a union would do the trick. I was unable to make it work.
Regards,
THKKK
Edited by: The Hong Kong King Kong on May 4, 2010 7:36 AMHi,
So this is what I've got and it does not compute. ( It's giving ORA-00904 DAYSOFMONTH NOT VALID IDENTIFIER --> DAYS_OF_MONTH = SERV1.DAY(+)
WITH all_days AS
SELECT
TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'DD') *DAYSOFMONTH*
FROM DUAL
CONNECT BY LEVEL <= TO_NUMBER(TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-1)),'DD'))
SELECT *all_days.DAYSOFMONTH*, nvl(SERV1.DAY,'TOTAL MONTH:') DAY,
nvl(SUM(SERV1.GOOD),0) GOOD1,
nvl(SUM(SERV1.WRONG),0) WRONG1,
nvl(SUM(SERV2.GOOD),0) GOOD2,
nvl(SUM(SERV2.WRONG),0) WRONG2,
nvl(SUM(SERV3.GOOD),0) GOOD3,
nvl(SUM(SERV3.WRONG),0) WRONG3,
(nvl(SUM(SERV1.GOOD),0)+nvl(SUM(SERV2.GOOD),0)+nvl(SUM(SERV3.GOOD),0)) TOTAL_GOOD,
(nvl(SUM(SERV1.WRONG),0)+nvl(SUM(SERV2.WRONG),0)+nvl(SUM(SERV3.WRONG),0)) TOTAL_WRONG
FROM (SELECT TO_CHAR(FINISHED, 'dd') DAY,
SUM(CASE
WHEN STATUS_CODE IN (4, 12) THEN 1
ELSE 0
END) GOOD,
SUM(CASE
WHEN STATUS_CODE NOT IN (4, 12) THEN 1
ELSE 0
END) WRONG
FROM my_table
WHERE SERVER_NAME = 'somename1'
GROUP BY TO_CHAR (FINISHED, 'dd')) Serv1,
(SELECT TO_CHAR (FINISHED, 'dd') DAY,
SUM(CASE
WHEN STATUS_CODE IN (4, 12) THEN 1
ELSE 0
END) GOOD,
SUM(CASE
WHEN STATUS_CODE NOT IN (4, 12) THEN 1
ELSE 0
END) WRONG
FROM MY_TABLE
WHERE SERVER_NAME = 'somename2'
GROUP BY TO_CHAR (FINISHED, 'dd')) Serv2,
(SELECT TO_CHAR (FINISHED, 'dd') DAY,
SUM(CASE
WHEN STATUS_CODE IN (4, 12) THEN 1
ELSE 0
END) GOOD,
SUM(CASE
WHEN STATUS_CODE NOT IN (4, 12) THEN 1
ELSE 0
END) WRONG
FROM my_table
WHERE NOM_SERVEUR_RAPP <> 'somename1'
AND NOM_SERVEUR_RAPP <> 'somename2'
GROUP BY TO_CHAR (FINISHED, 'dd')) SERV3
WHERE Serv1.JOUR = Serv2.DAY(+)
AND Serv2.JOUR = Serv3.DAY(+)
*AND JOURS_DU_MOIS = SERV1.DAY (+)*
GROUP BY ROLLUP (SERV1.DAY)
ORDER BY 1;Also, the LEFT OUTER JOIN cannot be used along with (+).
Please help! -
How to load delta, changing the name of file for every day with open hub?
Hi gurus,
I load daily delta data from ODS to flat file, using open hub.
The file is located on server. Now, if I do delta load from ODS to flat file, every day the file is overwritten, because it has the same name.
I want to load delta data everyday to different file name, for example BW_20060101 , BW_20060102, BW_2006_01_03 ....
How do I do that?
Best regards,
UrosHi Uros,
This thread may give you some idea
Changing the file name n Flat file Extraction
https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002201112003E
Regards,
BVC -
How do you make the date change for every entry when inserting.
Hello, I am making a daily vehicle inspection report for my truck and I would like to make a 7 day calendar but I would like to insert the date ie Monday Feb 22, 2010, Tuesday Feb 23, 2010 etc...and have it change for each day of the week. is there a way to do this? Also can you put an outline or a box around the 6 lines of text that you input.
Thank you
OttomanJerrold Green1 wrote:
Ottoman,
As Peter says, you can use a Table for this. You do not, however, need to enter two dates to fill with a series of dates. Dates are an exception to the general Fill rule. Just enter one, and fill down to get successive dates.
Other exception available:
a single cell is sufficient for every entries ending with a number :
president1
thief2
king3
behave this way.
Durations behave like numbers : two cells are required.
Yvan KOENIG (VALLAURIS, France) samedi 27 février 2010 18:20:29 -
Select last value for each day from table
Hi!
I have a table that stores several measures for each day. I need two queries against this table and I am not quite sure how to write them.
The table stores these lines (sample data)
*DateCol1 Value Database*
27.09.2009 12:00:00 100 DB1
27.09.2009 20:00:00 150 DB1
27.09.2009 12:00:00 1000 DB2
27.09.2009 20:00:00 1100 DB2
28.09.2009 12:00:00 200 DB1
28.09.2009 20:00:00 220 DB1
28.09.2009 12:00:00 1500 DB2
28.09.2009 20:00:00 2000 DB2Explanation of data in the sample table:
We measure the size of the data files belonging to each database one or more times each day. The value column shows the size of the database files for each database at a given time (European format for date in DateCol1).
What I need:
Query 1:
The query should return the latest measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 150 DB1
27.09.2009 1100 DB2
28.09.2009 220 DB1
28.09.2009 2000 DB2Query 2:
The query should return the average measurement for each day and database. Like this:
*DateCol1 Value Database*
27.09.2009 125 DB1
27.09.2009 1050 DB2
28.09.2009 210 DB1
28.09.2009 1750 DB2Could someone please help me to write these two queries?
Please let me know if you need further information.
Edited by: user7066552 on Sep 29, 2009 10:17 AM
Edited by: user7066552 on Sep 29, 2009 10:17 AMFor first query you can use analytic function and solve it.
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select dt, val, db
from (
select row_number() over(partition by trunc(dt), db order by dt) rno,
count(*) over(partition by trunc(dt), db) cnt,
t.*
from t)
where rno = cntFor second you can just group by
with t
as
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss') dt, 100 val, 'DB1' db from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 150, 'DB1' from dual union all
select to_date('27.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1000, 'DB2' from dual union all
select to_date('27.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1100, 'DB2' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 200, 'DB1' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 220, 'DB1' from dual union all
select to_date('28.09.2009 12:00:00', 'dd.mm.yyyy hh24:mi:ss'), 1500, 'DB2' from dual union all
select to_date('28.09.2009 20:00:00', 'dd.mm.yyyy hh24:mi:ss'), 2000, 'DB2' from dual
select trunc(dt) dt, avg(val) val, db
from t
group by trunc(dt), db
order by trunc(dt) -
Not getting proper date values for original GI Date
Hi,
I have to Calculate Original GI Date based on Original promise Date and transport Date(Original GI Date = Original promise Date-transport Date) and I am getting Original Promise date as"21112008" and transport date as"20112008". when I subtract in Update rules as formula as (Original promise Date-transport Date) getting Original GI DATE as"01000001" as it is giving wrong date values.please help me whether i am going right way or is there any thing else i have to select in Update rule level (formula) to get proper date values or how can i approach to get original GI date.
it is QUITE Urgent...please help any one to solve the Issue.
REGARDS
VENKAT.Hi Venkatesh,
Please search SDN forum before you post any questions. There are lots of threads available for this scenarios.
Use formula variables in Bex in order to achieve your requirement.
Links below, may be helpful:
Formula variable with replacement path on system date
How to creae days count variable in SAP BI-BEx
http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/frameset.htm
Regards,
Ravi Kanth. -
'periods' show for every day in calendar??
I got Outlook 2007 and successfully synced my calendar. However, on my iPhone there is now a 'period' on every day, even when there is nothing scheduled for that day. I'm using Vista Home Premium and the calendar looks fine on my pc. Any ideas how to remove all the 'period(s)' from my iPhone calendar??
The problem is with recurring dates. On your calendar (iPhone)click the left arrow (you can hold it down) and find the 1st date that does not have a dot (it could be many years in the past, mine was back on 2003). Then, edit the end date to be the same as the start date (the display shows the end date before the start date). Hope this helps
-
How to parse the date value for the string 2003-04-25 11:53:11 IST
This is my database output for the date value(2003-04-25 11:53:11 IST). How to convet this string to Timestamp date value. Any one pl. help me
BUT ... there is a public static Timestamp valueOf(String s) method in the Timestamp class that might help.
http://java.sun.com/j2se/1.4.1/docs/api/java/sql/Timestamp.html#valueOf(java.lang.String)
Maybe you are looking for
-
SQL to compare 2 most recent rows in table
Hi, I am trying to compare STATUS fields ( Most recent to Next Most recent ) and select Most recent row if there STATUS values are different. SQL : select c.id,c.effdt,c.end_dt,c.status from table c ,table k where c.id = k.id and c.status <> k.status
-
Error with the data format in the TXT file, sending as an Email attachment
Hi all, I have an problem in the data formating in the TXT file while sending as an attachment via an email by using the FM "SO_DOCUMENT_SEND_API1". For eg: The data in the TXT file is looking like as follows: 0 0 0 0 2 L O U D S P E A K R O
-
My wifi is not working. It has no indication. I am living in Indonesia but I bought my iphone from apple online store. Can anyone help me how to fix my problem?
-
Problem finding native methods in java packages
Hi, I have a java class which uses some native methods written in OCamL. I wrote a C file which calls the OCamL code, and created the corresponding shared library using the jni. I then tested my java file and everything works fine, I can nicely call
-
Soap API error for reports 5 pages or more
Hi, I am using soap api to get reports from BI Publisher, I am able to print reports 5 pages, when i try to get reports with pages more than 5 pages getting this error. [Error] Execution (1: 1): ORA-06503: PL/SQL: Function returned without value ORA-