CAT2 user exit
Hi,
I need to add fields (lastname, firstname) in the CAT2 time sheet. I have already added fields in CATSDB using user exit '0005'. The fields are comming to the fields. Now I need to get the values of the corresponding records in the time sheet. I tried to use user exit '0002', but it did not work.
Could you please give me suggestion in this regard.
Lokman
HI
GOOD
HEREWITH SOME USEREXITS OF CAT2, TRY THEM WITH YOUR REQUIREMENT.
CATS0001 CATS: Set up worklist
CATS0002 CATS: Supplement recorded data
CATS0003 CATS: Validate recorded data
CATS0004 CATS: Deactivate functions in the user interface
CATS0005 CATS: Customer field enhancements
CATS0006 CATS: Validate entire time sheet
CATS0007 CATS: Subscreen on initial screen
CATS0008 CATS: Determine workflow recipients for approval
CATS0009 CATS: Customer-Specific Text Fields in Data Entry Section
CATS0010 CATS: Customer-Specific Text Fields in Worklist
CATS0011 CATS: Customer functions
CATS0012 CATS: Subscreen on data entry screen
THANKS
MRUTYUN
Similar Messages
-
Changing emp time data in CATSDB - user exit for CAT2?
Hi experts,
My requirement is to change the wage type against which the employee working hours gets stored in CATSDB table.
I understood that through CAT2 tcode, the data is getting stored in CATSDb table.
So can anyone tell me the user exit or Badi which will get trigger on SAVE of the CAt2 transaction.
or else, in what way i can achieve my requirement? Pls suggest.no Idea
-
A user exit field in CJ20n to display in CAT2.
Hi;
Let me define my problem. I have a field in CJ20n which is created by user exit in the activity level. The name of the field is "Effort to complete ".
I want to show the value of this field in the CAT2 transaction in the "TOTAL" field or in a better way in an additional field (column) in the upper pane.
Is it technically possible ?
Kind Regards.
Erkan.Activate Enhancement CATS0005 (SMOD) in a customer project (CMOD)
- Add your field to CI_CATSDB, add field to customer screen disabling input and perform minimum development required in EXIT_SAPLCATS_005, EXIT_SAPLCATS_008 and global data include ZXCATTOP (as you wont actually manage this field here)
Activate Enhancement CATS0002 in the same project or another
- In exit EXIT_SAPLCATS_002 fill your field
Regards,
Raymond -
User Exit needed at PBO for transaction code CAT2
Hi all,
I'm enhancing CAT2 screen for the client. I've created a new field for CAT2 -> Data Entry Section and have made that field visible via config. I would like to implement a search help for my new field and would like to manipulate the search help via abap code. I understand that there's a whole list of CAT2's user exit that can be used. However, i need an user exit that is triggered before the Data Entry Section screen appear which is the PBO. I'm not allowed to modify the SAP Standard program and therefore i'm using the user exit.
I've tried SAP Enhancement CATS0005 but it is not triggering my ABAP Code before it enters the Data Entry Section screen. Kindly assist to advice is there's any particular User Exit that i can use for my purposes or another workaround.
Regards,
LooI don't think there is one, but you may either implement an implicit enhancement option (routine GET_NEXT_NUMBER in program SAPLSTRD), or make a custom program which creates transport requests (it is then easier to get the number).
-
Hi All,
I am working on CATS. In CAT2 transaction, data is accessed from infotypes based on reporting hierarchy.
But I want to display data in CAT2 transaction from custom table. I have changed personnel selection program RPLFST01 but it is not showing me all employees from custom table. Some employees are rejected due to authorizations given to supervisors.
Can anyone please help me in this issue? I have checked all user exits. But all are trigerring in data entry screen. I want to change data in initial screen of CAT2 transaction.
Appreciate your early help...
Thanks & Regards,
MadhuraTransaction Code - CAT2 Time Sheet: Maintain Times
Exit Name Description
CATS0001 CATS: Set up worklist
CATS0002 CATS: Supplement recorded data
CATS0003 CATS: Validate recorded data
CATS0004 CATS: Deactivate functions in the user interface
CATS0005 CATS: Customer field enhancements
CATS0006 CATS: Validate entire time sheet
CATS0007 CATS: Subscreen on initial screen
CATS0008 CATS: Determine workflow recipients for approval
CATS0009 CATS: Customer-Specific Text Fields in Data Entry S
CATS0010 CATS: Customer-Specific Text Fields in Worklist
CATS0011 CATS: Customer functions
CATS0012 CATS: Subscreen on data entry screen
No of Exits: 12
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
Hi Experts,
The requirement is in CAT2 transaction we need to filter wage type field depending upon user.
Need the user exit for the same.
Thanks,
Subhashree.Hi,
Try Using this CATS0003 CATS: Validate recorded data
CATS0005 CATS: Customer field enhancements.
If not you can also try to to enhance using programs ZXPADU01,ZXPADU02
Regards,
Adil -
Need user exit and runtime structure to get all the unsaved entries in CAT2
Hi Friends
As per our requirement, we need to compare all the entered hours from CAT2 vs Project level assigned hours.
If user save the record in CAT2, then no problem.I can get the records from CATSDB table.If user enter the record in first week and goes to next week without saving time entries in CAT2, Runtime structure catsd_imp-sumdays in user exit CATS0009 shows the current screen hours only.But I want to get all the entries entered in CAT2(Unsaved records).Is there any other user exit or badi available to get this functionalites.I tried with CATS0006 ,CATS0003 and so many user exits.But still I didnt get any solution for this.
If anyone come accross this kind of scenario,kindly help me on this.
Thanks
Gowrishankar
Edited by: gowrishankar p on Nov 1, 2010 2:24 PMHi
I didn;t find any badi for this transaction , check this onc CATS0010 once.
Regards
Siva -
User Exit Validation for CAT2 using CATS0003
Hi all,
I am using the user exit CATS0003 to validate the receiver cost center, receiver fund, receiver order and the receiver functional area.That is if any one of this fields are initial it will give an error message.
But when I try to change an existing record and try to change the order number (say if its blank - some records are with with blank internal order nos since we just implemented this validation , and I try to input a value in the time sheet ) and when I do check for errors it is still giving out the error message which it is supposed to give when all the fields are initial.When I debug I dont see my order number value which I gave on the time sheet
entry.the filed is just blank/initial so its giving my error message.
I am wondering is there any other user exit should we use to get the changed value to the user exit? If so please let me know.
Please help and thanks in advance.Following is my code
CHECK fields-workdate >= '20060701'.
Regular time
IF ( fields-awart = '1000' OR
fields-awart = '1030' OR
fields-awart = '1035' OR
fields-awart = '1180' OR
fields-awart = '1250' OR
fields-awart = '2000' OR
fields-awart = '2005' OR
fields-awart = '2010' OR
fields-awart = '2015' OR
fields-awart = '2020' OR
fields-awart = '2025' OR
fields-awart = '2030' OR
fields-awart = '2035' OR
fields-awart = '2045' OR
fields-awart = '2055' OR
fields-awart = '2060' OR
fields-awart = '2065' OR
fields-awart = '2070' OR
fields-awart = '2080' OR
fields-awart = '2085' OR
fields-awart = '3000' OR
fields-awart = '3005' OR
fields-awart = '3010' OR
fields-awart = '3015' OR
fields-awart = '3020' ).
no additional account assignments are allowed.
IF ( fields-rkostl <> 0 OR
fields-raufnr <> 0 OR
fields-fund <> 0 OR
fields-func_area <> 0 ).
MESSAGE e027(zmps).
ENDIF.
Extended hours
ELSEIF ( fields-awart = '1020' OR
fields-awart = '1040' OR
fields-awart = '1050' OR
fields-awart = '1060' OR
fields-awart = '1070' OR
fields-awart = '1080' OR
fields-awart = '1090' OR
fields-awart = '1100' OR
fields-awart = '1110' OR
fields-awart = '1120' OR
fields-awart = '1130' OR
fields-awart = '1140' OR
fields-awart = '1150' OR
fields-awart = '1170' OR
fields-awart = '1190' OR
fields-awart = '1200' OR
fields-awart = '1210' OR
fields-awart = '1220' OR
fields-awart = '1230' OR
fields-awart = '1240'). " OR
Give error message when ( Cost center or Fund or Function area ) or
( Cost center or Fund or Function area or Internal order ) is initial.
IF fields-workdate >= '20080705'.
IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
fields-func_area IS INITIAL OR fields-raufnr IS INITIAL ).
MESSAGE e030(zmps).
ENDIF.
ELSE.
IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
fields-func_area IS INITIAL )." OR fields-raufnr IS INITIAL ).
MESSAGE e028(zmps).
ENDIF.
ENDIF.
ENDIF.Looks like the error checks are being made before the values are transferred from screen to internal table and work area.
If you get the blank value for the field, also try to use function module DYNP_VALUES_READ to read values from screen field inside the user exit. If it comes back with value, validate against that value.
Edited by: Sharad Agrawal on Aug 7, 2008 2:41 PM -
User exit in CATS_APPR_LITE
When transaction CATS_APPR_LITE is executed, the selection is done on the whole population.
We want however to restrict the used population: when executing CATS_APPR_LITE, a Time Approver should only see the employees for whom he is allowed to approve time.
Our implementation proposal is to use a user exit in CATS_APPR_LITE that calls a custom z-table (maintained in a custom transaction) containing for every employee (PERNR) who are his time approvers (one time approver and two back-ups) for a certain period in time.
Our questions are:
- which user exit is there available in CATS_APPR_LITE to call this custom z-table?
- do you suggest a different method?
Thanks in advance!
Best regards,
Vincent MahyHi Vincent
There seems to no user exits to the transaction mentioned. But there is a BADI CATS_REPORTING which is getting triggered while executing the tcode mentioned. Below are some of the methods which could be implemented, please sit with a ABAPer and check which one best suits your requirement,
APPROVE_CATS_CLASSIC Automatic Approval of a CAT2 Data Record?: Yes/No
APPROVE_CATS_SERVICE_PROVIDER Automatic Approval of a CATSXT Data Record?: Yes/No
APPROVE_TRIP Automatic Approval of a Trip?: Yes/No
AT_SELECTION_SCREEN PAI for Selection Screen
AT_SELECTION_SCREEN_OUTPUT PBO for Selection Screen
AUTH_CHECK_CATS_CLASSIC Authorization Check for Working Time Data (CAT2)
AUTH_CHECK_CATS_SERVICE_PROV Authorization Check for Working Time Data (CATSXT)
AUTH_CHECK_TRIP Authorization Check for Trip Data
BEFORE_CATS_DATA_SELECTION Before Selection of CATS Data from Database
BEFORE_DISPLAY Working Time Data before Display on Screen
BEFORE_DISPLAY_APPR Working Time & Trip Approval Before Display on Screen
BEFORE_DISPLAY_DTL Working Time Details Before Data Display
BEFORE_TRIP_DATA_SELECTION Before Selection of Trip Data from the Database
CATS_DATA_SELECTED Process Selected CATS Data
DOCUMENT_FLOW_SELECTED Provide Selected Document Flow Data
INITIALIZATION Report Initialization
LOAD_OF_PROGRAM Constructor for BADI
START_OF_SELECTION Start of Report Processing
TRIP_DATA_SELECTED Process Selected Trips
Regards
Ranganath -
Hi Guys,
I have two custom fields in my CATS time sheet called Zclock1 and Zclock2. For a record that already exists I need to pre-populate these fields when I open the time sheet for an employee using CAT2, Which user-exit should I use?
I tried CAT0002 but this one will trigger only at the time of creating a new record or modifying an existing record.
Thanks,
Royhi Avisek Bhardwaj,
i want to change the data when i use CAT7 to transfer data to CO, before CO document created i must delete some dummy WBS element in a certain user-exit, so i need to find this user-exit to process the data,
i've checked the enhancement CATS0002, but it isn't what i want,
i've found one user exit PCA00001--EXIT_SAPLPC02_001(EC-PCA: Changes to Document when Transferring CO Actual Data)
i do delete dummy wbs element in this user exit but when transferring is finished, i find that the dummy wbs element still appears in the co document. it looks like that user exit doesn't work.
i don't know why,
regards,
buffer -
Hi Gurus,
I need to validate a field in cat2 transaction for a field . if the user enters a value other 1 then i need to validate that field providing an warning message "Number of days should not exceed 1 for a given date".
and then user should input the proper value (i.e, 1).
I incorporated this validation in User Exit CATS0002 CATS: Supplement recorded data.
in which i need did the validation for enrich_table-catsquantity as mentioned below.
IF enrich_table-catsquantity > 1.
MESSAGE w667(lr) WITH 'No.of days'
'should not'
'exceed 1 for'
'a given date'.
ENDIF.
1. If this condition becomes true the message will be triggred. then after executing this message staement will it alow the user to enter proper value ?
2. any other method of validating ?
Please help regarding this.
Thanks
ramuHi Kiran,
This sounds very interesting to me and I would like to learn more about the use case.
But first I need more information about your system landscape.
Do you run the use case on NW 70 EhP 1 or 2?
I strongly recommend NW 7.0 EhP 2 and I am convinced you get it done easily with BRFplus.
Calling BRFplus rules can be achieved by RFC or WebService call or locally in ABAP. Maybe take a look at a package called SFDT_DEMO_OBJECTS.
BR,
Carsten -
Hello,
We have added a custom field (say cust01) to the CAT2 transaction to enter working time and it works fine. However, when absences are entered, we would like to have this cust01 values at the staging table. But based on certain situation we do not want it to be transferred to the time infotype.
Is there any user-exit to analyze the data in staging tables like PTEX... and decide what needs to be transferred to the infotypes.
Thanks in advance for all your information.
Regards,
saploverHi,
Check this thread for the user exits in CATS.
Re: User exit in CAT2
Regards,
Manoj. -
ESS CATS user exit not triggered
Hi,
I am making some validations on the time sheet using enhancement cats0006, but that user exit is not triggered in the portal, in ESS.
I have my project activated through tr. CMOD, the user exit is triggered in R/3 using transaction CAT2.
What could be the reason ?
Thanks,
Stefan
Edited by: Stefan Kolev on Jan 24, 2012 10:51 AMSolved
-
Hi,
I understand that the system automatically check the payroll correction indicator but I was wondering if we can implement a user exit that check the "Earliest master data change since last payroll run" in IT0003 (P0003-RRDAT).Hi Vivek,
Thanks for the quick answer. I fully understand what you said but i have another problem. Let me explain.
After a input throught CAT2, the system trigger a PDC recalculation for time, the check for Payroll correction and the earlier master data change since last payroll run. We didn't execute time evaluation (PT60) before Releasing the payroll. Just after release, we execute the payroll, so the check for payroll correction and the earlier master data change disappear. it's the right behavior for sure. But by doing so, the system never trigger the time change via PDC recalculation because we did't run time evaluation. I know that it's more a process thing. then we put the payroll in correction and run the time evaluation. The system trigger the earlier master data change but doesn't trigger the payroll correction check (which is only trigger thru infotype). In that case, when we exit the payroll the system doesn't check that employee.
I would like to use a exit that check the earlier master data change before exiting payroll for that kind of process problem.
regards,
Sebastien -
User exit ZXPADU02 - evaluating SY-UCOMM
Hello everyone,
I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
My code looks like this (only the relevant code snippet in ZXPADU02):
CASE INNNN-INFTY.
WHEN '0007'.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING PRELP = INNNN
IMPORTING PNNNN = P0007.
CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
EXPORTING PRELP = PSAVE
IMPORTING PNNNN = P0007_ALT.
IF P0007_ALT-SCHKZ <> P0007-SCHKZ
AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
SHOW_DATA_AGAIN = 'X'.
ENDIF.
At first glance, the above works nicely. But this is what happens when I test more thoroughly:
I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.Mihir Nagar wrote:
Dear Petersen,
Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
ENDIF.
Hope this works.
Regards,
Mihir.
I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
make use of field IOPER of the structure PSYST to check on the infotype actions INS, MOD, COP, DEL...
In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt.
Maybe you are looking for
-
Error Message When Using a Class Files to Control Navigation
This is my first attempt at using a class file in a flash project. My intent is to keep all of my navigation elements in class file called "Navigation". However, I keep getting an error message when I publish. I am using a button to go back to the m
-
Activate "Open Item Management" for an Asset, line items posted previously
Dear Experts, In Asset there are line items already posted but it is not "Open Item Management" only "Line Item Display" is activated. Now we want this as "Open Item Management". We are using ECC 6.0. Please help... how to go about it? - Nilesh
-
I was comparing it to the Zen Micro, which I have When it came to "Music Library Sync with PC", the Micro allows you to but the Vision doesnt Can someone explain this to me and how it will affect me. Also, my 5gb Micro is almost full of music... even
-
Unexpected voice control and headphone use
We have two iPhone 3 G's in our household that we have used without incident up until this last month. With one phone, my husband used a new set of ear phones (not Apple) and the voice control would come on unexpectedly, over and over to the point th
-
Windows 7 (64bit) Can't find my HP 4200n
Any advice helping windows 7 find my laserjet? Not even a beep when I plug it in. It prints test sheets like a champ.....but nothing seems to be able to connect.... I'm using a parallel to usb adapter...not sure how to trouble shoot it...