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

Similar Messages

  • How to find and replace data in form fields in acrobat xi, its not allowing to do so while trying, a

    how to find and replace data in form fields in acrobat xi, its not allowing to do so while trying, asking for adobe livecycle to get installed. please help.

    Easiest way to do it is the following:
    - Open the PDF file in Acrobat.
    - Go to Tools - Forms - More Form Options - Export Data.
    - Save the form data as an XML file somewhere on your system.
    - Open XML the file in a plain-text editor (I recommend Notepad++).
    - Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
    - Save the XML file (maybe under a new name).
    - Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
    - Select the edited XML file and import it.
    - Done!

  • Copy data customer PO and PO date field from quotation to sales order

    Hi Friends,
    Can you please let me know what copy control settings I need to maintain in order to copy customer PO# and PO date field data in quotation to sales order.
    All the data is getting copied from quotation to sales order when I create sales order with reference to quotation but the customer PO no. and PO date is not getting copied.
    Can anyone please help.
    Regards,
    Wasim.

    HI
    Not sure if this is possible via Customization or not but you can try the user-exits or Routines for the Sales Order program for this
    You need to change the include FV45C102 (assuming you have copied standard order and the copy controls). ABAP team should be able to make changes to this routine and achieve your requirement.
    In VTAA, after choosing the Source and Target order type and choosing the right Quatation item, check the routine for 'Bus.data/item compl.' and it will be what has been mentioned above.
    Please check &Revert
    Thanks&Regards
    Raghu.k

  • Payment terms and Due date field gets emptied after residual clearing

    Hi
    There is advance of Rs.50000 in Vendor ledger and Invoice of Rs.200000 (with payment term - G019)
    I cleared these two line items (residual clearing). One new line item got created of Rs.150000. When i saw that line item, i saw that there payment term field and due date field got emptied. My requirement is that the original payment term entered in initial invoice document (of Rs.200000) should automatically get populated in new line item of Rs.150000.
    How to fulfill this requirement?

    Thanks for the prompt reply.
    I wanted to ask one more thing. Same way when i do partial clearing (not residual), is it possible to populate the invoice's due date in advance line item. One link is that my invoice reference gets populated advance line item. So i want due date (not payment term) also to get populated in advance line item.
    Please help.
    Edited by: Deepak Agrawal on Jul 29, 2011 11:43 AM

  • Getting "Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452)" error after upgradating to siebel Open UI 8.1.1.11

    Hello Team,
    We have upgraded from Siebel 8.1.1.3 to Siebel Open UI  8.1.1.11.
    But after up-gradation we are getting the below error in   "My Account Opportunity" View.
    We detected an Error which may have occurred for one or more of the following reasons:
    Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452).
    Thanks,
    Tirupati Nanda
    Mob:-9742404115

    Hello Team,
    We have upgraded from Siebel 8.1.1.3 to Siebel Open UI  8.1.1.11.
    But after up-gradation we are getting the below error in   "My Account Opportunity" View.
    We detected an Error which may have occurred for one or more of the following reasons:
    Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452).
    Thanks,
    Tirupati Nanda
    Mob:-9742404115

  • Can we have 1 extractor that runs delta on 3 date fields in 3 diff tables?

    Hi guys
    i need a extractor that tracks changes to 3 different tables based on three different date fields one in each table. can this be done in one extractor. i understand u can have only one delta pointer per extractor. but is there a way to do this using a function Module?
    the other option is i know create three extractors, but since the fields i need are going to be a inner join b/w all three tables i was wondering if only one extractor is possible?
    Thanks

    Hi,
    this dummy date as the generic delta field will be passed to the fm (in case of a delta request) in the table i_t_select. Grab the value and design your select statement/s as you need. E.g.
    select * from your_view
    where date1 >= delta_date or date2 >= delta_date or date3 >= delta_date....
    Hope this helps!
    regards
    Siggi

  • Create a table and upload data in MS ACCESS from SAP ABAP programming?

    Hi All,
    How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
    Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
    Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
    Is this only solution for this?  Or Any other possibilities?
    Please give me solution.
    Thanks in advance.

    Hi,
    It is not possible to create tables in a non SAP schema from inside SAP.
    The SAP-Oracle license also does not allow you to create the table (see note 581312):
    the following actions, among other things, are therefore forbidden at database level:
    Creating database users
    Creating database segments
    Querying/changing/creating data in the database
    Using ODBC or other SAP external access methods
    Please refer following link,
    [Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    You can also do it by LSMW,
    If you are using Access 97, you can download directly into an access
    database from SAP. See program RIACCESS for details. You have to establish
    an RFC destination PS_ACCESS_1 and 2.
    There are then a couple of function modules. Go to SE37 and put in
    msaccess and hit PF4.
    The following is from the readme file: sapgui/ps/readme.sap
    For the MS-Access interface SAP delivers 4 files:
    WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
    (PS module). This program creates a MS Access database. The structure
    information of the tables is transferred from R/3. In addition to
    these tables a table named DDIC is created. This table contains the
    structure information and should in no case be modified or deleted.
    WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
    after WDPSASTR. This program filles the tables of the database with data.
    There must not be made any changes of the structure of
    the tables between the calls of WDPSASTR and WDPSATAB.
    WDPSAZET.EXE This is an RFC client program that triggers work/time
    confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
    confirm).
    WDPSAMAT.EXE This is an RFC client program that triggers material
    confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
    Please also refer following links,
    [Click here|Upload data from MS Access tables, to SAP tables.;
    Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
    It is available in the "SAPGUIPS directory".
    Then do the followings :
    1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
    2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
    Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
    wdpsastr.exe and wdpsatab.exe respectively.
    3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
    The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
    Please note that Access only supports tables with up to 255 fields.

  • How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table?

    Hi Team,
    Just wanted to know : How does the value filled in Appointment Date field reflect in IE_SHIPMENTSTATUS table in OTM.
    Please help.
    Regards,
    John

    Sorry, wrong forum: created in ABAP forum instead.

  • I lost my handset and now have a replacement but when I try to backup from icloud I get a message saying 'cannot Load Backups' Can anyone help?

    I lost my handset (iphone 4s) and now have a replacement but when I try to restore from icloud I get a message saying 'cannot load backups'. Can anyone help?

    Unless you've tried to install an older version of iTunes that message likely indicates a corrupt library file. See Empty/corrupt library after upgrade/crash...
    tt2

  • According your advice reset my home screen layout but not yet show apple store application and another question when I any thing brows from apple site by safari then show "this address is invalided" please advice me......

    According your advice reset my home screen layout but not yet show apple store application and another question when I any thing brows from apple site by safari then show "this address is invalided" please advice me......

    I am using windows Vista and having this problem also (not exactly, but iTunes gives pop-up that "files are in use"). Acting a suggestion from another answer in this thread, I clicked on Computer and selected eject...windows did warn me that the device was in use, but also gave me a CONTINUE button, which I clicked and it was ejected...had to go back to iTunes and eject the iPod there also, but it did eject

  • HT201328 My iPhone is from Japan and I want to activate it here in the Philippines because I'm living here. I have lost the original SIM from Softbank and replaced it with a new SIM card from Globe. How can I use the SIM card from Globe?

    My iPhone is from Japan and I want to activate it here in the Philippines because I'm living here. I have lost the original SIM from Softbank and replaced it with a new SIM card from Globe. How can I use the SIM card from Globe?

    You cannot. The iPhone is locked to Softbank, and only they can unlock it. Problem is that Softbank will NOT unlock the phone, as they do not offer iPhone unlocking.
    Buy an iPhone in the Phillipines.
    PS Before you go on a rant at Apple, be aware that Apple does NOT unlock phones and they do not set unlocking policies. The carriers (Softbank in this case) set the unlocking policy.

  • CSS sheet covers up date drop down, and other Date field issues

    Portland needs a little help once again.
    My CSS stylesheet object acts like it has a higher "zIndex" then the date dropdown on an inputField.  This causes me to only see half the calendar or none of it.  Anyone else seen this and how did you get around it.
    Also, When I test my BSP page the date drop downs, tables, etc all look great.  However when the BSP page is rendered on an iView in EP6.0 they look terrible.  Colors change, etc.  What is happening here and how do I get around it.
    Much Thanks in Advance,
    Anthony

    Please make these corrections in to your system that solves your problem.
    1) Call transaction se80                                               
    2) Click on "MIME Repository"                                          
    3) Goto /SAP/PUBLIC/BC/UR/Design2002/js                                
    4) Open each of these files:                                           
           sapUrMapi_ie5.js                                                 
           sapUrMapi_ie6.js                                                 
           sapUrMapi_nn6.js                                                 
           sapUrMapi_nn7.js                                                 
        and replace 'ur_pop_' with 'ur_'                                    
        and replace 'class=\"urCalArrPrev\"' with                           
        'class=\"urPagHBtnPrevItem\" style=\"background-repeat:no-repeat;   
    background-position:left\"'                                            
        and replace 'class=\"urCalArrNext\"' with                           
        'class=\"urPagHBtnNxtItem\" style=\"background-repeat:no-repeat;    
    background-position:right\"'                                           
        and replace 'class=\"urCalArrNextDsbl\"' with                       
        'class=\"urPagHBtnNxtItemDsbl\" style=\"background-repeat:no-repeat;
    background-position:right\"'

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • Setting and updating Date field in a jsp form

    Hi:
    I have a form (in jsp) where in I have a field for Date. The Date is entered in the form: 12/18/2002. I using beans to retrieve the form values and then pass to the program. THe date field is passed as String to the bean. The program changes the String to util date
    (assignment ===> name of bean)
    String strDate = assignment.getDueDate();
    java.util.Date adate = null;
    DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT,Locale.US);
    try {  
    adate = fmt.parse(strDate);
    System.out.println("Util date in Bo: "+adate);
         catch (ParseException e)
              System.out.println(e);
    and before inserting into database, it is changed from util.date to sql.date.
    long time = adate.getTime();
    java.sql.Date sqldate = new java.sql.Date(time);
    Until now everythign is working fine. On my way back, when i retrieve the sql.date from the database, I change it to util date:
    java.sql.Date sqlDate = rs.getDate("dueDate");
    java.util.Date uDate = sqlDate;
    and then covert this util date to String
    String strDate = uDate.toString();
    When I display this string date on my form... it is in the format
    2002-12-18, although i have inserted it in 12/18/2002 format.
    Can anyone help me since i want my date to appear on the form in the format I enter (12/18/2002) and not the 2002-12-18 format of database

    Already answered elsewhere.

  • Stock transport order and rescheduling date field

    hi,
    I am a bit surprise why "rescheduling date" field value in stock requirement list (MDO4) is always empty (and with exception message code 10) for my stock transport order?
    Did you guys having same problem?
    thanks.

    Does anyone know this?

Maybe you are looking for

  • How can I automate pasting from one document into another?

    Hi, I have a need for a document that I am regularly appending a blank form from another document to. I would typically just open the second document and select and copy the block of text and then return to my working document and enter a page break

  • Cannot connect to the internet from my MAC on WRT160Nv2 - no problems connecting from my PC

    Hi, I have just bought a WRT160Nv2, but I am having problems connecting to the internet from my MAC (a powerbook with OS X) when I connect to the router wirelessly. If I try from my PC the Internet works fine. Also if I connect the MAC directly to th

  • How to remove list of Fields in slection screen instandard program RFITEMAP

    HI frnds, i want change the standard program (RFITEMAP) to Z program The Requirement is to remove the " selection using search help"  block in the selection screen actually this selection screen was designed using LDB's. I don't  know LDB concept...

  • Clustered Primary key in Azure search service

    Hi , Can you please let us know if it is possible to created Clustered Primary Key in Azure Search Service. We are unable to set the isKey property for more than one field in the index. Also can you providers some pointers on enabling search against

  • Error in running forms

    Hi all, I just started working on Oracle 9i developer suite The version i am using is Forms [32 Bit] Version 9.0.2.9.0 (Production) I just created a simple form and compiled it work fine But when i run .It opened an internet explorer and gave an erro