Impliment nvl on a date search

Hi ,
1. How can I implement to run the report when there is no date selected. I have the below query and with a date it runs fine. (if user doesn’t select a date and want to run for all)
Please guide me how to implement NVL to the
to_date(get_date1 (a.pnumber), 'DD-MON-YY') Between to_date(:P12_start,'DD-MON-YY') And to_date(:P12_end,'DD-MON-YY')
Thank you in advance. Rav.
Message was edited by:
user486969

Hi Rav,
and (to_date(get_date1 (a.pnumber), 'DD-MON-YY') Between
to_date(:P12_start,'DD-MON-YY') And to_date(:P12_end,'DD-MON-YY')
or :P12_start IS NULL OR :P12_end IS NULL)
Cheers,
Mike

Similar Messages

  • Updation of Duplicate item taken by Parial-data search

    Hi all,
    i have written programm to retrieve the Data by Partial data search,by setting the Flag as DB_DUPSORT.I am retrieving the Data back but i can't update the Record by using cursor->put(),by setting th FLAG CURRENT.
    will it possible,if duplicates are present there...??

    Hello,
    Have you taken a look at:
    http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_set_flags.html#DB_DUPSORT
    http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/dbc_get.html#DB_CURRENT
    http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/dbc_put.html#DB_CURRENT
    If these do not help answer your question, please post a small
    stand-alone test which reproduces the issue.
    Thanks,
    Sandra

  • Is SAP MDM master data search possible through Enterprise Search?

    Hi Everyone
    I was looking at finding if the SAP MDM master data search is possible through Enterprise Search?
    Is so, Please provide a bit of technical guide on the same.
    Regards
    Navneet

    Hi Navneet,
    first releases of SAP NetWeaver Enterprise Search featured a preliminary connector to federate SAP MDM's search functionality. However, as no object level access authorization control could be implemented on the current MDM APIs, we have discontinued to deliver that prototype connector. We will be back with access-authorization-controlled connectivity in one of the future releases.
    Best, Karsten

  • Can date search help start from a particular date?

    Hi All.
    We have an application where there are 4 date fields.
    These dates can range in past as well as future.
    After selecting one date, others should start from that date.
    But by default, it always takes the system date as starting point.
    Can the date search help start from a particular date?
    Thanks in adv.

    Hi ,
    u can set the initial dates u want by setting the attributes values to which it is bind  . for eg in WDDOINIT of the view..
    hope this will help u ..
    Regards
    Yash

  • Spotlight and date searches

    This problem occurs in the Spotlight menu, not the Spotlight Window:
    When I search on a date, the results contain dates one day AFTER the search date. For example, if I specify 9/16/07, I'll get results with dates 9/17/07. Searching the Get Info panel of documents reveals the date is usually the date created or the date last opened. Searching email messages reveals dates one day after the search date (even additional dates found in the long headers).
    This behavior happens most of the time, but not all the time, meaning occasionally, the dates match.
    All of which raises a question: Using the Spotlight Menu, which date in a file's metadata produces the search result: date last opened? created? modified? any and all?
    I realize the search parameters can be refined to produce what I'm looking for (i.e. substitute "lastused:", "created:", or whatever)....I'm just curious as to how the search mechanism works in Spotlight, in the case of date searches without further criteria.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Looking for help to develop data search form

    I have built a SQL Query that produces a data set of
    approximately 60,000 records which includes last_names,
    First_names, ID_numbers, Office_Names, Association_Names, and
    Member_Type fields. I have created a table that displays ten
    records at a time (in alphabetical order by last, first name). I
    want to (1) be able to search for a specific person in the dataset,
    and then once I find him/her, (2) be able to click on their
    ID_Number to select it and then go to another page with their
    ID_Number.
    I have not been able to find documentation on conducting
    searches of datasets. I am using classic ASP for server side
    scripting (though I am brand new at this).
    Any assistance you might be able to provide will be most
    gratefully appreciated.
    Thanks very much,
    Austin

    > Thank you Murray for your kind response. I am not
    entirely sure how to do
    > this. I suspect if I create a simple form with First and
    Last Name Fields
    > and
    > a Submit button and then POST the content of that form
    to a 'processor'
    > page
    > this is a good place to start???????
    That would surely work.
    > But I am not entirely sure how to insert those two items
    into the query on
    > the
    > processor page. Can you point me to any documentation or
    tutorial that
    > might
    > help me along with this?
    The search form posts its results to the processor page. The
    processor page
    retrieves those form values from the $_POST array, and uses
    them to
    formulate a new SQL SELECT statement, identical to the old
    one, except with
    the inclusion of the first and last name values from the
    $_POST array in the
    WHERE statement.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "AustinMoran" <[email protected]> wrote in
    message
    news:g914dr$rig$[email protected]..
    > Thank you Murray for your kind response. I am not
    entirely sure how to do
    > this. I suspect if I create a simple form with First and
    Last Name Fields
    > and
    > a Submit button and then POST the content of that form
    to a 'processor'
    > page
    > this is a good place to start???????
    >
    > But I am not entirely sure how to insert those two items
    into the query on
    > the
    > processor page. Can you point me to any documentation or
    tutorial that
    > might
    > help me along with this?
    >
    > I am sorry to be such a bother with this. I have a
    handful of books, but
    > none
    > of them touch on this and I am at a loss.
    >
    > Thanks again for your kind helpfulness.
    >
    > Austin
    >

  • NVL and replace date when date field is null from table

    I am trying to replace a field with a date default when it is null and it is not working
    I was wondering if someone could give me a clue to what I am doing wrong
    Here is the part of the select statement:
    NVL (o.mass_production_date__c, TO_DATE ('1900-01-01', 'yyyy-mm-dd')),
    It is not replacing a NULL value in o.mass_production_date__c if it is returning null
    o.mass_production_date__c is a DATE format field
    TIA,
    Mike

    Can you post the actual query and screen cature show it's not working.
    Most likely is because your data is not NULL but some empty string.
    The function should work just fine like following,
    TEST@rman> create table t1 (val date) ;
    Table created.
    TEST@rman> insert into t1 values (null);
    1 row created.
    TEST@rman> commit;
    Commit complete.
    TEST@rman> select * from t1;
    VAL
    TEST@rman> select nvl(val,TO_DATE ('1900-01-01', 'yyyy-mm-dd')) from t1;
    NVL(VAL,T
    01-JAN-00

  • Customer master data search and use limit

    Hello everyone
    I have a problem that our customer want to limit that A user of SAP  can search and use the customers master data which he or she created only .what should I do ?  thanks!

    Wierd requirement!! What will happen if the employee quits the company and a new employee takes his position and you give him a new user ID?
    I dont think it is possible through configuration/authorization. You might have to use ABAP to meet the requirement.
    Regards,
    GSL.

  • Payment Run Date Search

    Hi everyone,
    In the payment program F110 I would like to minimize the search of Run Date / Identification to the last 100 and not the last 5000.
    How can I do this?
    Kind Regards,
    Quintin Venter
    Edited by: Quintin Venter on Mar 27, 2008 10:12 AM

    Hi,
    Here you can filter date wise and check from which date you do want, hope understood..but system shows as many as you have irrespective comp code and date with different vendors...
    Thanks,
    Vasu..

  • Implementing Data Search for Custom Objects

    Can any one have some information on implementing search criteria for custom objects.
    I am looking to modify the drop down values and search criteria based on custom data model.

    Hello Rajesh,
    The following configuration activity might resolve your query.
    Transaction: mdgimg.
    General Settings> UI Modelling> Define Field Properties for UI. Select your custom data model and go to "Hide Field Names."
    For the fields of the entity type, you don't want to come up in the search UI, check on "No selection".
    "No Selection" : These wouldn't come up as search Criteria. "No Results List": These won't come up in final result list.
    Best regards,
    Shephalika.

  • Are there any basic MDM data search API examples/tutorials?

    hello all,
    my company just installed mdm 5 and my task is to build some java applications that use the mdm api.  our first implementation is using the products data model for all of our materials.
    i want to know if there are any basic tutorials or examples of how to get, for example, read all the records in the product table and how to search and get a result set, like on name or id, etc.
    just some basic read and search examples to introduce me and get me started.  if you know of any, it will be much appreciated.
    thanks very much,
    mm

    Hi Mike,
    please have a look here:
    http://help.sap.com/saphelp_mdm550/helpdata/en/46/281bc8218b14dbe10000000a155369/frameset.htm
    The corresponding sources can be downloaded from this page:
    http://service.sap.com/installMDM
    --> MDM 5.5 SP05 - Java API Migration Guide or MDM 5.5 SP05 - Java API
    and the latest Javadoc can always be found here:
    https://help.sap.com/javadocs/MDM/current
    Kind regards,
    Andreas

  • Date search help in module pool programming in 4.6C version

    Hi Experts,
    How can i have input help in my module pool screen, I gave the searh help EXT_DATE in the search help parameter of that screen's field parameter.
    But its not showing the input help.
    I m facing this issue in 4.6C.
    Please advise
    Thanks
    Yogesh Gupta

    Hi,
    Just to make sure that you are talking about F1 help and not F4 for input of date right?
    For F1 help of screen field, please check program for tcode: F150 (Dunning Run), You will find FM: F150_FIELD_SELECTION_HELP used for one field on screen (112).
    I guess this might help you.
    thanks,
    Ags.

  • Data search in form fields inside a workflow

    Want to do a search on forms based on any / all fields defined in the form. Since the form is user defined and form field data may change as it passes through the workflow (and can be at any stage except completed), what will be a clean way to do the search? Please note that we may not have prior information about form fields (user is free to define any form/ field) and we want the solution to be a generic one. Is it possible in any version of LC including latest release?
    Thanks for your help.

    Hi Howard,
    Thank you for your reply.
    I shall remember not to cross post in future. Please excuse me for my ignorance.
    This is what I want to do:
    1. The client has defined workflow and form(s) (with business fields) and I do not have prior information of these fields.
    2. Users of the above mentioned workflow started workflows by submitting completed forms.
    3. These forms are at different stages of processing in the workflow (but not completed).
    4. The requirement is to find those forms that contain say "Susanta" in any field and list those forms with processing status.
    5. The search string could be any alphanumeric string, and the search is restricted on field values only. However the assumption is that the search need not know what are the fields in the form. The workflow and the form name are known.
    I'll appreciate further hint from your side. Thanks in advance.

  • How to implement "Date searching criteria"

    I have a block contains some textboxes such as project_no, project_name, startdate.
    I would like to search by startdate.
    For example, I have 2 other text items for searching only. the first item is "DATE1" the second item is "DATE2". I want a user to enter a date into the first text item "DATE1" and enter another date into the second text item "DATE2". then click on execute button to get the result.
    The result is supposed to be all StartDates that match the criteria.
    How can i implement this in forms6i???
    Thank you in advance for your help.

    ok, i will explain more in details,
    I have a data block contains some text boxes (sno, empno, projectno, startdate), currently, users can click the "Execute" button and return all records or users can go to Enter query mode and insert a value (search criteria) into any of these textboxes, and then they will get the required record after clicking the "Execute" button.
    I added 2 non database text boxes(date1,date2) for searching purpose, it will return all startdates located between these 2 dates. I used the following code for that and its working fine but "IT DISABLED THE OTHER SEARCHING CRITERIA (sno, empno...)" which is not good because i want a suer to have a choice.
    Declare
    where_dt varchar2(150);
    Begin
         IF :System.Mode = 'NORMAL' THEN
         set_block_property('blk_name', default_where,'');
         Else
    where_dt:='startdate between :blk_name.date1 and :blk_name.date2';
    set_block_property('blk_name', default_where,where_dt);
         End if;
    Execute_query;
    End;
    So, i edited the code to include the other criteria, users can search by one criteria only.
    Declare
    where_dt varchar2(150);
    Begin
    IF :System.Mode = 'NORMAL' THEN
    set_block_property('blk_name', default_where,'');
    Else if :System.Mode = 'Query' Then
    if :blk_name.Date1 and :blk_name.Date2 is not null then
    where_dt:='startdate between :blk_name.date1 and :blk_name.date2';
    end if;
    if :blk_name.sno is not null then
    where_dt:='sno = :blk_name.sno';
    end if;
    if :blk_name.empno is not null then
    where_dt:='empno = :blk_name.empno';
    end if;
    set_block_property('blk_name', default_where,where_dt);
    End if;
    Execute_query;
    End;
    Unfortunately, this code is not working, i am getting error.
    It points to the last "END;" and returns error: "Encountered the symbol ";" when expecting one of the following IF "
    Any help please??

  • Crystal Syntax "Like" Statment on date searches.

    Post Author: smilbuta
    CA Forum: Data Connectivity and SQL
    Hello,
    I am currently developing an application using VS2005 and Crystal Reports.
    I wish to pass a Crystal Syntax statement to the report that searches for like dates in a date column in a SQL 2005 Database..
    The statments as follows.
    crystalsyntax = "{EQ_Equipment.equipment_warranty} like '2009'"
    I get returned an error saying string expected??
    so i tested diferent formats, and if i use this string i get only one record returned out of a known test group of 10 records.
    "{EQ_Equipment.equipment_warranty} Like DateValue('2009')"
    so im unsure what im doing wrong. Any advice would be apreciated.

    Post Author: Jagan
    CA Forum: Data Connectivity and SQL
    LIKE is used to compare strings. You're trying to compare a date with a string. That's why it says "string expected".
    I'm not sure what the result of DateValue('2009') is, but it's pretty certain that what you've then got is a date (warrenty) being 'liked' with a date, so both are being implicitely converted to strings first.
    What you could do is explicitely convert the warrenty date to a string in a format of your choice (don't rely on the implicit format) and then LIKE that with '2009'.
    Or change your statement to Year() = 2009  but this might result in Crystal doing the hard work instead of the database.
    Best would be to test that the warrenty date is in the year range, so that you can still use any index that might exist on the warrenty date column. See the help on 'in range operator'. e.g.  in DateValue(<year>, 01, 01) to DateValue(<year>, 12, 31)

Maybe you are looking for

  • How to print multiple addresses on one sheet of avery labs using Pages?

    How do I print mulitple addresses on one sheet of avery labels? I used Numbers to make a database. I used Pages to use the Avery label template. I formatted the labels for the database but it shows my first sheet of labels as my first addressee and m

  • Duplicate vendor creation blocking in XK01 Transaction

    Hi all, I want to block the duplicate vendor creation in the vendor creation transaction XK01.If any solution kindly reply to this message. Jyoti

  • Document split with special purpose ledger

    I am trying to use activate document splitting in my special purpose ledger,but got error message A splitting procedure cannot be assigned, for one of the following reasons: There is no line item table defined for table Z####### The following fields

  • UNBLOCK of Database not working

    Anyone notice that when receiving/saving/unblocking ab ACCESS .MDB attached to Email on a Windows 10 preview that the Database will NOT OPEN, but doing the same thing with that attachment on an XP - it OPENS FINE 

  • No PID controls in FUNCTION palette.

    I am using LabVIEW 8.6  I want to make use of the PID function but unable to find any such function in the FUNCTION palette of block-diagram. So please help me how can I get the PID function?