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 updating CATSDB Table

Former Member
0 Likes
3,075

Hi,

I have recieved the list of BAPIs that can be used to update the table CATSDB.

MAP2E_CATSDB_EXT_TO_BAPICATS2

MAP2E_CATSDB_EXT_TO_BAPICATS7

MAP2I_BAPICATS1_TO_CATS_EXT

MAP2I_BAPICATS3_TO_CATS_EXT

MAP2I_BAPICATS4_TO_CATS_EXT

MAP2I_BAPICATS7_TO_CATS_EXT

MAP2I_BAPIPAREX_TO_CATS_EXT

MAP2E_CATSW_TO_BAPICATS5

MAP2E_CATSW_TO_BAPICATS7

No Bapi is updating the table when i enter few inputs and execute the same in SE37.

Can anyone help me...???

Basically i want to update the existing records in CATSDB table....

Regards

Pavan

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,767

First read current values from CATSDB or fill new in CATSDB, then move-corresponding to CATSDB_EXT structrure.

Then map to bapi structure fields with <b>MAP2E_CATSDB_EXT_TO_BAPICATS2</b>

For new records move-corresponding BAPICATS2 to BAPICATS1. (Beware the VORNR field is ACTIVITY in all structures except BAPICATS2 where it is AVTIVITY...)

then call (in order) appending return table parameter

<b>BAPI_CATIMESHEETMGR_DELETE</b> for records to delete

<b>BAPI_CATIMESHEETMGR_CHANGE</b> for records to update

<b>BAPI_CATIMESHEETMGR_INSERT</b> for records to insert

Analyse table RETURN (structure bapiret2) are there errors (-type 'E', 'A')

If error found : <b>BAPI_TRANSACTION_ROLLBACK</b>

Else : <b>BAPI_TRANSACTION_COMMIT</b>

Regards

Hi,

I have recieved the list of BAPIs that can be used to update the table CATSDB.

MAP2E_CATSDB_EXT_TO_BAPICATS2

MAP2E_CATSDB_EXT_TO_BAPICATS7

MAP2I_BAPICATS1_TO_CATS_EXT

MAP2I_BAPICATS3_TO_CATS_EXT

MAP2I_BAPICATS4_TO_CATS_EXT

MAP2I_BAPICATS7_TO_CATS_EXT

MAP2I_BAPIPAREX_TO_CATS_EXT

MAP2E_CATSW_TO_BAPICATS5

MAP2E_CATSW_TO_BAPICATS7

No Bapi is updating the table when i enter few inputs and execute the same in SE37.

Can anyone help me...???

Basically i want to update the existing records in CATSDB table....

Regards

Pavan

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,767

These BAPI only map data from one BAPI structure format to Database table format and reciprocally

To update database CATSDB, use BAPI_CATIMESHEETMGR_DELETE, BAPI_CATIMESHEETMGR_CHANGE and BAPI_CATIMESHEETMGR_INSERT followed by BAPI_TRANSACTION_COMMIT.

Regards

Read only

abdulazeez12
Active Contributor
0 Likes
1,767

Try these

BIW_CATS_CUSTOMER_EXIT

BIW_CHECK_CATS_DATA

BIW_CHECK_CATS_DATA2

BIW_DELTA_CHECK_SELOPT

BIW_DELTA_CHECK_SELOPT2

CATS_APPROVAL0

CATS_BIW_DELTA

CATS_BIW_TIMESTAMP_DELTA

CATS_BUILD_CATSD

CATS_CHECK_CONSISTENCY_AT_SAVE

CATS_DISPLAY_ALV_LIST

CATS_DISPLAY_TARGET_DOCUMENTS

CATS_DISPLAY_TARGET_DOCUMENTS0

CATS_READ_ARCHIVED_DATA

CATS_READ_INTERFACE_ACCOUNTING

CATS_READ_INTERFACE_LOGISTICS

CATS_READ_TIMESHEET_DATA

CATS_SAVE_INTERFACE

CATS_SHOW_LIST

CATS_TRANSFORM_FREE_RECORDS

EXIT_SAPLTSBW_001

READ_INTERFACE_CPR

Reward point if helpful.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,768

First read current values from CATSDB or fill new in CATSDB, then move-corresponding to CATSDB_EXT structrure.

Then map to bapi structure fields with <b>MAP2E_CATSDB_EXT_TO_BAPICATS2</b>

For new records move-corresponding BAPICATS2 to BAPICATS1. (Beware the VORNR field is ACTIVITY in all structures except BAPICATS2 where it is AVTIVITY...)

then call (in order) appending return table parameter

<b>BAPI_CATIMESHEETMGR_DELETE</b> for records to delete

<b>BAPI_CATIMESHEETMGR_CHANGE</b> for records to update

<b>BAPI_CATIMESHEETMGR_INSERT</b> for records to insert

Analyse table RETURN (structure bapiret2) are there errors (-type 'E', 'A')

If error found : <b>BAPI_TRANSACTION_ROLLBACK</b>

Else : <b>BAPI_TRANSACTION_COMMIT</b>

Regards