Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CATIMESHEETMGR_INSERT without automatic approval?

Former Member
0 Likes
1,326

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?

8 REPLIES 8
Read only

Former Member
0 Likes
985

Hi,

You can check the CATSDB table for the processing status

Regards

Pavan

Read only

Former Member
0 Likes
985

Problem solved. (parameter profile)

Read only

0 Likes
985

Hi,

I have exactly same issue.Can you please let me know the solution.

Thanks.

Read only

Former Member
0 Likes
985

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.

Read only

0 Likes
985

can any one give me any solution for that.

Read only

0 Likes
985

Hi,

I have exactly same issue.Can you please let me know the solution if you have one.

Thanks!

Read only

0 Likes
985

This message was moderated.

Read only

erp_superman
Explorer
0 Likes
985

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.