Application Development 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: 

Cost center description

0 Kudos

Dear friends,

In FB03 cost center description is not displaying in ECC 6.0 and also when we see the assets cost center of assets are dispalying but when we run depricitation then cost centers are not diplaying .Give me the procedure to get the description and cost center .

Warm regards,

Surendar Reddy.

3 REPLIES 3

uwe_schieferstein
Active Contributor
0 Kudos

Hello Surendar

In order to get the cost center description you can use fm BAPI_COSTCENTER_GETDETAIL1.

Alternatively, you may use an ABAP-OO approach (see sample report ZUS_SDN_CF_REEX_COSTCENTER ).


*&---------------------------------------------------------------------*
*& Report  ZUS_SDN_CF_REEX_COSTCENTER
*&
*&---------------------------------------------------------------------*
*& Thread: Cost center description
*& https://forums.sdn.sap.com/thread.jspa?threadID=1034864&tstart=0
*&---------------------------------------------------------------------*
 
REPORT  ZUS_SDN_CF_REEX_COSTCENTER.
 
 
data: go_costcenter   type ref to if_reex_costcenter.
 
parameters:
  p_kokrs   type kokrs  DEFAULT '1000',
  p_kostl   type kostl  DEFAULT '1000'.
 
START-OF-SELECTION.
 
  CALL METHOD cf_reex_costcenter=>find
    EXPORTING
      id_kokrs       = p_kokrs
*      id_bukrs       =
      id_kostl       = p_kostl
*      id_datbi       =
*      id_activity    = RECA1_ACTIVITY-DISPLAY
*      if_auth_check  = ABAP_FALSE
*      if_enqueue     = ABAP_TRUE
*      if_use_archive = ABAP_TRUE
    receiving
      ro_instance    = go_costcenter
*    EXCEPTIONS
*      error          = 1
*      others         = 2
          .
  IF sy-subrc  0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
 
  write: / '       Name =', go_costcenter->ms_detail-name.
  write: / 'Description =', go_costcenter->ms_detail-descript.
 
 
 
end-of-SELECTION.

Regards

Uwe

Former Member
0 Kudos

Check the table.

CSKT Cost Center Texts

Former Member
0 Kudos

Hi ,

may be probs with the authorization objects , please check /NSu53 or have u done any Enhancements ?

regards

Prabhu