Skip to Content
0
Former Member
Feb 05, 2010 at 09:35 AM

About BAPI_CATIMESHEETMGR_INSERT

678 Views

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