on ‎2018 Feb 19 8:47 AM
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... :))
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.