Tuesday, January 8, 2013

HR - Add Cut Off Validation at PA30

To add validation at transaction PA30, you have to add code at include.

CASE innnn-infty.
  WHEN '0000'.
    PERFORM f_0000 CHANGING innnn.
  WHEN '0001'.
    PERFORM f_0001 CHANGING innnn.
...
...
  WHEN '0267'.
    PERFORM f_0267 USING innnn.
  WHEN OTHERS.
ENDCASE. 

FORM f_0000 was declared at new subroutine pool Z as below.

 at PA30 message error will be raised as you wish.

No comments:

Post a Comment