From which table do i fetch cost center????

Hi..
i have material and plant as selection screen parameters..
CSKS table has plant and cost center.. but when i checked the contents of the table...there is no value for plant..
so plz suggest me smeother table wherein i can fetch cost center details.

Hi,
You can check field (AUFK-KOSTL).
To get the cost center group hierarchy you can use
BAPI_COSTCENTERGROUP_GETDETAIL
Details for this are stored in SETNODE table.
And to fetch the cost center from a given cost center group.You can use code given below:
Cost Center group can be viewed from field SETCLASS of table SETLEAF.
To Fetch the relevant cost center from a cost center group, we can use FM: 'K_HIERARCHY_TABLE_READ'.
Sample code for this purpose:
Call Function module to fetch values corresponding to a
CostCenter group
CALL FUNCTION 'K_HIERARCHY_TABLES_READ'
EXPORTING
e_class = p_c_kostl_class
e_setid = p_v_setid
e_kokrs = p_kokrs
TABLES
t_nodes = p_it_ccnodes
t_values = p_it_ccvalues
CHANGING
c_info = v_info
c_overwrite = v_overwrite
EXCEPTIONS
no_controlling_area = 1
no_chart_of_account = 2
different_controlling_areas = 3
different_chart_of_accounts = 4
set_not_found = 5
illegal_field_replacement = 6
illegal_table_replacement = 7
fm_raise = 8
convert_error = 9
no_overwrite_standard_hier = 10
no_bukrs_for_kokrs = 11
OTHERS = 12.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
In this FM:
Export Parameters: p_c_kostl_class = (SETLEAF-SETCLASS) i.e '0101' for cost center group.
p_v_setid= The first four characters is the setclass ('0101'), the next four characters is the controlling area,the remaining characters is the cost center group.
p_kokrs = Controlling area.
Tables: p_it_ccnodes = TYPE STANDARD TABLE OF ty_seth_node_line.
p_it_ccvalues = TYPE STANDARD TABLE OF ty_seth_val_line.
You get the cost center values in the table p_it_ccvalues.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:29 PM

Similar Messages

  • From which table shell i fetch invoice no i.e exnum.(vbrk,likp,j_ix...)

    fromHi,
    I have to create dispatch intimation report. tables i m using r vbrk,vbrp,likp,liks,vbpa,kna1(for customer name ref to likp),lfa1(for transporter name, makt (for material description.).
    Can any one tell me  from which table shell i fetch invoice no i.e exnum. i find it in vbrk , likp and j_ix...  but dont know which is correct and what field shell i put join to fetch it properly.
    Regarda,
    ranu

    Hi ,
    Question is not clear,
    Is this the External document number, if so then you have to get the vale from VBRP-XBLNR
    If it is Acconting document number, then you have to get it from the VBRK-BELNR.
    If the above two are not correct then please mention the name clearly, so that we can give the soltion.
    regrds,
    santosh

  • How to find from which table we r fetching the data

    Hi friends,
    i got a requirement to design a query,in my transfer rules i check the info object related to the fiels.but in my crm the field name is different.
    how to find from which table the field is fetched........
    please tell me........
    Regards
    sridath

    Dear Sridath,
    In ST05 switch on the SQL Trace.
    Goto RSA3.
    Give your DataSource name > Execute
    Goto ST05...Switch OFF the Trace
    Analyze the Trace file
    Gives you details about the fields and Tables from where you are fetching.
    OR
    Goto LBWE
    Find your DataSource > Maintenance > Display mode
    In right side window...expand ALL list box...
    Exclude MC and take other words...they are the Source Tables.
    Regards,
    Ramkumar.

  • From which table i can get the details of cancled documents

    Hi All,
    here is an quarry,
    Iam haveing an Z report on purchase tax which has all tax report.
    but now the user want to same details for cancled document
    also.So can any help me from which table i can fetch the data
    urgent ! pls help me out!
    Regards,
    Rajashekar

    Cancelled documents will not be stored in Diff tables..
    It will be stored in the Same tables..
    For PO
    EKKO header level
    EKPO  Item Level
    EKBE Po History
    Material Doc
    MKPF  Header
    MSEG Item
    Invoice
    RBKP  Header
    RSEG Item

  • Which table to fetch cost center (KOSTL) from(material cost estimation )??

    Hi..
    i am going to create a report to display material cost estimate.
    it has two selection screen parametrs..(matnr and werks)..
    i need to display cost center as the output of the report..
    which tables shud i fetch from??
    and what is the logic??
    can sum1 plz provide the code??

    <b>now hw can i get cost elemnts of the cost center..</b>
       am not sure if this will work as all the key fields are not given in where condition, anyways chk our
      select single setname
               from setleaf
               where valfrom LE p_kostl and
                        valto GE p_kostl and
                        setclass eq '0101'.

  • From which table check 'cost element' and its corresponding GL account?

    Hi,
    May i know from which could i check the cost element field and its corresponding GL account field??
    Questions:
    "the getting cost element should check the corresponding GL account, but I canu2019t find the
    corresponding table which include these two fields. So, if you know the table in which cost element can check the corresponding GL account, please tell me ."
    Is below way correct:
    From table CSKA, i could get the chart of accounts related with the cost elements.
    Then from table SKA1, i could get the GL account according to chart of accounts field.
    Then i got an relation between Cost element with GL account??
    Thanks!!

    Hi
    Could not locate the table, but could find that, if you come to transaction KA02, click on Environment - Display General Ledger account - In Chart of Account/ In Company Code option, then you can display the GL account for individual cost elements.
    regards
    Parag Bhargava

  • What are the tables and field where Cost Center info. is stored ?

    Hi Experts,
    One of my customer is using the Cost Center / Profit Center and mention the same in all document. Now for particular Incoming Payment customer wants to print the dimention wise details entered in incoming payment as well as out going payment.
    Can anybody tell me from which table / fields I can retrive this information ? Particularly in Crystal Report.
    Thanking in advance,
    Samir Gandhi

    No response ?
    Does anybody monitoring this or not ?
    BR
    Samir Gandhi

  • 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

  • How can we capitalize the PR/PO, which are already booked in cost center?

    We are creating a capital Project for our department.  We have the structures ready and finalized with the budgets. But, the department has already done some commitments and expenditures in their cost center .Now, this expenditure and commitment values needs to be reflected in the report, so that correct values of assigned and available should be updated.
    1) Pls. suggest a process using which we can transfer this amount. Is this to be done by an FI entry or else we need to commit using sanction request?
    2) How can we capitalize the PR/PO, which are already booked in cost center?

    Hi,
    As we know the Contract is an Outline agreement for Quantity or Value for a particular Period with vendor.
    Without mentioning Plant also we can make contract for the Purchase organisation level for particular Material for the entire period
    Where as while creating PR  -it is an Indent for the material requiement for the specific Plant so when you refer Agreement inthe PR creation time System will ask you how much quantity to what plant you want to place indent. where as In PO  it ia an legal document so when you refer Agreement it will take all the details from Contract
    i think you are clear with my points
    With regrads
    Shrinivas gangoor
    Edited by: Shrinivas Gangoor on May 22, 2009 2:53 PM
    Edited by: Shrinivas Gangoor on May 22, 2009 2:54 PM

  • In which table production order planned cost and actual cost i can see?

    Dear PP Guru,s,
    from which table i can see productuion order planned and actaul cost. i checked following tables AUFK, AFVC, AFVV, CAUFV, AFRU, AFKO, AFPO. but i did not found planned cost and actual cost field. is there any other way to get this data with respect production order?
    Regards,
    sree

    Dear,
    Planned and actual costs of prod order from COEP, COSS, COSP  S027 tables
    production order shows the planned cost based on the quantity structure.
    Please refer my reply in this thread for details,
    Re: Actual Halb Material Cost
    Regards,
    R.Brahmankar

  • From which table Gross amount can be picked

    Hi,
    From which tables the gross amount of line item of sales order can be picked.
    Please give me the table names to fetch gross amount.
    Regards,
    Krishna

    Hi,
    Select the condition record number from VBAP i.e. KNUMH and pass this condition record number and condition type PR00 (Ctype PR00 is for gross value kindly check ) to KONV . in KONV KBETR would give the value .
    Regards,
    Raghavendra

  • From which table ,i ll get both the invoice and cleared amount ???

    Hi Friends,
    i am making a report for my sales client where finance part is also required.
    the requirement is : the sales people want know the status of the invoice generated at their end.the report shud be like if they enter the invoice no,fiscal year and coustomer they will be able to see the status of the invoice.how much pmt has received for that particular invoice,wheather it is open or fully cleared?
    From which table i can get both invoice no. and the payment/pmts rerceived against that invoce/invoices.
    plz guide.
    Regards,
    Biswa

    Hi,
    SAP Standard Report itself covers all the requirements mentioned.  With FBL5N, we get to know how much has been invoiced, paid and cleared and how much advance has been paid by customer etc., in one screen.  Apart from this we have also all signs which show, which all invoices are due, overdue and its easy to analyse as well.
    Was this requirement given by client after seeing this standard report?
    Hope this info is helpful.
    Regards,
    Venkat

  • Logical System(ORGLOGSY) populating from which table in R/3 system

    Hi Friends,
    I would like to understand about the Logical System(ORGLOGSY) from which table or from where this logical system being populating.
    Because we could see this fields Logical System(ORGLOGSY) exist in PO item, HDR, SGR data sources.
    Can anybody give some idea, how we'll get this source system logical system name into BW system.
    SIRI

    Hi Siri,
    Check here
    V_TBDLS
    TX: RSA13----->Tools -
    >assigment of source system to source system id
    hope this will help you.  
    Thanks,
    Vijay.

  • How to check from which table data is picking by datasource 0CDCY_ACT_ATTR

    Hi Experts,
    Could you please help me in finding out of the table from which datasource 0CDCY_ACT_ATTR is extracting.
    As per my knowledge is should be extract from tables(infotypes) HRP5135 - 5141.If i am wrong please correct me.
    Issue : My extractor(0cdcy_ACT_ATTR) is bringing wrong ACT_TYPE (Eg :5010) where as in table HRP5141 for that particular OBJID it is 9180( different).
    Please help me why my extractor is bringing ACT_TYPE 5010.
    This standard datasource and using Function Module :  RCF_BIW_GET_ACTIVITY, How can i check from which table it is picking the data
    Thanks in Advanve
    Sree

    Hi Sree,
    In RSA3 on the first screen, you have the option to start debugging by marking the debug check box, once you put all the selections, click on execute and it will go to debug mode, then keep on pressing F5. It will debug your code line by line, then you can check for all the select statements.
    Or once the debugging is started you will have the option to put break point on all the select statements in one shot, you can get in touch with your ABAP team.
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Jul 24, 2011 8:20 PM

  • How to get Essential and additional qualifications ,From which table

    Hi all,
    In one of my requirement, the report should show the Qualifications and Essential qualifications columns in the output.
    Requirement is :
    1. I have brought qualifications of Applicant from PB0024 table.
    2. I need to compare these with the Qualifications maintained in Job for the pernr.
    3. There are two types of Qualifications namely essential Qualifications and additional Qualifications.
    4.
    How do we get the Qualifications maintained for a job/Position?
    How can we distinguish between Qualifications and essential Qualifications maintained for a job at the database table level ?
    Please reply ASAP.
    Regards,
    Rama.P

    Hi Dilek Ersoz Adak,
    How can we get the jobs assigned to a position ,from which table ?
    Actually i am doing a custom recruitment report which displayes several fields along with the qualificaions and additional qualifications.
    For the two fileds: in the spec it is given as:
    14.     Qualification (This is maintained in HRPE_PROFQ_TBJID-infotype 0024 of the employee. Thus, check Position maintained for the employee in P4002_OBJID, against this position check for Essential Qualification, related object type u2018Qu2019 HRPE_PROFQ_ESSENTIAL, compare this with the qualifications maintained for the employee in Infotype 0024, and display wherever these maintained.)
    15.     Additional Qualification (This is maintained in HRPE_PROFQ_TBJID-infotype 0024 of the employee. Thus, check Position maintained for the employee in P4002_OBJID, against this position check for Essential Qualification, related object type u2018Qu2019, compare this with the qualifications maintained for the employee in Infotype 0024, and display all qualifications for which HRPE_PROFQ_ESSENTIAL is not maintained.)
    16.     Proficiency (HRPE_PROFQ_PROFC_TEXT)
    in clear :
    1.       Positions (Object Type S) are linked to Job through relationship A 007
    2.       In APDISCOM scenario, Qualifications (Object Type Q) are attached to Object u2018Jobu2019 (Object Type C) through Transaction Code PPPM
    3.       Now, for a Job there can two types of qualifications maintained Essential Qualifications (ii) Additional Qualifications
    4.       For essential qualifications: Against a Qualification we can maintain u201Cessential check boxu201D HRPE_PROFQ
    5.       For additional qualifications: Those qualifications for which HRPE_PROFQ is not maintained
    6.       Now, for an applicant, Qualifications are maintained in Infotype 0024, wherein the necessary qualifications would be selected.
    7.       In the report for field of u201Cessential qualificationu201D, check for qualifications maintained in Infotype 0024 and compare it with qualifications maintained in Job (through Position assigned to the applicant in P4002_OBJID)
    8.       Check for essential qualification HRPE_PROFQ maintained in Job and check whether the same Q is maintained in Infotype 0024 for the applicant, if yes, then generated Text of the Q
    9.       If there are any additional qualifications which are maintained in the job and not maintained in Infotype 0024, DONu2019T GENERATE ANYTHING IN FIELD
    10.   If there are any additional qualifications which are maintained in the job and if same are maintained in Infotype 0024, generate Q text under field of u201CAdditional Qualificationsu201D in the report
    11.   If there are any extra qualifications in infotype 0024, which are not maintained in Job, then generate Q text under field of u201CAdditional Qualificationsu201D in the report
    Please provide the procedure.(For clarity copy and paste the text in a MS-word)
    Please reply ASAP.
    Regards,
    Rama.P
    Edited by: Rama Chary on Dec 9, 2009 1:28 AM

Maybe you are looking for