cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to set CRM WEB UI field not obligatory?

Former Member
0 Likes
584

Hello!

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

regards,

Michal

(sorry for my english... :))

Accepted Solutions (0)

Answers (1)

Answers (1)

Domi
Active Contributor
0 Likes

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

regeards

Domi