Show all Columns with datatype = date
Is it possible to select all columns with datatype = date in the Repository.
We like to cast it like dd.mm.yyyy.
Regards,
Stefan
Wouldn't it be easier to do it in the presentation services rather than the .rpd?
Update: anyways, if you wanna be nasty, use something like this:
CONCAT( CAST ( DAYOFMONTH("Siebel Data Warehouse"."Catalog"."dbo"."Dim_Incident (W_INCIDENT_D)"."CLOSED_DATE") AS VARCHAR ( 2 )), CONCAT('.', CONCAT( CAST ( EXTRACT( MONTH FROM "Siebel Data Warehouse"."Catalog"."dbo"."Dim_Incident (W_INCIDENT_D)"."CLOSED_DATE") AS VARCHAR ( 2 )), CONCAT('.', CAST ( EXTRACT( YEAR FROM "Siebel Data Warehouse"."Catalog"."dbo"."Dim_Incident (W_INCIDENT_D)"."CLOSED_DATE") AS VARCHAR ( 4 ))))))
Message was edited by:
ChrisBerg
Similar Messages
-
Compare a varchar2 segment column with a date column
Dear All ,
i have a segment column with datatype varchar2 with data sample like '2013/06/09 00:00:00' , i want to compare this column with date column
i tried many ways of conversion but not working like
select to_date(TO_NCHAR(substr('2013/06/09 00:00:00',1,11),'DD-MM-YY'))DATE_C from dual ---> giving invalid number
select TO_TIMESTAMP(TO_NCHAR(substr('2013/06/09 00:00:00',1,11),'DD-MM-YY'))DATE_C from dual ---> giving invalid number
can i have any suggestion for that please
thanks & best regardsHi,
Have you tried:
SELECT TO_DATE(SUBSTR('2013/06/09 00:00:00',1,10),'YYYY/MM/DD') DATE_C FROM dual
Octavio -
How to insert data in a column with uniqueidefier data type
Guys,
I need insert data in a column with uniqueidefier data type, when i am trying to that getting error.
error message says: "Conversion failed when converting from a character string to uniqueidentifier."
I have data in table a col1,col2,col3,col4 - col3,col4 has datatype as varchar and i am updating table b columns col1,col2 with table a col3 and col4.
Please guide how to do it.Hi,
Not any String can be convert to uniqueidentifier.
1. you have to make sure u use a value which is fir to be uniqueidentifier
2. Use convert or cast in the insert query in order to convert the string into uniqueidentifier
insert X ... convert(uniqueidentifier, 'string which fit to be convert to uniqueidentifier')
Please post DDL+DML for more specific help
DDL = Data Definition Language. In our case that is, CREATE TABLE statements for your tables and other definitions that are needed to understand your tables structure and there for let us to test and reproduce the problem in our server. Without DDL no one
can execute any query.
How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
DML = data manipulation language is a family of queries used for manipulating the data it self like: inserting, deleting and updating data. In our case we need some sample data in order to check the query and get result, so we need some indert query for
sample data.
If you post a "create query" for the tables and "insert query" with some sample, then we could help you without Assuming/Guessing. There is a reason that DDL is generally asked for and expected when discussing query problems - it helps
to identify issues, clarify terminology and prevent incorrect assumptions. Sample data also provides a common point of reference for the discussion. A script that can be used to illustrate or reproduce the issue you have, will encourage others to help.
[Personal Site] [Blog] [Facebook] -
Query showing all customers with or without transactions
The content of the cube are all customers with transactions only. I want to create a report that will display all the customers with or without transactions. I tried to create a multiprovider combining the sales cube and customer master data. I created a query but it only displays the customes with transactions. Is there any other way wherein i can generate a report showing all customers with or without transactions?
hi,
the same problem happened, but no update whether it's solved, 'selection constant' should work
Multiproviders and filter on time
the link mentioned should be this
http://help.sap.com/saphelp_nw04/helpdata/en/e7/5f983c1a356858e10000000a114084/content.htm
Re: Determining NULL records -
Hi All.
I have a control file which i need to add a column with header data value.
example
data file:
123456;201303
santiago;producto1;100
santiago;producto2;200
valparais;producto1;400
valparais;producto3;900
The control file skip the first column and load the three columns on the table, but, now i need to add other column with 201303 value constant of the first record and load it on the table.
Then
select * from table:
santiago producto1 100 201303
santiago producto2 200 201303
valparais producto1 400 201303
valparais producto3 900 201303
How i do this in the control file?
Regards!SCOTT@orcl_11gR2> host type test.dat
123456;201303
santiago;producto1;100
santiago;producto2;200
valparais;producto1;400
valparais;producto3;900
SCOTT@orcl_11gR2> host type test1.ctl
options (load=1)
load data
infile test.dat
replace
into table onecol_onerow
fields terminated by ';'
trailing nullcols
(filler1 filler, newcol)
SCOTT@orcl_11gR2> host type test2.ctl
options (skip=1)
load data
infile test.dat
append
into table test_tab
fields terminated by ';'
trailing nullcols
(col1, col2, col3,
newcol expression "(select newcol from onecol_onerow)")
SCOTT@orcl_11gR2> create table onecol_onerow
2 (newcol number)
3 /
Table created.
SCOTT@orcl_11gR2> create table test_tab
2 (col1 varchar2(15),
3 col2 varchar2(15),
4 col3 number,
5 newcol number)
6 /
Table created.
SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test1.ctl log=test1.log
SQL*Loader: Release 11.2.0.1.0 - Production on Mon May 6 10:46:44 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 1
SCOTT@orcl_11gR2> select * from onecol_onerow
2 /
NEWCOL
201303
1 row selected.
SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test2.ctl log=test2.log
SQL*Loader: Release 11.2.0.1.0 - Production on Mon May 6 10:46:45 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 4
SCOTT@orcl_11gR2> select * from test_tab
2 /
COL1 COL2 COL3 NEWCOL
santiago producto1 100 201303
santiago producto2 200 201303
valparais producto1 400 201303
valparais producto3 900 201303
4 rows selected. -
Function module u0091GET_PRINT_PARAMETERSu0092 Not showing all columns
Hello all,
I am using function module GET_PRINT_PARAMETERS
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
DESTINATION = LOC_DEST
COPIES = WF_COPIES
LIST_NAME = WF_LISTNAME
LIST_TEXT = WF_LISTTEXT
IMMEDIATELY = ' '
RELEASE = ' '
NEW_LIST_ID = 'X'
EXPIRATION = WF_DAYS
LINE_SIZE = 132
LINE_COUNT = 65
LAYOUT = 'X_65_132'
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = ''
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = WF_PARAMS
VALID = WF_VALID.
NEW-PAGE PRINT ON PARAMETERS WF_PARAMS NO DIALOG.
PERFORM WRITE_PDF_SUMMARY USING P_VALID P_COND P_ZMGC P_ZOGC P_PDF.
NEW-PAGE PRINT OFF.
But in my report there are 10 columns and in download file its showing only 6 columns .If I increase that size to X_65_200 Then it shows all columns But its not readable. Please tell me how can I use that fix size X_65_132 & it will show all columns .
Message was edited by:
megha waykarYou r right,But that program is already developed in following sequence
*==> 1. Create Virtual Spool
using FUNCTION 'GET_PRINT_PARAMETERS'
*==> 2. Write Report to Virtual Spool. Use NEW-PAGE PRINT ON option.
NEW-PAGE PRINT ON PARAMETERS WF_PARAMS NO DIALOG.
PERFORM WRITE_PDF_SUMMARY USING P_VALID
NEW-PAGE PRINT OFF.
*===> 3. Prepare Path and set spool number.
*===> 4. Convert List to PDF format.
Use function 'CONVERT_ABAPSPOOLJOB_2_PDF'
*==> 5. download PDF file
CALL FUNCTION 'GUI_DOWNLOAD'.
and it's not showing readable download file.
I don't have to change whole coding. I just want to increase that font. -
Not able to save date column with custom date format. in OBIEE 11g
Hi,
I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
But when I use this custom format and try to save the report in 11g its giving this below error.
''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
This HTML might be present in column headings, table headings, text views, narrative views, the print header,
or the print footer and must be removed before saving.''
Please let me know what changes I need to do for this.
Regards,
Ambika Nanda.Hi ,
privilage issues...check the security settings once..
Thanks,
Ananth -
I want to create an intelligent file in my finder to show all pictures with 3 stars or more. Trying this, I don't know the character of the stars to fill in the respective box ??
Thanks for your help.Take a look here: http://hints.macworld.com/article.php?story=20110314131100623
One of the comments suggests you can't use greater than or less than with the star rating in Finder.
You might try a Raw Query with the kMDItemStarRating.
In the criteria popup menu, select Other, then find the Raw Query entry.
You might have to play around with the syntax, but try "kMDItemStarRating >= 3"
Take a look here for query syntax: https://developer.apple.com/library/mac/ipad/#documentation/Carbon/Conceptual/Sp otlightQuery/Concepts/QueryFormat.html#//apple_ref/doc/uid/TP40001849-CJBEJBHH -
I am having trouble getting a numbers spreadsheet to hold different formats in the same column. A column with a date formatted heading will not convert to $ for the cells below. Any suggestions would help.
Hi Wayne,
Thank you for this response. I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.
Kind regards
Paul -
Hi,
For big table how about the way to show all columns in one line using Toad 10?
Best RegardsHuaMin Chen wrote:
Hi,
For big table how about the way to show all columns in one line using Toad 10?
Best RegardsApart from what Billy said, what is a "big" table? In what way would all columns not be shown in one line?
Even on the TOAD forums they wouldn't know what you're talking about. -
Let all channels(with same data structure)run one program
Hello,
I want to let all channels with same data structure run one program,how can i program it?
Thanks!Hi charleen,
You're going to need to provide more details for us to help you. In general "channels" do not "run" programs. You can, however, run a program which loops over channels, checks their properties, and decides whether to include them in the overall analysis. What do you mean by "data structure"?
What do you want to actually happen in the "program"?
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
My Dock doesn't show all applications with shortcut
My Dock doesn't show all applications with shortcut
Apple tab only shows some applications on my list not all, anyone know why? I went under system settings to fix it and there is no option for it.
Thanks!Perhaps I don't understand your question, but if you think that the doc shows every application you have on the computer, this is incorrect. If you want certain applications to be shown on the dock you have to add them to the dock. The dock comes preset with a few select Applications Apple wants to feature but you are free to add others or remove ones you don't use.
Patrick -
Show row/column with empty dimension values.
I have 2 columns where 1 column is dimension and 1 column is measure. I need to hide the row when the dimension is empty.
What I did is at the block I UN-TICK "Show row/column with empty dimension values". But it didnt works.
Thanks.click on the block and add a filter with condition dimension isnotnull. this will eliminate the dimension rows with empty values.
Thanks,
karthik -
Out put in Background (SM37) not showing All columns
Hi Folks,
Im creating an out put display for my query in background , we have define an output device , after submitting the query in back ground it just showing me only 10 columns . I mean I its not showing me all columns when I went to SE37-> select job->spool ->view (display).
Why its happening?
Please help me
Cheers
UsmanWhen you are submitting the job in background by exexuting your query from Sq01 or Tr.code , a screen will pop-up ask for you device name, on the same screen youll see properties hit that, itll take you to another screen and change the report format 65 and 200 or 65 and 200. It depends on your out put device . You can only display report till 255 . If you want to active ALV functional enable in background spool job you have to use extracts for that . So you can download your data in correct format.
You can also decrease the length of variables in query so within 255 characters you can see all report columns.
Hope thisll help you .
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How can I make a report of all records with the date in the last two weeks?
Hi!
I have records with a date field, I want to create a report that only includes records with a date which is within the last two weeks of the system date, is this possible? Surely this is a basic database function, I would have thought, but I can find no help about it and there's very little in Mac Help about doing anything other than simple stuff with reports.
I'm not a genius with databases, so help with any required formula or what have you would be great!Hi Jonathan,
Here's a formula you can use with the Match function. 'Date' is the name of the date field, which must be a "Date" type field.
'Date'>NOW()-14
Match will select (highlight) all records matching the query. You'll then need to use Organize > Hide Unselected to show only the matches.
Unfortunately, I haven't found a way to make the NOW() function work in a Find request, and neither Match requests nor Hide Unselected can be included in a recorded search, either of which would reduce repeating the report to a one-button operation.
Regards,
Barry
Maybe you are looking for
-
Hi, I have doubt in "IN Operator" DECLARE COND CONSTANT VARCHAR2(100) := '''MCF_INS'',''MCF_TGP'''; COND1 VARCHAR2(100) := 'MCF_TGP,MCF_INS'; NO NUMBER; BEGIN SELECT COUNT(1) INTO NO FROM ACCOUNTS WHERE ACC_PRODUCT_CATEGORY_cD_F IN( COND1); ---Can I
-
i m using window vista32 after itunes upgrade.. itunes crash .. Problem signature: Problem Event Name: APPCRASH Application Name: iTunes.exe Application Version: 11.1.4.62 Application Timestamp: 52ddbf7a
-
I developed an alv grid in which one field is ROUGH SIZE ( AUSP-ATWRT).I want F4 help in this field. I already wrote the code as given below but F4 help is not comming. IF LCAT-FIELDNAME = 'ROUGH_SIZE'. LCAT-REF_TABNAME = 'AUSP'. LCAT-REF
-
Help with finding digits within string
Hi, I am very close (I believe) to finishing this program. Basically I need to scan the input (string) the user enters. If the input contains 2 digits then I outprint "Valid ID" if not, I outprint "Invalid ID" please review and if possible help fix i
-
How to fix iphone 5 lock button??????
My iPhone 5 lock button just broke unexpectedly!!!!! It barely works unless I press down with added pressure!! Help!?!?!?