Pleace have mercy! String to valid Date?

Anyone please have mercy and help me with this topic:
How can i check wether a string is of a valid date format:
YYYYMMDD? I have been trying for hours but am unable to find the right function.... :-(
THank thee a thousand times and may the source be with you!

sorry will not do it again! i was just so desperate that i posted twice....
and thank thee for thy help!

Similar Messages

  • Is it possible to save an iPhone back up and access the files later if needed?  I have a string of text sms and iMessages that I would like to save and then delete them from my phone.  Is this possible?

    I have a string of text sms and iMessages that I would like to save and then delete them from my phone, but gain access to them later if I need them.  I prefer to have the string with the date/time stamp vs copying and pasting into a doc or text file.  Is this possible?

    Not unless you buy an app that accesses data from an iTunes backup.  Check in the app store.

  • Struts: validating date failed

    Hello! I have a problem with validating dates:
    This is how the field is defined in the validation.xml :
    <field property="onhire" depends="required,date">
    <arg0 key="new.form.prompt.onhire"/>
    <var>
    <var-name>datePatternStrict</var-name>
    <var-value>yyyy-mm-dd HH:mm</var-value>
    </var>
    </field>
    It handles uncorrect days, f.ex if you try to write 2004-06-32...
    But it doesn't handle uncorrect months..., f.ex if you write 2004-13-01, it is accepted and
    changed to 2005-01-01... ?! Does anyone have any solution to this. I don't use javascript...
    Thanks!!

    This is a JSF forum, you'd better try a Struts mailing list
    http://jakarta.apache.org/site/mail2.html#Struts
    or check the archive here http://www.mail-archive.com/[email protected]/
    Frederic

  • BOM  -  Low Validity Date

    Hi All..
    what is the significance of activating BOM Low Validity Date (OS27) ..??
    Is it required if SAP online activities are started as on date..??
    While uploading BOM with LSMW, whether we have to maintain BOM validity dates (from n to) ..?
    or system will take from date as data upload date and to date as 31.12.9999..??
    looking forward to early reply,
    LN

    HI,
    If you tick the Low Date then system will take the default date defined(which is 01/01/1900) whenever new BOM is created or edited.
    It is nothing but the lowest processing date,if this field is not ticked then system will take todays date as the lowest procseeing date
    I dont think you need to maintain them in the LSMW,you can maintain them as default vlaues
    Hope this helps
    Rgds,
    SVP

  • I have a string 2012-05-22T23:23:42.263-07:00. so i want to convert in date with indian time zone   can any one help me out

    i have a string 2012-05-22T23:23:42.263-07:00. so i want to convert in date with indian time zone   can any one help me out

    What does this have to do with iPhone tech support?

  • Unreadable files (may not have valid data)

    I posted this message on the MacOSX forums website. Any help here will be greatly appreciated.
    Hi
    I am trying to import some photos from my 7.2 mp Sony Cybershot camera onto iPHOTO. When i click import, it prompts me to "skip over" those i have already imported and, when i do, it pauses and an error message comes up.
    Quote
    The following files could not be imported (they may be an unrecognized file type or the files may not contain valid data).
    /private/var/tmp/folders.501/TemporaryItems/iPhoto/DSC00361.JPG
    /private/var/tmp/folders.501/TemporaryItems/iPhoto/DSC00362.JPG
    /private/var/tmp/folders.501/TemporaryItems/iPhoto/DSC00363.JPG
    /private/var/tmp/folders.501/TemporaryItems/iPhoto/DSC00364.JPG
    /private/var/tmp/folders.501/TemporaryItems/iPhoto/DSC00365.JPG
    endQuote
    This question is posed to those who have either a) used and is familiar with the Cybershot system and its troubleshooting and b) received the same error message and have troubleshooted or fixed the problem.
    Thanks much for any future help. I hope someone can come to my rescue!
    Sedukai
    please note that this has only recently began to occur. I have about 100 pictures in my library that I have successfully imported into my library. I read the help section on this problem located in iPHOTO help and it told me that "the files may not be picture files." In my experience, .jpg is a picture file so i sort of rules that out (and also the fact that the help was directed to those with iPHOTO 2.0).
    Thank you so much for any help!
    Sedukai
    p.s. also note that when i try to eject the camera (put the desktop pic into the trash) it says that it is in use and i should "quit the program".

    Sedukai:
    To rule out the files themselves use Image Capture, located in your Applications folder, to upload those files to the Desktop first. Then try to import from there.
    If they don't import from there are there any setting on the camera that might have been changed, i.e. file type or the like. Also make sure there's an extension on the file and it's not been left off for some reason.
    Do you Twango?

  • Sporadically getting error "string or binary data would be truncated" in SQL server 2008 while inserting in a Table Type object

    I am facing a strange SQL exception:-
    The code flow is like this:
    .Net 4.0 --> Entity Framework --> SQL 2008 ( StoredProc --> Function {Exception})
    In the SQL Table-Valued Function, I am selecting a column (nvarchar(50)) from an existing table and (after some filtration using inner joins and where clauses) inserting the values in a Table Type Object having a column (nvarchar(50))
    This flow was working fine in SQL 2008 but now all of sudden the Insert into @TableType is throwing  "string or binary data would be truncated"  exception. 
    Insert Into @ObjTableType
    Select * From dbo.Table
    The max length of data in the source column is 24 but even then the insert statement into nvarchar temp column is failing.
    Moreover, the same issue started coming up few weeks back and I was unable to find the root cause, but back then it started working properly after few hours
    (issue reported at 10 AM EST and was automatically resolved post 8 PM EST). No refresh activity was performed on the database.
    This time however the issue is still coming up (even after 2 days) but is not coming up in every scenario. The data set, for which the error is thrown, is valid and every value in the function is fetched from existing tables. 
    Due to its sporadic nature, I am unable to recreate it now :( , but still unable to determine why it started coming up or how can i prevent such things to happen again.
    It is difficult to even explain the weirdness of this bug but any help or guidance in finding the root cause will be very helpful.
    I also Tried by using nvarchar(max) in the table type object but it didn't work.
    Here is a code similar to the function which I am using:
    BEGIN
    TRAN
    DECLARE @PID
    int = 483
    DECLARE @retExcludables
    TABLE
        PID
    int NOT
    NULL,
        ENumber
    nvarchar(50)
    NOT NULL,
        CNumber
    nvarchar(50)
    NOT NULL,
        AId
    uniqueidentifier NOT
    NULL
    declare @PSCount int;
    select @PSCount =
    count('x')
    from tblProjSur ps
    where ps.PID
    = @PID;
    if (@PSCount = 0)
    begin
    return;
    end;
    declare @ExcludableTempValue table (
            PID
    int,
            ENumber
    nvarchar(max),
            CNumber
    nvarchar(max),
            AId
    uniqueidentifier,
            SIds
    int,
            SCSymb
    nvarchar(10),
            SurCSymb
    nvarchar(10)
    with SurCSymbs as (
    select ps.PID,
                   ps.SIds,              
                   csl.CSymb
    from tblProjSur ps
                right
    outer join tblProjSurCSymb pscs
    on pscs.tblProjSurId
    = ps.tblProjSurId
    inner join CSymbLookup csl
    on csl.CSymbId
    = pscs.CSymbId 
    where ps.PID
    = @PID
        AssignedValues
    as (
    select psr.PID,
                   psr.ENumber,
                   psr.CNumber,
                   psmd.MetaDataValue
    as ClaimSymbol,
                   psau.UserId
    as AId,
                   psus.SIds
    from PSRow psr
    inner join PSMetadata psmd
    on psmd.PSRowId
    = psr.SampleRowId
    inner join MetaDataLookup mdl
    on mdl.MetaDataId
    = psmd.MetaDataId
    inner join PSAUser psau
    on psau.PSRowId
    = psr.SampleRowId
                inner
    join PSUserSur psus
    on psus.SampleAssignedUserId
    = psau.ProjectSampleUserId
    where psr.PID
    = @PID
    and mdl.MetaDataCommonName
    = 'CorrectValue'
    and psus.SIds
    in (select
    distinct SIds from SurCSymbs)         
        FullDetails
    as (
    select asurv.PID,
    Convert(NVarchar(50),asurv.ENumber)
    as ENumber,
    Convert(NVarchar(50),asurv.CNumber)
    as CNumber,
                   asurv.AId,
                   asurv.SIds,
                   asurv.CSymb
    as SCSymb,
                   scs.CSymb
    as SurCSymb
    from AssignedValues asurv
    left outer
    join SurCSymbs scs
    on    scs.PID
    = asurv.PID
    and scs.SIds
    = asurv.SIds
    and scs.CSymb
    = asurv.CSymb
    --Error is thrown at this statement
    insert into @ExcludableTempValue
    select *
    from FullDetails;
    with SurHavingSym as (   
    select distinct est.PID,
                            est.ENumber,
                            est.CNumber,
                            est.AId
    from @ExcludableTempValue est
    where est.SurCSymb
    is not
    null
    delete @ExcludableTempValue
    from @ExcludableTempValue est
    inner join SurHavingSym shs
    on    shs.PID
    = est.PID
    and shs.ENumber
    = est.ENumber
    and shs.CNumber
    = est.CNumber
    and shs.AId
    = est.AId;
    insert @retExcludables(PID, ENumber, CNumber, AId)
    select distinct est.PID,
    Convert(nvarchar(50),est.ENumber)
    ENumber,
    Convert(nvarchar(50),est.CNumber)
    CNumber,
                            est.AId      
    from @ExcludableTempValue est 
    RETURN
    ROLLBACK
    TRAN
    I have tried by converting the columns and also validated the input data set for any white spaces or special characters.
    For the same input data, it was working fine till yesterday but suddenly it started throwing the exception.

    Remember, the CTE isn't executing the SQL exactly in the order you read it as a human (don't get too picky about that statement, it's at least partly true enough to say it's partly true), nor are the line numbers or error messages easy to read: a mismatch
    in any of the joins along the way leading up to your insert could be the cause too.  I would suggest posting the table definition/DDL for:
    - PSMetadata, in particular PSRowID, but just post it all
    - tblProjectSur, in particularcolumns CSymbID and TblProjSurSurID
    - cSymbLookup, in particular column CSymbID
    - PSRow, in particular columns SampleRowID, PID,
    - PSAuser and PSUserSur, in particualr all the USERID and RowID columns
    - SurCSymbs, in particular colum SIDs
    Also, a diagnostic query along these lines, repeat for each of your tables, each of the columns used in joins leading up to your insert:
    Select count(asurv.sid) as count all
    , count(case when asurv.sid between 0 and 9999999999 then 1 else null end) as ctIsaNumber
    from SurvCsymb
    The sporadic nature would imply that the optimizer usually chooses one path to the data, but sometimes others, and the fact that it occurs during the insert could be irrelevant, any of the preceding joins could be the cause, not the data targeted to be inserted.

  • Validating Date

    Hi, I'm trying to validate a Date. I want my code to only get dates in the "dd/MM/yyyy" format, but it's validating dates that only have 2 years digit. What should I do to force the user to set dates with 4 years digit??
    Here's the code:
    try {
    SimpleDateFormat lDateFormat = new SimpleDateFormat("dd/MM/yyyy");
    lDateFormat.setLenient(false);
    Date fecha = lDateFormat.parse(strDate);
    } catch (Exception ex) {
    Note: for example I pass "01/01/69" and it returns to me "01/01/0069" ....

    What you want to do is use yyyy as the year. As the documentation says, Java will interpret 2 digit dates to be in the range you want. If you use yyyy, you force it to assume a valid 4 digit date. So 63 is assumed to be 0063, not 1963. yy forces it to assume the century as you wish. Here is the documentation for SimpleDateFormat:
    When parsing a date string using the abbreviated year pattern ("y" or "yy"), SimpleDateFormat must interpret the abbreviated year relative to some century. It does this by adjusting dates to be within 80 years before and 20 years after the time the SimpleDateFormat instance is created. For example, using a pattern of "MM/dd/yy" and a SimpleDateFormat instance created on Jan 1, 1997, the string "01/11/12" would be interpreted as Jan 11, 2012 while the string "05/04/64" would be interpreted as May 4, 1964. During parsing, only strings consisting of exactly two digits, as defined by Character.isDigit(char), will be parsed into the default century. Any other numeric string, such as a one digit string, a three or more digit string, or a two digit string that isn't all digits (for example, "-1"), is interpreted literally. So "01/02/3" or "01/02/003" are parsed, using the same pattern, as Jan 2, 3 AD. Likewise, "01/02/-3" is parsed as Jan 2, 4 BC.

  • Field Level Validation - Date Mask

    Hi all
    I need some Java Script to validate a date mask in a field. Format must be:
    dd-mm-ccyy.
    Can anyone help me?
    Thanks

    Here is a copy of the script I set up to do validation.
    I not only wanted it to check for a valid date,
    but I wanted to store leading zeros, but not make the user type them in.
    One of the things you have to do is to set the format mask for the date to MM-DD-YYYY for each date field in your form.
    Here it is:
    var DayArray =new Array(31,28,31,30,31,30,31,31,30,31,30,31);
    var MonthArray =new Array("01","02","03","04","05","06","07","08","09","10","11","12");
    var firstDash = null;
    var lastDash = null;
    var inYear = null;
    var inMon = null;
    var inDay = null;
    var today = new Date();
    var curFullYear = today.getFullYear();
    var strYear = String(curFullYear);
    var thisCentury = strYear.slice(0,2);
    var thisYear = strYear.slice(2);
    var numThisYear = Number(thisYear);
    inDate = theElement.value;
    if (inDate.length == 0) return true;
    /* Check for a valid format. */
    var filter=/^[0-9]{1,2}-[0-9]{1,2}-[0-9]{2,4}$/;
    if (! filter.test(inDate))
    { alert("Please enter date in MM-DD-YY or MM-DD-YYYY format.");
    theElement.focus();
    theElement.select();
    return false;
    /* Pick off the indices (zero-based) of the two dashes. */
    firstDash = inDate.indexOf("-");
    lastDash = inDate.lastIndexOf("-");
    if ((firstDash == lastDash) &#0124; &#0124; (firstDash == -1) &#0124; &#0124; (lastDash == -1))
    alert("Please enter date using dashes (-), e.g. MM-DD-YY or MM-DD-YYYY.");
    theElement.focus();
    theElement.select();
    return false;
    /* Pick off the month and day (pad with leading zero, if necessary). */
    inMonth = inDate.slice(0,firstDash);
    if (inMonth.length == 1) inMonth = "0" + inMonth;
    inDay = inDate.slice(firstDash+1,lastDash);
    if (inDay.length == 1) inDay = "0" + inDay;
    /* Pick off the year. Filter ensures 2, 3, or 4 digit year. 4 is what we */
    /* want, so we only have to deal with 2 or 3 digit years. */
    inYear = inDate.slice(lastDash+1);
    /* If the user entered a two digit year, figure out which century to pad. */
    if (inYear.length == 2)
    /* Adding 5 years is still within the current century... */
    if ((numThisYear + 5) < 100)
    /* 00 to (current year + 5 years) should use the current */
    /* century; otherwise, use the previous century. */
    if (inYear > (numThisYear + 5))
    inYear = (thisCentury - 1) + inYear;
    else
    inYear = thisCentury + inYear;
    else
    /* Adding 5 years would rollover the century, use the current century */
    inYear = thisCentury + inYear;
    /* A 3 digit year is an error. */
    if (inYear.length == 3)
    alert("Please enter date with either a 2 digit or 4 digit year.");
    theElement.focus();
    theElement.select();
    return false;
    /* Check for a valid month. */
    var filter=/01|02|03|04|05|06|07|08|09|10|11|12/;
    if (! filter.test(inMonth))
    alert("Please enter a valid month.");
    theElement.focus();
    theElement.select();
    return false;
    /* Check for leap year. */
    N=Number(inYear);
    if ( ( N%4==0 && N%100 !=0 ) &#0124; &#0124; ( N%400==0 ) )
    DayArray[1]=29;
    /* Check for valid days for the month. */
    for(var ctr=0; ctr<=11; ctr++)
    if (MonthArray[ctr]==inMonth)
    if (inDay > DayArray[ctr] &#0124; &#0124; inDay <= 0)
    alert("Please enter a valid day.");
    theElement.focus();
    theElement.select();
    return false;
    /* Output the fixed up date. */
    theElement.value = inMonth + "-" + inDay + "-" + inYear;
    return true;
    Regards,
    Rene'

  • Validating date problem (simple issue ?)

    I am trying to validate a date using the following code:
    public boolean validateDate(String testDate) {
    try {
    SimpleDateFormat sdf = new java.text.SimpleDateFormat("mm/dd/yy");
    sdf.setLenient(false);
    java.util.Date theDate = sdf.parse(testDate);
    return true;
    catch(Exception f) {
    return false;
    No matter what I pass in the date will be formatted as the month January. For example: 5/8/02, 05/08/02 and 05/08/2002 will all format as 1/8/02. This happens to every valid date I pass in. This function is catching the exceptions of an invalid date. I have searched the newsgroups and found many posts and have compared their code with mine and there does not seem to be a problem with the code.
    If anyone can give me some insight I would greatly appreciate it.
    Thanks in advance for any help.

    Thanks bbritta - that was driving me nuts.

  • Checking for a valid date

    I have a program that takes a user's input from three text boxes to make a date. I need to be able to check to make sure that the day of the month is correct. For example if they enter 02/35/02 an error message should apear. I am trying to use a Calendar object to do this with but it isn't working. Here is my code:
                    String strMonth = month.getText();
              int intMonth = Integer.parseInt(strMonth);
              if ( (intMonth < 1) || (intMonth > 12) ) {
                   invalidDate("month",month.getText());
                   month.requestFocus();
                   return;
              else if(strMonth.length() == 1) {
                   strMonth = "0" + strMonth;
              //Formating the year
              String strYear = year.getText();
              int intYear = Integer.parseInt(strYear);
              if (strYear.length() == 1) {
                   //User entered only one digit
                   strYear = "200" + strYear;
              else if(intYear > 40) {
                   //User entered a year greater than 40 so must be 19??
                   strYear = "19" + strYear;
              else {
                   //If neither of the above then must be 20??
                   strYear = "20" + strYear;
              intYear = Integer.parseInt(strYear);
    //-----------RIGHT HERE IS MY PROBLEM------------------------------          
              //Check the day field using the month and year
              String strDay = day.getText();
              int intDay = Integer.parseInt(strDay);
              Calendar cal = Calendar.getInstance();
              cal.clear();
              cal.set(Calendar.MONTH,intMonth);
              cal.set(Calendar.YEAR,intYear);
              cal.set(Calendar.DAY_OF_MONTH,intDay);
              int min = cal.getMinimum(Calendar.DATE);
              System.out.println("Min Day: " + min);
    //-------------The variable max is always 31----------------------          
                    int max = cal.getActualMaximum(Calendar.DATE);
              System.out.println("Max Day: " + max);
              if( (intDay < min) || (intDay > max) ) {
                   //User entered an invalid date
                   invalidDate("day",strDay);
                   day.requestFocus();
                   return;
              else {
                   //User entered a valid date
                   if(strDay.length() == 1) {
                        strDay = "0" + strDay;
              //Everything is correct
              requestedDate = strMonth + "/" + strDay + "/" + strYear;
              System.out.println("All correct: " + requestedDate);The problem is that when I do this the variable max that I use to get the maximum day in the month is always 31. I would appreciate any help.

    import java.util.*;
    import java.text.SimpleDateFormat;
    public class Test {
      public static void main(String args[]) {
        GregorianCalendar c = new GregorianCalendar();
        c.set(Calendar.MONTH, 9);
        c.set(Calendar.YEAR, 2002);
        c.set(Calendar.DATE, 40);
        SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
        System.out.println("Date is "+sdf.format(c.getTime()));
        GregorianCalendar tmp = new GregorianCalendar();
        tmp.setTime(c.getTime());
        tmp.add(Calendar.MONTH, 1);
        tmp.set(Calendar.DATE, 1);
        tmp.add(Calendar.DATE, -1);
        System.out.println("Days="+tmp.get(Calendar.DATE));
    }

  • Verify string is a date

    Hi
    I have a string which has a begin and an end quote. I want to find out if it is a date in a pl/sql block. Please let me know how I can do that.
    Thanks
    Mathan

    Hello
    You will need to set up a list of date masks and formats to cater for each possible date format. I have done that here and put the results in a table, and then I'm joining that table to the source and doing the date conversion:
    SQL> select * from dt_test_date;
    DATE_STRING
    01-AUGUST-2005
    01-01-05
    01-FEBRUARY-2005
    01/11/05
    01-FEB-2005
    01-03-05
    01/11/2005
    01/08/05
    Not a date
    01/02/05
    01/05/2005
    01/09/2005
    01-JAN-2005
    Not a date
    01-MARCH-2005
    01/04/2005
    Not a date
    01-JUL-2005
    01-SEPTEMBER-2005
    19 rows selected.
    SQL> select * from dt_test_date_format;
    --First column is the pattern to look for with LIKE
    --2nd column is corresponding TO_DATE conversion format
    DATE_FORMAT_MASK     TO_DATE_FORMAT
    __-__-__             DD-MM-YY
    __-___-____          DD-MON-YYYY
    __-____-____         DD-fmMONTH-YYYY
    __-_____-____        DD-fmMONTH-YYYY
    __-______-____       DD-fmMONTH-YYYY
    __-_______-____      DD-fmMONTH-YYYY
    __-________-____     DD-fmMONTH-YYYY
    __-_________-____    DD-fmMONTH-YYYY
    __/__/__             DD/MM/YY
    __/__/____           DD/MM/YYYY
    10 rows selected.
    SQL> SELECT
      2             a.date_string date_string,
      3             CASE
      4                     WHEN b.date_format_mask IS NOT NULL THEN
      5                             to_date(a.date_string, b.to_date_format)
      6                     ELSE
      7                             NULL
      8             END date_value
      9     FROM
    10             dt_test_date a,
    11             dt_test_date_format b
    12     WHERE
    13             a.date_string like b.date_format_mask (+);
    DATE_STRING                    DATE_VALUE
    01-AUGUST-2005                 01-AUG-05
    01-01-05                       01-JAN-05
    01-FEBRUARY-2005               01-FEB-05
    01/11/05                       01-NOV-05
    01-FEB-2005                    01-FEB-05
    01-03-05                       01-MAR-05
    01/11/2005                     01-NOV-05
    01/08/05                       01-AUG-05
    Not a date
    01/02/05                       01-FEB-05
    01/05/2005                     01-MAY-05
    01/09/2005                     01-SEP-05
    01-JAN-2005                    01-JAN-05
    Not a date
    01-MARCH-2005                  01-MAR-05
    01/04/2005                     01-APR-05
    Not a date
    01-JUL-2005                    01-JUL-05
    01-SEPTEMBER-2005              01-SEP-05The 'Not a date' columns have a null date_value column. This will be the same for any row that does not have a matching date_format_pattern in dt_test_date_format. You can then put this into a cursor and loop through a complete list of rows that have valid dates.
    HTH
    David

  • Verify if string is valid ASCII

    I have a string and I want to verify if it contains only valid ASCII, for example, if the string contains characters like the right allow, then it be should reject ! can anyone help? thanks!

    What's the in the db? A series of bytes from a different character set? (One which, when displayed on a terminal (which may or may not understand the character set), displays a right arrow?)
    Perhaps the ultimately correct solution is to use java.io.InputStreamReader, constructing it denoting the correct character set.
    Or, to put data into the database using OutputStreamWriter, again specifying the correct character set.
    Then you catch CharConversionExceptions. That's how you detect bad input.
    Or, do the same kind of thing using String.getBytes and String constructors.

  • Script Data Component - System.DateTime.TryParseExact Method not validation date value

    Hello
    I have Script data component in my data flow task and i am trying to validate whether the date fields has valid date values or not.
    So i added below code to validate the date fields
    in below code TestDate is datetime and ValidTestDate is datetime as well.
    string[] formats = { "MM/dd/yyyy", "MM/d/yyyy", "M/dd/yyyy", "M/d/yyyy"};
    DateTime pDateTime;
    if (System.DateTime.TryParseExact(Row.TestDate.ToString(), formats, CultureInfo.InvariantCulture, DateTimeStyles.None, out pDateTime)==true)
                    Row.ValidTestDate = Row.TestDate;
    System.DateTime.TryParseExact is not validating to true even the TestDate is valid.
    I have even tried converting the datetime field to DT_DATE but it did not work.
    I appreciate any suggestion to accomplish the check whether it is valid date or not.
    Regards
    Harris

    This is because the string value of TestDate does not conform to either of the formats.
    Arthur
    MyBlog
    Twitter

  • BOM Valid Date

    Hi,
    While creating BOM due to some human error we took wrong valid date.Now i want to change it.
    Please suggest me the T-code or any customization to change the same.
    "I am online"

    Dear Pawar
    This are the basic IMG settings in order to used the engineering change management
    features.
    x refers to a tick.
    First setup the control data in OS54.
    Revision sections
    Fields :-
    Revision level active            x
    Ext. revision level              x
    Higher revision level            x
    Object Management Record sections
    Fields :-
    Object maintenance               x
    Assign alternative date          x
    Overide value/assignment date sections
    Fields :-
    Only with leading change mst.    x
    Setting the Revision level active is to activate the engineering change management for
    material master.  If you do not want the engineering change management for materials,
    remove the tick.
    With a tick in "Higher revision level", the new revision level has to be always higher
    than the old revision.
    Secondly, setup the external number range in OS53.
    If you use the internal number range, then remove the external number range.
    Third, define the status for the change master records in transaction SM30 - V_T419S.
    Change No.     Chg        Date Chg     Dist. Lock      Description
    Status         Poss
      1             x            x             ' '         Active
      2            ' '          ' '            ' '         Inactive
      3            ' '          ' '             x          Locked
    Fourth, define modification parameters for the BOM in OS27.
    Fields :-
    BOM Validty Maint.               x
    EC Management Active             x
    History Requirement             ' '
    Unit Piece                      PC
    The rest of the fields are blank.
    If the History Requirement is tick, every time during creation of the BOM, SAP will
    prompt your for an ECN number as is compulsory.
    Lastly, define fields selection for routing in OP5A.
    PP task lists: initial screen -> Change number -> Transaction code -> Tick Req.
    Setting the Transaction code fields Required indicate that you have make the ECN number ........
    Hope this will help you one of our friends gave me this
    Pavan

Maybe you are looking for