I need to automate the recording of time, its approval and updation of the HR infotypes.
The steps to be done are -
1. CAT2 Tcode which I have tested with BAPI - BAPI_CATIMESHEETMGR_INSERT and this works.
2. CAT4 Tcode - approval by supervisor
3. Transfer of data to relevant infotypes.
I am trying to perform the step 2 by using the same BAPI - BAPI_CATIMESHEETMGR_INSERT but I am encountering some errors. I was wondering if there is another way to achieve step 2.
Also for step3, I found that if we check a parameter in CAT4 - Immediate transfer to HR, this can be done. I havent found a relevant field in the above BAPI.
Looking forward to your suggestions.. thanks for your help in advance!