Difference between NULL and INITIAL

Hi All,
       I just wanted to know that if we have a statement such as 'IF VBAP-KWMENG IS INITIAL' or 'IF VBAP-KWMENG IS NULL' what is teh exact difference and where are they used. Is it that null is used for CHARACTER fields?
TIA

Hi,
An <b>Initial Value</b> is set for all the predefined data types
fo ex: type    Initial value
        b        0
        c        " "
        i        0
so when an object is created,the start value explicitly given by you is taken by that else initial value is taken.
<b>NULL Value</b> is Initial value of an empty column in a row of a database table.Null values can be processing using Native SQL statements, but they have no equivalent as the content of data objects in ABAP. Only the WHERE addition enables a special condition IS NULL for null values. Changing Open SQLstatements (INSERT, UPDATE, MODIFY) generally do not create null values, provided that you are not processing a view that does not comprise all columns of a database table. However, depending on the database system, you can also display empty strings as null values. Null values can still arise in database tables if the new columns are appended to filled tables. When reading with the Open SQL statement SELECT , null values can be created by aggregate functions or an outer join, but they are converted to initial values of the correct type when passed to data objects.
Please reward points if you feel it helps you
Thanks,
Sowjanya

Similar Messages

  • Difference between Null and null?

    What is the difference between null and NULL?
    When is each used?
    Thanks,

    veryConfused wrote:
    There is a null in java, but no NULL. null means no value. However, when assigning value, the following is different:Although the empty String has no special role. Null means, the referential type is not assigned (doesn't refer) to a specific object. The empty String is just another object though, so seeing it or pointing it out as something special when it actually isn't at all (no more special than new Integer(0) or new Object[0]) just adds to the confusion.

  • What is the difference between "= NULL" and "IS NULL" in SQL?

    Hi,
    I believe there is a difference between "= NULL" and "IS NULL" comparsion, but I couldn't find it. Anyone knows the difference?
    Thanks,
    Denny

    Aha, thanks:
    SQL> create table william_test_tab (col binary_double);
    Table created.
    SQL> insert into william_test_tab
      2  select rownum / (rownum - 1) from user_tables where rownum < 4;
    select rownum / (rownum - 1) from user_tables where rownum < 4
    ERROR at line 2:
    ORA-01476: divisor is equal to zero
    SQL> insert into william_test_tab
      2  select 1d * rownum / (rownum - 1) from user_tables where rownum < 4;
    3 rows created.
    SQL> select * from william_test_tab;
           COL
           Inf
      2.0E+000
      1.5E+000
    3 rows selected.
    SQL> select * from william_test_tab where col is infinite;
           COL
           Inf
    1 row selected.
    SQL>

  • Difference between NULL and ''

    Hi All,
    Is the below right?
    NULL is not stored as a value in a field. Its an internal bit that is set to indicate that the value is unknown.
    Blank is stored as a value in the field. Because of that we can perform all kinds of comparisons with blank value, while we cant do the same with NULLs
    Regards,
    aak

    user605246 wrote:
    Hi All,
    Is the below right?
    NULL is not stored as a value in a field. Its an internal bit that is set to indicate that the value is unknown.
    Blank is stored as a value in the field. Because of that we can perform all kinds of comparisons with blank value, while we cant do the same with NULLs
    Regards,
    aakYou are corerct in that NULL is not stored as a value in a field, but sorta/kinda wrong that it is an internal bit set to indicate that the value is unknown.
    If the NULL column(s) is/are the last column(s) in the table, then null values are not stored at all. The basic structure of a row stored on disk is (highly simplified)
    col1length|col1data|col2length|col2data|col3length|col3dataSo, given a row with col1 = 'ABC', col2 = 'Hello' and col3 null what is stored is:
    3|ABC|5|HelloHowever, if col2 is null and col 3 = 'Hello' then what is stored is:
    3|ABC|0|5|HelloSo the length byte is set to 0 to indicate that the column is null. Although the actual storage mechanisims for other data types differ from varchar2 example above, the 0 valeu i nthe length byte always indocates a null, and trailing null columns take 0 bytes of storage.
    John

  • Difference between NULL and two single quotes

    Hi,
    Please advice me on the following.
    First let's do an update.
    update table_name set column_name ='';
    After updating why do following queries return different results?
    1. select count(*) from table_name where column_name is null;
    2. select count(*) from table_name where column_name ='';
    I understand update query set the column values to null and first select statement is the correct way to get the number of null values. But I want to know what's wrong with the second select statement.
    Thank You.
    Edited by: Sajeeva Lakmal on Jan 15, 2013 9:29 PM

    Sajeeva Lakmal wrote:
    Hi,
    Please advice me on the following.
    First let's do an update.
    update table_name set column_name ='';
    After updating why do following queries return different results?
    1. select count(*) from table_name where column_name is null;
    2. select count(*) from table_name where column_name ='';
    I understand update query set the column values to null and first select statement is the correct way to get the number of null values. But I want to know what's wrong with the second select statement.
    Thank You.
    Edited by: Sajeeva Lakmal on Jan 15, 2013 9:29 PMhow can I reproduce what you report?

  • Difference between NULL and nil?

    I've searched but can't find a clear coherent answer. Could someone spell this out for me?
    Thanks

    command-double-click is your friend
    /* A null pointer constant. */
    #if defined (STDDEFH) || defined (_needNULL)
    #undef NULL /* in case <stdio.h> has defined it. */
    #ifdef _GNUG_
    #define NULL __null
    #else /* G++ */
    #ifndef __cplusplus
    #define NULL ((void *)0)
    #else /* C++ */
    #define NULL 0
    #endif /* C++ */
    #endif /* G++ */
    #endif /* NULL not defined and <stddef.h> or need NULL. */
    #undef _needNULL
    #ifndef NULL
    #define NULL _DARWINNULL
    #endif /* ! NULL */
    #ifndef nil
    #define nil NULL
    #endif /* ! nil */

  • Difference in Null and Empty String

    Hi,
    I have been wondering about the difference between Null and Empty String in Java. So I wrote a small program like this:
    public class CompareEmptyAndNullString {
         public static void main(String args[]) {
              String sNull = null;
              String sEmpty = "";
              try {
                   if (sNull.equalsIgnoreCase(sEmpty)) {
                        System.out.println("Null and Empty Strings are Equal");
                   } else {
                        System.out.println("Null and Empty Strings are Equal");
              } catch (Exception e) {
                   e.printStackTrace();
    This program throws Exception: java.lang.NullPointerException
         at practice.programs.CompareEmptyAndNullString.main(CompareEmptyAndNullString.java:10)
    Now if I change the IF Clause to if (sEmpty.equalsIgnoreCase(sNull)) then the Program outputs this: Null and Empty Strings are Equal
    Can anyone explain why this would happen ?
    Thanks in Advance !!

    JavaProwler wrote:
    Saish,
    Whether you do any of the following code, the JUnit Test always passes: I mean he NOT Sign doesnt make a difference ...
    assert (! "".equals(null));
    assert ("".equals(null));
    You probably have assertions turned off. Note the the assert keyword has nothing to do with JUnit tests.
    I think that older versions of JUnit, before assert was a language keyword (which started in 1.4 or 1.5), had a method called assert. Thus, if you have old-style JUnit tests, they might still compile, but the behavior is completely different from what it was in JUnit, and has nothing to do with JUnit at all.
    If you turn assertions on (-ea flag in the JVM command line, I think), the second one will throw AssertionError.

  • VARCHAR2:: How to differnciate between NULL and empty string '' ?

    Hello to all,
    I'm looking for a possibility to differnciate between NULL and empty string '' in column of type VARCHAR2.
    I have an application relying on that there is a difference between NULL and ''.
    Is it possible to configure ORACLE in some way ?
    Thanx in advance,
    Thomas

    try check if a varchar variable has an empty string
    by checking its lengthAnd that would accomplish what? But see for yourself:
    DECLARE
      v_test VARCHAR2(10);
    BEGIN
      v_test := '';
      DBMS_OUTPUT.put_line(LENGTH(v_test));
      v_test := NULL;
      DBMS_OUTPUT.put_line(LENGTH(v_test));
    END; C.

  • What's the difference between a not-initialed object and a null object

    hi guys, i wanna know the difference between a not-initialed object and a null object.
    for eg.
    Car c1;
    Car c2 = null;after the 2 lines , 2 Car obj-referance have been created, but no Car obj.
    1.so c2 is not refering to any object, so where do we put the null?in the heap?
    2.as no c2 is not refering to any object, what's the difference between c2 and c1?
    3.and where we store the difference-information?in the heap?

    For local variables you can't have "Car c1;" the compiler will complain.That's not true. It will only complain if you try to use it without initializing it.
    You can have (never used, so compiler doesn't care):
    public void doSomething()
       Car c1;
       System.out.println("Hello");
    }or you can have (definitely initialized, so doesn't have to be initialized where declared):
    public void doSomething(boolean goldClubMember)
       Car c1;
       if (goldClubMember)
           c1 = new Car("Lexus");
       else
           c1 = new Car("Kia");
       System.out.println("You can rent a " + c1.getMake());
    }

  • Difference between null string and empty string??

    what is the major difference between null string and an empty string??
    I wrote the following simple program and I could see some different output.
    Other than that, any other differences that we should pay attention to???
    C:\>java TestCode
    Hello
    nullHello
    public class TestCode
         public static void main(String[] s)
         {     String s1 = "";
              String s2 = null;
              System.out.println(s1 + "Hello");
              System.out.println(s2 + "Hello");
    }

    The difference is that an empty String is just empty but a null String has no value (i.e. it is not instantiated) this has signifigance since all Strings are objects.

  • Difference between Null in c and Null in Oracle

    Hi,
    Can any one tell me the difference between NULL in C language and NULL in Oracle
    Rds,
    Naga

    > Null is some garvage value in oracle.
    Not sure what you mean.
    AFAIK and not being a C programmer myself, isn't null CHR(0) in C? I'm not sure the two concepts (SQL null and C null) have anything in common.

  • Difference between -1 and null in the targettype filed

    Hi
    Could anyone advise what is the difference between -1 and null in the targettype filed in marketing documents?
    For example, in Sales Quotation - Rows (QUT1) table, I found for some open sales quotations, the field is null however the DB help file suggest the default value is -1 so I suppose it should be -1 for open documents.
    Many thanks for your advisory.

    Hi, Qian!
    I investigated that "-1" value appears in targettype field in Sales Quotation Rows (QUT1 table) when you Dublicate a Sales Quotation document (Ctrl + D). And NULL value appears when you create a new document without dublicating.
    In case you want to equal these 2 "empty"-values using T-SQL, you can use ISNULL(targettype, -1) function - this will give you -1 for both the "empty"-values
    HTH!
    Message was edited by: Aleksey Kuznetsov

  • Difference between void and null?

    wht is da difference between void and null w.r.t java?

    corlettk wrote:
    Why do you care, unless you're implementing a java compiler or JVM?Wow, you sure do suck at helping out in a forum. Why even make this post? You're not helping the OP any, and you made yourself look like a tool.
    To the op:
    Null is java's version of a null value. Java's version is more strict then many other languages, and will not work in a boolean expression or anywhere code expects a real and not null value. It's simply null.
    Void is java's way of declaring no return type on a method. Methods that are void take no 'return' statement and if one is provided will cause a fatal error. The exception to this is using 'return' without a value, which returns control to the caller of the method.
    Observe:
    //this method returns an int
    public int return_int(){
        int value = 5;
        return value;
    //this method does not return an int
    public void return_nothing(){
        int another_value = 123;
        System.out.println("Here's the value: " + return_int());
    //this method does not return anything
    public void nothing_returned(){
        return_nothing();
        return;
        System.out.println("This line never gets printed; the method returned control already!");
    }

  • What is difference between Iterator and Collection Wrapper?

    Hi all,
                  I dont understand the actual difference between Iterator and Collection Wrapper. I observed both are used for the same purpose. Could any one please let me know when to use Collection Wrapper and when to use Iterator??
    Thanks,
    Chinnu.

    L_Kiryl is right.
    Collections support global iteration (through collection->get_next( )) and local iteration (through iterator->get_next( )).
    Each collection has a focus object. Initially, the first object has the focus.
    Any global iteration moves the focus, which is published by the event FOCUS_CHANGED of the collection.
    If you want to iterate on the collection without moving the focus (and without triggering timeconsuming follow-up processes) you can use local iteration. To do so, request an iterator object from the collection and use this to iterate.
    And one more advantage of using iterator: it takes care of deleted entities. If you use global iteration then when you reach deleted entity it will be an exception. But there is no exception with iterator in the same situation.

  • Office 2013 installed with KB2817430, windowsupdate still finds KB2850036. difference between KB2817430 and KB2850036

    Hi,
    I've made a silent Office 2013 installer with /admin and put SP1 MSP's in the updates folder.
    After deployment under installed updates it shows: Service Pack 1 for Microsoft Office 2013 (KB2817430) 32-Bit Edition
    But when I check for new updates, "ServicePack 1 for Microsoft Office 2013 (KB2850036) 32-Bit Edition" is ready for download and install.
    What is the difference between KB2817430 and KB2850036?
    It seems that I cannot download KB2850036 and also integrate it in the silent installation.
    Another question: Is the updates folder from Office only for servicepacks? or can I put also updates and patches MSP files in here? If yes then i've got a lot of files with the same name and different files sizes. For example After extracting SP1 I've got
    the file "proofsp-en-us.msp" which is 10MB and when extracting another patch also i've got a proof-en-us.msp and is 8MB.
    So which one need to go in the updates folder?
    Can anyone help me out?
    thanks

    Hi,
    As can be seen from below KB articles, KB2817430 only contains Service Pack 1 (SP1) for Office 2013, whereas KB2850036 also contains Service Pack 1 (SP1) updates for other Office 2013 related desktop products. For example, Microsoft Office 2013
    Language Pack, Project 2013, SharePoint Designer 2013, Office Proofing Tools 2013, etc.:
    https://support.microsoft.com/en-us/kb/2850036
    https://support.microsoft.com/en-us/kb/2817430
    So if you have any of these products on your computer, Windows Update might offer related updates to you.
    Regarding the Updates folder issue, you can put any Office software updates in it during the initial installation, such as service packs or hotfixes. A newer patch might make changes to a specific file, you can check the version number of that file, and keep
    the newer one in the folder.
    Here is the reference you will need:
    http://blogs.technet.com/b/office_resource_kit/archive/2011/05/05/using-the-updates-folder-to-deploy-software-updates-with-an-office-2010-installation.aspx
    (Note, it was created against Office 2010, however the steps should hold good for Office 2013)
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Time & Date Stamp in a presentation / SWF files to add to presentation

    I need to display time & date stamp to a presentation. I were trying to use a SWF object, is there a simpler way? Thanks Ibook G3 Ibook G4 TiG4 MiniMac   Mac OS X (10.4.4)  

  • Adding a Font Selection to GUI

    Hi, I am working on a simple text editor program, like Windows Notepad. However in my version, the user only needs to be able to type in text and save the memos typed to file. However, I would also like to add a font option. More specifically, I am t

  • Bug report: Photoshop can't record an action where you insert the menu item "Tile all horizontally".

    I am running CS6 beta on Mac OS 10.7.3 Photoshop can't record an action where you insert the menu item "Tile all horizontally". Expected behavior: add the tile all horizontally action to your actions. Behavior: nothing happens. This does work for Til

  • Make the personalize link apear in the masthead

    Hello all, When I add the EU_Role to a user - the personalize link is added to the masthead. When I add the 'Portal Personalization' workset directly to one of my roles - the workset appers on the DTN and not on the masthead. How can I make it appear

  • Help with SO_DOCUMENT_SEND_API1

    Hello Everyone I am trying to attach an excel sheet to email and for this I am using SO_DOCUMENT_SEND_API1 function module.  Everything works fine, except after the last field it puts blank spaces (close to 100).  Is there a way that I can cut the ex