Skip to Content
0
Former Member
Sep 28, 2007 at 08:47 PM

BAPI_CATIMESHEETMGR_INSERT allowing collisions

74 Views

We have a custom ABAP program that reads in time records from a non-SAP system and uses BAPI_CATIMESHEETMGR_INSERT to store the records in CATS. The BAPI is correctly returning warning messages (like time exceeds scheduled time) and in some cases it returns errors on collisions with full day absences. The problem we have run into is that the non-SAP system is passing in overlapping time worked entries and the BAPI calls are non stopping them. It is storing the records in the CATSDB and IT 2002. If you go into CATS using the same data entry profile that is passed to the BAPI, it gives you the collision error and won't let you leave the screen without fixing the error. So the data entry profile is set up correctly to give an error on collisions.

Should I be expecting BAPI_CATIMESHEETMGR_INSERT to catch these errors because the data entry profile says to prevent collisions, or does it ignore some of the edits that you'd have if entering the data in CATS?

We just upgraded to ECC 6, but I have verified the problem occurred in both 4.6c and the new version.