11-05-2008 5:22 AM
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
11-05-2008 8:07 AM
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