SAP Knowledge Base Article - Preview

2013392 - Dynamic Mandatory Field shown as mandatoy when should not be mandatory

Symptom

In Web UI, you would like to define a field to be mandatory only in specific situations, for example depends on the value selected in another field. That is you would like to define a Dynamic Mandatory Field.

For example, the field will initially be shown as not mandatory, after select a value in another field, after server round trip, the field is set to be mandatory. The field will be displayed with the mandatory * after the label, but the text box is not shown as red as other mandatory fields. And there is no error message related.
pic 1.jpg


Then after change the value for another field, the field becomes not mandatory. The field's label won't show the mandatory *, but the text box will show as red, as if it is still mandatory. And the error message related is still there.
pic 2.jpg

The above confusion will disappear, if another server round trip happens, and the mandatory status of the field stays the same.


Read more...

Environment

  • SAP Customer Relationship Management 7.0 and higher
  • SAP enhancement package for SAP Customer Relationship Management
  • SAP enhancement package for SAP CRM, version for SAP HANA

Product

SAP Customer Relationship Management 7.0 ; SAP Customer Relationship Management 7.0 on SAP enhancement package 1 for SAP NetWeaver 7.0 ; SAP enhancement package for SAP CRM all versions ; SAP enhancement package for SAP CRM, version for SAP HANA all versions

Keywords

Dynamic, P-Getter, if_bsp_wd_model_setter_getter~FP_INPUT_MANDATORY, GET_P, red, Make an entry in field, GET_EMPTY_MANDATORY_FIELDS, limitation , KBA , CA-WUI-UI , User Interface , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.