on 01-12-2006 9:01 AM
Hi,
I have a hierarchy on InfoObject 0COSTELEMNT. In an UR I wand to remove all documents with a cost elements which ate not contained in this hierarchy. Do you know any standard FM or Method allowing to check if an item fulfills the hierarchy conditions. Or you have other ideas for this issue.
Thanks
Wojtek
I have used the following code to read Fund Center Hierarchy. Hope it helps:
w_nodebyname-iobjnm = '0FUNDS_CTR'.
w_nodebyname-nodename = '1500157810'.
CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'
EXPORTING
I_S_HIEKEY =
i_s_hiesel = w_hiesel
i_s_subtreesel = w_nodebyname
I_T_NODENAME =
I_NO_NODENM_TABLE = RS_C_FALSE
IMPORTING
E_S_HIEDIR =
e_subrc = lsubrc
TABLES
E_T_HIEDIRT =
e_t_hierstruc = fund_hier_157810
E_T_MHIERNODE =
E_T_THIERNODE =
E_T_HIERINTVL =
E_T_NODENAMES =
E_T_NODEATTR =
E_T_LEVEL =
E_T_MESSAGE =
.
Thanks
Vineet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you could use FM RSSH_HIERARCHY_READ to read the hierarchy once .
and read the itab returned by the FM to check whether the Cost element in question exists within the hierarchy,
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wojtek,
Looking at your points award, it seems that you were not able to use the solutions posted here.
Please post your solution if you found a better way to do it so that the entire community can benefit.
Thanks
Vineet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vineet,
I have closed this thread becouse I'v finished work on this topic. My solution is looking direct in the tables.
I had a look in you solution. I thought that this FM is to complex in processing and must be to slow for sequential execution for each record.
Now i had a look again and I think i must not be. And on the other hand, I think there can't be anything alse what is general and faster.
Thanks
Wojtek
Hello Wojtek,
Please check the Function Module RSNDI_SHIE_STRUCTURE_GET.
It may help you.
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have a lookup at table: /BI0/HCOSTELMNT (e.g. with ABAP).
/manfred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.