cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement of the transaction CAT02

Former Member
0 Kudos

I need to add the filed u201CBank OT Hoursu201D as Display Only in transaction CAT02 and add the Scheduled (WT 1051)and Unscheduled OT(WT 1052) hours from infotype 0008 to the "Bank OT Hours"

When the employee press <Enter> to complete time entry, accumulate all the hours entered against A/Atype(AWART) 3001 and 4001. Deduct the accumulated total OT hours from the "Bank OT Hours". Update the u201CBank OT Hoursu201D Display value with calculated value (after substraction)

If the u201CBank OT Hoursu201D is less than 0, create an entry in timesheet with A/Atype(AWART) 3999 and hours in excess of Bank OT (the negative hours).

Please help him out ASAP

Regards

Nagendra

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos
  • Look at Enhancement (SMOD) [CATS0005|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=cats0005&cat=sdn_all] CATS: Customer field enhancements for the new fields,

  • To manage the display of these fields there is a transaction in Customizing (IMG) "Cross-Application Components", "Time Sheet" these are "Customer-Specific Modifications", "Create Customer Fields" (or Transaction CAC5) and "Time Recording", "Choose Fields" (or Transaction CAC2)

  • For special controls look at Enhancement [CATS0003|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=cats0003&adv=false&sortby=cm_rnd_rankvalue] CATS: Validate recorded data and [CATS0002|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=cats0002&adv=false&sortby=cm_rnd_rankvalue] CATS: Supplement recorded data

I recommend you to real the documentation in the (IMG) Customizing.

Regards

Former Member
0 Kudos

Hi,

I have created a custom field "Bank OT Hours" using CATS005. But this field displays only if i select the particular record from timesheet. I need to update the some value into this field.

Can you please help me out.

raymond_giuseppi
Active Contributor
0 Kudos

You may fill the field programmaticaly in Enhancement [CATS0002|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=cats0002&adv=false&sortby=cm_rnd_rankvalue#] CATS: Supplement recorded data

Regards

Former Member
0 Kudos

CATS0002 does not triggered and i need to add some value into new field based on the personal number

raymond_giuseppi
Active Contributor
0 Kudos

Did you create and activate a project via CMOD (with the Enhancements i mentioned)

Regards

Former Member
0 Kudos

yes

Former Member
0 Kudos

yes i done but it wont triggered CATS0002.

raymond_giuseppi
Active Contributor
0 Kudos

Are there any lines in the screen, if the screen is empty, the exit is not called. In fact it is called for each line once checks were performed.

The exit is called in the FM CATS_ENRICH_INPUT, this FM fills the records of CATSDB_EXT with data missing in CATSDB.

Regards

Former Member
0 Kudos

Yes i have the entries in time sheet but it wont triggered at all. where should i have to call this function module

raymond_giuseppi
Active Contributor
0 Kudos

- You should be in update mode (not CAT3) try to change any field

- As the fields are now in CATSDB table, you have to write a specific program to enrich the existing records of the database

Regards

Former Member
0 Kudos

1.I am using CAT2 Transaction only and change mode only,

2. Now the customer enhancement field in CATSDB table. i neeed to develop the program for updating new field in CATSDB table and execute this program before run the transaction CAT2.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Nagendra,

Thank you for your quick reply. I was trying to add one customer field to show the WBS element desc in the worklist in CAT2. Another userexit CATS0010 CATS: Customer-Specific Text Fields in Worklist is available for display-only purpose. It works! Problem resolved.

Rgs, Mic

Former Member
0 Kudos

Hi,

you want to add the filed in header level or item level in transaction CAT2.

if you want add custom filed in item level use the transaction codes CAC2 and CAC5 and CATS0002 , Include name is ZXCATU02 and strcucture CI_CATSDB.

or if you want to add the field in header level use CATS0012, Include name is ZXCATU13 and Screen exit name is SAPLXCAT with screen number 3000.

Code in CATS0002:

DATA: ENRICH_WA like CATS_COMM.

CLEAR: ENRICH_WA.

ENRICH_WA = ENRICH_TABLE.

MOVE '567' TO ENRICH_WA-zzbank.

MODIFY ENRICH_TABLE FROM ENRICH_WA INDEX 1.

Former Member
0 Kudos

Hi Nagendra,

I'm facing the same problem with you. Thought you have already resolved this problem. Would you please kindly let me know which userexit or badi is available for passing the value into CATSDB table customer field. I was trying CATS0002 component EXIT_SAPLCATS_002 but it won't be triggered.

Any sugeestons would be highly appreciated, thanks in advance.

Rgs, Michelle

Former Member
0 Kudos

sorry the transaction code is CAT2