Skip to Content
author's profile photo Former Member
Former Member

BAPI_CATIMESHEETMGR_INSERT error

I'm currently working on an integration with SAP HR, where we need to be able to submit timesheets using BAPI_CATIMESHEETMGR_INSERT. But I'm getting an error when calling the BAPI above, but I can't figure out where to start:

Missing customizing in trans ZCAT_TT_CHECK for CC and Task Type

If you have any idea, please let me know.

Thanks

//Mikael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2012 at 08:27 AM

    As it turns out, there was an OSS to include the missing paramethers to the BAPI:

    Thanks for all the help!!!

    Symptom

    As of Release 4.70, the CATS interfaces use the fields TASKTYPE, TASKLEVEL and TASKCOMPONENT.
    In the BAPIs BAPI_CATIMESHEETMGR_INSERT and BAPI_CATIMESHEETMGR_CHANGE, however, these fields are not available.

    Reason and Prerequisites

    These fields are actually a pure input help. Therefore, they are not absolutely required in the BAPIs.

    Solution

    To correct the problem, you need to change the BAPI structures and the BAPIs themselves.
    BAPI structures and BAPIs are in different delivery tracks so that a complete delivery ov the correction in a Support Package is not possible.
    The solution will be fully delivered in one of the next releases.
    To implement this note in advance, proceed as follows:

    1. Implement the attached source code corrections.

    2. Start Transaction BAPI and, in the left frame, expand the 'Time Sheet' component.

    3. Select the desired BAPI ('Change' or 'Insert')

    4. In the right frame, select the 'Project' tab page,and create a new project as a "Project for changing existing BAPI'.

    5. This is a compatible change, follow the instructions:

    a) Call Transaction SE11 to make all the required DDIC changes:
    For the 'Change' BAPI, structures BAPICATS3 and BAPICATS2 are relevant, for the 'Insert' BAPI, the structures BAPICATS1 and BAPICATS2 are relevant. For the affected structures, insert the following fields respectively at the end (!):
    Component Component type
    TASKTYPE CATSTASKTYPE
    TASKLEVEL CATSTASKLEVEL
    TASKCOMPONENT CATSTASKCOMPONENT
    Save and activate the structures.

    b) Source code corrections are not required at this point since you have already done this with point 1).

    c) Regenerate the IDOCs by executing the link when you generate the 'Generate ALE interface from BAPI (BDBG)'.

    Header Data



    Release Status:

    Released for Customer

    Released on:

    01.07.2004 08:40:22

    Master Language:

    German

    Priority:

    Correction with low priority

    Category:

    Program error

    Primary Component:

    CA-TS Time Sheet

    Add a comment
    10|10000 characters needed characters exceeded

    • Even I am facing the same problem. How to pass Tasktype, Tasklev, taskcom ?

      In the structure of EXTENSIONIN we have to give the first field as 'BAPI_TE_CATSDB'. What about the other filed like VALUEPART1, VALUEPART2, VALUEPART3, VALUE PART4.

      The BAPI is working fine if I dont pass Tasktype, Tasklev, Taskcom. I would really appreciate it if you guys could provide a code snippet to make it more clear,

      Regards,

      Ravi Singh

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2012 at 09:23 AM
    12

    Thanks guys for all the help.

    As the CATSRECORDS_IN request node does not have these preprties, should I use the EXTENSIONIN part of the request to submit these value(s)?

    //Mikael

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2012 at 09:40 AM

    Hi,

    This is just a custom error triggered in some CAT user exits...

    Why not simply do what the message suggests: Check custom transaction ZCAT_TT_CHECK for your Cost center and activity type??? If the message is correct, you just seems to use a CC/Act.Type that are not correctly maintained in this transaction...

    Also, if you are not able to fix this, there is probably some functional guy around you knowing this kind of issue, no?

    Kr,

    Manu.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 06, 2012 at 12:03 PM

    - Can you provide message id and number ?

    - Did you try to input same data via transaction CAT2

    - Else look for Customizing for cost center and activity type (SPRO Controlling, Cost Center Accounting, Cost Centers /or/ Activity Types) and price/budget (KP26)

    - Did you create customer checks in Enhancement CATS0003)

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • ID = Z_CATS

      This is a customer error raised by customer code, check for includes related to CA-TS enhancement on YOUR system. (Call transaction CMOD, look for project associated to enhancement starting with CATS)

      You can also perform via SE91 a where-used on this message id.

      NB: CAT2 is the transaction to input/maintain ca-ts time sheet in SAP. (there is also portal and other tools) - Try using this transaction to input same data than you pass to the BAPI, if you got the same error, you coded well the BAPI call, else...

      Regards,

      Raymond

      pastedImage_7.png (18.9 kB)
  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2012 at 08:03 AM

    Hi experts,

    Can someone please share sample code for this BAPI. I am new to ECC and am having difficulty from where to start?

    Regards,

    Dhruv

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 26, 2013 at 12:33 PM

    Could a provide a code snippet to pass these task type, tasklev, taskcom ?

    EXTENSIONIN-STRUCTURE = 'BAPI_TE_CATSDB'.

    EXTENSIONIN-VALUEPART1 = 0000000001 -> Inicates sy-tabix.

    What about task type, tasklev, taskcom ? Where shall i pass it ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.