Skip to Content
avatar image
Former Member

How to set CRM WEB UI field not obligatory?


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... :))

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 20, 2018 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...)



    Add comment
    10|10000 characters needed characters exceeded