How to find Cost center

Hi all,
Please tell me how to get the cost center if i'm having G/L account, company code and fiscal year.
I can see in the Tcode FB03, but how do i retreive the cost center and cost center category from tables.
Please help.
Thanks and regards
Poorna

Since you have the G/L Account and not the document number, you should go to BSIS and BSAS:
REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.
TABLES: bsis, bsas, cskt.
SELECT-OPTIONS: s_bukrs FOR bsis-bukrs,
                s_hkont FOR bsis-hkont,
                s_gjahr FOR bsis-gjahr.
DATA: BEGIN OF itab OCCURS 0,
        bukrs LIKE bsis-bukrs,
        hkont LIKE bsis-hkont,
        gjahr LIKE bsis-hkont,
        kostl LIKE bsis-kostl,
        ktext LIKE cskt-ktext,
      END   OF itab.
SELECT bukrs hkont gjahr kostl
  FROM bsis
  INTO TABLE itab
  WHERE bukrs IN s_bukrs
    AND hkont IN s_hkont
    AND gjahr IN s_gjahr.
SELECT bukrs hkont gjahr kostl
  FROM bsas
  APPENDING TABLE itab
  WHERE bukrs IN s_bukrs
    AND hkont IN s_hkont
    AND gjahr IN s_gjahr.
SORT itab.
DELETE ADJACENT DUPLICATES FROM itab.
LOOP AT itab.
  SELECT SINGLE ktext
    FROM cskt
    INTO itab-ktext
    WHERE spras  = sy-langu
      AND kokrs  = s_bukrs
      AND kostl  = itab-kostl
      AND datbi >= sy-datum.
  IF sy-subrc = 0.
    MODIFY itab.
  ENDIF.
ENDLOOP.
LOOP AT itab.
  WRITE: /001 itab-bukrs,
              itab-hkont,
              itab-gjahr,
              itab-kostl,
              itab-ktext.
ENDLOOP.
Rob
Message was edited by: Rob Burbank

Similar Messages

  • How to find cost center assigned to a work center

    Hi Guys,
                 I need to find cost center assigned to work center.
    from Which table I should to get it.
    Cheers
    S Kumar

    Hi,
    Please use the table CRHD to get the object ids and then go to the table CRCO with the object ids and get the Cost center assignment to resources.or you an create a query by SQVI and use it.
    regards,
    kaushik

  • How to restrict cost center in ME51N

    Hi all,
    can anyone please let me know,how to restrict cost center in ME51N transaction?
    Thanks in advance for your efforts

    Dear,
    Go to Transaction,
    KS02- Change Cost Center.
    Go to the Control Tab.
    Tick on the checkbox for desired transaction activity you want to lock this cost center.
    Any postings made against the cost center will not be allowed.
    Regards,
    Syed Hussain.

  • How to assign cost center to cost element.

    Hello,
    Can any one please guide how to assign cost center to cost element.
    Thanks in Advance..
    Have a nice day...

    Hi ,
    There are 3 ways :
    1. Default the cost center in cost element - Ka02 - account assingment tab enter cost center .
    2. Use OKB9 for diffrent combinations as per your requirement .
    3. Use GGB1 for substituting the cost center based on some conditions .
    Regards ,
    Dewang T.

  • How to use cost center hierarchy?

    Hi,
                  How to use cost center hierarchy?I have created that but how to use that.Can somebody help me?
                                        Sekar

    Once the Cost Centre Hierarchy is Created, it can be used in Profit Centre Reports.
    Choose Financials -> Cost Accounting -> Profit Center Report ->Template.
    Here Choose, the Cost Centre Hierarchy the you had created and generate the report.
    Also refer these threads
    [Reg... Costcenter hierarchy;
    [cost centre hierarchy;

  • How to Enable Cost Center Field in Infotype 0001

    Dear all my Friends,
    Can anybody please tell me that how to Enable Cost Center Field in Infotype 0001, actually the problem is while hiring the employee the field itself disable and not allowing me to put any CC on that field but which should be enable while hiring or if we intend to change in future through PA30 and after that i thought i can do in Infotype 0027 also but in infotype 27 the field called Master Cost Center field is still disabled which will reflect in 0001 or Vice Versa.
    So friends pls tell me where my configuration is wrong or how will i get enable that field in 0001 infotype so that i calculated the cost of that employee.
    Waiting for ur Reply friends,
    Thanks,
    Prashant.

    Dear Rajesh,
    Thanx for ur Solution and i got the answer, actually i m maintaining through OM and u gave me the exact solution .
    Gr8 job dear. Thanx allot once again
    Thanks,
    Prashant.

  • How to find cost centers for a org unit ( if kost center is inherited)

    Hi all
    We have a org structure
    When a parent org unit is assigned a kost center then the parent also inherites the kost center
    I need to find kost center for all the org unit in my organization
    I cant see the inherited cost center neither in IT 1001 nor 1008 nor 1015 but i can see it in PPOME in the account assignment tab.
    How can i find the inherited cost centers to all the org units.
    i think i am clear with my requirement to all
    Thanks
    Raj

    Use the report RHSTRU00 in tcode SE38
    and give the follwoing values in selection screen
    Plan version                    01  Current plan
    Object type                     O   Organizational unit
    Evaluation Path               A011       All relationships to A011 -> cost
    execute the report to see all the orgunits with their cost centers

  • How to delete cost center - KS04

    Hi,
    we need to delete the current cost centers however we can not do it due to the fact thar records available in table COKA.
    In order to get rid of this problem we have tried to change the valid through date as, for example, 01.01.2011 - 31.12.9999 and tried to delete with these values and got the message cost center can be deleted, KS04, but how to delete it?
    i looked for a butto etc to delete the cc but could not find any.
    All heplful answers will be appreciated.
    Thanks.

    Try to follow the process mentioned in standard sap Help.
    http://help.sap.com/saphelp_46c/helpdata/en/03/7c9d3962749d08e10000000a11402f/content.htm

  • How to Find Cost Centre

    I find out Profit centre from Material Master By entering T.code mm03. But how I have to find out cost centre. I can not find out cost centre directly, but by entering the transaction code OBK9 it could be find out manually / or checking individual cost centre to which a particular profit centre is assigned.
    So I want to know how I could find out directly a cost centre when a profit centre is known.

    Are you sure that your MM is using Cost center for imputation.
    If your are using cost center, check the lien items in KSB1, by selecting profit center / cost element and date in your variant. Normally you will see your transaction and you will know which cost center is used.
    best regards
    Stephane

  • How to change cost center for employee

    Hi,
    I want the engineering groups to change to different cost centers for this new year.I was able to change the home cost center for a work center through IR02. But not able to change the home cost center assignment for specific personnel through PA30. SAP allows to enter the cost center but while saving it gives the error message as "Start date after initial entry date (01/01/2010)" when I used a 01/01/2011 start date and "Cost Center does not exist on 01/01/2010" when I used 01/01/2010 start date
    Could please tell how to change the cost center for the personnel?
    Thanks & Regards,
    Jegashree

    Hi Jegashree!
    The Cost Centre is always assigned in creating Position. So If you want to change Cost Centre, please using T-Code PPOME and find the position and change the Cost Centre.
    The another way, you use t-code PP01 (create) PP02 (edit) to change the relationship (IT 1001) and A-011.
    Hope you can solve it.
    Regards!
    Woody.

  • How to get Cost Center number from a Customer

    Hi Sap Experts,
    I have a customer number from xd03. But I would like to know which is the cost center used by this customer, how can I find that?
    Because I'm getting an warning message when using FB08, it points to the Tax Jurisdiction issue. I believe at some point, it's checking the Jurisdiction field of the cost center.
    Regards,
    CHL

    Hi,
    Thank you for the reply.
    The thing is, when I run FB08 for a specific document, i'm getting this warning Msg: Account assignment object has jurisdiction code XX, line iten XX AAAAAA.
    I checked already the configurations for jurisdiction code in customer master data and the path "define tax jurisdiction code" with spro.
    I noticed something, during the debug at some point its reading the cost center's jurisdiction number, and will compare it with customer's master data jurisdiction.
    But if there's no cost center it will process fine.
    It's in the program SAPLKAIP, form CostCenter_Check. Not sure if it's SAP standard code.
    Cheers.
    CHL

  • How batch append cost center group to standard hierarchy by batch

    Hi Guys,
    Would you please tell how me how append cost center groups to standard hierarchy by batch, every time I have to do it one by one, is there  a convenient way? thanks.
    Best Regards
    FS

    Hi,
    You can create any number of cost center groups as per your requirement.
    But one thing is crucial. If you crin your eate the groups using the T Code:OKEON. those will effect  to the standard hierarchy.
    Cost centers created wil KSH1 will not effect to standard Hierarchy.
    Main point here is the main hierarchy should be maintained in OKEON. Later you can add any number of groups to that. LSMW will work, before that Hirarchy Area(Cost center group) should be maintained in the system for effective work of LSMW.
    Regards,
    Pavan Kumar Arvapally

  • How to add cost center field to IT0001

    Hi
       How to add a cost center filed in IT 0001...I know normally this will be there but in my client system it is been hided or removed ..So can I know where to make a changes to get it back.
    Thanks

    hi
    check your infotype customizing in IMG .
    note down the screen number , and in there you can check if the fld is hidden or not.
    Regards
    sameer

  • To find cost center column in S_ALR_87012291.

    I´m trying to get the cost center in the transaction S_ALR_87012291 (line item Journal report) why I need see the document financial but this report doesnu2019t have the cost center column, I have tried  to find it in button u201Cchange layoutu201D but doesnu2019t exist. Do you know alternative transaction?

    Hi,
    Further to your mail, the report is standard one and the required Cost Center can not be called as a column, since this is not ALV Report.
    The ALV report would allow you in some cases to call the columns like your requirement.
    If it is compulsory to your requirement, then copy the report into Z Report and get modified by your Technical Team (ABAPer).
    Regards
    VG

  • Report Painter- How to make cost center report for Jun07-Jul08 ?

    Hi Experts,
    I need to make a P&L (Actual/ Plan) report for Jun 07 - Jul 08 by using Report Painter, but I'm having difficulty to make column for the next year period (2008) and some other things.
    We are using K4 Fiscal Year Variant in ECC 6.0.
    The layout is somehow like this:
    Header : Cost Center
                 Actual/Plan Report
                 June 2007 to July 2008
    Body:
    Cost Element     |   Total Actual   |   Total Plan |  Actual  June | Plan June .................Actual July | Plan July    
    xxxx       
    xxxx
    Account Group (total)
    xxxx
    xxxx
    Account Group (total)
    Grand Total  
    How to:
    a. make the header "June 2007 to July 2008" ?
    b. make the selection screen to provide parameter for June 2007 to July 2008? (e.g.: period 6 fiscal year 2007 to period 7 fiscal year 2008)
    c. provide layout (rows and columns) as described above? it should provide detail cost elements and also calculate it as the total per account group, then finally the Grand Total for all of account groups. 
    Thank you before,
    -=Meila.S=-

    Hi,
    1. Put Year and Month as your General Selection parameters
    2. In the label of the fields, if you put the parameter name with & before, it will display the value
    3. If you put cost element in General selection, it will come with a group, and when you selecting the group, the report does the sub-totals automatically.
    Regards,
    Eli

Maybe you are looking for

  • Picking files from portal to sap & placing the files to portal back

    hi SDN, we have a requirement to read a file from the portal to SAP R/3, do some process on the file and place it back to the portal again. can you please let us know how to achieve it. Thanks, Suman.

  • Why are my pics blurry after iCloud back up?

    I got my phone replaced at backed up at the apple store. After the back up I noticed my pics were blurry and I was not able to play the videos I had saved on my phone. Is there a way to fix this?

  • Activate Logging in E Commerce Administration

    Hi All Could anyone please advise how to activate Logging in E Commerce 5.0. I have gone through the steps given in Note 1090753. But then also I cannot see anything in Logging in the ECommerce administration. when I go to http://host:port/b2c/admin/

  • Screen Sharing Suddenly Not working?

    I've been using Screen Sharing for months now to control my Mac Pro Desktop that is connected to my Plasma TV with my Macbook Pro laptop with no issues. Suddenly now a message pops up everytime I try to connect telling me that the connection doesnt s

  • What is the best video card to edit uncompressed .avi digibeta files.

    I just digitised my digibeta footage into uncompressed .avi video files. I just would like to know what will be the best way to edit using FCP. What video card do I need? What are the best specs that i need to have on a mac pro or a mac book pro. How