‎2010 Feb 05 9:35 AM
HI All,
I am working on Timesheet update program in which we have used the BAPI_CATIMESHEETMGR_INSERT.
In our system, the timesheet hours have been booked in the non-SAP system. We have a program in non-SAP, which will dump the desired data in an ABAP internal table. SO this internal table will have the approved hours.
Hence the following code has been used.
CALL FUNCTION 'BAPI_CATIMESHEETMGR_INSERT'
EXPORTING
PROFILE = PROFILE
TESTRUN = TESTRUN
* RELEASE_DATA =
* AGENT =
* TEXT_FORMAT_IMP = 'ITF'
TABLES
CATSRECORDS_IN = IT_BAPICATS1
CATSRECORDS_OUT = IT_BAPICATS2
RETURN = IT_RETURN
* LONGTEXT =
.The field PROFILE has the hard coded value as 'HR-ONLY'.
Can any one tell me the relevence of this parameter?
One more thing.. After running this BAPI, the hours willl be saved in CATSDB table with status as 30, which means Approved Hours.
If there is a requirement of saving the Rejected Hours (at non-SAP) into CATSDB table, how to proceed?
How exactly we have to save the non-approved hours into CATSDB table..?
Help will be apprciated.
Regards
Pavan
Edited by: Pavan Sanganal on Feb 5, 2010 3:05 PM
Edited by: Pavan Sanganal on Feb 9, 2010 5:13 PM
‎2010 Feb 09 2:37 PM
Take a look at transaction CAT2 to understand the purpose of data entry profile, also read [Customizing Settings for Data Entry Profiles|http://help.sap.com/saphelp_46c/helpdata/en/64/4003ba470211d189720000e8322d00/frameset.htm], the profile will have information on the data entry process, in peculiar the approval procedure for the recorded data. (You may also require to fill parameter RELEASE_DATA in the BAPI call)
Regards,
Raymond
‎2010 Mar 05 7:43 AM
Hi All,
I am using BAPI_CATIMESHEETMGR_INSERT to update CATSDB table. With this BAPI, i am uploading Approved hours to the SAP database. Even though i dont specify anywhere in the BAPI, that these hours are approved, the table is getting stored with Approved status (60) after the execution of this BAPI.
In our business scenario, the timesheet approval/rejection take place in non-SAP system.
Now the requirement is to upload even Rejected hours into SAP database.
How to upload Rejected hours into CATSDB table?
The parameters that i have used in this BAPI has been mentioned in the above thread.
Your help will be appreciated.
Thanks,
Pavan
‎2010 Mar 05 8:02 AM
‎2016 Aug 10 2:14 PM
Hi Pavan,
Do you get the answer how to upload the reject hours into CATSDB table using BAPI_CATIMESHEETMGR_INSERT.
My Requirement is I want to see the rejection time sheet record in CATSDB table when we try to insert using BAPI_CATIMESHEETMGR_INSERT.