cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory fields not working

Former Member
0 Kudos

Hi All,

in web UI (CRM7.0), I've configured a few fields (like description) in Lead as mandatory. When I created a new Lead, if I leave Description empty and try to save, it gives error because Description is mandatory, this is correct.

Now I enter some description and save it. Then I get out of the Lead, then come back in, open the Lead in Edit mode, now if I remove the Description  and try to save the Lead, it is successfully saved without giving the error message ( remember Description is configured as mandatory and now the description is empty).

However after the successful save (with Description is empty), if I change it to Edit mode again, now I get the error message saying Description  is not provided.

How come this is not working? did anyone experience the same issue? how to make it work?

Thanks

Jayson

Accepted Solutions (1)

Accepted Solutions (1)

kavindra_joshi
Active Contributor
0 Kudos

Hi Jason,

We experienced some thing similar but not exactly the same thing. We were able to save document without providing the mandatory parameters , by pressing the back button.

Where have you configured the mandatory fields ? Also have you implemented the BADI ORDER_SAVE or written any code in EH_ONSAVE ?

~Kavindra

Former Member
0 Kudos

Hi Kavindra,

we configured it in Configuration Tool on web UI, it's the same as in the Configuration Tab in the BSP workbench when you have the view opened. So we don't need to do any coding, just config. I think your case was different, the Back button sometime does not call the same event handler as EH_ONSAVE, that's why your code was not called by Back button. You need to do some code in the DO_EVENT_HANDLER, or implement the BADI.

Thanks

Jayosn

Former Member
0 Kudos

I am a little confused now about Mandatory field in SAP definition.

is it Standard that for mandatory fields SAP only shows the asterisk (*) beside the field name, but SAP would not prevent saving the document and not even giving error or warning while saving?

I didn't pay attention to the behavior of mandatory fields in the past until this project. This behavior seems very odd to me. If I configure a field to be mandatory, I expect SAP prevents saving the transaction and give error message in hte message area. It just isn't happening in my current system, it simply saves the document without giving any message, but when I change the document to Edit mode, SAP then realize that the mandatory field is empty and show the error message then. But I need the error message to be displayed when saving, not when switching to Edit mode.

Is there any system config missing for this/

Anyone has any idea?

Thanks

former_member224760
Participant
0 Kudos

Hi Jayson,

For Mandatory check and error message to be displayed you can also try out "Incompleteness check" settings in the IMG config.

Regards,

Swagi.

Former Member
0 Kudos

It's a system bug, please implement below SAP note

1446670 - Prevent Save in Web UI when mandatory fields are not filled

--Shobhit

Answers (0)