BAPI_CATIMESHEETMGR_INSERT

Hi All,
I need to automate the recording of time, its approval and updation of the HR infotypes.
The steps to be done are -
1. CAT2 Tcode which I have tested with BAPI - BAPI_CATIMESHEETMGR_INSERT and this works.
2. CAT4 Tcode - approval by supervisor
3. Transfer of data to relevant infotypes.
I am trying to perform the step 2 by using the same BAPI - BAPI_CATIMESHEETMGR_INSERT but I am encountering some errors. I was wondering if there is another way to achieve step 2.
Also for step3, I found that if we check a parameter in CAT4 - Immediate transfer to HR, this can be done. I havent found a relevant field in the above BAPI.
Looking forward to your suggestions.. thanks for your help in advance!
Liz

step 2 : BAPI_CATIMESHEETMGR_CHANGE (you just have to change the status of CATSDB records to 30)
step 3 : submit report RPTEXTPT

Similar Messages

  • Error while updating time sheet with BAPI_CATIMESHEETMGR_INSERT

    Hi Gurus,
    We are uploading data from 3rd party software to SAP with Z program.
    In this Z program using BAPI_CATIMESHEETMGR_INSERT.
    While updating data manually with CAT2 or with BAPI, data is entered properly without any problem but while using the bapi in Z program  error message " Version 0 is not set up for controlling area" is coming .
    Hence Version 0 is already active for the controlling area for fiscal year 2010.
    Please help me to resolve the issue.
    Thanks,
    Neha Duseja

    - First - Try to accomplish this via transaction CAT2 (*) (and then CATA or CAT6 to upload data to HR) - You may require some Customizing here ([Entry of Attendances and Absences for HR Time Management|http://help.sap.com/saphelp_bw/helpdata/en/64/400456470211d189720000e8322d00/frameset.htm])
    - Then - Use the same values in  [BAPI_CATIMESHEETMGR_INSERT|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_catimesheetmgr_insert#sdn_content_category_value_wiki]
    Regards,
    Raymond
    (*) Or ask to your functional

  • Message type 'X' dump in BAPI_CATIMESHEETMGR_INSERT

    Hi All,
    Requirement: Transfer data from a Z table to CATSDB using BAPI_CATIMESHEETMGR_INSERT.
    Issue: In case there is an erroneous data combination  of data or data mismatching with the datatype of field in CATSDB , BAPI_CATIMESHEETMGR_INSERT goes to dump.
    SAP : 6.20.
    I tried searching notes but have not got any for 6.20 release.
    Is there any way I can handle this programatically (exception handling etc.)
    My design: I have made a custom method which calls this BAPI to update CATSDB.
    Thanks,
    Regards,
    Kumud Singh

    Hi Rajesh,
    I found out that CATS was dumping because the data provided was erroneous. I found this dump at the initial stages of development. If you pass the right combination of data, you would not face this issue. Moreover, it is easy to debug and find that exact place which causes the dump.
    On the other side, I also realize that it should not dump rather throw some error message. There are no SAP notes that I could find to resolve this issue. You could also do a search on available SAP notes.
    Thanks.
    Regards,
    Kumud

  • CAT2 bapi_catimesheetmgr_insert Error when a day is missing -

    I am using FM bapi_catimesheetmgr_insert to upload CAT2 timesheet data.
    The problem is when i try to add records tor 2 days - 24.11.2009, 26.11.2009 - (here 25.11.2009 is not being uploaded), the FM returns an error - Number of hours recorded 0.00 is less than target hours
    If i include 25.11.2009 also, then this error does not come.
    Has anyone also faced this problem
    How can this error be avoided.
    We have a requirement where records need to be uploaded for 1 month for multiple employees.
    I have tried this by directly calling the FM in the Test mode and it also gives the same error.
    Is there any setting, parameter setting to resolve this?
    Pl. help
    rohit

    You need to pass records on daily basis in a loop, then you can avoid this error...

  • BAPI_CATIMESHEETMGR_INSERT Error: no personal data found  (error LR160)

    Hello,
    we have a problem with BAPI: BAPI_CATIMESHEETMGR_INSERT. We would like to use this FB to send data from an external application to SAP (CATSDB). However we get an error LR160: the personal number 00999111 does not exist or no permission.
    The user have sap_all / sap_new rights, so it shoud not be the problem with permission. The number  00999111 exists in the system too (e.g. in the table  PA0001).
    We try already find the solution but without positiv effect.
    Any hints would be very appreciated.
    Regards
    Michael

    Hello,
    we have a problem with BAPI: BAPI_CATIMESHEETMGR_INSERT. We would like to use this FB to send data from an external application to SAP (CATSDB). However we get an error LR160: the personal number 00999111 does not exist or no permission.
    The user have sap_all / sap_new rights, so it shoud not be the problem with permission. The number  00999111 exists in the system too (e.g. in the table  PA0001). We added the BAPI to distribution modell (BD64), too.
    We tried already find the solution but without positiv effect.
    Any hints would be very appreciated.
    Regards
    Michael

  • Query regarding BAPI_CATIMESHEETMGR_INSERT

    Hi
    How to find out what tables are being updated  in the function module BAPI_CATIMESHEETMGR_INSERT.
    If you know what tables get affected by executing this function module,
    please let me know.Also tell me the PROCEDURE of knowing which tables are updated.This is immediately required.please help me.
    Points will definitely be given.
    Thanking you
    Chandrika.

    i think u can just goto FM or program whtevr and then u can click on icon 'object list' in tool bar..it will show u all the Dictionary structures used in FM..
    or other way is u can serch for update,delete or insert keyword in the Fm to find out if it updates any table or not..
    amit

  • BAPI_CATIMESHEETMGR_INSERT with RFC XI user gives errormessages

    Hello group,
    In an interface with XI I call the BAPI BAPI_CATIMESHEETMGR_INSERT with a certain profile. For this profile certain checks are made for the inputvalues. When I debug the functionallity with my account the BAPI works fine. But when the same data is inserted with an RFC user trough XI I get errormessages that belong to another HR-profile. It is as if the hardcoded profileparameter is overwritten.
    Did anyone have the same problem, and if yes how was this solved?
    Regards, Léon Hoeneveld

    It had to do with user-exits that were active and did checks when the transaction code was empty.

  • BAPI_CATIMESHEETMGR_INSERT - BAPI_CATIMESHEETMGR_INSERT - MULTIPLE ROWS

    Hi to all,
    I'm using bapi BAPI_CATIMESHEETMGR_INSERT to insert hours in CAT2 Transaction (timesheet ) .
    The function seems to be working fine . The only thing that I don't understand is why it splits records on multiple rows.  For example I append records in CATSRECORDS_IN structure to pass hours (first record on first row ) and the second one on the second row for the same wbe in a different day column. In CAT2 (after I have executed bapi ) I'm expecting to have all hours in the same first row but I have multiple rows as records I have append in CATSRECORDS_IN.
    Plaese do you have any suggestion ?
    Many thanks in advance
    Andrew

    Marking this question as answered.  We found another alternative..did not use the SHORTETEXT field.

  • BAPI_CATIMESHEETMGR_INSERT - Can't get SHORTTEXT (LTXA1) updated

    I'm using BAPI_CATIMESHEETMGR_INSERT  (for the first time) and it is successfully inserting new CATS records - with the exception of the short text field (ltxa1).   I've run the program in debug mode and the SHORTTEXT field within my internal table for the import BAPICATS1 table (named tbl_catsdata_in) has the SHORTTEXT value populated, but after the BAPI call, the field is not updated in the corresponding BAPICATS2 export table (named tbl_catsdata_out in my program).
    Is there something special I need to know about getting values to store in the CATSDB LTXA1 field?  All other fields are storing just fine.  I am explicitly moving a value to the field.  I'm baffled.
    Here are excerpts from the program:
          tbl_inserts-abs_att_type       = tbl_zlct_to-awart.
          tbl_inserts-bonustype          = tbl_zlct_to-prakn.
          tbl_inserts-employeenumber     = tbl_zlct_from-empl.
          tbl_inserts-rec_cctr           = tbl_zlct_to-rkostl.
          tbl_inserts-rec_order          = tbl_zlct_to-raufnr.
    Storing the LCT-ID in the new records short text field.
          tbl_inserts-shorttext          = tbl_zlct_to-lct_id.
          loop at tbl_inserts where lct_id = v_hold_lct_id.
            move-corresponding tbl_inserts  to  tbl_catsdata_in.
            append tbl_catsdata_in.
          endloop.
      loop at tbl_cust_fields where lct_id = v_hold_lct_id.
        tbl_extensionin-structure  = 'BAPI_TE_CATSDB'.
        bapi_te_catsdb-row        = tbl_cust_fields-recno.
        bapi_te_catsdb-zoan       = tbl_cust_fields-zoan.
        bapi_te_catsdb-zzminclss  = tbl_cust_fields-zzminclss.
        bapi_te_catsdb-zzcostcntr = tbl_cust_fields-zzcostcntr.
        bapi_te_catsdb-ztaskid    = tbl_cust_fields-ztaskid.
        tbl_extensionin+30      = bapi_te_catsdb.
        append tbl_extensionin.
      endloop.
      call function 'BAPI_CATIMESHEETMGR_INSERT'
        exporting
          profile               = 'AUTOAPP2'      "Profile
          testrun               = v_no_upd    "Test
          release_data          = p_releas    "Release Data
          AGENT                 =
          TEXT_FORMAT_IMP       = 'ITF'
        tables
          catsrecords_in        = tbl_catsdata_in
          extensionin              = tbl_extensionin
          catsrecords_out      = tbl_catsdata_out
          extensionout            = tbl_extensionout
          WORKFLOW_TEXT         =
          return                = tbl_return
          LONGTEXT              =
    Thanks in advance for your help.

    Marking this question as answered.  We found another alternative..did not use the SHORTETEXT field.

  • [HELP] ExtensionIn ---- BAPI_CATIMESHEETMGR_INSERT

    Hi All,
    Kindly please help me on BAPI_CATIMESHEETMGR_INSERT. I already inserted my custom field COUNTRY to Table CATSDB.  I would like to post my entries with my inserted field COUNTRY. I already read the BAPI manual :
    ExtensionIn
    Customer enhancement import
    Description
    If you defined additional customer fields in your external application or external system as well as in the SAP System and you want to transfer data from them to the SAP System, you can use this import table. The additional customer fields are reproduced in the customer-specific fields in the CATSDB table using the BAPI_TE_CATSDB structure.
    You should enter the name of the structure in the STRUCTURE field. The contents of the BAPI_TE_CATSDB structure is contained in the data part. The data part of this table must be structured analogously to the BAPI_TE_CATSDB structure. The first 10 characters of the data part are for the line numbers. The customer fields are linked to the corresponding data record in the CATSRECORDS_IN table using the line numbers.
    >>What are the first 10 characters that I should input? Please. Please help me on this.
    Thanks.

    Well this is what I think on this.
    You have to pass name of the table (say t1) of type BAPI_TE_CATSDB to the Structure EXTENSIONIN
    so now t1 will contain the data which will obviously have the corresponding Extension data for the main table CATSDB. But there has to be some way to identify which row of CATSRECORDS_IN matches to row of BAPI_TE_CATSDB record. The first 10 char are supposed to do this linking.

  • Tasktype in BAPI_CATIMESHEETMGR_INSERT

    hi experts,
    i want to update catsdb table , for that im using the function module " BAPI_CATIMESHEETMGR_INSERT" in that ihave to insert the field "TASKTYPE" also, but i cant see it in the "catsrecordsin or catsrecordsout tables". how can i update the field "tasktype".
    from,
    Venkat.

    Hi Venkat. How did you achieve this functionality ? Even I am looking for the same.

  • BAPI_EECATIMESHEET_GETWORKLIST , BAPI_CATIMESHEETMGR_INSERT Purposes Needed

    Hi all,
    What are all the Inputs needed for these two BAPI's ?
    Can i know what these 2 BAPI's can do ?
    whats the Purpose of these 2 BAPI's ?
    BAPI's :
         BAPI_EECATIMESHEET_GETWORKLIST
         BAPI_CATIMESHEETMGR_INSERT
    Kindly Clarify.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks & Regards,
    N.L.
    Edited by: Alvaro Tejada Galindo on Dec 18, 2008 11:53 AM

    Hello,
    are there any news regarding this topic?
    thx, Vanessa

  • BAPI_CATIMESHEETMGR_INSERT-Posting to HR and FICO automatically

    Hi
    I'm currently using function BAPI_CATIMESHEETMGR_INSERT to import data to CAT2.. What functions/bapis are availble to automate the posting of info to HR(CAT6) and FICO(CAT7).
    Regards,
    Giovanni

    BAPICATS BAPIs for BUS 7024
    BAPI_CATIMESHEETMGR_CHANGE CATS: Change Data Records
    BAPI_CATIMESHEETMGR_DELETE CATS: Delete Data Records
    BAPI_CATIMESHEETMGR_INSERT CATS: Insert Data Records
    BAPIs for BUS TIMESHREC
    BAPI_CATIMESHEETRECORD_GETLIST Time Sheet: Data Record List
    BAPIEMPLOYEECATS BAPIs for BUS 7025
    BAPI_EECATIMESHEET_GETWORKLIST Time Sheet: Read Worklist
    More here: http://saphruser.com/sap-hr-fm-rfc-bapi/

  • List of BAPIs related to Workflow

    hello,
    I am currently working on a mobile application android my goal is to validate a workflow from a user that's why I want a list of BAPI with a link to the workflow
    thank you
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 20, 2011 1:19 PM

    Hi,
    BAPI and FM related to Workflow -
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_CREATE_EVENT(latest)
    SWE_EVENT_CREATE (old)
    SAP_WAPI_CREATE_WORKLIST
    SAP_WAPI_GET_WORKITEM_DETAIL
    BAPI_CATIMESHEETMGR_INSERT
    SAP_WAPI_EXECUTE_WORKITEM
    BAPI_USER_GET_DETAIL
    Pls check the BAPI tcode in SAP for ore list of BAPIs related to workflow.
    Regards
    Lekha

  • How to make use of BAPI_CATIMESHEETMGR_CHANGE

    Hi All,
           We need to make use of BAPI_CATIMESHEETMGR_CHANGE for changing entered hours against an activity instead of adding new row for the same(BAPI_CATIMESHEETMGR_INSERT does that ) . Please guide me what all table parameters we should supply while executing this FM.
    Regards,
    Ganga.

    Hi Senthil,
    Now I have got how to make use of BAPI insert and change. But problme is when I need to add an hours entry for , say tuesaday of activity A for which already HAS monday hours,I am using  BAPI_CATIMESHEETMGR_INSERT AND IT IS ADDING ONE MORE ROW AS SHHOWN BELOW
    . But it adding new row. How top overcome this.
    <b>       Monday
          A     2</b>
    After insert
    <b>      Monday  Tuesday
          A     2
          A            3</b>
    =----
    SHould I use delete and insert.
    Please help me..;
    Regards,
    Ganga
    Message was edited by:
            Gangadharayya Hiremath
    Message was edited by:
            Gangadharayya Hiremath

Maybe you are looking for

  • ICal invitations are sent with work email calendar and respond to personal

    Ical is set up to receive my work calendar called [email protected] Work email is a google webmail account. Office workers send invited to me from google calendar. I can accept these and they DO show on my .mac Ical. On Ical, i have a list of standar

  • Retrieving a copy of my iphone 3g purchase receipt

    I would like to retrieve a copy of my iphone 3g purchase receipt and there is no easy way to contact Apple's service that address the issue above. I'm from israel and would like to contact Apple's service via email or by chat service (which is prefer

  • Same query returns differenent result sets in oracle 9i and 10g

    Could anyone please clarify the issue i am having on a query. I have query that is returning around 2000 records in oracle db 9.2.0.8.0, at the same time with same data if run on 10.2.0.1.0 is returning only 12 records. what might be the reason for t

  • Problems with Time Machine restore

    Hi - am hoping someone can help me. My laptop got stolen last week and I bought a new one yesterday. The old one was kind of messy - I'd had it for a while and had been living with some weird error messages and that sort of thing - so I only wanted t

  • Nfl mobile app has no schedule?

    The new NFL mobile app for android has no option to view the nfl network schedule of the channel that it plays.  Also, it doesn't seem to follow the schedule that nfl.com lists for the nfl network,  right now mine just played the bills vs colts game