Input Data Validation Of A Field Associated To A Check Table

Hello,
Does Web Dynpro have an inherent functionality to validate input fields associated to a check table?
For example I created a structure with the field UNAME and defined USR02 as the check table for it.  And then I defined a UI InputField in my View and bind it to UNAME.  Web Dynpro does NOT seem to do an automatic validation to check if the value entered by the user exists in USR02. 
Is there an interface or class that can be called in method WDDOBEFOREACTION to do the validation.  Or do we just have to do some manual validation using SELECT statements?
Thanks.
Giscard

Hi Giscard,
Web Dynpro does automatic validation when  you assign the check table  .
You need not write any code as such.
If the data which you entered is incorrect ,when you are trying to perform any action(like saving the data in data base or performing any further action with the wrong data that ia entered )
   the system throws an error message as"USERNAME -
NOT IN THE SYSTEM'.
Regards,
Priya

Similar Messages

  • ABAP - input data validation

    I have been trying to look through the forum for means of input data validation to no vail. It is necessary to validate data before saving in database. There is an interface IF_WD_VALIDATION out there which seems to handle this task but no more information is provided on how to use it. Does anyone know more about it?
    By validation, I mean verification of:
    data type
    data value (min value, max value)
    data dependence (a<b, or a>b)
    Your suggestion is appreciated.

    There is more solution to validate fields.
    If you import adaptiev RFC model, Dynpro will make validation.
    Secend vay is to put validation in setters function and raise exception if is not valide
    public void setName(String name)
      if(name.length() > 100) throw new Exception("name is to loong");
      this.name = name;
    or mabie more simpliest is to make boolean function check()
    If you want stop workflow in not valide case you can do with
    wdComponentAPI.getMessageManager().raiseException("message", true)

  • Data in One Text Field or the Other

    I have two numeric fields and there need to be a value in either one or the other not both, is there a way to make this happen.
    Thanks

    Steve,
    What I was look for was if the user inputs data in the "SSN" field with would be unable to put data in the "Passport#" field and visa-versa.
    Thanks

  • How to make a validation for a field?

    Is any possible to make input value
    validation for a field?
    E.g. Force the user enter ItemCode in a
    correct format with proper prefix XX-BB-.... .
    If SDK is a only solution, how to do it?
    Regards,
    Kenneth

    You can't realy do it with out sdk. You could always try to right a query that will clear the code when it isn't in the correct format. then if they press add it will give an error cause there is no item code. But you'll struggle to get this right and it won't be full proof.
    In sdk in your item event you'll test if the specific edit box lost focus and before the action, if that is true then check the value. If it is not correct then bubble the event and give an error. when you bubble the event it won't do the action they wanted to do.
    Hope this helps.

  • Facing Problem with Select-options input data......help me?

    I have a select-options on my selection screen. In the database table i have different four values for this. ex EEX01, EEX02, EEX03 and EEX04.
    their overall names are DE, HE, IT, TR respectively.
    Now the requirement is user will enter this data like DE to TR , i am now confused how do convert these value to the values that i have in table. Because i have to use this for extracting the data from database table.
    thanks in advance.

    hi,
    what is the table name for the case.
    and jsut list what are the fields .. we'll try to map the same and see if it works..
    if for the field there is a check table attached then conversion routine will take care of that .
    just check on the field of the domain  in the dbtable
    like matn1 for dataelement matnr and domain matnr in mara table.
    regards,
    vijay

  • Identify partition name from input data

    Hi gurus,
    Pleae help for the below
    based on the input data i have to delete the partition from the table.
    suppose if a table PART  is partitioned based on the column id  number.  if my input data is 10 if it is present in the partition then i want to identifiy the partition_name.. 
    Please help  how to identify the partition name based on input data?
    Reply
    S

    You can query USER_TAB_PARTITIONS for PARTITION_NAME and PARTITION_POSITION against HIGH_VALUE.  Unfortunately, HIGH_VALUE is a LONG.
    Hemant K Chitale

  • More than one check table for a field in custom table

    I created a custom table , with some fields in that , and for a field i given a check table , in that same field i want another check table because for  some data i need to refer another table . whether it is possible.....

    Hi,
    If you need to perform the checks while using a maintenance view, you can do this with modification events. e.g. just implement a form that triggers your custom checks in a "before save" event... (SE55->Environment->Event)
    Kr,
    Manu.

  • Check table validation

    Hi all,
    I have created a customized table. In one field I have assigned check table and foreign key checkbox is checked. But when this table is updated through a program it goes on creating any entry. Entry is not restricted to the check table values only. It goed on creatting values which are not in the check table.
    How to avoid it?
    Regards,
    Jeetu

    Hey Matt,
    My 10 points was deducted when I had previously asked for points same as Ankesh.
    Just wanted to know what in cases like this ;-).
    Believe post by Ankesh has been removed by Moderator.
    Cheers,
    Jayant
    Edited by: Jayant Sahu on Dec 4, 2008 4:22 PM

  • Add new fields with EEW and assign a standard check table?

    Hi,
    I would like to add more language fields to a BP - Sold-to (Organization). As I see, one possibility is to use EEW.
    Is it then possible to link this field to an existing check table in order to get the existing langauge codes by default?
    Thanks in advance!
    //a

    Hi,
    Actually i am working on the similar task. I added 2 custom fields in order item level using EEWB. I added the check table to my custom field but for some reason it wouldn't show up. So i added the values to the DOMAIN assigned to the custom field and the values showed up on the screen in the seatch help.
    I am actually still trying to find other possibilities. I will let you know if i find any.
    Hope this helps you,
    Karuna.

  • Removing characters from an input data-field

    Hi.
    Is it possible to "Trim Off" characters from a Text Field data, and automatically input them into another Text field?
    Let's say I have the following code :
    *<Field name='telephonenumber'>*
    *<Display class='Text'>*
    *<Property name='title' value='Phone Number in International Format'/>*
    *<Display>*
    *</Field>*
    This code is to input the telephone number in International Format (such as :  +1 234 567 8900)
    Now, lets say that I want to create a second Data Text field for phone number; but, this time, it is for the phone number in LOCAL format.
    In other words, I want to write a code which will AUTOMATICALLY  remove the first 3 or 4 characters from the "International Number",  and input them into the "Local Number"  field.
    This would save me the trouble or writing the number a second time. My code should be able to simply Trim Off the initial "+1 234", and automatically input the remaining "*567 8900"* into the Local Number field.
    How could I accomplish this?
    Thanks

    Based on your code, it looks like you have fields called global.workgsmad (local style) and global.workgsm (international style)
    Assuming your global.workgsm format will always be '+x xxx xxx xxxx' you want to skip the first 6 characters, not 4
    The simplest way to do this is like so:
    <Field name='global.workgsmad'>
       <Expansion>
          <substr>
             <ref>global.workgsm</ref>
             <i>6</i>     <!-- Skip the country code and area code '+x xxx ' -->
             <i>8</i>   <!-- 8 characters were left for the format 'xxx xxxx' -->
          </substr>
       </Expansion>
    </Field>Alternatively, you could change the substr block to read
    <substr s='6' l='8'>
       <ref>global.workgsm</ref>
    </substr>Both formats are valid.
    If the phone number is not a fixed format, you'll have to do something more complicated.
    Jason

  • Display error messages in Visual Composer if Input Data is not valid

    Hi,
    We developed a small iView with a single input field FO (Factory Order).
    The output is a table with some fields corresponding to the given FO.
    My requirement is if the given FO (Factory Order) has no data then the table should not be displayed, instead a message should be displayed saying
    'No Data is found' and stop the program.
    Please reply soon if anyone has got a solution.
    Thanks,
    Shashidhar

    Hi
    You can use <b>guard condition</b> of the event to check whether input field(FO) has data or not. When the input field is empty , you can open a <b>pop-up iView</b> displaying "No Data is found" and when the input field has data , you can execute your service to produce the table output.
    If, you have any more doubts, revert back
    Thanks & Regards
    Harsimran

  • Adf Javascript code to complete an input date field

    Hey guys,
    I have an adf input date field
    <af:inputDate value="#{MyBean.date}">
    <af:clientListener method="onEnterDate" type="keyPress"/>
    </af:inputDate>
    I want to implement a javascript function that completes the date field, means: when the user enters 10 in the field and presses the ENTER key on the keyboard, I want to complete the date with the current system time, like this (10/11/2011), so how can I do this...
    Thanks in advance..
    AccadSoft

    You could write a [url http://myfaces.apache.org/trinidad/devguide/clientValidation.html]client-side converter to do this.
    John

  • Validating keyboard input data

    I am new to java and have a question regarding validating input.
    I did check the FAQ for "Validating keyboard input data" but found no help.
    I have to check that the keyboard input is only one of the following char a c,C,d,D
    Ihave tried different conditional loops and statements but cannot get it right.
    Could someone point me in the right direction.
    I am using the latest java.
    Thanx

    well i think i am close but i can't figure out why i have an endless loop or how to fix it
    System.out.print("Please enter the Costumer Type C or R: ");
    String cosTypeTemp = scan.nextLine();
    cosType = cosTypeTemp.charAt(0);
    while (cosType != 'c' || cosType != 'C' || cosType != 'd' || cosType != 'D');
    do
    costumerType = 'N';
    System.out.print("Wrong input please enter the Costumer Type c or r: ");
    cosTypeTemp = scan.nextLine();
    cosType = cosTypeTemp.charAt(0);
    while (cosType != 'c' || cosType != 'C' || cosType != 'd' || cosType != 'D');
    costumerType = cosType;
    System.out.print("Please enter the Number of basic service connections: ");
    System.out.print("Please enter the Costumer Type C or R: ");
    String cosTypeTemp = scan.nextLine();
    cosType = cosTypeTemp.charAt(0);
    while (cosType != 'c' || cosType != 'C' || cosType != 'd' || cosType != 'D');
    do
    costumerType = 'N';
    System.out.print("Wrong input please enter the Costumer Type c or r: ");
    cosTypeTemp = scan.nextLine();
    cosType = cosTypeTemp.charAt(0);
    while (cosType != 'c' || cosType != 'C' || cosType != 'd' || cosType != 'D');
    costumerType = cosType;
    System.out.print("Please enter the Number of basic service connections: ");
    numBsSrvConecs = scan.nextInt();
    when i enter the correct data ( c, C, d, D) it goes into infinite loop and never reaches the next keyboard scan for System.out.print("Please enter the Costumer Type C or R: ");

  • Problem validating an two Input Date components !...

    Hi to all the users !. I would like to tell my problem... I have two input dates ("from" and "to") and I would like that the value from the "from" component isn't higher than the value from the "to" component... For that, I have use a validateDateTimeRange validator and set the "Maximum" value... My problem is that I don't get validated my inputdates components and additionally, when I select a date it appears with a strange format... Although I set the pattern to "dd/mm/yyyy" !... Let say... If I choose the 23th of July of 2012, the input date show "23/58/2012"... What would be the problem ?... Thankx !...

    Navaneetha: Thankx for your help !; I will check it right now... I didn't answer as I was having lunch ! :D Thankx again
    Suresh: A friend from another group told me that and the problem was solved !; anyway... Thankx for your time ! :d

  • Help with date validation on input boxes.

    I need some help with date validation on input boxes.
    What I�m trying to create is a form where a user inputs dates and then the rest of the form calculates the other dates for them.
    i.e. � A user inputs 2 dates (A & B) and then a 3rd date which is 11 weeks before date B is calculated automatically.
    Is this possible and if so how do I do it ???
    Thanks

    Hi,
    to get third date try this:
    java.util.Date bDate = ...;
    Calendar yourCalendar = new GregorianCalendar();
    yourCalendar.setTime(bDate);
    yourCalendar.roll(Calendar.WEEK_OF_YEAR, -11);
    java.util.Date cDate = yourCalendar.getTime();Regards
    Ldinka

Maybe you are looking for

  • Firefox 4b2 and Windows 7, multiple tabs shows up as windows in OS-taskbar

    I have been using Firefox on my Windows 7 based computer (Ultimate x64) and I didn't experience this when using v3.6 and earlier versions. But ever since I updated to v4 (beta 1 and now beta 2), I have noticed that when I have multiple tabs open in F

  • SAP Best Practice for Plant Organizational Structure

    Hi Can one please suggest us . how we can design the Plant Structure ( Please refer OSS notes if you have ). 1) Design of a Plant / Storage location if it is located in  different state. We have one manufacturing plant , and six storage ware house in

  • Can't Get Airport Express To Work With ATT's Uverse

    For years, AE worked just fine with my 2Wire portal streaming music to my stereo. Went to Uverse 2 months ago, and AE quit working. I am not using an Airport base station, just the Uverse modem and I need help getting it to work. There is nothing in

  • What is a better approach, batch or prepared statement?

    Hi, In my application, the user account property will be retrieved from DB and the last login time will be updated after a successful sign on. There are two query statements in this procedure; select and update. What is a better approach in JDBC to d

  • ISO Document in DMS

    Dear Sir I have to attached my ISO document in DMs with hierarch level Apex document>Quality manual>Departmet Manual>format in this manner i want to maintain my document Awaiting foe your valuable answer. regards kunal