cancel
Showing results for 
Search instead for 
Did you mean: 

Check User Entered Field Values in CATS application

former_member197475
Active Contributor
0 Kudos


Hi Experts,

I'm doing custom validation on CATS application in method ONSAVE of WDC - HRESS_C_CATS and getting the CATS beginning and end date by

wd_assis->gs_cat_record_input-(begda,endda).

Now my requirement is I need to check the data  entered by the user between begda and endda. Is there any structure to check all the values.

I know it's very easy to go ahead with User-Exit(CATS0006), but I need to do this validation triggers only for SAVE operation. So am going to WDC methods, as I can't check user specific actions in CATS0006 from portal.

Like for eg: In user-exits am using CATS_COMM to check the field values, such that I made a LOOP AT CATS_COMM to check all those workdate entries between datefrom and dateto. In the same way is there any structure/table that I can read it in webdynpro to check all those user entry fields for the week.

Please help and suggest me.

Thanks,

Ramakrishnan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the all the attributes in the class "CL_HRESS_AS_CATS", COMPONENTCONTROLLER, you will find the data entered by the employee.

Regards,

Jyothi

former_member197475
Active Contributor
0 Kudos

Thanks Jyothi,

I have checked all the attributes and got GT_FIELDLIST_TIMESHEET which has POSID, workdate1, 2 ,etc.

But again I need CATSHOURS value. Any more idea, where can I get it from, please.

With Regards,

Ramakrishnan M.

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

CL_XSS_CAT_1_INPUT_CONVERTER

METHOD get_context

CALL FUNCTION 'CONVERSION_CATSCELL_INPUT'

IF_XSS_CAT_TIME_SHEET~SET_TIME_RECORDS

1738147 - CATSWD: Exits are not called in component HRESS_C_CATS

HRESS_C_CATS in methods

RELEASE_DIRECTLY, PROCESS_COMMAND, ONSAVE_RELEASE

the method raise_messages is being called

there is a error in EHP5

1965158 - CATSWD: Exits are not called in component HRESS_C_CATS

former_member197475
Active Contributor
0 Kudos

Hi Siddharth,

Thanks for your reply. I have checked the class CL_XSS_CAT_1_INPUT_CONVERTER and function
'CONVERSION_CATSCELL_INPUT', but sorry it's not useful for me. In FM they are getting the hours type and in get_context method they are using WAERS, UNIT, etc.

But my requirement is, I need to check the maximum hours per day for an employee which should not exceed 8hrs on save and check operation.

So am using the methods onsave and on_tb_check of WDC HRESS_C_CATS. But still confused of how to get the CATS hours value entered by the user on time sheet.

Please clarify me.

With Regards,

Ramakrishnan M.

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

you can check here

CL_XSS_CAT_1_APPLICATION_CORE

*&                      IF_XSS_CAT_ROW_VERSIONSPECIFIC~GET_DAILY_SUMS

CL_XSS_CAT_BUFFER

*&                      IF_XSS_CAT_TIME_SHEET~CALCULATE_SUM

Please also have a look at the function CATS_GET_PERIODSTART

former_member197475
Active Contributor
0 Kudos

Siddharth,

Thanks once again:) Got exactly what I needs and using GET_DAILY_SUMS method.

With Regards,

Ramakrishnan.

Answers (1)

Answers (1)

former_member182426
Active Contributor
0 Kudos

try to use post exit for GET_DATA method. Here you can capture the events and process the logic as per your requirement.