Skip to Content

How to set CRM WEB UI field not obligatory?

Feb 19 at 08:47 AM


avatar image
Former Member


In system SAP CRM WEB in SPRO:

Cross-Application Components, under SAP Business Partner -> Business Partner -> Basic Settings -> Field Groupings -> Configure Field Attributes per BP Role

the field POSTL_COD1 is set obligatory in several roles.

Is it possible in ABAP to handle the exception of this with no change of configuration in SPRO?

For example:

In role Customer the field POSTL_COD1 is set as obligatory.

Now I have to set this field not obligatory when the BP city = 'XXX'. (exception)

Is it possible? In do_prepare_output, do_finish_input...?

I've tried to set it in get_p method. But it doesn't work...



(sorry for my english... :))

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Domi Bigl Feb 20 at 08:36 AM

Hi Michal

You can overwrite the empty field check in method GET_EMPTY_MANDATORY_FIELDS of the view controller class.

But be aware that, especially for addresses, there are several other checks in the API FMs which may also kick in.

Also the UI field will be displayed as mandatory - with *! (to remove this some config-xml adjustments must be done...)



10 |10000 characters needed characters left characters exceeded