Skip to Content

CRM WebUi - Saving possible, also when mandatory field is empty

Hi experts,

on creation/editing screen of incident, I've maintained a view fields as mandatory (e.g. description).

But when the descripition field is empty, saving is also possible?!?!

I get an error message in the header, that I've to fill out the empty fields, however saving is possible and it creates a new incident order.

How can I make a mandatory field to a real mandatory field?

Or how can I change the "saving-process" so, that it is only possible, when no mandatory fields are empty?

Thx in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jul 24, 2012 at 06:16 AM

    Hello, Christian.

    There is a parameter NO_SAVE_MAND_FIELDS in table SMOFPARSFA which control the behavior. Check if the Note 1353553 - Opportunity: Behavior of mandatory fields in Web UI which introduced this parameter will be helpful for you.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ravi,

      I need your valuable help..

      i have written the code in Do_Prepare_Method( ) to display the messages on WEB UI Sales Order..

      But i got strucked up at once my message is daiplayed on the screen Order should not be saved.I dont know how to stop saving the order, i have an idea order_savi badi but in my case i am not using that BADI soo pls provide methe code to stop order saving..\

      My Functional Requirement : Based on Zipcode which has added by AET messages have to be diaplayed

      IF SY-SUBRC <> 0.
      lv_msg_service1 = me->view_manager->get_message_service( ).

      lv_msg_service1->add_message( iv_msg_type = 'E'
      iv_msg_id = 'ZOTC'
      iv_msg_number = '001' ).

      after diaplaying the error mesaages i need to write the logic to stop saving process for order..

      pls help me out.



  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2012 at 06:17 AM

    Hi Christian,

    Check out the method EH_ONSAVE , there should be some logic to check whether all mandatory fields are filled or not and it will eventually determine whether save should be performed based on it.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 01, 2019 at 05:42 PM

    I have the same question, but within a BP.

    How you solved it?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.