Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Display Cost Center Group Text

Hi..

I'm new to abap, and I am working for abap for hr module now. My question will be...

How can I display a cost center group text in report? Is there a text table for it?

I get the cost center value from table pa0001-kostl.

I find the function BAPI_COSTCENTERGROUP_GETLIST by searching this forum. But, the parameters I can get is only for controllingareamask from pa0001-kokrs.

any help would be grateful

thanks

Former Member
replied

Hi Yusuf,

BAPI_COSTCENTERGROUP_GETLIST works fine .

-> here's an example :

SELECT SINGLE kostl kokrs FROM pa0001 INTO: (kostl, kokrs)

WHERE pernr = '4711'.

*

select single khinr from csks into khinr

WHERE kokrs = kokrs

AND kostl = kostl

AND datbi GE sy-datum

AND datab LE sy-datum.

CALL FUNCTION 'BAPI_COSTCENTERGROUP_GETLIST'

EXPORTING

controllingareamask = kokrs

groupnamemask = khinr

TABLES

grouplist = it.

regards Andreas

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question