baanspider
23rd July 2019, 09:15
Hi all

I wish to write program to find all the toplevel items for a component.
Has anyone does this before?
Please advise

There are threads in the forum, that gives all the subcomponents of an item.
But there is none that lists the toplevel items of a given subcomponent.

thanks n regards

okneb1
23rd July 2019, 12:12
Check function tibom.dll0010.where.used.main.items() in tibomdll0010.
Expl.: This function returns array with where-used items.
Pre: NA
Post: NA
Input: i.item
i.effective.date
Output: o.nr.main.items,
o.main.items
Return: True/False

"o.main.items" is the array of manufactured items with "o.nr.main.items" as number of elements.
You will have to modify it a bit, for the "the toplevel items" part in your requirement.

T.

avpatil
24th July 2019, 04:03
where used multilevel does precisely the same