How to Use Code List Restrictions to Control Dropdown Field Values
Code List How to Use Code List Restrictions to Control Dropdown Field Values:
How to Use Code List Restrictions to Control Dropdown Field Values: To restrict displaying certain code values for a specific set of users, you can maintain code list restrictions. You can define these restrictions for a combination of the following values: Business Object, Code Type, Business Role and Control Field.
Scenario:
You want to restrict 3 drop-down fields of the opportunity for a particular business role.
– Limit the drop-down values of Sales Phase field.
– Limit the Contract Period drop-down field based on the selection of the value in the Category field.
Use Case 1: Limit the drop-down values of Sales Phase field
- Login to the Silverlight UI.
- Go to the Administrator work center.
- Go to the General Settings view.
- Click on Code List Restrictions.
- Click on New button.
- In the pop-up, select the Business Object Opportunities; and Code to Restrict as APC_S_SALES_CYCLE_PHASE_CODE – Sales Phase.
- Select the Business Role to be assigned.
- Save & Open.
- In the next screen, uncheck the sales phase value which should not be available for the business role (e.g. Identify opportunity, Qualify opportunity & Close).
- Save your changes.
Note: Please check the supported BOs in the Business Object field.
Now with this restriction the user assigned to the business role will not be able to find the Identify opportunity, Qualify opportunity and Close in the value help of the Sales Phase field in opportunity.
Use Case 2: Limit the Contract Period drop-down field based on the selection of the value in the Category field.
- Login to the Silverlight UI.
- Go to the Administrator work center.
- Go to the General Settings view.
- Click on Code List Restrictions.
- Click on New button.
- In the pop-up, select the Business Object Opportunities; and Code to Restrict as /BYD/A0014P0004AA093351A8B – Contract Duration.
- Select the Business Field radio button under Control Field.
- Select the business field Category.
- Select the Business Role to be assigned
- Save & Open.
- In the next screen, for the Category values (e.g. Prospect for Product Sales), uncheck all Contact Duration values except 24 Months.
- Save your changes.
Now with this restriction if the user assigned to the business role selects the Category as Prospect for Product Sales in the opportunity then the Contract field only shows the option to select 24 Months (all other values will not be shown in the drop-down due to the applied code list restriction).
Note: Please logout from the system & login again if the created code list does not work in the desired screen/UI.
New NetWeaver Information at SAP.com
Very Helpfull