HTMLDB search on columns defined as data type date

I have a HTMLDB applications that has a date column in the report. When I search and enter a date, no rows are returned. How do I enter the date in search text so that rows are returned?

Hi Suresh:
This is what I would do.
Here is the demo...Hope this will help.
BHAVESH@oracle10> create table suresh(created_date date, attribute1 varchar2(20));
Table created.
BHAVESH@oracle10> desc suresh
Name Null? Type
CREATED_DATE DATE
ATTRIBUTE1 VARCHAR2(20)
BHAVESH@oracle10> insert into suresh values (sysdate,to_char(sysdate,'yyyy/mm/dd hh:mm:SS'));
1 row created.
BHAVESH@oracle10> insert into suresh values (null,to_char(sysdate,'yyyy/mm/dd hh:mm:SS'));
1 row created.
BHAVESH@oracle10> select * from suresh;
CREATED_DATE ATTRIBUTE1
01/01/2009 11:24:08 AM 2009/01/01 11:01:08
2009/01/01 11:01:28
BHAVESH@oracle10> -- please notice my nls_date_format is mm/dd/yyyy hh:mi:ss AM
BHAVESH@oracle10> -- which can be changed to anything...use alter session or on windows..using registry..or on server
BHAVESH@oracle10> -- ....using nls_date_format init parameter.
BHAVESH@oracle10> alter session set nls_date_format = 'DD-MM-YYYY';
Session altered.
BHAVESH@oracle10> select * from suresh;
CREATED_DA ATTRIBUTE1
01-01-2009 2009/01/01 11:01:08
2009/01/01 11:01:28
BHAVESH@oracle10> -- however, this may not work for you.
BHAVESH@oracle10> -- so, you can convert the date in the format you want
BHAVESH@oracle10> select to_char(created_date,'DD-MM-YYYY') as converted_date, ATTRIBUTE1 from suresh;
CONVERTED_ ATTRIBUTE1
01-01-2009 2009/01/01 11:01:08
2009/01/01 11:01:28
BHAVESH@oracle10> -- now use the decode function
BHAVESH@oracle10> ed
Wrote file afiedt.buf
1* select s.*, to_char(decode(created_date,null,to_date(ATTRIBUTE1,'yyyy/mm/dd hh:mi:ss')),'dd-mm-yyyy') as new_date from suresh s
BHAVESH@oracle10> /
CREATED_DA ATTRIBUTE1 NEW_DATE
01-01-2009 2009/01/01 11:01:08
2009/01/01 11:01:28 01-01-2009
If your date format is different under the attribute1 column, then you have to write a PL/SQL function to handle different date formats under the same column of different column!
THanks
- Bhavesh

Similar Messages

  • Transfer Order : Data for storage type search is not defined (A   )

    Dear Experts ,
    While trying to use the Transfer Order and trying to determine the storage type this error appears :
    Data for storage type search is not defined (A   )
    Message no. L3007
    Diagnosis
    Information on the storage type search has not been defined.
    How ever , I have already configured the search and here is the Storage Type search's data in OMLY
    1. Warehouse number : W10
    2. Operation : A "Stock Removal"
    3. Indicator :   E
    4. Stock Category : Blank
    5. Special Stock Category : Blank
    6. Storage Location Ref :10
    7. Storage Type : 10E
    Please Advice
    Edited by: Sap Sap on Feb 24, 2011 10:54 AM

    Hello,
    The storage type in which you want to place the material or pick the material from has not been defined in the storage type search sequence.
    You need to define the search sequence in customization so that storage type is determined automatically when the transfer order is created;
    SPRO>>Logistics Execution>>Warehouse Management>>Strategies>>Activate Storage Type Search
    In this go to determine search sequence and then
    for warehouse number W10, operation as stock removal 'A' and in this maintained the relevant the storage type (10E) so that it is determined automatically.
    I hope this helps.
    BR,
    Tushar

  • Data for storage type search is not defined (E FC1  ) in WM module

    Hi friends,
    I m working in Ware house management.I have created material document and using the matertial document number in LT06.
    I am getting the following error while creating transfer order for material document in T-code LT06.
    Data for storage type search is not defined (E FC1  )
    Message no. L3007
    Diagnosis
    Information on the storage type search has not been defined.
    Procedure
    Contact your system administrator. Note down the values that are within parentheses in the error message.
    Please advise me how to solve this error.
    Thanks in advance.
    Regards,
    William

    SAP does not know where to put the material.
    You usually enable SAP by defining storage type indicators, that you maintain at the putaway and picking indicator fields in material master.
    then you setup the storage type search based on this indicators.
    SAP can then know in which storage type it shall search for a space to store your material.
    As a first step check whether you missed to enter this indicator in your matrial master WM view

  • Define BINARY DATA column (DB2 to Oracle migration)

    Have a table where a column is defined as 'FOR BIT DATA'. This specifies that the contents of the column are to be treated as bit (binary) data. During data exchange with other systems, code page conversions are not performed. Comparisons are done in binary, irrespective of the database collating sequence.
    During conversion to Oracle using Oracle Migration Workbench, this table is converted irrespective of this definition. Please see below for details:
    DB2 table definition:
    CREATE TABLE ADMIN.XENCY (
              ID INTEGER NOT NULL ,
              XENCYSYMBOL CHAR(2) FOR BIT DATA NOT NULL ,
              IN TS_XENCY ;
    Oracle table definition as generated by OMWB:
    CREATE TABLE ADMIN.XENCY
    ( ID NUMBER(10,0) NOT NULL ENABLE,
    XENCYSYMBOL CHAR(2) NOT NULL ENABLE,
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE TS_XENCY;
    During data loading from DB2 to Oracle it fails for this table with the following error:
    Type: Error
    Time: 14-08-2006 18:21:02
    Phase: Migrating
    Message: Unable to migrate data from source table ADMIN.XENCY to destination table ADMIN.XENCY : ADMIN.XENCY; ORA-12899: value too large for column "ADMIN"."XENCY"."XENCYSYMBOL" (actual: 4, maximum: 2)
    For Oracle the length of the data in this column is 4; however for DB2 it is 2 only as shown below:
    $ db2 "select max(length(Xencysymbol)) from admin.Xency with ur"
    1
    2
    1 record(s) selected.
    $     
    The distinct contents of this table is as follows:
    $ db2 "select distinct Xencysymbol from admin.Xency with ur"
    XENCYSYMBOL
    x'0024'
    x'2020'
    2 record(s) selected.
    $
    How do I define a column as containing binary data in Oracle?
    Thanks in advance.

    The MWB DB2 LUW plug-in incorrectly translates CHAR FOR BIT. Doesn't particularly pay attention to any of the CHAR modifiers. It will just see that column as a CHAR. Obviously, this is a defect.
    Binary data of limited length is stored in RAW type columns in Oracle DB.
    You have two problems (in addition to issuing an ALTER COLUMN to fix the type delcaration or dropping, tweaking the table creation script and reloading. )
    1. The data extraction scripts utilized for that table have not properly encoded the data for transport between DB systems. If there are endian differences between he source and target platform there may be additional problems. Nominally, you can export the binary data in hex format.
    2. The SQL*Loader file needs to be adjusted. (if you dump in hex format, so the data in the file is characters of a hex value )
    XENCYSYMBOL CHAR : hextoraw( : XENCYSYMBOL)
    Loader will convert those hex characters back into RAW as it loads.
    [ The  built in data pump will not work obviously because the system thinks it is a CHAR. So offline data transfer is your only option.  ]

  • Join columns of different data types

    Can i join two columns of different data types in a single statement. Is there any cast or convert statement
    SELECT B~PARTNER AS RESP_GROUP
    FROM BUT000 AS B
    INNER JOIN CRMV_LINKPARTNER AS C ON BPARTNER_GUID = CPARTNER_NO.
    Here PARTNER_GUID is Raw 16 and PARTNER_NO is Char 32, the query is not returning any rows.
    Thanks
    Akila.R

    Hi!
    Basically we can say, you can't join them, but you might try this way:
    SELECT B~PARTNER AS RESP_GROUP
    FROM BUT000 AS B
    INNER JOIN CRMV_LINKPARTNER AS C ON BPARTNER_GUID = CPARTNER_NO(16).   "add
    (16)
    Or an other version
    C~PARTNER_NO+16(16)   "depends on, where is the real number stored
    Regards
    Tamá

  • 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]

  • How to define a data carrier type "archive" in DMS

    Hi, experts.
    In order to intgerate DMS and ArchiveLink(Check in origin with ArchiveLink), i want to define a data carrier type "archive" in DC20.
    I have already defined a content repository 'Z2' in OAC0, but i can't enter 'Z2' into the field-data carrier,
    error message: You cannot use data carrier Z2 - try displaying possible entries
    Message no. V&021
    and the only possible entries is 'MA'
    which type content repository could be used as data carrier type 'archive",
    or there are some steps that i missed?
    Here are parameters of 'MA' and 'Z2':
    MA     ARCHLINK     SAP System Database     0046     ma
    Z2     ARCHLINK     HTTP content server                     0046     Test
    Thanks.

    Hi,
    Let me refresh your message with your Permission.
    i think iam also in the same confusion, any suggestion regarding this is eagerly welcome.
    i have some specific senario in DMS where the Client needs to store the DMS Original Files in SAP Archive Server through SAP Archive ink,
    here if i configure a part of Archive Server, so as to store the Original application files of DMS,
    say ZDMS_Arch01, ZDMS_Arch02, ZDMS_Arch03.
    ie.. if i configure Archive server as a Storing medium for DMS Original Files, will it appear as an Option to be selected for storing the original application files,
      just like as we get the list of storage catagories to store the Originals like DMS_C1_ST or any content server Storage catagory (clicking Check in original, in CV01N transaction
    any one who have configured this please Clarify.
    Regards
    Sathish

  • How to define IDOC as 'type' in 'Data types' ?

    Hi all,
    I am trying to define a data type which accepts multiple occurences of IDOC type in the same message. The required XML should be like this...
    <All_IDOCs>
       <ZUPFIN_>                 <--- this is the IDOC imported into XI
           <IDOC>...
           </IDOC>
       </ZUPFIN>
       <ZUPFIN_>                 <--- this is the IDOC imported into XI
           <IDOC>...
           </IDOC>
       </ZUPFIN>
    <All_IDOCs>
    Now, there are more than 800 fields under <ZUPFIN_> IDOC. So I am trying to find out an easy solution to create the above data type without manuall adding each element.
    Any idea ?
    Thanks.
    - Atul

    Hi Ahmad,
    As I have already mentioned above, I do not want multiple occurences of 'IDOC' element. Instead I want the multiple occurences of 'ZUPFIN_' (in Michael's blog you given by link, it is 'MBGMCR02'). So the example does not help here as roots cannot occur more than once.
    I cannot have anything changed on R/3 side.
    Thanks.
    - Atul

  • How to list column names and data types for a given table using SQL

    I remember that it is possible to use a select statement to list the column names and data types of databaase tables but forgot how its done. Please help.

    You can select what you need from DBA_TAB_COLUMNS (or ALL_TAB_COLUMNS or USER_TAB_COLUMNS).

  • Core Data Services in ABAP : No URI-Mapping defined for object type DDLS

    Hi ,
    When creating a DDL source , I get the error
    " No URI-Mapping defined for object type DDLS and object name ZCDSV_01_06".
    Can you please suggest what the issue could be?
    Thanks,
    Chakram Govindarajan

    Now I am able to proceed to the next step. Not sure how this started working. However, I get the below error when I open the DDL source editor for one particular ABAP system added in the eclipse environment. I however do not get the error when I open the DDL source editor for another system ( AH4) .I am providing the log error details . I updated the ADT installation. However the issue has not been resolved. Also I tried implementing the Note: 1834948. However I cannot find the option "Team -> Share project..." in the ABAP project.
    Thanks,
    Chakram Govindarajan

  • Using a query with bind variable with columns defined as raw

    Hi,
    We are on Oracle 10.2.0.4 on Solaris 8. I have a table that has 2 columns defined as raw(18). I have a query from the front end that queries these two raw columns and it uses bind vairables. The query has a performance issue that I need to reproduce but my difficulty is that how to test the query in sqlplus using bind variables (the syntax for bind vairables fails for columns with raw datatype).
    SQL> DESC TEST
    Name                                      Null?    Type
    ID1                                                RAW(18)
    ID2                                                RAW(18)
    SQL> variable b1  RAW(18);
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    The above is the error I get - i cant declare a variable as raw.
    SQL> variable b2  RAW(18);
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    SQL> variable b3  RAW(18);
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
                        VARCHAR2 (n [CHAR|BYTE]) | NCHAR | NCHAR (n) |
                        NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
                        BINARY_FLOAT | BINARY_DOUBLE ] ]
    --now the actual query below
    SQL> SELECT * FROM TEST WHERE ID1=:B1 AND ID2 BETWEEN :B2 AND :B3;
    SP2-0552: Bind variable "B3" not declared.
    (this fails due to the errors earlier)Also this is a third party app schema so that we don't have the option of modifying the data type of the columns.
    Thanks,
    Edited by: orausern on May 10, 2011 11:30 AM

    Try anonymous PL/SQL block:
    declare
    b1 RAW(18);
    b2 RAW(18);
    b3 RAW(18);
    begin
    b1:=..;
    b2:=..;
    b3:=..;
    SELECT col1, col2, ..
    INTO ...
    FROM TEST
    WHERE ID1=:B1
    AND ID2 BETWEEN :B2 AND :B3;
    end;
    /

  • How to have SharePoint search custom columns in a custom list?

    Hello,
    How can have SharePoint search custom columns in a custom list?  I have a custom list for a directory with names, department, title and phone numbers.  Department and titles are not searchable with the search box for the list.
    How can I make these 2 custom columns searchable?
    Thanks
    Paul

    Any text added to any property is searchable. If you have a Sales department search for "sales", but I think you are asking about doing a property search like "department=sales" or "department:sales".
    2013 has a different way than 2007 and 2010 to create Managed Properties. You will need to create a Site Column and then a little configuration. The basic steps are:
    Create a Site Column (as SP already has a Department column you will want to create one with a difference name such as CorpDept.)
    Add the column to a list or library and add data. (won't be found otherwise)
    Wait for the next content crawl. (or manually start a crawl)
    Go to the tier where you want to define the managed property and go to the Schema page:
    Central Admin, Search Service, Schema
    your site, Settings (gear), Site Settings, Search Schema (in the Site Collection Admin section)
    your site, Settings (gear), Site Settings, Schema (in the Search section)
    Click Managed Properties and search for your column name. It might look like this: ows_q_TEXT_CorpDept.
    Edit the Managed Property and give it a useful Alias, such as "CorpDept".
    Test the search:    CorpDept:Sales
    Do a web search for "SharePoint 2013 Site Column Managed Properties" for examples.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • OBIEE:How to display row/columns where no data is present in pivot results?

    I have a request from some team members to provide an OBIEE report of 7 teams and the number of open incidents for each team by week.
    I was able to create the pivot listing the teams vertically and the age (by week#: 1 week, 2 weeks, 3 weeks, 4 weeks & > 4weeks) horizontally.
    The dilemma I have is that of the 7 teams that have incidents tickets only 4 of them have data, thus only those 4 teams that have ticket data show up in my pivot. I would like to be able to reflect ALL 7 teams even if representing a dash or null value across the pivot for those teams that don't have data.
    Does anyone know if this is possible and if so, how would I do this? I've tried searching the internet and found out how to replace a null value with a dash in columns/rows when a cell is null. But not how to display an entire row (or column) where no data is present.
    Edited by: coutya on May 22, 2012 11:01 AM
    Edited by: coutya on May 22, 2012 11:02 AM

    You are correct; if there are no data at all, those teams won't show in a pivot table. NULLs or dashes only work if a particular column is null. There are two ways to accomplish what you wish. The first example I thought when I wasn't aware of being able to do a LEFT OUTER JOIN in Answers using the Advanced tab. The first method works nicely, though and is simpler to execute.
    Read my solution here:
    Re: Section Values showing NULL in Pivot
    To do the LEFT OUTER JOIN read this:
    http://gerardnico.com/wiki/dat/obiee/multiple_subject_area
    Both will get you what you want...

  • How to define reporting time types for 0HR_PT_2 to populate records in rsa3

    hi experts,
    we are implementing Time and Labour and we are using info provider called 0PT_C01.
    for that we have 2 data sources one is 0HR_PT_1 and 0HR_PT_2.
    when i check in RSA3 there are records for 0HR_PT_1 Data source, but for 0HR_PT_2 data source it shows 0 records though the related info types have data.
    i have checked in sdn for the solution, most of the replies are related to maintain Reporting Time Types.
    can you please provide me step by step solution to maintain Reporting Time Types in ECC.
    Regards
    venuscm

    Hi Venu,
    You can maintain reporting time types in SPRO,
    SPRO > Integration with Other SAP Components -> Data Transfer to the SAP Business Information Warehouse -> Settings for Application-Specific DataSources (PI) -> Human Resources -> Actual Employee Times OHR_PT_02 -> Define Reporting Time Types -> Maintain Reporting Time Types
    Check with your HR team about maintaining reporting time types.
    [http://help.sap.com/saphelp_46c/helpdata/fr/e8/cb2d28e4ded31184080004aca6e0d1/content.htm]
    Regards,
    Durgesh.

  • Column headers and data are mismatched in Data tab of views after move col.

    Hi,
    Currently, I am using Windows XP, SQL Developer Version 1.2.1 Build Main 32.13.
    Java platform 1.5.0_06
    Oracle IDE 1.2.1.3213
    I'm having trouble with display of data from views in the "Data" tab of SQL Developer. If I move a column left or right of its original place, the data no longer line up with the proper column heading. The data are in the correct order, but the column headers are out of whack. Also, in the Single Record View, the data and column headers are mismatched.
    Refreshing the view, closing the view, closing and reopening SQL Developer do not "reset" the view so that the data and proper column headers are lined up. Even dropping and recreating the view does not force SQL Developer to use the proper data-column header match.
    Just to be clear, the data within the view is fine. It is the display of the data-column headers in the "Data" tab of SQL Developer (and the single record view) that is wrong. The mismatch seems to occur after a column is moved in the view.
    Is this a bug? I like the ability to move columns around within the display of the view. However, much more important that the column headers and data line up correctly.
    Thanks,
    Morgan

    Thanks much. I found the correct file, deleted it, and the column headers and data match up again.
    I found the correct file by searching the directory for one of the column names that occurs in the view (though I had to find both instances of "COLUMN_NAME" and "COLUMN NAME" (without the underscore)). Not sure why there were files with both versions.
    Do you know if there is any way to prevent those XXXXXXXXXTableSettings.xml files from writing all together (oracle.javatools.controls.nicetable.NiceTablePersistentSettings)? I looked through the SQL Developer preferences but nothing jumped out as being the setting to switch off.
    Should I be doing anything in particular to bring more attention to this potential bug so it might get fixed in a future release?
    Thanks again,
    Morgan

Maybe you are looking for