Skip to Content

Atribute validation when saving in CRM_UI

Hi experts,

I need to validate when the attribute "Send DDVV" is marked that the email field is filled. If it is padded, I will add a record in a Z table. Then I do not know if the validation should be included in the "SAVE" button or in another part of the component.

If it is in the "SAVE" button where the validation would be implemented?


Thank you,

Regards.

2.png (22.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 26 at 09:08 PM

    Please see the overview page and code your validations in EH_ONSAVE event handler. I'll be able to provide you more inputs if you can let me know the BSP component name and view name.

    Cheers,

    Sai

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 27 at 08:03 AM

    Hi Sai,

    I can't redefine the method EH_ONSAVE of the view "BPCONTOverview".

    The view I am editing is "BP_CONT / ContactDetails". I created the EH_ONSAVE event in this view but it does not run when I save the partner.

    I have also tried to put the validation in the SET method of the attribute but it is not correct because every time I press INTRO in some field it makes the call to the SET method and it would record a new record in the z table.

    Is it possible to call some BADI? If so, how can I find it? Is there any other point where you only run at the time of recording?

    Thank you very much,

    Best Regards.

    Francisco.


    1.png (46.8 kB)
    3.png (16.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Mar 27 at 10:45 AM

    Finally you were right Sai Krishna XD ... you only had to expand the view of the panorama and then redefine the EH_ONSAVE method.

    Thank you very much.

    Best regards,

    Francisco.

    Add comment
    10|10000 characters needed characters exceeded