Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for Transaction CAT2

Former Member
0 Likes
4,776

Hi all,

Can any one let me know is there nay bapi for transaction CAT2.

- Thanks

Senthil Bala

Hi all,

Can any one let me know is there nay bapi for transaction CAT2.

- Thanks

Senthil Bala

10 REPLIES 10
Read only

Former Member
0 Likes
2,674

Hi,

The functionalities of the transaction CAT2, for display, delete, change and insert

BAPI_CATIMESHEETMGR_INSERT

BAPI_CATIMESHEETMGR_DELETE

BAPI_CATIMESHEETMGR_CHANGE

BAPI_CATIMESHEETRECORD_GETLIST

Regards,

Sakthi.

Read only

0 Likes
2,674

Hi ,

Can i use below bapi's to change the status to from FREE(20) to Approved(30).

BAPI_CATIMESHEETMGR_INSERT

BAPI_CATIMESHEETMGR_DELETE

BAPI_CATIMESHEETMGR_CHANGE

Pls. suggest me.

Naveen.

Read only

Former Member
0 Likes
2,674

See if this helps you.

BAPI_CATIMESHEETMGR_INSERT.

Regards,

Ravi

Read only

Former Member
0 Likes
2,674

hi

You can use the function module BAPI_CATIMESHEETMGR_INSERT for inserting the data into CATSDB table. (Transaction CAT2).

The function module BAPI_CATIMESHEETRECORD_GETLIST is used to read the data from CATSDB.

The function module BAPI_CATIMESHEETMGR_CHANGE is used to change the existing records.

regards

Arun

Read only

Former Member
0 Likes
2,674

Hi,

BAPI_CATIMESHEETMGR_CHANGE CATS: Change Data Records

BAPI_CATIMESHEETMGR_DELETE CATS: Delete Data Records

BAPI_CATIMESHEETMGR_INSERT CATS: Insert Data Records

Thanks

Eswar

Read only

Former Member
0 Likes
2,674

Hi,

Check in function group 'BAPICATS' also the following function modules may help,

BAPI_CATIMESHEETRECORD_GETLIST

BAPI_EECATIMESHEET_GETWORKLIST

Rgds,

Read only

Former Member
0 Likes
2,674

Hi Senthil,

to search for related BAPI's you can use transaction BAPI

This gives you a hierarchical or alphabetical list of BAPI's.

Select node... Cross-Application Components->Time Sheet

Here you will see all Time sheet related BAPI's

Kind Regards

Glenn

Read only

0 Likes
2,674

to search for related BAPI's you can use transaction BAPI

This gives you a hierarchical or alphabetical list of BAPI's.

try these

BAPI_CATIMESHEETMGR_CHANGE CATS: Change

BAPI_CATIMESHEETMGR_DELETE CATS: Delete

BAPI_CATIMESHEETMGR_INSERT CATS: insert

or try using these

BAPI_CATIMESHEETMGR_INSERT

BAPI_CATIMESHEETMGR_DELETE

BAPI_CATIMESHEETMGR_CHANGE

BAPI_CATIMESHEETRECORD_GETLIST

plz reward points by clickin on the star if it solves the query!!

Regards

Gunjan

Read only

0 Likes
2,674

Hi All,

If anybody can share with me what all import/export/table parameters values(if possible with sample code) we should pass to BAPI_CATIMESHEETMGR_CHANGE it will be great help for me..

Thanks in advance,

Ganga

Read only

0 Likes
2,674

LOOP AT ri_final INTO w_l_final.

REFRESH : i_catsrecords_in,i_bapiret2,i_catsrecords_out.

w_catsrecords_in-workdate = w_l_final-work_date.

w_catsrecords_in-employeenumber = w_l_final-emp_id.

w_catsrecords_in-abs_att_type = w_l_final-abs_att_type.

w_catsrecords_in-catshours = w_l_final-catshours.

w_catsrecords_in-all_day_flag = c_x.

APPEND w_catsrecords_in TO i_catsrecords_in.

CLEAR w_catsrecords_in.

*---> CATS: Insert Data Records

CALL FUNCTION 'BAPI_CATIMESHEETMGR_INSERT'

EXPORTING

profile = 'HR-ONLY'

text_format_imp = c_itf

TESTRUN = P_TRUN

RELEASE_DATA = C_X

TABLES

catsrecords_in = i_catsrecords_in

catsrecords_out = i_catsrecords_out

return = i_bapiret2.

Endloop.