on 07-27-2016 11:00 PM
Dear Gurus
When i am entering number of hours for employee in the time sheet in CATS, i am encountered with this error :
Message no. LR195
i've checked the employee master data and inftotype 0000 and tried with several employees and still no luck
anyone dealt with this error before ??
The message (Personnel number 0000002 not active on 09.09.2016 in cat2) appears when the user put number of hours worked on previous day (today-ndays)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The employee must have been inactive during this period. Check for IT0000-STAT2 ( employment status ).
Regards
Sounak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has this been fixed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is what I meant. Previously, you didn't have any issues with entering this time for other employees, I'm assuming.
I saw in a previous response you said there was a new implementation, is that correct? Did any of that implementation effect time entries/CATS?
Was the employee originally hired in 1.1.2016 and just recently changed positions or the hire reason was changed? Has IT41 and IT8 updated to reflect all necessary dates? (shouldn't effect CATS or work schedule, but never know).
What about any of the information in this thread, has this been tried?
Can you send a screenshot of the error for any one employee and a screenshot of his IT 0 too?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so it's not authorizations related. I think I've identified the place in the code which throws this error. This error is thrown by the function module CATS_CHECK_EMPLOYEE_ACTIVE. Do you know the basics of debugging? Try this:
a) Through tcode Se37, enter the function module CATS_CHECK_EMPLOYEE_ACTIVE.Click on Display.
b) Add a break point at line no 20 by clicking on the column to the left of the line number.
c) Then through CAT2, attempt the timesheet entry again. The debugger should be trigerred due to the breakpoint.
d) Once the debugger shows up, hit F6 on the keyboard. Let me know the value of SUBRC. Send a screenshot too.
Strangely, I don't see this function in my system. Which version & SP level are you on? Is this function within the FORM CHECK_EMPLOYEE_ACTIVE?
Can you hit F6 thrice & see if line 53 gets processed? If yes,this is the point that throws the error. Could you please send me a screenshot of the function module cats_get_employment_data using tcode SE37 as I don't have this in my system.
release 608 SP-level 0027
function CHECK_Employee_ACTIVE is deactivated and instead its calling function CATS_GET_EMPLOYMENT_DATA
i pressed the F6 three time till line 53 and i guess so thats the reason for the error
here is the screen shot for the FM cats_get_employment_data
also correct me if iam wrong, doesnt the code says give an error msg for all employment status except for employment status 1 (which is inactive status) ??
Thanks for the screenshots. Your system is probably on a higher version (EHP8) than the system I work on.
Well the code gives an error if ls_employment_detail-status<>'1', but i don't think ls_employment_detail-status= Pa0000-employment status.
I honestly can't interpret much of what the CATS_GET_EMPLOYMENT_DATA function does, but start debugging again. When you reach line 42(CALL FUNCTION CATS_GET_EMPLOYMENT_DATA), hit F5 instead of F6. This will take you inside the processing of the function. At each sttaement within the function, check the variable contents (by double clicking on the variable). E.g.
The very first line of the function checks the variable iv_employment_id(of which I have no idea about), so when your cursor reaches this line, double click on this variable and see what value it has.
Keep doing this until you can make some sense of the program flow. The idea is to understand what the return value of the function is(ls_employment_detail) & how it is derived.
You can send screenshots along the way if you get stuck.
from your screen shots i can see the below
infotype 0000 - start date 01.01.2016 ---- change date 26.07.2016
infotype 0007 - start date 01.01.2016 ---- change date 28.07.2016
it looks like this employee got hired recently but why the start date is 01.01.2016
you are getting this issue only in CATS but not in PA30
strange
please provide the cats profile & and other details others might be able to get some idea about it
thanks for your response vijay
yes thats a new implementation .
i've tried with another standard profile and with third one created by me but still got the same error.
I'vealso tried with different employees with different hiring dates and still got the same issue.
i am not sure of the patch updates , I'll check it and get back to you.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.