cancel
Showing results for 
Search instead for 
Did you mean: 

Make CATS fields in Read Only Mode

former_member197475
Active Contributor
0 Kudos

Hi Experts,

Am in SAP EP7.3, ECC6.0, working in CATS application. If an employee tries to amend time for previous week then I need to make all the fields as display only mode and at the same time SAVE and RELEASE buttons should be disabled.

1. Know that I can use User-Exit->CATS0004 can be used for the requirement. But how can I make the whole fields in read only mode.

2. And I need to get time values(Hours) entered for each day and need to calculate the total hours. Can I use CATSDB-CATSHOURS for it??

Please help me and share your valuable ideas.

Thanks and Regards,

Ramakrishnan M

Accepted Solutions (1)

Accepted Solutions (1)

former_member184702
Active Contributor
0 Kudos

Hi Rama,

Calculate the total hours CATSD-SUMDAYS or CATSDB is the table and CATSD is the structure.

Take the help from abap team and suggest the table TC10-TRTYP for display mode time entries for pervious week.

Once the manager has approved the time sheets , employee did not change his entries for eariler weeks.

Thanks

Siva

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hi Experts,

Any ideas please???

Thanks and Regards,

Ramakrishnan M.

kamesh_g
Contributor
0 Kudos

Hi

Are you making read only based on some conditions like country ,personnel area , sub area , or work center .

And if you need some validation required while amending time for previous week .Give a error message when trying to save . Any way error message will stop the process and disable all the screen fields once we raise error  and not able to save also .

we can do validation using Exit ZXCATUO3. which user exit for cat2 . Anyway we wil have all the fields as importing structure in this exit .

Thanks

Kamesh


former_member197475
Active Contributor
0 Kudos

Hello Kamesh,

Thanks for your response:)

Generally in CATS an employee is allowed to go back 12 weeks including current week to amend their time record.

But in my case, am maintaining a Z-Table that has a country field. So if the country does not allow amendment to time data prior to fiscal year, then all the time entries should be in display only mode.

So to your idea, are you asking me to raise an error message on User action? Obviously it gives error and will not allow me to edit. But the thing is, there will be some situations and scenarios where I need to make it editable for 8 weeks and remaining 4 weeks as read only.

Hope you got it:) How can I handle it. Please give any ideas???

Thanks and regards,

Ramakrishnan M.

former_member197475
Active Contributor
0 Kudos

Kamesh,

Or else can I use parameter MODE in exit CATS0004??

Thanks,

Ramakrishnan M

kamesh_g
Contributor
0 Kudos

Hi

For Tcode :CAT2 . we have only one function code = 'TIME'.

But here we have screen group 'AA' . I guess this screen group for for CAT2 contains all the feilds of time sheet .

Could you try to check the screen group in loop and made it display .

And you are telling you need validation on weeks either 8 or 4 weeks .So We must have some importing field to check the number of weeks .

So check the value and then only raise the error message .

Are you not able to find any imprting paramters to check 8 or 4 weeks ?

Thanks