Skip to Content
Former Member
Jul 06, 2010 at 06:31 AM

Build a tree with recursion


I need to Create a tree and with recursion (not to use SAP FM)

and i have a tree like the following

assume i have a root like

root is level 1 -> customer

child level 2 -> like contact person & address

child level 3 like visiting hours (contact person ) & Email address (adress )

e.g. of the table that i need to provide as output is

item parent_key child_key

customer 0001

contant person 0001 0002

address 0001 0002

vist 0002 0003

email 0002 0003


let say i get as input always the root and i check for his child and for this node i

look for his child etc how can i provide a table like the above table

Thanks and Regards