Skip to Content
0
Former Member
Nov 23, 2006 at 09:32 PM

Help with Time Evaluation and function exit (HRPTIM03 / SAPLHRLV_001)

216 Views

Hello,

Hopefully someone can help me with an issue I am having with time evaluation and a user exit I wrote. The code for my exit is at the end of this post. IN DEV and QAS, everything works. However, in PRD, multiple rules are considered fulfilled (when looking in PT60), and so employees get two sets of vacation entitlements per month.

We have three rules for quota type 03 (vacation). Rules 3,6, and 9. Only rule 9 should apply to the individuals with the two job numbers in the code.

Any help would be greatly appreciated.

Shane

-


  • WHEN ABSENCE QUOTA TYPE IS 3 (VACATION)

CASE XT559L-QTYPE.

WHEN '3'.

  • CASE - COMPARE SELECTION RULE FOR ABSENCE QUOTA TYPES

CASE XT559L-ACCNR.

  • WHEN RULE SELECTED IS 009

WHEN '9'.

  • IF JOB NUMBER IS 5084 OR 3084, THEN THE RULE APPLIES

IF XP0001-STELL = '5084' OR XP0001-STELL = '3084'.

XSUBRC = '0'.

  • OTHERWISE, THE RULE DOES NOT APPLY

ELSE.

XSUBRC = '1'.

ENDIF.

  • WHEN ANY OTHER RULE IS SELECTED

WHEN OTHERS.

  • IF JOB NUMBER IS 5084 OR 3084, THEN THE RULE DOES NOT APPLY

IF XP0001-STELL = '5084' OR XP0001-STELL = '3084'.

XSUBRC = '1'.

  • OTHERWISE, THE RULE APPLIES NORMALLY

ELSE.

XSUBRC = '0'.

ENDIF.

ENDCASE.

WHEN OTHERS.

ENDCASE.