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: 

Internal order and cost element hierarchy

Former Member
0 Kudos

Hi,

Can anybody tell me how to retrieve the cost element and internal order hierarchy.

though there is 2 FM g_set_tree_import and g_set_tree_add_pointers where i have retrieved the cost and profit center but doesnt seem internal order and cost element are possible from this.

can anybody explain?

rgds

sanjeev

1 REPLY 1

andreas_mann3
Active Contributor
0 Kudos

here's a sample:

CLEAR SET.

SELECT SINGLE * FROM TKA01 WHERE KOKRS = KOKRS.

CONCATENATE '0102' TKA01-KTOPL SSET INTO SET.

CALL FUNCTION 'G_SET_TREE_IMPORT'

EXPORTING

SETID = SET "Set-ID, not the Setname!!!

NO_TABLE_BUFFERING = ' '

TABLES

SET_HIERARCHY = SETHIER

SET_VALUES = INTAB .

nice day

Andreas