Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issuing an Error in Table Maintenance Event

Hi,

How can I issue an error in the table maintenance event without exiting the screen.

When an event is triggered (Before Save), it will perform a check in the data changed or created. It will issue an error when the changes are not correct. But when I press enter or click on the check button, it will exit the table maintenance screen.

What do I have to do in order to issue an error but will still go back to the table maintenance view.

Making the message as information or type I, will not work because it will still save.

Former Member
Former Member replied

Hi Al,

How are you? You can implement the check in the PAI of your table maintenance screen. Hope it helps....

Ex.

PROCESS AFTER INPUT.
    CHAIN.
      FIELD field_a.
      FIELD field_b .
      MODULE check_val ON CHAIN-REQUEST.
    ENDCHAIN.

MODULE check_val.
  IF field_a IS INITIAL
  OR field_b IS INITIAL.
    MESSAGE e398(00) WITH 'test'.
  ENDIF.
ENDMODULE.  

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question