Skip to Content

Validating questionnaries in compliant

Hi All,

While creating compliant if I save it without entering any data it's giving some default error messages but it's saving the compliant..

One of those error's is 'Details Survey Quality or Non-quality is not completed' which will come if user does not fill the questionnaires section of the compliant as shown in attachment.

If I get this message I shouldn't not allow complaint to save but not sure where this message is getting populated in complaint component..I searched

in cl_bsp_wd_message_service class but it doesn't have that message in save event of BT120H_CPL/OVViewset..

does any one have any idea how to check that error is there or not before save If I can read that error in save event i can use EXIT without saving that complaint..

I appreciate your help on this.



Questionary.PNG (47.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 04, 2015 at 07:42 AM

    Hello Sanjana,

    Instead of searching for the error message use below approach.

    you can use order_save badi for this. write your code in check_before_save method.

    Read value of the " questionnaires section of the compliant" in this method. if it is not filled then raise exception do_not_save.

    Raise do_not_save.

    this will not save the transaction.



    Add comment
    10|10000 characters needed characters exceeded