Validate of date field on tcode MB21

Hi Experts,
In tcode MB21 for Create Reservation  the base date is taking the future date. .i.e if the date which i give in the tcode is taking the future date also so i need to validate that date filed to stop taking date greater than system date. How to do that?
Plz any body faced this kind of requirement let me know...
Regards,
Sunil kairam.

Hi ,
try these , before doing , go thru the documentations of it.
MBCF0002  Customer function exit: Segment text in material doc. item
MBCF0005  Material document item for goods receipt/issue slip
MBCF0006  Customer function for WBS element
MBCF0007  Customer function exit: Updating a reservation
MBCF0009  Filling the storage location field
MBCF0010  Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011  Read from RESB and RKPF for print list in  MB26
MBCFC003  Maintenance of batch master data for goods movements
MBCFC004  Maintenance of batch specifications for goods movements
MBCFC010  Propose batch number on Inventory Management item screen
regards
P

Similar Messages

  • To find the date type fields in the row and validate those date fields

    TYPES : BEGIN OF TY_MARA,
              MATNR TYPE MARA-MATNR,
              ERSDA TYPE MARA-ERSDA,
              ERNAM TYPE MARA-ERNAM,
              LAEDA TYPE MARA-LAEDA,
              MTART TYPE MARA-MTART,
            END OF TY_MARA.
    DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
          it_mara1 TYPE STANDARD TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
    loop at it_mara into wa_mara.
      describe field wa_mara-ersda type c_data.
    if c_data eq 'D'.
      CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
        EXPORTING
          date                            = wa_mara-ersda
       EXCEPTIONS
         PLAUSIBILITY_CHECK_FAILED       = 1
         OTHERS                          = 2
      IF sy-subrc eq 0.
    wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
        else.
            wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
      ENDIF.
      endif.
      endloop.
    This issue regarding how to find the date type fields in the row and validate those date fields.If its not a valid date ,i have to assign initial value to that.
    I've tried that for single field using describe field.Please help me do that for all fields.

    Hi Sam,
     I believe we had discussed the same issue in the below thread. Can you please refer the below one?
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
    If it's not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • How can I validate a date field in Portal Forms

    I have a date field in portal forms that I want to perform validation on to make sure it's in the proper format before being accepted (mm/dd/yyyy). How can I validate against that field?

    Hi Ben,
    I took the time to test and revise. This is code that will validate a date entry (format MM/DD/YYYY). Just paste this in the "Before the start of the form..." window of the Additional PL/SQL code section of the form. Then add validateDate(); into the onBlur event window of the field in question. Replace the CYCLE_END_DATE with the field name in question.
    HTP.P('
    <SCRIPT LANGUAGE=javascript>
    function validateDate() {
    var ddObj;
    var mmObj;
    var yyObj;
    var day;
    var mon;
    var year;
    var field_val;
    var field_name;
    for (var j=0; j < document.forms[0].elements.length; j++) {
    field_name = document.forms[0].elements[j].name;
    field_val = document.forms[0].elements[j].value;
    if (field_name.substring(field_name.indexOf(''DEFAULT.'') + 8, field_name.lastIndexOf(''.01'')) == ''CYCLE_END_DATE'') {
    var delimPos = field_val.search(/\//i);
    if (delimPos < 0)
    alert(''Invalid date entry! Please enter in MM/DD/YYYY format. '' +
    ''e.g, Dec 21, 2003 would be entered as 12/21/2003'');
    else
    if (field_val.length != 10)
    alert(''Invalid date entry! Please Please enter in MM/DD/YYYY format. '' +
    ''e.g, Jan 1, 2003 would be entered as 01/01/2003'');
    else {
    month = field_val.substring(0, field_val.indexOf(''/''));
    day = field_val.substring(field_val.indexOf(''/'') + 1, field_val.lastIndexOf(''/''));
    year = field_val.substring(field_val.lastIndexOf(''/'') + 1, 10);
    /* Need to subtract 1 from value because in Javascript, January begins with 0
    and ends with 11 for December */
    month = month - 1;
    ddObj = new Date(year, month, day);
    mmObj = new Date(year, month, day);
    yyObj = new Date(year, month, day);
    if (ddObj.getDate(ddObj.setDate(day)) != day)
    alert(''Invalid day!'');
    if (mmObj.getMonth(mmObj.setMonth(month)) != month)
    alert(''Invalid month!'');
    if (mmObj.getYear(mmObj.setYear(year)) != year)
    alert(''Invalid year!'');
    </SCRIPT>
    ');

  • Validate From Date field like not 'sunday'

    hi All,
    i have created Leave Apply form where employee apply for leave
    i want to validate Leave From and Leave To field like
    1)when user select a From date is holiday(sunday and others) then error msg is throw.
    2) from date is greater than equal to current date.
    3)to date is greater than or equal to from date.
    so how can i validate these filed using groove Expression...
    Manish

    Is there any solution?

  • How to validate a date field

    actually i am getting a date string from the user.i want compare with the previousdate and i have to display a alert if the entered date is previous date.pls give me some example coding for this process

    Hi, i had tried in the way you suggested but couldn't get it right. Also i dont want much complexity to be added to this validation purpose.So i just want to do it in the java script and i think there will be no problems with the browser settings.
    What i need is i just want to validate whether the date entered into that textbox is in yyyy-mm-dd format. Also in the mysql database i am using the date will be entered in the yyyy-mm-dd format and i saw somewhere in the forum that while validating in javascript it is not possible to give in yyyy-mm-dd format i.e., it doesnot identify the hyphen and only slash needs to be given. So what should i do for this validation to be perfect.This should be simple with little complexity and accurate.Can anyone give me the suggestion regarding it. or if possible the sample code.I need it very urgent.

  • How to validate date fields in the flash form

    i want to validate the date fields to make sure the values
    are not greater than today's date and from-date is less than or
    equal to to-date in the flash form. Does the actionscript have a CF
    DateDiff function for the validatation?
    Thanks

    I finally (after much reading up on actionscript) figured out
    my problem with date validation...which was similar to yours...
    I posted the solution I found for my AS date validation issue
    here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=22&threadid=1232361
    I hope it helps!!!

  • HTML DB  Validate date field

    I create a nondatabase date field (date picker (MM/DD/YYYY) and format mat as MM/DD/YYYY. I want to validate this date field to make sure the entry is valid. mm/DD/YYYY.
    I create a validation for the field, but it did not display the error message in the validation, instead it complains that the character is in numeric field with an OK button.
    Why?
    Is there a Is_date function around?

    There are 2 ways to do this
    http://htmldb.oracle.com/pls/otn/f?p=24317:239
    1. Put readonly="true" in the Form Element attributes for the date picker item. This way the user is forced to select from the date picker calendar and so invalid dates cannot be entered.
    2. If user wants to enter the date or select from the calendar, put a validation as Function body returning error text as in http://i1.tinypic.com/rlgi68.jpg
    Hope this helps.

  • How to validate the date in my class

    Hi
    In my project with jsp and struts I need to validate the date field.
    So in the action class I want to validate the date that is the date is in dd/mm/year format?
    can anybody please give some idea to do this?
    Thank you so much.

    Here is a method that validates day/month/year using the Calendar class.
         public boolean validateDate(int day, int month, int year) {
              try {
                   Calendar cal = Calendar.getInstance();
                   cal.clear();
                   cal.setLenient(false);
                   cal.set(year, month-1, day);
                   // need to call getTime() to make the calendar compute/validate the date
                   cal.getTime();
                   return true;
              catch (IllegalArgumentException e) {               
                   return false;
         }

  • Database DATE field

    I have a process on a page that loads a form's field data into a %rowtype variable and passes it to a package in the database.
    The package then performs an update to the table holding the data.
    There is a DATE field that I can not validate on the APEX front-end.
    So, if the user enters something in the date field that is invalid,
    it gets passed to the package on the back-end that's doing the update and it throws a database error back to APEX.
    Question: How can I intercept this during the update.
    Sure, I can update the other fields and send a flag back to APEX indicating that something is wrong with the date field and APEX can then redirect the user to a "You entered an invalid date field". But then I'm just re-creating the APEX validation that I can't use.
    This is where the customer has put me. 8-)
    Just wondered if I'm missing something. I guess I could do some formatting validation in the APEX process, but then I'm still just mimicking the APEX-provided validations.
    Thanks.
    Edited by: semaphore on Sep 15, 2008 8:33 AM

    Why can't you validate the date field in apex front end?
    You can certainly determine if the field is a valid date or if it falls within a range.
    It's just custom item validation that needs to be done.
    I have apex pages with start and end dates and I check that end date is greater or equal to start date, etc.
    If its got to be a range of dates you can pick a date from a lookup.
    You could also populate it from a calendar.

  • Validation of a date field

    Are there API's to validate a date field which is entered in the format  YYYYMMDD
    Thanks for the help
    Ravish

    Hi,
    use the fm DATE_CHECK_PLAUSIBILITY.
    Siggi

  • ADDING A DATE FIELD IN THE OUTPUT SCREEN OF Tcode FBL1N

    Hi guys..I want to add a From-->To 'DATE' field in the output screen of Tcode 'FBL1N' in the line items header part....Please tell me how to do this..??

    Hi,
    Unfortunately you can't add these fileds using with Settings>Layouts>Current header rows, you can only add the field Open items as on date.
    Rgds
    Murali. N

  • 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

  • Availability Check - Committed Date Field

    We are building a Z report, where column committed date for missing
    components {after availability check} needs to be added.Please advise
    from which table/structure can this information be retrieved.Also, is
    there a way to validate
    Note: It is noticed that committed date field is emmedded in a structure
    (ATPCS - DAT01), not sure how the mentioned could be validated

    System dynamically calculates that date when you execute program. Here's the approach you need to follow in your zprogram.
    Go to RESB for missing parts (RESB-XFEHL) = 'X' get all the missing components.
    Then use function module BAPI_MATERIAL_AVAILABILITY
    input the following (you gathered from resb table)
    plant
    material number
    unit
    check rule : PP (if you're using PP in order control for order type) (tcode OPJK)
    storage location (if applicable)
    the output field ENDLEADTME will give you committed date and field AV_QTY_PLT will give you the total committed qty. If date is blank it means 12/31/9999

  • New Date field for Vendor Invoices

    The business would like the ability to enter an additional date (date invoice is received by AP) for vendor invoices.  There doesn't seem to be any additional date fields available in the BSEG/BKPF tables.  We want the field available in the TCodes where vendor invoices are entered or parked (FB60, FB65, FV60, FV65, MIRO) We are on ECC 6.0.  Can anyone help answer the following questions:
    Are there fields available for this that I am not aware of
    Have others added new custom fields to any of the above TCodes?
    If it is possible, is the field created in a custom table?  Would we need to create new custom TCodes for the 5 programs used to enter invoices?
    Any details or suggestions would be greatly appreciated.
    Thank you
    Cindy C

    Hi Cynthia
    You can use the Header text fields (XREF or XBLNR) to capture this info
    You can make use of the XREF1 to 3 fields in vendor line item as well to capture this info. Make these fields mandatory in the field status group or use a validation in GGB0
    Another option is you can add a custom field to BKPF table and it will be visible to you in all the transactions you need
    Br. Ajay M

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

Maybe you are looking for

  • Locked out of my user account - can anyone help please!?

    Hi all I have a rather annoying issue that only happened a few hours ago and I have come here to ask for help if I may because I do not have the experience to resolve it on my own. Here goes.. Using my 2009 mbp, running snow leopard 10.6, computer ha

  • Returnable packaging-vendor and customer sides

    Dear Experts, I have searched through the internet as well as on this forum but I was not able to find the information I am looking for. I have the following issue concerning the Returnable packaging process in SAP: I need to gather overall informati

  • Web browsers and app store keep crashing

    Hi, both Safari and Firefox keep crashing on me at random intervals.  The app store will crash as well, though not as frequently.  I can't seem to identify any particular trigger that causes the crashes but I have reinstalled Flash, Java, Safari, and

  • InDesign CS5 crashes on startup  -  HELP please

    Hi everyone! My System:  Windows Enterprise Server 2003 SP2: InDesign CS5 (7.0) crashes on Startup: "Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Programme\Adobe\Adobe InDesign CS5\InDesign.exe This application has requested the Ru

  • Alternative program for XMLSPY

    Hi, i tryed the xmlspy trail and now i am looking for something "thinner" with just the following functions: - visualitaion of xml and wsdl - testing saop scenarios via importing wsdl - creating xsd from xml i just use this functions and think that t