Posts

Showing posts with the label ABAP SD user exit display error message

Solution: SAP SD Userexit - Screen Gets Grayed Out after Error Message

Most of the times when you are working on SD User Exit, for example ( MV45AFZZ, UserExit (USEREXIT_SAVE_DOCUMENT_PREPARE)), you get a requirement to display eror messages based on some validations and conditions. When you write something as  MESSAGE e001(ZV),  the error message shows up in the status bar, but the screen gets completely grayed out or say un-editable. To solve such issues what you can do is, replace the message statement MESSAGE e999(ZV). WITH  IF ( vbak-vbtyp = 'H' OR vbak-vbtyp = 'K' ) AND vbak-vgbel IS NOT INITIAL                                                                         AND  t180-trtyp  NE 'A'.     TYPES: BEGIN OF lty_vbrp,              vbeln TYPE vbrp-vbeln,          ...