How can I restrict field lengths in a field?

I have a field that I want the user to only enter a 5 character response, not a 4 or 6 character response. Is '?????' field validation the only option?

There is a LEN function that you can use to validate the entry. It returns the length of the field. You could build a validation rule to ensure the field length is 5 and that anything other than 5 characters returns an error message. You would need to build more specific validation rules if your result needed to be numeric or non-numeric. The LEN function only rerturns the length.
Good Luck,
Thom

Similar Messages

  • How can we restrict Column length in ALV using POWL.

    Hello,
    I have a new assignment o ABAP Web Dynpro, data displaying ALV by using POWL is a part of that assignment. Everything went fine and at last moment I was stuck with a small issue. In my application I am displaying first ALV by using POWL concept and on the basis of selected row I am displaying second level LAV by using normal ALV procedure (SALV_WD_TABLE). Here the issue is as soon as second ALV is displaying columns in first level ALV are getting expanded. How can I restrict Column length in first level ALV using POWL. I browsed a lot for getting the solution for this, Can any one help me out from this issue.
    Regards,
    Kumar

    Done, in field catalog method...

  • How can we restrict the sub-screen input field for particluar country?

    Hi all i am having infotype 21 maintained with custom fields for sub-screen 200.
    Out of that custom fields(City , District) They restricted city field not to appear for australian employees.
    and district is sucesfully appearing .
    They have written logic in the sub-screen 200 in PBO.this is reflecting in alll sub-types of 21(alomst 20 subtypes)
    module abc_output.
    If T001P-MOLGA = 'australia'.
    if screen name = 'city'.
    screen-input = 'OFF'.
    screen-invisible = 'ON'.
    endif.
    endif.
    Now the requirement is that this logic should be modified such that this city should appear in 7 sub-type instead of district.
    what should be written can any one guide please .
    regards
    sas

    Hi we can do in this way.
    If T001P-MOLGA = 'australia'
    if p00021-subty ne '7'.
    if screen name = 'city'.
    screen-input = 'OFF'.
    screen-invisible = 'ON'.
    endif.
    endif.
    if p0021-subty = '7'.
    if screen name = 'district'.
    screen-input = 'OFF'.
    endif.
    endif.
    Thanks and closing the thread
    regards
    sas

  • How to restrict the length of input field

    Hi,
    How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
    Regards,
    H.V.Swathi

    Hi swathi,
    For this you have to create a simple data type. No need of writing a code.
    Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
    Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
    Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
    Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
    Regards
    Manohar

  • How can i restrict the Expenditure Type values at a specific OU ?

    Dear Guys,
    I would like to ask about the Expenditure Types,
    I have implemented two projects for different Operating Units ,
    when navigating to any Projects responsibilty,and navigating the Expenditure Type field
    the values exist are all the values implemented across the OU not the values entered at this OU
    How can i restrict the Expenditure Type values at a specific OU
    Regards
    Amr Hussien

    Hello
    When you set up a project there is an option called Transaction Control.
    This option allow you to list the allowed or restricted elements of costs for the project.
    You may enter the transaction control on a project template and that will be copied to any new project.
    The cost elements may be expenditure types, expenditures categories, suppliers, employees, etc.
    In your case, I suggest to set up specific project templates for each operating units. On each template enter the list of allowed expenditures types for that OU.
    Doing so, the system restricts users from entering any expenditure item, supplier invoice, purchase cost etc, against an expenditure type, which is not allowed.
    Dina

  • How can we restrict the searchhelp in sm30

    Hello experts...
         i have created search helps for the fields of ztable. in the sm30 display it is showing f4 help and taking values in to that, my problem is even it is taking the values those are not in the searchhelp table....   how can i restrict those... urgent....... pls help me....

    When a user uses SM30 to add an entry into table, you often need to add more checks. If you were to add code inside, there is a big chance that it would be overwritten.
    The solution: go to table maintenance generator ( se56) => Enviroment => add event.
    [To add event in table main.|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc]

  • How can I know the length of the image data section of a PSD file

    I'm a C++ programmer developing a project to parse PSD files, and it's necessary to know whether there is a length field indicating the length of the image data in image data section of a PSD file, if not, how can I know the length?
    Thank you.

    Sorry I can't help, maybe there is some information in the SDK?
    http://www.adobe.com/devnet/photoshop/sdk.html
    Or someone might be able to help in this forum?
    http://forums.adobe.com/community/photoshop/photoshop_sdk

  • How can i restrict display or conceal data for a flexfield

    How can i restrict some property for a flexfied ?
    begin
    select responsibility_name
    into l_responsabilidade
    from fnd_responsibility_tl
    where responsibility_id = l_rep_id
    and language = userenv('LANG');
    end;
    if l_responsabilidade in ('Operator') then
         set_item_property('create_task.attribute1' , DISPLAYED,property_true);
    else
         set_item_property('create_task.attribute1' , DISPLAYED,property_false);
    end if;

    Thank you.  I'll try that approach. 
    I found, after much experimentation, on a similar problem involving a multiselect lookup field,  that if I make the field invisible, and add a  textbox that displays the fieldname plus .column(0), it displays all the selected entries. 
    E.g.: staff.Column(0)
    Staff is the field containing the last names of selected staff members. 
    staff.Value only shows the first name in the lookup list whether it is checked or not, so this is useless.
    staff.column(0), however, (inexplicably) shows all the selected names, e.g. Jones, Smith, Wiggins.
    Marj Weir
     

  • How can we restrict generation of schedule line if target qty is reached

    Hi,
    I have an issue, even if the target Qty is reached , system generates schedule lines through MRP.
    How can i restrict the generation of schedule line if Target Qty is reached.
    Regards,
    Satish.

    Hi ,
    1]Set  u201CUnlimitedu201D field unchecked in item detail screen in SA/Contract.
    2] Set Message 06067 and 06078  for Target Qty from Warning Message to Error message
    3] Through Source list :remove the MRP indicator 2 from the source list.
    4]Set validity date as required date in Scheduling agreement/Contract , from this date schedules will not be generated against the SA.
    Thank you
    Regards
    Amar

  • CRM PCUI how can I restrict Users

    hi all,
    We are having 5 Portal Users for each User I assigned role in Portal called sales representative which is a part of standard CRM 5.0 Business package.
    Each user use to create Account, lead and opportunity.
    My requirement is, whenever User created account, lead and opportunity, the other Users should not see those details.
    So how can I restrict them?
    In CRM GUI we have created new role and changed,its working fine, But in CRM-Portal (PCUI)  its showing all other users details.
    There is any other way without using Access Control Engine (CRM-ACE), I can restrict the User.
    regards,
    Naresh

    Hi Naresh,
    While working on one project we had faced same problem for this we had used diffrent approch.
    for achiving this u can do below things:
    1) Create diffrent iview for each user. (Assign it for each user for PCUI Portal)
    2) In each iview in Show Advance Search window u have to make "Belonging To " field Freeeze with Value "Me"
    3) Using MAC(CRMC_BLUEPRINT_C) u can achive above steps.
    After doing above step u'll come to know that the respective user can only search and access only their Transaction and not others.
    Hope it'll help u, let me know if u want further help.
    Thanks,
    Dipesh.
    Edited by: Dipesh Date on Oct 8, 2008 1:21 PM

  • How can we restrict the absence status (Which are not yet to be approved)in team calendar(MSS)

    How can we restrict the absence status (Which are not yet to be approved)in team calendar(MSS)

    Hi user570596,
    I think there is no method to actually restrict the date picker popup, but you can use the ApexLib Framework (http://apexlib.sourceforge.net/) to define a min/max value for your date field. This will prevent the user from submitting the page when the date value is outside the defined range.
    See http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
    for details.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • How can i restrict the change of serial number in delivery document ?

    how can i restrict the manual change of serial number in delivery document ?

    I can tell you that you are observing standard program behavior.       
    By using a reference document for a return delivery, you are only      
    receiving proposal values for a new document. The posting will not     
    create a permanent link between the referred document and the return   
    delivery document.                                                                               
    Hence it is allowed to change various fields. This applies not only    
    to serial numbers, but to storage location, quantity and other fields.

  • How can I restrict maintaining the same customer for different CC Areas?

    Hi All,
    I have a problem about maintaining customer credit limits via tcode FD32.
    User can maintain a customer in different credit control areas (CCA) and these CCAs are belong to different company codes.
    How can i restrict the user not to update another countries' credit limit?
    Your fast reply will be highly appreciated.
    Regards,
    Bilal

    Hi,
    I donu2019t think so there is any configuration for this kind of purpose.
    You can only do by the authorisation.
    Just give the user authorisation that only this person can change the value of the credit control area.
    And I think so that will be usefull also because if every body has authority then any body can change the limit which is not good.
    First they have to take permission from the authorised person and if he approved then only he should change limits.
    So just try out the user authorisation for your purpose.
    Regards
    Raj.

  • How can I restrict Adobe Creative Cloud to run for just one mac user?

    Can anyone help with this please ...
    (This is about how the Adobe Creative Cloud app works with OS X User accounts.  I have posted it on Adobe's Support forums, but nobody there had the solution.  Perhaps someone from the Apple/OSX end can help?)
    I'm running Adobe CC on a 2010 iMac (OS X Yosemite).  I'm delighted with it, however ...
    Several family members share the same iMac using separate user accounts.  Adobe CC seems to run on startup for all of them which is annoying for them as they get messages about updates etc, plus it takes up unnecessary system resources (particularly as we tend to use 'switch user' and Activity Monitor shows an instance of Adobe CC running for each user).
    It's not listed in the Login Items list under System Preferences->Users & Groups, so I can't disable it there for other users, However it appears as an icon in the menu bar for any/all users a few moments after logging in - so something is triggering it to run, but I can't see what. 
    How can I restrict Adobe CC to run just for my user account please?
    Thanks
    Richard

    The startup item is likely inside the /Library/LaunchAgents folder.
    It will be something named like com.adobe.creativecloud.plist.
    Move it out of the /Library/LaunchAgents folder into the User/Library/LaunchAgents folder for all the users that need it.
    I don't know if it will work, but as long as Adobe wrote the launch agent correctly, it will work. Given that it is Adobe we're talking about, my bet is no.

  • How can I restrict access to add. internal hard drive by account?

    Hello! Okay, so I am my computer's administrator, and I have a secondary 'guest' account that anyone else can use. So, I know that all my data on my main, OS hard drive is secure from the guest account accessing it, but what about the additional hard drive that I have installed?
    I have a good deal of sensitive data and files stored (and aliased) on my second internal drive that I do not care for 'guest' users to stumble upon. How can I restrict access to the secondary storage hard drive from my Guest login account, and/or just plain hide it from it? Surely, there is a need for this that has brought about a solution. Any tips/advice/solutions?
    Thanks!!!
    =)

    Click here and follow the instructions followed by placing the folders and files on the image; if the password is in the keychain, it will be supplied whenever you're logged in.
    (41018)

  • How can I restrict options result to only one cost center?

    In transaction KS03 (Display cost Center), when I search for a cost center (hit F4), I have an option to drill down by Company code, controlling area, Cost Center Category, Person Responsible etc.
    My question is, how can I restrict users to select only controlling area they are authorized for ? Is there any authorization object I can use to restrict user's access to particular value in the table CSKS ?
    Thanks,
    Karan.

    Hi Karan,
    If you want to restrict on the values users can return when using F4 lookup then there may be some useful info in the following link:
    Authorization object for capacity planning CM03

Maybe you are looking for