cancel
Showing results for 
Search instead for 
Did you mean: 

CATS - error

Former Member
0 Kudos

Dear Gurus

When i am entering number of hours for employee in the time sheet in CATS, i am encountered with this error :

Personnel number 000000XX not active on XX.XX.2016

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 ??

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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)

former_member200388
Active Participant
0 Kudos

Hi,

The employee must have been inactive during this period. Check for IT0000-STAT2 ( employment status ).

Regards

Sounak

Former Member
0 Kudos

Has this been fixed?

Former Member
0 Kudos

no , not yet heather...still to debugg it and see

Former Member
0 Kudos

Are there any future dated terms coming for this employee?

Former Member
0 Kudos

sorry heather, could you please tell mewhat do you mean with future dates terms?

if you mean a recorded action or master data change in a date exceeds the dates i am using in that particular employee, then no there aren't any future dated terms

Former Member
0 Kudos

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?

former_member219272
Active Contributor
0 Kudos

please can you share the screen shot of the CATS profile also please raise a call with SAP just in case if this an standard issue

jagan_gunja
Active Contributor
0 Kudos

Are the infotypes required for CATS valid for the date - e.g., 316, etc?

Former Member
0 Kudos

Can you send a screenshot of the error for any one employee and a screenshot of his IT 0 too?

Former Member
0 Kudos

yea sure

suhas_lembarkar
Active Participant
0 Kudos

Hello,

Please check data entry dates in CATS module, you must have entered data before 01/01/2016 for this emp.

Thanks.

Former Member
0 Kudos

date entred is 11.07.2016

suhas_lembarkar
Active Participant
0 Kudos

please provide screen shot of infotype - 0007 - work schedule

venkateshorusu
Active Contributor
0 Kudos

Error providing information saying that employee is not active on 11.07.2016 check "IT0000" to find out whether employee is active or not. provide the screen shot of it for better understanding.

Regards

Venkatesh

Former Member
0 Kudos

thank you....screenshot is already uploaded and all the infotypes of the employee starts from 01.01.2016

Former Member
0 Kudos
Former Member
0 Kudos

When do you get this error? Is it when you click on the Save icon?

Former Member
0 Kudos

no, when i enter the number of hours ( the 6 hours in the screenshot) and press enter

Former Member
0 Kudos

Is this faced for all employees?

Former Member
0 Kudos

yes...unfortunately

Former Member
0 Kudos

Can you double click on the error & send a screenshot?

Former Member
0 Kudos

error name is LR 195 and the description is the ( personnel number xx is not active on xx)...i will provide a screenshot shortly for you

Former Member
0 Kudos

Ok try this. After you get the error, open a new session and enter tcode SU53. This will identify if there is any missing authorization.

Former Member
0 Kudos

Thank You Tania

i'll try that and let you know with the updates

Former Member
0 Kudos

it gave me a message saying : The last authorization check was successful

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks Tania , i did like you said but the debugger didnt show up when i made the entry in the time sheet , just the error again

Former Member
0 Kudos

Enter the no. of hours, then press enter. At this point the debugger should show up.

Former Member
0 Kudos

i entered the numbers of hours and pressed enter but still the debugger didnt show

Former Member
0 Kudos

Try it again stepwise:

1) Insert the breakpoint in the FM.

2) Enter /nCAT2 in the same session.

3) Book time & hit Enter.

Former Member
0 Kudos

i did the same as you said , but still no debugger shown.

should i try t seach in the code after i enter /h and connect to the debugger ?

Former Member
0 Kudos

Yes. Or to make it a little less tedious, try this:

In tcode SE38, enter LCATSF0L. Click on Display.

Add a breakpoint at line no. 18

CALL FUNCTION 'CATS_CHECK_EMPLOYEE_ACTIVE'

Then enter /nCAT2 in the same session & try your luck again!

Former Member
0 Kudos

Thanks so much .. now the debugger showed on the part of the breakpoint

Former Member
0 Kudos

now what should i do to overcome this Error message ??

Former Member
0 Kudos

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.

former_member219272
Active Contributor
0 Kudos

please can you goto PA30

make any entry for the same date what you are entering in cats in any of 2001, 2002, 2003 or 2010

then see what happens

and also enter for the 11.07.2016 in the infotype

please share the info here

Former Member
0 Kudos

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) ??

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks Tania, i'll try that and get back to you

former_member219272
Active Contributor
0 Kudos

mate any luck on PA30? please

Former Member
0 Kudos

no vijay...no errors in the master data in the same date just CATs

former_member219272
Active Contributor
0 Kudos

can you please try with different CATS profile?

from when you started getting this error?

is this a new implementation ? any patch update happened?

former_member219272
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi

Tania how can i correct this function : CATS_GET_EMPLOYMENT_DATA

Former Member
0 Kudos

This is a standard FM so you cannot change it. Could you raise a new thread specifying what your issue is?