Cost Center in COEP, COSP

Hello
we are trying to develop some report for real & plan in Cost Centers based on tables COSP & COEP.
how can we filter by Cost Center, as the only reference we have found is the ObjNr, can we take the last digits as Cost Center if the two first digits are KS ??
Thanks in advance

Yes, KS followed by controlling area/company code and then cost center number will be the way it is maintained in OBJNR.
Thanks and regards
Kedar

Similar Messages

  • How to fetch the data from the table COEP for WBS element,cost center,,,,,?

    Hi,
    I would like to retrive the data from the table COEP ,based on KOKRS,BELNR fields.
    I need the output for Cost centre, cost element, wbs element,net work ,activity.
    These values are storing OBJNR ,OBJNAR_1,OBJNR_2,OBJNR_N3.
    But here always these field are not giving the correct values.
    for example : for one record COST CENTRE vlaue is storing in OBJNR_1 field,
                        for one record COST CENTRE vlaue is storing in OBJNR_2 field,
                       for one record  COST CENTRE vlaue is storing in OBJNR_3 field.
    Here SAP has used a generic approach for this.
    How can I dispaly the values in this case ?
    Thanks and Regards
    Srinivas.N

    Hi,
    I am asking, how can we say OBJNR_1 value alwyas belongs to cost center ?
    USPOB is not filling always.

  • Cost center data fetch from COSS/COSP tables.

    Hi Experts,
    I need to fetch data from COSS/COSP tables for particular Cost centers fetched in CSKS select.
    As there is no Costcenter field I cannot access the database tables directly.
    Fetching entire dat and then deleting is causing performance issue with the report.
    I need to reduse the time taken by COSS/COSP table select , as I have Cost center field on the selection screen.
    Is there any other method or  FM that I can use?
    Thanks in advance!!!

    Hi
    This is my code to get the data from a certain cost element group:
    }call function 'G_SET_GET_ID_FROM_NAME'
         exporting
           shortname                      = p_kagru
           tabname                        = 'CCSS'
           fieldname                      = 'KSTAR'
           kokrs                          = p_kokrs
           ktopl                          = 'ENPC'
           setclass                       = '0102'
           check_set_empty                = 'X'
         importing
           new_setid                      = setid
    *     SET_INFO                       =
        exceptions
          no_set_found                   = 1
          no_set_picked_from_popup       = 2
          wrong_class                    = 3
          wrong_subclass                 = 4
          table_field_not_found          = 5
          fields_dont_match              = 6
          set_is_empty                   = 7
          formula_in_set                 = 8
          set_is_dynamic                 = 9
          others                         = 10
       if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       endif.
       call function 'G_SET_GET_ALL_VALUES'
         exporting
    *     CLIENT                      = ' '
    *     FORMULA_RETRIEVAL           = ' '
    *     LEVEL                       = 0
           setnr                       = setid
    *     VARIABLES_REPLACEMENT       = ' '
    *     TABLE                       = ' '
    *     CLASS                       = ' '
    *     NO_DESCRIPTIONS             = 'X'
    *     NO_RW_INFO                  = 'X'
    *     DATE_FROM                   =
    *     DATE_TO                     =
    *     FIELDNAME                   = ' '
         tables
           set_values                  = t_set_values
        exceptions
          set_not_found               = 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.
      loop at t_set_values.
        count = count + 1.
        r_kstar(3) = 'IEQ'.
        r_kstar-low = t_set_values-from.
        append r_kstar.
        if count = 500.
          perform read_coep.
        else.
          at last.
            perform read_coep.
          endat.
        endif.
      endloop
    U can use somthing like that to get data from cost center
    Max

  • How to get Function Area (or Cost Center) from COSP ?

    Dear experts,
    I am new to FICO and here is one question need your help:
    Now I have table COSP, can anybody let me know how can I get Function Area through joining some other table?
    Or how to get the cost center from COSP, since I know then I can go to CSKS to find the function area.
    Any post would be appreciated and thank you all in advance!
    Tim
    Edited by: ctsiszidane on Feb 12, 2011 4:07 AM

    Ajay,
    Thanks for your reply.
    Actually this is a requirement for our BW system. I checked all the records to find their OBJNR start with "OR", but we need to get the function area information. Do you know how can I get that?
    The link below listed all the fields we have on BW side, actually it has function area, but it returns blank, we tried to apply one OSS note in the source ECC system, but still no value returned for this field. So we have to find another way to get the function area.
    http://help.sap.com/saphelp_em70/helpdata/en/29/5f4cf98c9141488cda37e173549834/content.htm
    Point has been assigned to you and thanks for your time in advance!
    Tim
    Edited by: ctsiszidane on Feb 12, 2011 6:39 AM

  • Cost center / Element report downloadable to excel

    Hi
    does anybody know of a cost center/elements total report by period?
    s_alr_87013613 has the information but can not get both values (cost center and elements) in columns that it is usable for excel.
    I looked deeply and could not find anything.
    I searched also the forums and could not find a valid awnser.
    My only workaround is run KSB1 and create a PIVOT which does not really make sense
    also there might be many line items.
    Anybody else has an idea?
    I can not believe it is not available. It seems like such a basic report.
    Thanks so much for your support
    Cheers
    Tim

    Nikolas,
    thanks for the help.
    I decided to make a query on COSP (not COEP due to runtime).
    Cost object i splitt with local fields and field[[first digit:last digit]] function if there is another person looking for the same.
    Cheers
    Tim
    Edited by: Tim Schmid on Jul 4, 2011 5:26 PM

  • Cost center  report with line items by date

    Hi guys,
    i need to create a report by date, for cost centers that displays individual line items?,
    do u know if there is a bapi or  RFC for this?
    what tables are related for line items dates?
    i already know that coep but this table has period and not by date
    any ideas?
    tks in advance

    Hi,
    You can check out std reports like KSB1, KSB2, KSBP, KSB5.
    Also check Accounting-> controllong-> Cost center accounting-> Info system-> Reports for cost center accounting-> line items/more reports.
    Tables: COSP, COEP, COBK
    FM: K_KKB_KKBCS_COST_CENTER_REPORT
    Regards,
    Amit

  • Table for Cost Center Data

    Hello Experts,
    We are customizing a financial report and having a strange requirment, where we need to sum up the total value(Debit+credit) of a particular cost element from cost center report S_ALR_87013611.
    For example, Cost element 600000 is having debit value 5000 and credit value 2000 in the report S_ALR_87013611, so we need to bring the value of 3000 (Sum of debit and credit value)  in customize financial report for cost element 600000.
    I have checked the table COSS with value type 4, but  I am getting there 2000 debit and 2000 credit, 3000 debit is got missing.
    Please can any one tell me which table should I check for getting the proper data?
    Your early feedback will be highly appreciated.
    Regards,
    Mohammed Kalim

    Hi Ajay,
    Thanks for your prompt response.
    COSS and COSP are not serving my purpose.
    COSSA & COSPA are the structure table.
    I am not able to find cost center field in COEP table.
    Hi Mahesh,
    Thanks for your valuable inputs.New GL is not active in our client.
    Hi Raman,
    Thanks for showing interest in this issue. COBK is Document Header table.
    Regards,
    Mohammed

  • Cost center object number incorrect

    Hi All,
    During migration, cost centers were created with incorrect object number in master data table (the controlling area was incorrect in the object number).
    Due to this, the transactional data in CO were updated with the incorrect object number in tables like COEP & COSP.
    Thus, line items reports like KSB1 do not show any vaue against the cost center.
    We have corrected the master data. Any pointers towards correcting the already posted transactional data would be appreciated.
    Regards,
    Nisha

    you must contact SAP with an oss-message:
    I think you cannot correct tables cosp etc. of your own, because you don't know all dependencies.
    the source code would be like this:
    1) selection of incorrect data:
    concatenate 'KS' false_kokrs '%' into key.
    select *from (table) into table itab
      where objnr like key.
    2) correct data and insert through another internal table itab1.
    3) delete data from dbtab through itab (1).
    regards Andreas

  • Table for change in cost center in Kb61

    Dear friends,
    I changed the cost center using t code KB61, From which table i can get the details of change in cost center
    Rgds
    Madhavan

    Hi,
    KB61 will post the document with the change from old cost object to new cost object in CO documents, so you can check the following tables for this posting.
    CO document Header: COBK
    CO document items:COEP
    CO summary table:COSP (or COSS)
    best regards, takashi

  • Changing business area on a cost center

    We mainly use HR, but we use some FI/CO for accounting.  (I am no expert in FI/CO whatsoever - so please excuse any incorrect terms).
    Our users have entered incorrect business area to a cost center.
    This business area is now registered on employees, and payroll/posting has been run up unitil October 2010.
    If I try to change business area from 01.11.2009 (realize it is probably not good to change earlier due to postings); I get the following error message: "Field change Business Area is not possible (transaction data already exists)"
    In addition, the message says: If you still want to change the object, select a suitable change interval by choosing "Edit -> Analysis period...".  However, trying to change the analysis period I am told I have to choose year end.
    My questions are:
    1. Is there a way I can change business area from 01.11.2009 ?
    2. Is there a way to change area earlier - and if so, what are the impacts+
    I appreciate any help
    Kirsten
    Edited by: Kibo on Oct 11, 2009 2:44 PM

    Hi Kirsten,
    Normally, it's not possible to change business area during a fiscal year once there is already postings in this Fiscal Year.
    The reason is to make sure that there is no change within the fiscal year since you then would have different postings - cost center belonging to different business areas within the same fiscal year. Meaning that it is possible to change the business area for the next fiscal year like described in the long text of the error message KS134. The reason is that it is to avoid inconsistency update of the table (COSS, COEP, or COSP).
    Although, If the following requirements are met, than it is is possible to change the business area during a fiscal year with the
    help of the note 62716:
    1.  The change interval is set to period limits
    2.  There is no dependent actual transaction data in the change interval
        or afterwards.
    3.  There must already be an analysis period for the respective cost
        center which starts on the first day of the chosen period. If this
        is not the case, you can create one with 'Change cost center'
    If the requirements are met, you can run the report RKACOR06 in SE38
    safely. I recommend you to execute the report first with Test Run on
    your test system.
    Regards,
    Greta

  • Cost Center Monitor - Critical Line Items

    Can we display other information to provide something that is useful, eg Cost centre, cost element, Posting date?

    Hi,
    You can check out std reports like KSB1, KSB2, KSBP, KSB5.
    Also check Accounting-> controllong-> Cost center accounting-> Info system-> Reports for cost center accounting-> line items/more reports.
    Tables: COSP, COEP, COBK
    FM: K_KKB_KKBCS_COST_CENTER_REPORT
    Regards,
    Amit

  • Table for Material-Cost center-Settlement Rule_REM product cost collecter

    I want to generate a report to see for particular material which cost center and which settlement rule is available.
    If we go in Product cost collecter (PCC) there we have an option to see settlement rule under header tab, I want to fetch that data for material as selection parameter, can anyone suggest how to get the data as,
    Material        Cost Center        Settlement Rule
    Thank you.
    Regards,
    Deven

    Hi,
    pleasefind tables related with cost.
                          TKA01               Controlling areas
                         TKA02               Controlling area assignment
                         KEKO               Product-costing header
         KEPH               Cost components for cost of goods manuf.
         KALO               Costing objects
         KANZ               Sales order items - costing objects
         Cost center master data
                        CSKS               Cost Center Master Data
                        CSKT               Cost center texts
                        CRCO               Assignment of Work Center to Cost Center
                        COSP               CO Object: Cost Totals for External Postings
                        COEP               CO Object: Line Items (by Period)
    .     COBK               CO Object: Document header
         COST               CO Object: Price Totals
    Regards
    SANIL

  • Re: Query for Cost center actual by period.

    Hi Experts,
    Good Morning everybody,
    I want cost center actual values (with cost element) by period. I have created query through T.code-SQVI by joining tables COSP and CSKS.
    I got the report, but i cannot see the foreign currency postings in SQVI report. so there was a difference between SQVI and KSB1 report.
    Why i cannot see Foreign currency postings in SQVI report. please advise me, whether any other table that i can use in the query for cost center actuals by period.
    Thanks in advance & Points will be assign for useful answers,
    KUMAR

    See the answer in FI thread.
    Hi,
    KSB1 is based on COEP table. COSP shows only external postings. You should take COSS as well for internal postings in CO. Check the nature of the join with CSKS: notice COSP has OBJNR field which is not the same as KOSTL in CSKS.
    Anyway, I'd suggest you using not the join between tables, but one of standard logical databases SAP provides. For cost centres, you can use CIK.
    Regards,
    Eli

  • Business area change in cost center

    Dear Expers,
    Please guide me,
    How to change the business area in cost center master data,  which is having already data in that cost center,  any programme to change,  if i change B.A  what will happen,  any problem to old data which is posted with that cost center.
    Regards
    Chandu

    Hi,
    It is not possible or allowed to change the master data field: business
    area of the cost center once you have made postings to this cost center
    period.
    And normally it's also not possible to change business area during a
    fiscal year once there is already postings in this Fiscal Year.
    The reason is to make sure that there is no change within the fiscal
    year since you then would have different postings - cost center
    belonging to different business areas within the same fiscal year.
    Meaning that it is possible to change the business area for the next
    fiscal year like described in the long text of the error message KS134.
    The reason is that it is to avoid inconsistency update of the table
    (COSS, COEP, or COSP).
    To change business area,you should create a new period for the cost
    center with no postings to this new period and change BA then.
    But if you want to change BA during FY,please review note 62716
    as well as the requirements stated in the note.
    I hope it helps,
    Regards,
    MLM

  • Cost center planning data table and transaction code to view

    Hi,
    I want to see the cost center planning document. In which transaction code, I can see this document.
    In which table, cost center planning data is stored?
    Regards,
    VS ramaiah
    Moderator: Please, search SDN

    Hello,
    I do not think that COEP contains the plan line items*. For plan line items it is COEJ. But as suggested by Christian the better option in case you want to create a report is you use COSS/COSP and COST. The latter is for activity type planning (KP26) and the other two are for cost planning (KP06).
    The transactions to view the plan document is KABP and line items is KSBP.
    * Christian, do correct me if I'm wrong. I was not able to see anything with value type 01 in COEP.
    Kind Regards // Shaubhik

Maybe you are looking for