‎2009 Sep 14 4:11 PM
Hi,
I'm using the BAPI_CATIMESHEETMGR_INSERT to import data out of a txt-file into cats.
All data is imported properly. Unfortunately, every timesheet gets the status 30 "approved".
How can I import the timesheets with status 20? (I've already tried using the BAPI parameter Release_data = ' ', but I still get status "30")
Any help on this?
‎2009 Sep 14 4:39 PM
Hi,
You can check the CATSDB table for the processing status
Regards
Pavan
‎2009 Sep 15 8:56 AM
‎2011 Jun 23 11:12 PM
Hi,
I have exactly same issue.Can you please let me know the solution.
Thanks.
‎2010 Feb 05 12:48 PM
i have the same problem , i have to upload the data like approved cats hours (status = 30) and (status = 60 for cancelled ) using the BAPI_CATIMESHEETMGR_INSERT , but only approve (status = 30 ) is getting updated , im using the profile HR-only can u give the solution for this pecular problem.
‎2010 Feb 09 7:00 AM
‎2011 Jun 23 11:10 PM
Hi,
I have exactly same issue.Can you please let me know the solution if you have one.
Thanks!
‎2013 Apr 02 8:51 AM
‎2015 Apr 10 4:31 PM
The solution hinted by Kavaolec that worked for me was:
1. Run transaction CAC1 to view the profiles. Look at the details for the profile. Select a profile that has Approval-With approval procedure radio button selected. You need the name of that profile. For me it was "ESS".
2. Before calling BAPI_CATIMESHEETMGR_INSERT
DEFINE s_profile LIKE bapicats6-profile.
s_profile = "ESS".
3. When calling BAPI_CATIMESHEETMGR_INSERT
add the clause:
EXPORTING
profile = s_profile
When I ran the INSERT it updated CATDB and put in a line with process status 10, which is what I wanted.
When I did not put in the EXPORTING profile, it put in a line with process status 30, which is not what I wanted.
Hope this helps someone.