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

help required in bapi or function module..

Former Member
0 Likes
1,362

Hi,

Is there any BAPI or Function Module to get cost center description by giving cost center as input parameter? please suggest me.Thanks in advance.

Regards,

Sandy.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,191

Hello

You do not need FM.

Just read table CSKT with cost center and you will have description CSKT-KTEXT (CSKT-LTEXT)

9 REPLIES 9
Read only

Former Member
0 Likes
1,192

Hello

You do not need FM.

Just read table CSKT with cost center and you will have description CSKT-KTEXT (CSKT-LTEXT)

Read only

Former Member
0 Likes
1,191

Hi,

As mentioned above it is not needed to have a FM or BAPI.

But if you really need one then you can use this

READ_COSTCENTER_TEXT

Regards

Ansari

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,191

RK_KOSTL_READ

HRWPC_RFC_KOSTL_TEXT_GET

Read only

Former Member
0 Likes
1,191

hi,

You a query table CSKT to get description of cost center. BAPI_COSTCENTER_GETDETAIL.

you can also use the FM u201CREAD_COSTCENTER_TEXTu201D to fulfill your requirement.

Thanks and Regards,

Ahamed.

Read only

Former Member
0 Likes
1,191

Hi,

You have one FM to reteive costcenter text but for that you have to pass 4 importing parameters.

1.keydate on which the text should be that is -


CSKT-DATBI

2.Controlling company code -


CSKT-KOKRS

3.Cost center----- CSKT-KOSTL

4.Language-----CSKT-LANGU

in the above case also you are retieving the data from CSKT table.

hence i suggest better write a simple select query and pass KOSTL in where clause to obtain text of cost center that is LTEXT of CSKT Table

Read only

Former Member
0 Likes
1,191

Hi,

Sorry i have mentioned in my reply as CSKT-LANGU

but it is Sy-langu

Thanks & Regards,

S. Vijay

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,191

PLEASE BE CAREFUL with your title "help required in bapi or function module.. ". Hopefully not everyone uses this title for their own questions.

You should not say "help required", because it is obvious as you ask a question! "bapi or function module.." does not give enough information. Your title should be : "get cost center description by giving cost center as input parameter"

Read only

Former Member
0 Likes
1,191

HI,

Hi,

Check table CSKT

CSKT~LTEXT

Regards,

Dhanalakshmi L

Read only

0 Likes
1,191

Hi,

write a simple select query instead of FM or BAPI.


select single ltext
into lv_ltext
from cskt
where spras = sy-langu
and kokrs = lv_kokrs           " put your controlling area 
and kostl = lv_kostl             "put your cost center 
and datbi = lv_datbi.          "put your valid-to date 

Thanks,

Srilakshmi.

Edited by: Srilakshmi Moola Ram on Sep 17, 2009 7:19 AM