Error in validation of Date Field

Hi Experts,
For my date field i assigned validation and is working properly.I could pop up the error message also.But my issue is, the entered wrong data is not getting deleted or cleared from the date field after validation.
How i can clear the wrong data entered in field automatically?
Please help me.
Regards,
Arun.

Hello Arun,
Can we use validate event for the same? Ideally it should cancel teh submit of the form.
I am a using SAP Adobe Interactive forms using transaction SFP in ABAP Workbench and am trying to check the possible ways to apply validations (client side validations) to the form data. These forms are expected to get called from HCM Processes and Forms processes.
Regards
Rajeev

Similar Messages

  • Table for Valid To date field in C203 Tcode

    Let me know the table name for "Valid To Date" field in C203 transaction.
    Thanks,
    Angavai.E

    Hi Angavai,
    Check with table PLMW.
    Regards,
    Raghu

  • Business partner change Valid From Date field

    How can I change the Valid From Date field in tables:
    BUT000
    BUT020
    BUT0BK
    BUT100
    Currently the of date of creation of the business partner is in this tables' Valid From field.
    In transaction BP the Address of the Business Partner is  valid from 01.01.1990 but still I get a warning that the business partner is not valid for date 01.11.2011.

    Sounds like the problem is the valid to date.  What is that date set to?

  • Error: No valid complaint data was found in this sales area

    Hi All,
    I am getting below error while delta or request download of customer.
    No valid complaint data was found in this sales area
    Message no. CRM_SPL_BUPA_FRG0010203
    Validation error occurred: Module CRM_BUPA_MAIN_VAL, BDoc type BUPA_MAIN.
    Message no. SMW3018
    Error case:
    ECC-->Customer(Sold to) extended to a sales area and saved.
         CRM-->Business partner gets updated in the CRM properly.
    ECC--> Deletion flag for same customer and same sales area is set. (Deletion flag - "Selected sales area").
         CRM-->Business partner gets updated in the CRM properly and is not shown as extended to the sales area via BP t code.
    ECC-->Deletion flag is removed for the customer.
         CRM--> BDOC fails to update the Partner and goes in error.
    Problem comes when deletion flag is removed in ECC.
    Any help would be highly appreciated.
    Thanks in advance.
    -Ram

    Hi Ram,
    Hope you have not make any field mandatory in the Complaint tab in the sales area section in the BP.
    When you are removing the deletion flag please check if any entry is mandatory in the Complaint tab.
    Hope this will be useful
    Thanks and Regards
    DJ

  • Validation on Date Field in tabular Report

    Hi All,
    I have manually created the Tabular report and in that I have TWO DATE field
    1)Start Date
    2)End Date
    Now i want to put validation on start date as - Start Date Should Be More than sysdate.
    and validation on End date as - End Date should be More taht Start Date.
    How to put the validation ?

    Manish Jha wrote:
    What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    >What is the error you are getting ? Try executing the process in SQL workshop with hard coded values of apex_application.g_f03 and debug the error.
    Thanks,
    Manish
    Hi manish ,
    I have Used the following code to validate end date should be more less than start date;
    DECLARE
    l_error VARCHAR2 (4000);
    BEGIN
    IF TO_DATE(apex_application.g_f05 (i), 'DD-MON-YYYY ') > TO_DATE (apex_application.g_f04 (i),'DD-MON-YYYY'
    THEN
    l_error :=l_error
    || '</br>'
    || 'Row '
    || i
    ||' ,TEST';
    END IF;
    END LOOP;
    RETURN LTRIM (l_error, '</br>');
    END;
    it's giving the error like :
    ORA-06550: line 16, column 6: PLS-00103: Encountered the symbol "RETURN" when expecting one of the following: begin function pragma procedure The symbol "begin was inserted before "RETURN" to continue. ORA-06550: line 16, column 24: PLS-00103: Encountered the symbol "BEGIN"
    Error ERR-1024 Unable to run "function body returning text" validation.
    What to change in the code?
    Edited by: N.K on Jun 23, 2009 11:43 PM

  • Validating a Date field in ADF which only contains a time

    Hi,
    I'm having problems in JDeveloper 10121 validating a "time" field in a jsp.
    * I have this field: <html:text property="InterviewTime" size="4" maxlength="4" />
    which is a date. I want the user to enter a date in 24 hour format. I.e. 0000 to 2400.
    * In my view object the interview time has a format of Simple Date (kkmm).
    * In the entity object this is a date column.
    If I submit with a valid date then it's fine. However if for example I enter 3333 and save I get a date parse error. The problem is where do I handle this?
    I added validation to the entity object but this only gets called when the date is valid (I imagine it is further on in the lifecycle?)
    I also added some regex to the onCommit method but again this gets called later in the lifecycle.
    Can anybody help?
    Thanks,
    Andy

    Frank,
    I can't use ADF Faces as I'm using 1012.
    I have a method validation on the entity object as shown below:
    public boolean validateInterviewTime()
    Date interviewTime = getInterviewTime();
    if ( interviewTime != null )
    LOG.info("Testing");
    SimpleDateFormat sd = new SimpleDateFormat("kkmm");
    String interviewTimeString = sd.format( getInterviewTime().getValue() );
    LOG.info("interviewTimeString"+interviewTimeString);
    if ( !Pattern.matches( "((0?[0-9]|1[0-9]|2[0-3])[0-5][0-9])", interviewTimeString ) )
    LOG.info("BAD");
    return false;
    else
    return true;
    However if the interview time is outside the range anyway (i.e. not between 0000 and 2359) then it will not even get as far as validating it as I get an invalid date exception called?
    So I need to catch it somewhere else.

  • SQL Loader error while loading a date field

    Hi,
    I am getting the below error while I am trying to load a table with a date field using SQL Loader
    Record 1: Rejected - Error on table RPT_HOST_USAGE, column USAGE_TIMESTAMP.
    ORA-01861: literal does not match format string
    My input file is as below
    <code>
    Host_Usage_ID,Host_ID,Technology_ID,Environment_ID,Usage_Timestamp,Avg_CPU_Pct,Avg_Memory_MB,CPU_Spike
    1,12,1,8,'2009-08-01 00:00:00',0.000000000,23875.000000000,0.000000000
    <code>
    My Loader.ctl is
    <code>
    OPTIONS (SKIP=1)
    load data
    infile 'C:\rpt_Host_Usage.txt'
    into table RPT_HOST_USAGE
    fields terminated by ","
    HOST_USAGE_ID,
    HOST_ID,
    TECHNOLOGY_ID,
    ENVIRONMENT_ID,
    USAGE_TIMESTAMP,
    AVG_CPU_PCT,
    AVG_MEMORY_MB,
    CPU_SPIKE
    <code>
    I have tried options like USAGE_TIMESTAMP TO_DATE(USAGE_TIMESTAMP,'YYYY-MM-DD HH24:MI:SS') but didn't work...
    Can you please tell me how to resolve this issue?
    Any pointers on this will be helpful
    Thanks
    Mahesh

    I went back and looked at some of my old *.ctl files and I did something simlilar to what you mentioned and it worked for me, but I had surrounded the option in double-quotes and included a colon in front of the item. Example:
    TECHNOLOGY_ID,
    ENVIRONMENT_ID,
    USAGE_TIMESTAMP "to_date(:USAGE_TIMESTAMP,'YYYY-MM-DD HH24:MI:SS')",
    AVG_CPU_PCT,
    AVG_MEMORY_MB,
    ....

  • Data validation for Date Field in Web Dynpro ABAP

    Hi ,
    In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
    If u ll enter the wrong date it should validate the Date and throw an error message.
    Please Reply soon its urgent.
    Thanks,
    Deepika

    Hi,
    First read the two attributes start date and end date.
    Then write the following condition.
    IF item_start_date > item_end_date.
    Error message.
    Endif.
    For pop up error message you need to use Create_window method of the Interface if_wd_window.
    Thanks.

  • Validation of data fields in the Excel through webdynpro java

    Hi all,
         I have requirement as below:
                  There are data fields in the Excel File which are mandatory.When we are uploading the Excel file through webdynpro java it should validate the  mandatory data fields are filled or not.Can anybody please send the required code or any related links.
    Thanks,
    Prakash.

    Hi Surya,
    As per my info, you need to upload the file first then only web dynpro will be able to check for the mandatory fields.
    Do this, while reading the buffer from the excel, just check the size of desired columns. Hope that will help.
    Best Regards
    Chander Kararia

  • Error in validation an input field in a table ui and high lighting the cell

    Hello All,
    I have a table ui in one of my application.   This table has, say 6 columns; out of these 6 columns 4 columns are shown as input fields.  User needs to put in some numbers in two of the fields.  I need to capture these two number fields data and subtract one from the other.  If number is negative , I need to let the user know by error message that the number is negative and they need to fix their input to make the answer positive.  I am able to do all this, but I am not able to high light the corresponding field which needs to be fixed.  Is there anyway I can do that...I mean high light the particular field as one gets it when we use the "report attribute error message" method of message manager class. 
    Secondly I can not halt the application, I need to do some work around for that using some flags.  Is there a simple way to halt the application, other than using flags and if condition?  I searched this forum, but could not find any definite answer....
    Thanks very much!
    Any help would greatly be appreicated.

    Hi....
    First you should have the table values in an internal  table.... for that yo need to get the values from the context like this....
    *DECLARE INTERNAL TABLE AND WORKAREA.
    data ls_nd_stru type wd_this->element_<node name>
    data lt_nd_table type wd_this->elements_<node name>
    get all declared attributes
    lo_nd_<your context node>->get_static_attributes_table(
                                               importing
                                               table = lt_nd_table ).
    *now your lt_nd_table will have the values.....what ever you have in the table.
    *then
    loop at lt_nd_table into ls_nd_stru.
    <.....your logic.....>
    <ie., read the current line of the field like
    ls_nd_stru-<field name1> = ls_nd_stru-<field name2> - ls_nd_stru-<field name3>
    then check error msg... based on your postive or negative values
    endloop.
    Hope this will help you....
    Thanks & regards
    Raja

  • PowerBI throwing errors for validated OData data source

    Hi,
    I've been creating OData web services for various operations for months now, and validate the service output using odata.org for all versions of Odata (V1-V4)
    Yet when my co-worker tries to load one of these OData services as a data source, PowerBI throws this error:
    [DataSource.Error] Cannot parse OData response result.  Error: A node of
    type 'StartArray' was read from the JSON reader when trying to read a
    value of a property; however, a 'PrimitiveValue' or 'StartObject' node
    was expected.
    The only OData source that has worked with PowerBI is one in which we turned off all properties that were not Strings.  In other words, as soon as the source has property types like Arrays, Objects or Dates, we get errors with PowerBI.  
    But the data validates with odata.org validator, so I am at a complete loss to understand how to "fix" data which is not broken.
    Is there a guide available somewhere showing what "subset" of OData that PowerBI accepts?  And are there plans to update PowerBI in the future to accept valid OData?
    miles
    Sample Odata that PowerBI chokes on:
      "d": {
        "results": [
            "__metadata": {
              "type": "cnevids_staging.videos",
              "id": "http://slcnpde093:3013/cne/odata/videos('NTBmYjBkODYzNDEwZmMwZGQ4MjQ2ZDIy')",
              "uri": "http://slcnpde093:3013/cne/odata/videos('NTBmYjBkODYzNDEwZmMwZGQ4MjQ2ZDIy')"
            "Id": "NTBmYjBkODYzNDEwZmMwZGQ4MjQ2ZDIy",
            "article_url": "",
            "brand_id": "NTBmYWZlNTg5M2U5ZjNlODZhMDAwMDAx",
            "buy_call_to_action": "",
            "buy_url": "",
            "cloudinary_version": "1367966946",
            "cover_story": false,
            "description": "Glamour March 2013: The Guys From Nashville Play \"Nail Polish or Country Song?\"",
            "do_not_publish": false,
            "duration_in_ms": 137000,
            "encode_version": "",
            "episode_number": 12,
            "index_within_season": 11,
            "index_within_series": 11,
            "monetize": false,
            "music_attribution": "",
            "permaslug": "glamour-march-2013-the-guys-from-nashville-pl",
            "poster_image_version": "1362346875",
            "recency_rank": 0,
            "slug": "glamour-march-2013-the-guys-from-nashville-pl",
            "state": "active",
            "suppress_on_the_scene": false,
            "title": "Glamour March 2013: The Guys From Nashville Play \"Nail Polish or Country Song?\"",
            "trending_index": {
              "__metadata": {
                "type": "cnevids_staging.videos.trend"
              "daily": 0,
              "weekly": 0,
              "monthly": 0,
              "all_time": 0,
              "based_on_count_day": null,
              "yesterday_view_count": 0,
              "bias": 0
            "videographer_unknown": true

    Is this in the context of Q&A, or is this a PQ question?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • "valid from" date field in TCURR

    Hi All,
    I was looking out the Valid from field in TCURR table but couldn't figure out the format of the way the dates are stored in SAP for this field. Here is how they looked:
    Valid from
    80039898
    80039898
    80039898
    79929778
    I tried to change the format in excel after downloading the table but that didn't help much.
    All answers will be duly rewarded with points.
    Thanks,
    N

    Hi Nandita,
    Dear Nandita,
    The dates are just stored as "inverted dates"
    This is even implemented as pure ABAP statements:
    CONVERT date to inverted date ... and
    CONVERT inverted date to date.
    See the documentation on these keywords. It is just the 9er complement of the real date, example from your question ( 80039898):
    99999999
    -19960101
    80039898 => value for GDATU.
    Please assign points if it useful.
    Regards
    Ravinagh Boni

  • Date Field validation in APEX 4.0

    Hi,
    I am using APEX 4.0 for developing my application. I have an SEARCH region in which I have an DATE item with format MM/DD/YYYY. When I enter the date with any junk characters like 'XXXXXXX' then it throws me an validation as "Invalid Date Format" message both in Notification and Inline (Below date Item). This is an APEX 4.0 inbuilt validation for date field and its not the validation created by me in that page explicitly.
    My Issue is that I do not want to Display the validation message inline to the field and I need the message only in Notification. What setting I need to do in Date Item to remove the inline validation message form that field.
    Thanks in Advance

    Hi,
    In your validation process, under the error message section
    (i.e) in the error message display location: set inline in notification give this,
    so that the notification will be fired only in message, not inline to the field.
    Regards,
    Mini
    Mark Answers Promptly

  • Date field - no date entered - conversion error

    Hi,
    i've a input text field with a datepattern attached in my jsp, whose requrired attribute is set to false. If i submit the page and no date is entered, JSF returns "Conversion error occured" for the date field.
    For testing purposes i made a simple JSP which contains only this date field and a reload button, which only submits the form. When the button is clicked the conversion error is displayed as described.
    What am i doing wrong here?
    thx
    brunft
    <html>
    <%@ page contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view locale="de">
    <html>
        <head><title>Date test</title></head>
        <body>
        <h:form id="datetest">
          <p> </p>
          <h:inputText id="someDate" styleClass="formText" value="#{testDate.someDate}">
            <f:convertDateTime pattern="#{testDate.datePattern}" />
          </h:inputText>
          <p> </p>
          <h:commandButton id="refresh" styleClass="formButton"
                  value="Reload"
                  action="#{testDate.actionReload}" />
          <p> </p>
          <p style="color:red;"><h:messages /></p>
        </h:form>
        </body>
    </html>
    </f:view>The bean:
    public class TestDate {
      private Date someDate;
      private static String datePattern = "dd.MM.yyyy";
      public TestDate() {
      public Date getSomeDate() {
        return this.someDate;
      public void setSomeDate(Date someDate) {
        this.someDate = someDate;
      public String getDatePattern() {
        return this.datePattern;
      public String actionReload() {
        return "success";
    }faces-config.xml:
      <managed-bean>
        <description>Date test.</description>
        <managed-bean-name>testDate</managed-bean-name>
        <managed-bean-class>test.TestDate</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>

    You can try by deleting "pattern=="#{testDate.datePattern}"
    <f:convertDateTime pattern="#{testDate.datePattern}" />

  • Changes to Rebate Agreement Validity Date Field

    Hi,
    We are trying to prevent people from changing the "Validity To" date field (KONA-DATBI) on Rebate Agreement masters (VBO3). They are back dating the field which is causing probelms for running billings.
    Is they any way this can be done via a validation on that field or a message that pops up when the field is changed to something earlier than current date?
    Thanks

    Hi,
    This fields is opened for a good reason, sometimes the end-date of an agreement should be reduced when you want to split a period and therefore create a new agreement for the remaining period.
    In my opinion this is a procedure problem, your users must know what they do.
    If someone still keeps on introducing incorrect data in the system, this person should receive additional training and / or be warned.
    To answer your specific question:
    There is no user-exit for the rebate agreement master data. Quite a shame.
    Best Regards,
    Franck

Maybe you are looking for