stecorp
16th December 2013, 06:43
I am trying to create a session to get all the top level items for a low level item. Each low level item is linked to multiple items.

eg.,

Top level item - 40
2nd level - 30
3rd level - 20
4th level - 10

Main purpose of the session is to calculate the required inventory of child parts in level 30 (Purchase items) based on the demand forecast in Top level item.

Any logic or method would be a great help.

Get all the top level items for a particular child part and the total quantity to produce the top level items.

I can find the top level item by using the Item Planning "Order Phase Number", but my problem is if the single item is linked to multiple items in sub levels.

bhushanchanda
16th December 2013, 08:39
Hi,

Always do a search on the Board for similar threads:-

Here are a few

Thread 1 (http://www.baanboard.com/baanboard/showthread.php?t=22972)

Thread 2 (http://www.baanboard.com/baanboard/showthread.php?t=64488)

Thread 3 (http://www.baanboard.com/baanboard/showthread.php?t=64488)

stecorp
17th December 2013, 07:33
Hi Bhushan,

Thank you for your reply.

Actually I tried different methods as suggested in this forum, but all gave me the error message for recursion, array etc.,

Finally Ulrich solution using "Stack Pointer" method working fine for me.

regards,