teddybear
15th July 2005, 07:35
Dear All,

I have the following problem and can’t think of a solution. Hope someone can advise.

Given an item in the product structure, eg in a customized BOM (tipcs022), how can I build a function to calculate the net quantity of this item in the product structure and return the net quantity to the calling function.

Example is shown in the attached file. With manual calculation, we know that the net quantity for item D in the product structure is 8 +6 + 45 = 59. How can we calculate this using a function in BaaN?

Better still if the BOM Unit (tipcs021.unom) and scrip factor are take into consideration.

frigyesg
15th July 2005, 12:15
You have to read the whole bom structure.
Look at this thread, how you can do this in an elegant way.
http://www.baanboard.com/baanboard/showthread.php?t=22850&highlight=recursion+tibom010