P6V7 - Show Finish Date without the year
I have a project with specific milestone dates. To the left of the each milestone in the Gantt, I expect to show the milestone date in terms of DD-MM and ommit the year.
When selecting to show the finish date, I get the full date. Is there a way to truncate what is being shown?
You've been given one solution which is to generate your list of dates and outer join to that.
It's also possible you could make use a partition outer join (introduced in Oracle 10).
http://www.oracle-developer.net/display.php?id=312
Outlines a couple of possible paths.
Similar Messages
-
In an effort to correct an issue with my creative cloud, I deleted bridge cc. Now I need to reinstall but it shows up in my creative cloud app as up to date without the option to download. How do I access it to download and reinstall?
Bmullinax please see CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html for information on how to reinstall Bridge CC.
-
How can I get a date without the hour from sql server 2000 ?
hellou!
I have a JTable, and one of it's columns has to show a date. This date i have to show is specified as datetime on the Sql Server 2000 database where I have to take the data.
the query of the dataset attached to the JTable is something like "select * from Table".
The problem is that the JTable column that displays the date shows the date and the hour, for example:
7/10/04 0:00:00
and I need to show the date without the hour, only the 7/10/04. Can anyone tell me how to do that?
thank you very much! : )The easiest way to format a date is with java.text.SimpleDateFormat. When creating it you pass a format string which can be used to parse or format date objects.
SimpleDateFormat formater = new SimpleDateFormat( "MM/dd/yyyy" );
// Get date objects directly from sql
Date foundDate = result.getDate( 1 ); //where result is the ResultSet and 1 is the date column
String formatedDate = formater.format( foundDate );Now the JTable's table model can be adjusted to store a formated String instead of a Date. If for some reason it is required to store the value as a Date overload the table model to return the formated string when getValueAt is called. -
Function module to get the dates from the year and the period
Is there a function Module to get the dates from the year and the period
Check with :
To get last day of period use .
LAST_DAY_IN_PERIOD_GET.
To get last of month Use :
RE_LAST_DAY_OF_MONTH
HRVE_LAST_DAY_OF_MONTH
LAST_DAY_OF_MONTHS
ISB_PREVIOUS_PERIOD_DATE_GET
Thanks
Seshu -
How to show all days of the year 1900
how to show all days of the year 1900
As you show days for any other year.
Do you want to catch us on the fact year 1900 wasn't a leap year?
Regards
Etbin
select to_date('1.1.' || :the_year,'DD.MM.YYYY') + level - 1
from dual
connect by level <= to_date('31.12.' || :the_year,'DD.MM.YYYY') - to_date('1.1.' || :the_year,'DD.MM.YYYY') + 1*** not tested ***
Message was edited by: Etbin
user596003 -
Function Module to find the Begin Date of the Year
Hi Experts,
Could you let me know if there is a FM to find the "Begin Date of the Year".
I appreciate your help.
Thanks a lot.Hi,
Do you want the Begin date of the <b>current</b> year..Try this..
DATA: V_DATE TYPE SY-DATUM.
V_DATE = SY-DATUM.
V_DATE+4(4) = '0101'.
WRITE: / 'Beginning date of the year ' , v_date.
If you are mentioning about the Fiscal year..Then you can use the FM PERIOD_DAY_DETERMINE
Thanks,
Naren -
''duplicate - https://support.mozilla.com/en-US/questions/834814''
What is the custom print option within Firefox to print the date without the time?
(e.g. 04/08/2010 instead of 04/08/2010 11:15, noting that using the custom print option "&D", also includes the time...)Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
To have new tabs open a specific web site, add one of the following extensions:
http://sogame.awardspace.com/newtaburl/
https://addons.mozilla.org/en-US/firefox/addon/777 -
How to get only the date without the time in the footer of a printout?
Is there a way to get only the date without the time in the footer of a printout?
As far as I can tell, there's no built-in option to get the date printed without the time. It's hardcoded in a C++ file.
As a workaround, you can enter custom text for the footer, but it would need to be updated every time the date changed. I can think of a couple ways to automate that:
* An add-on (but I'm not aware of any add-on for this)
* External process to push a new date into prefs.js, a settings file that stores your header/footer preferences, among others (but Firefox should be closed when you update this file, and it will be read when you restart)
Not easy enough, I know. -
Wy has apple restricted the use of adobe flash player? How can one watch things like shows from CBS without the flash player?
This has been discussed a billion times. Please search before posting.
Read this: http://www.apple.com/hotnews/thoughts-on-flash/
CBS has apps for watching its shows. Search the AppStore. -
7.4.00070 Ticket date format showing as day of the year ie 191-jul-15
http://community.spiceworks.com/help/Date_Time_Formatting?utm_campaign=app_help&utm_medium=app&a...
SW help on the topic.There is an issue in the latest version where it is sowing the day of the year instead of the day of the month. I have tried changing it via setting to dd-mm-yyyy but nothing happens
This topic first appeared in the Spiceworks Community -
Showing dimension data without a fact record
To explain my requirement, lets say I have 3 tables
City(Dimension shows all city information)
Day(Date Dimension with all dates for some years(past and future))
Sales(Fact table showing all sales measures, multiple records for a city and day)
A sample query to retreive data i need
select city.name,day.name,SUM(sales.amount) amount
from City,Day,Sales
where city.code = sales.city_code
and day.date_value = sales.transaction_date
group by city.name,day.name
Now if there is no sales transaction for a particular day and city, still i want to show the day and city with amount as 0
The solution i can think of is doing a Cartesian on city and day tables use it as an inline view and then do an outer join with sales table.
Is there any better way to achieve this, using some simple query logic or any advanced feature?
Any inputs on the above would be of great help.
Thanks
Kranthi
Edited by: user12033529 on Sep 12, 2010 6:57 AMHi, Kranthi,
Welcome to the forum!
Whenever you have a proiblem, please post your version of Oracle (e.g. 10.2.0.3.0); a little sample data in a form people can use to re-create the problem (e.g.
CREATE TABLE city
( city_id NUMBER (6) PRIMARY KEY
, city_name VARCHAR2 (20) NOT NULL
INSERT INTO CITY (city_id, city_name) VALUES (1, 'Asheville');
INSERT INTO CITY (city_id, city_name) VALUES (2, 'Bryson City');
INSERT INTO CITY (city_id, city_name) VALUES (3, 'Cherokee');
CREATE TABLE day
( dt DATE PRIMARY KEY
INSERT INTO day (dt)
SELECT DATE '2010-09-10' + LEVEL
FROM dual
CONNECT BY LEVEL <= 3;
CREATE TABLE sales
( sales_id NUMBER (6) PRIMARY KEY
, city_id NUMBER (6)
, sales_dt DATE
, amount NUMBER (9)
INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (11, 1, DATE '2010-09-01', 10);
INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (12, 1, DATE '2010-09-11', 20);
INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (13, 1, DATE '2010-09-12', 40);
INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (14, 1, DATE '2010-09-12', 80);
INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (15, 2, DATE '2010-09-11', 160);
INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (16, 2, DATE '2010-09-11', 320);
COMMIT;) and the results you want from that data (e.g.
CITY_NAME DT TOTAL_AMOUNT
Asheville 11-Sep-2010 20
Asheville 12-Sep-2010 120
Asheville 13-Sep-2010 0
Bryson City 11-Sep-2010 480
Bryson City 12-Sep-2010 0
Bryson City 13-Sep-2010 0
Cherokee 11-Sep-2010 0
Cherokee 12-Sep-2010 0
Cherokee 13-Sep-2010 0).
user12033529 wrote:
... The solution i can think of is doing a Cartesian on city and day tables use it as an inline view and then do an outer join with sales table.
Is there any better way to achieve this, using some simple query logic or any advanced feature?For this particular problem, I think that is the best way.
There is another way: the SELECT ... PARTITION BY feature (also know as Query Partitioning ).
For example:
WITH all_cities AS
SELECT c.city_name
, s.sales_dt
, s.amount
FROM sales s PARTITION BY (city_id)
RIGHT OUTER JOIN city c ON s.city_id = c.city_id
SELECT a.city_name
, d.dt
, NVL ( SUM (a.amount)
, 0
) AS total_amount
FROM all_cities a PARTITION BY (city_name, sales_dt)
RIGHT OUTER JOIN day d ON a.sales_dt = d.dt
GROUP BY a.city_name
, d.dt
ORDER BY a.city_name
, d.dt
;It seems like you should be able to do this without a sub-query, but I don't know how.
Query Partitioning is really useful when you want to include only some dimensions that are actually present in the fact table. For example, if you wanted to show only the cities that actually had sales (that is, in this example, if you didn't want to include Cherokee), but you do want all dates in the day table for each city.
Query Partitioning was new in Oracle 10. If you have an older version, I think a cross-join, like you originally suggested, is the only reasonable way.
Edited by: Frank Kulash on Sep 12, 2010 1:14 PM -
Basic start date and basic finish date in the maintenance sub-order
Hi guys,
when I create a maintenance sub-order by the transaction IW36 are the Basic start date and the Basic finish date taken,inherited from the principal Maintenance order?And if it is in this way,is there the possibility to put these two dates as a current day only on the maintenance sub-order ?Thanks in advance...
MaximilianHere is my code
DATA : lv_date_diff TYPE i.
lv_date_diff = caufvd_imp-gltrp - caufvd_imp-gstrp.
caufvd_exp-gstrp = sy-datum.
caufvd_exp-gltrp = sy-datum + lv_date_diff.
This is a 4 year old answered message. Please open a thread for your specific query.
-Paul
Moderator
Edited by: Paul Meehan on Nov 24, 2011 8:42 AM -
Date function to pull back dates of the year?
is there a built in function for returning all dates (whatever format) between to dates ?
Example:
Select functionname('2009/06/01', 'yyyy/mm/dd), ('2009/06/05', 'yyyy/mm/dd')
from dual
Wanted results
2009/06/02
2009/06/03
2009/06/04Hi,
user11210446 wrote:
Here is what I'm trying to do,
There is a start date and an end date. I have US holidays for current year in a table so for example christmas 12/25/2009
I want to show dates between the start date and end date, and if there is a holiday on that date it will not show.
make sense
so if a user puts 12/23/2009 for start and 12/29/2009
it would show
12/24/2009
12/26/2009
12/27/2009
12/28/2009Yes, that's very clear.
I would actually do that with a NOT IN sub-query
SELECT TO_DATE ('&start_date', 'MM/DD/YYYY') + LEVEL - 1
FROM dual
WHERE TO_DATE ('&start_date', 'MM/DD/YYYY') + LEVEL - 1 NOT IN
SELECT appropriate_column
FROM holiday
CONNECT BY LEVEL <= 1 + (TO_DATE ('&end_date', 'MM/DD/YYYY') - TO_DATE ('&start_date', 'MM/DD/YYYY'));where &start_date and &end_date are substitution variables in MM/DD/YYYY format. You could use bind variables just as well.
This assumes the DATEs in holdiay are all midnight. If not, use TRUNC (appropriate_column).
Edited by: Frank Kulash on Jun 4, 2009 12:59 PM
There's nothing like clicking that "Save" button to give you better ideas!
MINUS is a little simpler than NOT IN:
SELECT TO_DATE ('&start_date', 'MM/DD/YYYY') + LEVEL - 1
FROM dual
CONNECT BY LEVEL <= 1 + (TO_DATE ('&end_date', 'MM/DD/YYYY') - TO_DATE ('&start_date', 'MM/DD/YYYY'));
MINUS
SELECT appropriate_column -- or TRUNC (appropriate_column)
FROM holiday
ORDER BY 1; -
Input ready query is not showing loaded data in the cube
Dear Experts,
In Input ready query we have problem that it is not showing the values which was not entered by throught hat query. Is any settings in input ready query that we can do to populate the loaded data on the cube as well as data entered through Input ready query itself.
Thanks,
Gopi RHi,
input ready queries always should display most recent data (i.e. all green and the yellow request). So you can check the status of the requests in the real-time InfoCube. There should exist only green requests and maybe at most one yellow request.
In addition you can try to delete the OLAP cache for the plan buffer query: Use RSRCACHE to do this. The technical names of the plan buffer query can be found as follows:
1. InfoCube\!!1InfoCube, e.g. ZTSC0T003/!!1ZTSC0T003 if ZTSC0T003 is the technical name of the InfoCube
2. MPRO\!!1MPRO, e.g. ZTSC0M002/!!1ZTSC0M002 if ZTSC0M002 is the technical name of the multiprovider
If the input ready query is defined on an aggregation level using a real-time InfoCube, the first case is relevant; if the aggregation level is defined on a multiprovider the second case is relevant. If the input-ready query is defined on a multiprovider containing aggregation levels again the first case is relevant (find the real-time InfoCubes used in the aggregation level).
Regards,
Gregor -
Report shows no data in the Viewer
Hello,
i'm new to Crystal Reports and i have to develop a few Reports.
I load the data with a stored procedure form a sql-server. This is working and i get all datas i need. But the Report Viewer doesn't show any data.
I don't know why.
If i do it over a select statement and not a stored procedure, the Report Viewer shows me each data set up to 9 times.
I'm working with three tables.
Here is the c# code i wrote.
command = new SqlCommand();
command.Connection = connection;
command.CommandType = CommandType.StoredProcedure;
SqlParameter myParam = new SqlParameter("@FormulareAuftragNr", SqlDbType.VarChar, 5);
myParam.Value = AuftragNr;
command.Parameters.Add(myParam);
command.CommandText = "dbo.Abfrage_Arbeitsplan_Bericht";
connection.Open();
SqlDataAdapter dataAdapter = new SqlDataAdapter(command);
ds = new DataSet("ABC");
dataAdapter.Fill(ds, "dbo.Abfrage_Arbeitsplan_Bericht");
druckarbeitsplan.SetDataSource(ds);
CR Version : latest
VS Version : 10.30319.1
OS : Windows 7
it is for an Windows App
JohannesCR Version : latest
That is not enough info. All my content below is based on the assumption that you are using CRVS2010 (V. 13.x)...
The code does not show you loading an actual report(?). Also, I'm assuming that after:
druckarbeitsplan.SetDataSource(ds);
you have code to show the report in the viewer or you're printing exporting the report?
For datasets see [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533323335333433333332%7D.do] KB. Also, make sure you are using the full 4.0 framework, not the client framework.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
Maybe you are looking for
-
How to save session state for a text item
hi @averyone, i designed in interactive report with one apex_item.text field, let's name it "count" normally the report has more then one pages. the report should work like a kind of a shopcart. the user enters some data into "count" and moves on to
-
What is the procedure to transfor the data to idoc.
Hi Abapers, What is the procedure to transfor the data to idoc. I have added some new fields in my program. so now i need to transfer those same filed into IDOC. Can any body tell me the procedure. Points will be given.
-
WD ABAP and PORTAL: Logging the user out
I have a requirement where I need to logout the user of my web dynpro abap application(the application resides in portal). I need to log him out of portal. How would I do that? Thanks in advance
-
I made a video of our summer vacation on imovie. It's over an hour long. When I try to share it, the audio syncs incorrectly at about the 15 minute mark and is off for the rest of the movie. Is there a way to fix this? I think I have imovie 09 with a
-
Flash 9 downgrade to v7 for Windows CE
We have a project that has been developed using Flex 2 and then generated into some Flash 9 SWFs. The developers did not appreciate that Windows CE, the platform for the product, cannot run Flash 9, only Flash 7. Is there a profiler tool that will hi