Skip to Content
avatar image
Former Member

Update rules - Start routine- Hierarchy issue

Hi all ,

I am trying to read all the accounts in a hierarchy in update rule start routine. I need to use nested statements to get the bottom most nodes. But I can not use perform as start routine itself is a routine. I can not use nested include programs ( System gives syntax errors). Is there any workaround to get rid of this problem?

Thanks

Hareesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 19, 2006 at 06:56 PM

    Hello Hareesh,

    You can use FM RSNDI_SHIE_STRUCTURE_GET to read hierarchy into in internal table and from there you can do the processing.

    Hope it helps.

    Regards,

    Praveen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Hareesh,

      I think this FM will serve your purpose.

      After executing it, you will get the hierarchy strcture in the internal table E_T_HIERSTRUC. You store it an internal table (say itab_hier). Then loop it with where condition like itab_hier-nodename = 'your nodename', the record returned will contain parentid. You can do vice versa like reading the internal table with parentid and getting nodename. It depends upon your requiremnt.

      Hope it helps. Please assign points if you find this ingormation helpful.

      Regards,

      Praveen