When creating, changing and deleting absences (program MP200000, screen 2002), all records of the same absence type (subtype) are given the current change date and the current person changing, even if nothing in these records has been altered.
Cause and prerequisitesProgram error in Include MP200140 routine ILL.
SolutionUKSolution The error can be corrected as follows.
- Edit Include MP200140.
- Find routine ILL (string search for "FORM ILL"). You will have to make changes in this routine:
FORM ILL.
DATA: X2001_OLD LIKE P2001. <- insert
LOCAL: PSKEY.
...
IF SY-SUBRC EQ 0.
CLEAR X2001_OLD. <- insert
MOVE X2001 TO X2001_OLD. <- insert
PERFORM MAINTAIN_ILL USING X2001-BEGDA
X2001-ENDDA
X2001-KENN1
X2001-KENN2.
...
...
PERFORM EXEC_ILLNESS USING X2001-KALTG X2001-BEGDA X2001-ENDDA
X2001-BEGUZ X2001-ENDUZ X2001-ANRTG
X2001-KENN1 X2001-KENN2 X2001-KBBEG
X2001-LFZED X2001-KRGED X2001-RMDDA
X2001-URMAN.
IF X2001 NE X2001_OLD. <- insert
PERFORM UPDATE_INFOTYP(SAPFP50P) USING X2001.
ENDIF. <- insert
ENDIF. ...
No comments:
Post a Comment