Skip to Content
avatar image
Former Member

Error Message in WORKORDER_UPDATE Badi leading to dump

Hi Friends,

I am Using Badi WORKORDER_UPDATE for Raising Error Message while creating Process Order. I had used BEFORE_UPDATE method and its input parameters to cross check my business req condition. If not satisfying raising error message.


Error message is raised but it leads to Runtime Error '" SYSTEM_ON_COMMIT_INTERRUPTED "😕

Cant we use this BEFORE_UPDATE method to raise custom error ???

PLease suggest

Regards,

Lokesh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 15, 2016 at 02:38 PM

    Hi Lokesh,

    While using BAdi 'WORKORDER_UPDATE', you should always use the method 'AT_SAVE' for validations.

    Within this method, a system message may be issued, but only if you trigger the exception ERROR_WITH_MESSAGE at the same time.

    I hope it is helpful.

    Regards,

    Sid 😊

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Lokesh,

      Which transaction are you trying to validate here? I had a similar requirement for 'CJ20N'. I found a couple of exits that served my purpose instead of the above BAdI.

      EXIT_SAPLCOMK_011 : Check a freshly created component

      EXIT_SAPLCOMK_012 : Check a changed component

      Regards,

      Sid.