I am an ABAP consultant working with CAT2 transaction .
I wanted to know in which table is the work center and plant for an employee stored?I mean does HR use common work center & plant tables used by other modules like PP,MM or it uses a database of its own to store this.
Which are the tables from which I can retrieve the work center & plant for a specific personnel (corresponding to CAT2 transaction) & ,and what data we need to input to get this?
The reason for this requirement is that I am using bapi 'BAPI_CATIMESHEETMGR_INSERT' to insert records from incoming file and it throws the error while inserting that says 'Enter a work center and a plant',whereas if you enter the same in CAT2 transaction it has the inherent functionality to retrieve the work center & plant and updating CATSDB.
So I want to populate the internal table with work center&plant before passing it to the BAPI,so that it doesn't throw such an error.
Please let me know if you have any info pertaining to this.