‎2009 Sep 11 10:32 AM
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.
‎2009 Sep 11 10:36 AM
Hello
You do not need FM.
Just read table CSKT with cost center and you will have description CSKT-KTEXT (CSKT-LTEXT)
‎2009 Sep 11 10:36 AM
Hello
You do not need FM.
Just read table CSKT with cost center and you will have description CSKT-KTEXT (CSKT-LTEXT)
‎2009 Sep 11 10:41 AM
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
‎2009 Sep 11 10:46 AM
‎2009 Sep 14 8:17 AM
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.
‎2009 Sep 14 9:40 AM
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
‎2009 Sep 14 9:42 AM
Hi,
Sorry i have mentioned in my reply as CSKT-LANGU
but it is Sy-langu
Thanks & Regards,
S. Vijay
‎2009 Sep 14 9:43 AM
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"
‎2009 Sep 15 8:05 AM
‎2009 Sep 17 6:18 AM
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