How to check date type is initial

there is SQL sentence.
DATA: BEGIN OF it OCCURS 0,
    matnr LIKE mara-matnr,
    laeda  LIKE mara-laeda,
  END OF it.
select matnr laeda
from mara
where laeda <> space.
How can I  check the  laead field is initial.
Regards.

Hi,
     Try this syntax
SELECT... WHERE s IS [NOT] NULL...
SELECT matnr laeda FROM mara INTOTABLE it_itab WHERE
laeda IS [NOT] NULL.
Regards
Bala Krishna

Similar Messages

  • How to check data type of the field symbol at run time

    Hi,
    My code is as following:
          LOOP AT <fs> ASSIGNING <wa_covp_ext>.
            ASSIGN COMPONENT 86 OF STRUCTURE <wa_covp_ext> TO <f_zzname>.
            IF sy-subrc = 0.
              ASSIGN COMPONENT 158 OF STRUCTURE <wa_covp_ext> TO <f_pernr>.
              IF sy-subrc = 0.
                  SELECT SINGLE sname INTO <f_zzname> FROM pa0001
                                WHERE pernr = <f_pernr>
                                AND endda GE sy-datum
                                AND begda LE sy-datum.
             ENDIF.
          ENDIF.
        ENDLOOP.
    This query is giving dump when <f_zzname> is type P length 8 and decimals 2, because it tries to put PA0001-sname into it which is type C length 30. So I want to check the type of <f_zzname> before the select statement. If it is character 30, then I will write the select statement else not.
    How to check data type of the field symbol at run time? If it's not possible, then can somebody suggest a workaround? Thanks.

    check this ...
    write describe statement  ...
    field-symbols : <f_zzname> .
    data : sname like pa0001-sname,
           typ(10).
    assign sname to  <f_zzname>.
    describe  field <f_zzname> type typ.
    write : typ. <-- typ contains character type in this case ..
    U can check if typ is of character(C) if so .. write the select statement ...

  • SQL - How to check data type definition

    Is it possible to check (inside SQL statement) how particular field is defined. Is it VARCHAR2(5) or VARCHAR2(10)

    If by field you mean column, then use USER_TAB_COLUMNS, ALL_TAB_COLUMNS or DBA_TAB_COLUMNS:
    SELECT  TABLE_NAME || '.' || COLUMN_NAME || ' ' || DATA_TYPE ||
            CASE
              WHEN DATA_TYPE LIKE '%CHAR%' THEN '(' || DATA_LENGTH || ')'
              WHEN DATA_TYPE = 'NUMBER' THEN '(' || DATA_PRECISION  || ',' || DATA_SCALE || ')'
            END X
      FROM  USER_TAB_COLUMNS
      WHERE TABLE_NAME = 'EMP'
      ORDER BY COLUMN_ID
    X
    EMP.EMPNO NUMBER(4,0)
    EMP.ENAME VARCHAR2(10)
    EMP.JOB VARCHAR2(9)
    EMP.MGR NUMBER(4,0)
    EMP.HIREDATE DATE
    EMP.SAL NUMBER(7,2)
    EMP.COMM NUMBER(7,2)
    EMP.DEPTNO NUMBER(2,0)
    8 rows selected.
    SQL>   SY.

  • How to get data type of variable in program..

    Hi ABAP Guru.
    I need to know how to get data type of variable or any structure field.. because I got short dump when use command REPLACE ALL OCCURANCE ... with variable/structure field that has data type I or P, I think it should be used with data type CHAR only, So I need to check the data type first.
    Please give me your advice
    Thank you all.
    Nattapash C.

    data : v_value type i,
             v_char(10) type c.
    v_value = 10.
    move v_value to v_char.
    REPLACE ALL OCCURRENCES of '#' from v_char....
    Best regards,
    Prashant

  • How to change data type of attribute in caf

    hi.
    this is my problem.
    i been added a attribute in an entity service called emloyee. named "Birthday", use the data type "com.sap.caf.core.date".
    when i tried modify the entity service, i hit exception about "DST Daylight Saving Time".
    because of DST, the date will add an hour such like "1957/04/01 00:00:00.0" to "1957/04/01 01:00:00.0", and com.sap.caf.core.date will throw an exception.
    is anyone had same problem like me?
    how to fixed it(if passable)?
    and, how to change data type?
    thanks.

    Hi Sruthi,
    all you need to do on this is open the report go to the parameters, select the parameter that you wish to change and click "Edit". This will allow you to change thefield to a date rather than a date time.
    Regards,
    Noel

  • How to crete data type from XSD

    Hi All,
    can anyone tell me ...how to create data type from agiven xsd.
    I need urgently....
    thanks in advance....

    import this XSD, load this in your mapping editor and then use this to crate the datatype manually.
    Or, use XML spy, load this XSD and then you should be able to see the Structure, or,
    Look into the XSD data and decipher things yourself
    Regards
    Bhavesh

  • How the CRM data is transferred (initial load) to TREX server in CRM EHP1

    Hi Guru's
    I am working on HV segmentation first time and would like to know, how the CRM data is transferred (initial load) to TREX server in CRM EHP1, if we create the 'Data source for HV - Attribute set / Inforset' will that transfer the data to TREX server or do we need to perform Initial load by execute by batch program / Transaction.
    For the update (delta load) is the program : CRM_MKTTG_TREX_UPDATE to update the BP data, can we also add other objects (Transactional data) for delta load.   
    Regards,
    Ajay Kumar

    Hi Ajay,
    Yes you are right the Report CRM_MKTTG_TREX_UPDATE is used for Full load (inital load) for HV segmentation data.
    Both Full and Delta load is suggested to be performed in background. You can use the options "Business partners" and "Marketing permissions". For BP's you can use Delta upload with further options:
    Synchonize Business Partners Beforehand
    Force Update
    Offset for Delta Table Entries (in sec.)
    You can also "Define Delta Source Objects for High Volume Segmentation" in SPRO > MKT > HV segmentation.
    Here you can set relevant data source objects that is available for delta upload.
    For more details refer to documentation next to the customization entry.
    Hope this information helps you.
    Regards,
    Anup

  • How to check the type of uploaded file

    Hi, experts,
    how can I check the type of the uploaded file? I am dealing with exception handling now: when user uploads a type of file which is not allowed, then error msg shows up. So first I have to retrieve the type of the uploaded file.
    Best regards,
    Fan

    Best approach would be to control the file upload program. Here in force user to chose only the kind of file supported.
    If you are using WD4A & fileupload UI element, then after user select a file to upload, before processing the file you can check the file name and get its MIME TYPE as shown below.
    example
    data type file string.
    data dot_offset type i.
    data extension type mimetypes-extension.
    data mimetype type mimetypes-type.
    file = 'Image.jpg'.
    " Find out file name extension
    find first occurrence of regex '\.[^\.]+$' in file match offset dot_offset.
    add 1 to dot_offset.
    extension = file+dot_offset.
    " Get mime type
    call function 'SDOK_MIMETYPE_GET'
      exporting
        extension = extension
    importing
        mimetype  = mimetype.
    later using if/else or CASE statement define your logic.
    Greetings
    Prashant
    P.S. Points Welcome

  • How to change data type for a field?

    Hi Experts,
    I have one std screen having one field having numeric type. So it will accept only numeric value. Remember I am using standard transaction.
    Now my user wants to enter the special character like + or - in that field(having data type numeric).
    How i can change the data type for the particular field  so that it will also accept + or -?
    Plz reply me as earliest as possible.
    Thanks in advance.

    Hi salil ,
    u have to change / create Domain of  that Data Element.
    but u have to check the Implications. i have done the same thing , but that one is Customer defined one , i got nearly 20 short dumps while doing the TP.
    regards
    Prabhu

  • FLEX- how to serialize date type to null in web service call

    Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00' into a SOAP xml structure? I am calling a commercial web service that exposes data structures. I use one of these data structures as a parameter to a method call in the web service. The data structure has about 12 date fields and I need most of them to be null in the resulting database. The WSDL/SOAP force me to populate these fields with a date type. I can't figure out how to populate a date variable with a NULL value. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using:
    var dateStr:String = "0000-00-00T00:00:00+";
    var emptyDate:Date = DateUtil.parseW3CDTF(dateStr);
    newReqData.DateTimeInit = emptyDate;
    When calling this same web service with a .Net client, it automatically puts in the null date value of '000:00:00T00:00:00' into the xml for me, if I don't populate the date field in the data structure.
    Any help would be appreciated.

    Hi,
    Thanks frank.
    I already check this link before posting this so if you have any other link then kindly reply.
    Regards,
    Devang

  • How to insert data type information to oracle database

    Hi, there,
    I want to insert date information to oracle database in a jsp page using JSTL. but always got wrong message:
    javax.servlet.jsp.JspException:
    INSERT INTO DATE_TEST
    (date_default,date_short,date_medium)
    values(?,?,?)
    : Invalid column type
    I don't know how to convert java date type to oracle date type or vice versa. the following is the source code(all the fields of DATE_DEFAULT,DATE_SHORT,DATE_MEDIUM are oracle date type. and even I want to insert d instead d1, I got the same wrong message)
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.util.*" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
    <%
    Calendar now;
    Calendar rightNow = Calendar.getInstance();
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <h2>
    The current time is:
    </h2>
    <p>
    <%= new java.util.Date() %></p>
    <%
    java.util.Date d=new java.util.Date();
    java.sql.Date d1=new java.sql.Date(d.getYear(),d.getMonth(),d.getDate());
    out.print(d1.toString());
    %>
    <sql:update>
    INSERT INTO DATE_TEST
    (DATE_DEFAULT,DATE_SHORT,DATE_MEDIUM)
    VALUES(?,?,?)
    <sql:dateParam value="${d}" type="date" />
    <sql:dateParam value="${d}" type="date" />
    <sql:dateParam value="${d}" type="date" />
    </sql:update>
    </body>
    </html>
    thank you very much for the great help!!

    I don't have time to read thru all your code, but I hope this information will help you.
    It depends on how the Oracle database was set up. Usually, the date format is something like this: '27-MAY-2003 22:10:00'. A quick check will be to run this SQL script in SQLPlus:
    select sysdate from dual;
    You have to convert the date from textbox or whatever to this exact Oracle format. Otherwise, Oracle will not accept it. It is very picky on that. I found the best way is to do the conversion inside the SQL statement. It makes life so much easier.
    Hope this helps.

  • How to check date globally?

    Hi,
    I wonder how I best check for a date against a fixed date.
    e.g. I want to check that zrcthau-erdat is before 01 jun 2008. 
    I wonder as I do not know how the date preference is set for the user running the program.
    it could be:
    MM/DD/YYYY
    MM-DD-YYYY
    DD.MM.YYYY
    YYYY/MM/DD
    YYYY-MM-DD
    And so on....
    I specially run into this issue in the smartforms logic 'flowlogic alternative'  I can e.g. verify the  condition 
    VKORG = '2275' but how do I do this with the zrcthau-erdat as I do not know what the date format of the user is.
    Or does smartforms handle it all in internal dates?
    Anybody any ideas?
    Thanks,
    Frans

    Hi
    The information of day can be stored in a field with the data type is DATS.
    The DATS is type N of 8 char and it has always the internal format YYYYMMDD, when the date has to be shown, the system translate the date from internal (input) to external (output) format.
    This doesn't depend on how the developer store the date in the system, i.e if developer saves the date in wrong format it's as if he saved a wrong date.
    If I have the date 11/06/2008 and when I store this date I insert 11062008 (instead of 20080611), the system will interpret a date where the year will be 1106, the month 20 and the date 08.
    Anyway u should consider in every screen of SAP the date is always automatically converted from input to output format (when it has to show a date) and output to input format (when it has to store the value).
    The developer should manage the input format only in the interface program, where the date comes from non SAP-system.
    Max

  • Checking data type compatibility

    Hi,
    Is there a method to check if two data types are compatible with each other? I need to perform this check without any value at hand. With a value it works if I create data references and assign them to field symbols. How do I make the same more generic with just the data type and length given.
    Any help would be greatly appreciated. Thanks.
    regards,
    nithya

    I have extracted the below info from a document that i have with me. Do provide your mail-id if you need the document. I dont mind sharing...:)
    Please check this for more understanding...
    <b>Type Checks and Type Compatibility</b>
    For historical reasons, the types of field symbols and parameters in subroutines or function modules can be defined with the STRUCTURE addition.
      If the types of field symbols are defined with FIELD-SYMBOLS <f> STRUCTURE s DEFAULT wa and they are later assigned a data object wa with ASSIGN wa TO <f> ... , in a NUP both statements are checked to see if wa is at least as long as s and wa satisfies the alignment requirements of s at runtime.
    16
    If parameter types in function modules or subroutines are defined with FORM form1 USING/CHANGING arg STRUCTURE s ... or FORM form2 TABLES itab_a STRUCTURE s ... and the parameters are passed actual parameters with PERFORM form1 USING/CHANGING wa or PERFORM form2 USING/CHANGING itab_b, the NUP also only checks if wa or the line type of itab_b is at least as long as s and wa or the line type of itab_b satisfies the alignment requirements of s. The same is true for function module parameters whose types are defined with STRUCTURE.
    The following extra rules are checked in a UP after defining the type with STRUCTURE when assigning data objects, that is for the DEFAULT addition in the FIELD-SYMBOLS statement, for ASSIGN, and when passing actual parameters.
    1. If wa or the line type of itab_b is a flat or deep structure, the length of s must be the same for the Unicode fragment views of wa or of itab_b and s.
    2. If wa is a single field, only the character-types C, N, D or T are allowed and the structure s must be purely character-type.
    Checking both these rules requires additional runtime. It is therefore recommended that, if possible, you type the parameters using TYPE, since the test for actual compatibility is much faster.
      If the type of an argument in a function module was defined with ... LIKE struc, where struc is a flat structure, the NUP only checks if the argument is a flat structure with the same length when the parameters are passed. In the UP, it also checks that the fragment views of the current and formal parameters are the same. For performance reasons, it is again recommended that you use TYPE to assign types.
      Furthermore, two structures of which one or both contain Includes, are only compatible if the alignment gaps caused by the Include are the same on all platforms. In the following example, struc1 and struc2 are not compatible because a further alignment gap occurs in the US before the INCLUDE:
    BEGIN OF struc1, BEGIN OF struc2, BEGIN OF struc3,
    a(1) TYPE X, a(1) TYPE X. b(1) TYPE X,
    b(1) TYPE X, INCUDE struc3. c(1) TYPE C,
    c(1) TYPE C, END OF struc2. END OF struc3.
    END OF struc1.
    Since the type compatibility can differ in a UP and an NUP, the type compatibility rules of the calling program are valid in an NUS for checking the parameters. This means that if an NUP calls a UP, the type compatibility is defined as in the NUP. Conversely, the Unicode check is activated if a UP calls an NUP.
    Kind Regards
    Eswar

  • How to check data in a cluster table?

    Hello
    I am new to BW and SDN.
    I have to see data in a cluster table.
    I went to SE11, selected data type as KOMV, it displayed table, but data content button is greyed out.
    Can someone please tell me how to view the data?
    Thanks
    Priya

    Hi,
    Thanks, I can see the data now.I am expecting that data should display in the 2LIS_VDKON extractor.There are two records for particular condition type.Item 10 and Item 20, but in RSA3, it is showing only one record for Item 20 and not showing for Item 10.
    I have cleaned and filled the setup tables, but still no luck.
    Can you please guide me, where else to look?
    Thanks
    Priya

  • How to determine data type of cell in Excel file

    I have a company standard Excel file that needs to be read to determine what tests to run.  I have no control over its format.  I need to be able to tell what the data type is in order to read it using the LabView sample code.  It is a hodge poge of numbers and strings.  Some of the numeric fields are formated as hex while some are floating point.  There does not appear to be a vi that I can call to determine info about the cell formating.  As I remember it, the Windows Active X control for accessing Excel support that.  I really was hoping to avoid dealing with the Active X control for Excel directly.
    Any help/ideas?
    Outputting it in CSV or similar is not an option.
    Solved!
    Go to Solution.

    If you have to deal with Excel directly, I don't see how you're going to get around using Active X.
    MSDN page on using ActiveX

Maybe you are looking for

  • .mac Family pack:: questions about editing on two computers

    Hey I'm new and would love some advice. I'm a college student with some web experience. I'm helping out my folks' business by making them a website. I'd also like to have a website of my own. 1. It would be great if I could edit their business websit

  • Down payment Request Error

    Hi Guys, We are getting an error in a downpayment request. The error says " NO VAT registration numbers are allowed for downpayments / request ". How can we rectify this error and what changes should be done in the down payment request. This down pay

  • Aperture Issue with my MAC Mail account

    I inadvertently started to have Aperture email several photos and instead of sending 3 photos I clicked 70 photos (raw about 300mb) I cancelled the transfer and MY MAC account keeps spinning and the Draft box shows a clock icon witha incomplete. I am

  • Payment difference

    Dear Guru's I need a help from you. I am trying to do the payment differnce, but it is now happening automatically when I am doing F-53. It is asking me to give the GL Account mannually rather that taking the payment difference to a seperate GL Accou

  • Unable to communicate from adapter engine to Integration engine

    Hi, I have a scenario as shown below. Target PI->File sender CC->Soap Receiver CC->SOAP Sender CC->Source PI The file is getting picked up using file sender CC but probably due to communication failure between file adapter and IE, the message is not