Skip to Content
author's profile photo Former Member
Former Member

cost element

Hi all

in the KCH3 transaction we get a list of cost centres group.

can anyone tell me in which table it is stored.i saw in the SETHEADER-FIELDSNAME but there also it is given just as KSTAR i,e: the fieldname.Also tell a table such that i can access it using one of the below tables.

SETHEADER.

SETLEAF.

SETNODE.

SETHEADERT.

Vijay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 05:30 AM

    Hi all

    its KAH3 transaction not KCH3.Sorry.

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 05:52 AM

    Hi ,

    The cost element Fields are there in the base table : COSS , COSP ,etc.

    if you want more tables than in se11 : COS*.

    Reward points if it is usefull...

    Girish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 08:55 AM

    Hi,

    If you want to get the list of cost centers for given costcenter group, you can try FM 'BAPI_COSTCENTERGROUP_GETDETAIL'

    Sample Code:

    • Calling Function Module that returns a list of cost centers

    CALL FUNCTION 'BAPI_COSTCENTERGROUP_GETDETAIL'

    EXPORTING

    controllingarea = l_kokrs

    groupname = l_ksgru

    language = ls_language

    IMPORTING

    return = ls_return

    TABLES

    hierarchynodes = lt_hiernode

    hierarchyvalues = pa_gt_costcenters.

    Regards,

    Farheen.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.