Skip to Content
avatar image
Former Member

Adding an Exception to EXIT_SAPLV56U_004

We have a requirement to exit out of EXIT_SAPLV56U_004 without saving under certain circumstances. However, there is not an exception defined for FM EXIT_SAPLV56U_004. We have tested out adding an exception to the FM and it does give us the functionality we need, but has anyone else tried to do this and encountered any issues we should be aware of before we adopt this as our final solution? We have simply modified EXIT_SAPLV56U_004 to have the exception OTHERS and then added the RAISE OTHERS command in the userexit code.

We appreciate any feedback from anyone who has either successfully implemented this same modification, or who has encountered issues after doing so.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 25, 2013 at 06:43 AM

    Hi Erin,

    Instead of adding an exception to the EXIT, would it not be better to instead move your code inside the Exit between an IF..ELSE..ENDIF block and add your specific logic to either the IF or the ELSE part.

    Regards,

    Shashi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Erin,

      I do not think you will face any negative impact due to the same as it is fairly straightforward change. Just keep a watch out during Patch upgrades, etc to ensure the changes are not lost. Although normally it shouldn't.

      Regards,

      Shashi