Skip to Content
avatar image
Former Member

Restrict a custom field to not accept any values beyond the drop down options in Customer Master

Hello Xperts,

Need your inputs.

In my project we have an enhancement to Customer Master. Basically an additional tab (apart from general,Compcode,salesarea) with few custom fields to capture some legacy info.

In one of the field we have provided a list of 10 options as dropdown to choose from.

While the user can choose any one valid value,currently he is also able to edit the field with his custom value.

Can someone help me figure out where do i control this setting for the custom field ? I would like to restrict the User to only use the dropdown values and not update his own values which may cause inconsistency.

thanks for your help,

sircc

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 10, 2013 at 11:13 AM

    HI,

    You can Implement Standard Function module

    SELECT_OPTIONS_RESTRICT

    May be you can check with your ABAPers for feasibility of this FM

    regards,

    santosh

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 11, 2013 at 10:07 AM

    Hello,

    The fact that the user cannot bypass the possible options for the input field can be achieved using the following ABAP instructions. Check the ABAY key word documentation for further info.

    OBLIGATORY VALUE CHECK

    example: PARAMETERS p_carr TYPE spfli-carrid OBLIGATORY VALUE CHECK

    Developers can find examples in transaction ABAPDOCU which I find useful as a SD Application consultant.

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2013 at 12:13 PM

    Hello

    You have to take the help of ABAP resource. One possible way of restricting the inputs other than listed is to maintain the fix values or value source to domain of that field.

    Hope this will help you.

    Thanks and Regards,

    Atulkumar Dagade

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 12, 2013 at 04:51 AM

    If you create table for your input entries and add check Table against your Z field then it will restrict user to select entries from table only,they cannot add any value in Z field apart from that.

    If you look at standard fields,SAP also works on same concept.Try to put any other entries manually in customer master sales area for fields which has Check table and for fields which does not check table ,you will see the difference clearly.

    Regards

    Amit


    Add comment
    10|10000 characters needed characters exceeded