Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function module to find cost elements in a cost element group?

Former Member
0 Kudos

Can any one please help me find all the cost elements in a cost element group?

Regards,

ABAPer

2 REPLIES 2

anversha_s
Active Contributor
0 Kudos

hi,

Look at table SETHEADER. For Cost Center Groups, use SETCLASS = '0101'; for Order Groups, use SETCLASS = '0103'.

<b>cost center

BAPI_COSTCENTERGROUP_GETDETAIL

the return structure HIERARCHYVALUES will hold all children cost centers.

cost elements.

BAPI_COSTELEMENTGRP_GETDETAIL</b>

rgds

anver

Message was edited by: Anversha s

0 Kudos

Hi Anver,

Thanks for your reply, It was helpful and i rewarded it.

I have a query, hope you would help it.

There is an input parameter to that FM , CHARTOFACCOUNTS, what would be the input to this.

And i need to create a search help for costelementgroup & costcentergroup, so can i use that setheader table.

Please do reply me.

Thanking you in advance.

Regards,

ABAPer