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

How to lock object of cost center successful when calling BAPI

0 Kudos
734

HI experts,

We're facing some strange problem when calling the BAPI BAPI_COSTCENTER_CHANGEMULTIPLE to block some legacy cost center.

The BAPI use differernt lock object to lock cost center with HR object is different with T-code KS02 since there is one entry missing in table T77EO with object K(cost center). When I debug the code of BAPI, it call FM RHOM_ENQUEUE first to check if there is record of K in table T77EO, if it exist then call the same lock FM ENQUEUE_EKCSKSE as same as KS02 that is no problem, if no exist then call the FM HR_ENQUEUE_OBJECT to lock as different as KS02. Actually we don't know about that table T77EO even though that missing entry.

Do you know background of it? Why the entry K(cost center) is missing in our system? if we add it, is there any impact?

2 REPLIES 2
Read only

0 Kudos
395

If a cost center to be changed is locked in parallel of any other transaction like KS02, this BAPI cannot able to call the Function Module ENQUEUE_EKCSKSE as same processing as KS02

Read only

0 Kudos
395

Can anyone help?