× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Gerald -

A few years back I found an excellent example which was originally published in iSeries Network magazine by IBM database guru Kent Milligan which I have adapted to work with the JDE BOM [using REPEAT('.', ItmLvl), as Chuck suggested] to produce just such an indented bill.

I'll post my example in the morning...

Here is his article:
http://www-03.ibm.com/systems/resources/systems_i_software_db2_pdf_rcte_olap.pdf

-sjl


"Gqcy" wrote in message news:mailman.1771.1365623555.7202.midrange-l@xxxxxxxxxxxx...

we have found a quick method get generate a bill of material (BOM) list
in pure SQL, but we can't get it ordered in a "indented" manner.

I figure we need to add a work file that will keep track of the
parent-child, level... but don't know how to build it...

I have searched terms such as "hierarchial data", "Path
Enumeration","materialized path", "adjacency lists"
but I can't flush out quite what I need...

Item 1
... Child item 1
........ a child of a child
... Child item 2
... etc...




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.