Indented Bills of Materials

Good Day:

 

            I would also like to see it.

                                                                        Len

 

Len.hartka@...

Leonard C. Hartka

66 Loveton Circle, Sparks, MD, 21152

Work: 410-329-3560  ext  120

FAX: -329-3564

Work Cell: 443-255-7192

Personal Cell: 410-292-8744

 

 

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of zuhaib_akhtar@...
Sent: Friday, January 31, 2014 2:20 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: Indented Bills of Materials

 

 

Miguel Santillan

Can you please share your 3 level BOM's BAQ. I am on Epicor 9.05.701 using progress.

Or if anyone else has a BAQ to share that will be great help.

my email is zraja83@...

Regards

ZR

 

This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.

This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.
I'm trying to create a BAQ to view the indented Bill of Materials.  I'm using the PartMtl table that shows me the top level part and the MtlPartNum (Sub Assembly).  Unfortunately this is only showing the 1st level of the BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum) as well.  Of course this drill down though assembly's could be 5 or more levels deep.
Â
I found the PartBom table but it has nothing in it so I assume that this is a temp table for structuring the BOM used by reports.
Â
Does anyone know how to get a complete view of an indented BOM in a BAQ?
Â
Thanks,
Â
Ken

[Non-text portions of this message have been removed]
Sub-BAQ's will be coming soon! Can't wait!

Sent from my iPhone

On May 15, 2013, at 10:10 AM, "Ken Dumesnil" <ken.dumesnil@...<mailto:ken.dumesnil@...>> wrote:



I'm trying to create a BAQ to view the indented Bill of Materials. I'm using the PartMtl table that shows me the top level part and the MtlPartNum (Sub Assembly). Unfortunately this is only showing the 1st level of the BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum) as well. Of course this drill down though assembly's could be 5 or more levels deep.

I found the PartBom table but it has nothing in it so I assume that this is a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Good Day Ken:



Put the PartMtl file on the screen three times - E9 will
mark them PatMtl, PartMtl1, and PartMtl 2.



Link COMPONENT part# from Partmtl to PARENT of Partmtl1,
then same for 1 to 2.

Unfortunately, PartMtl does not carry the revision level of
the component so .......

Problem is that it returns ALL the component Part#'s
revision levels of the Parent in Partmtl1. If you have only one
revision, you will be good. Otherwise you have to play with sorting for
revision. And it will do it again when you go from Partmtl1 to PartMtl2.

Is very difficult for all but the smallest BOM's.

When you create a JOB from a BOM, it uses the revision with
the latest "Effective date".



You can solve the problem by linking to the latest Parent,
but I have not done it and it would probably be slow.




Len



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 11:09 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Indented Bills of Materials





I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the
MtlPartNum (Sub Assembly). Unfortunately this is only showing the 1st
level of the BOM but I need it to show all the parts on the Sub
Assembly's (MtlPartNum) as well. Of course this drill down though
assembly's could be 5 or more levels deep.

I found the PartBom table but it has nothing in it so I assume that this
is a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]





This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.


[Non-text portions of this message have been removed]
What are you missing from the BOM Listing under Engineering?



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Indented Bills of Materials





I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Thanks Len,
Â
I'll give this a try.
Â
Ken

From: Len Hartka <len.hartka@...>
To: vantage@yahoogroups.com
Sent: Wednesday, May 15, 2013 11:41 AM
Subject: RE: [Vantage] Indented Bills of Materials

Â
Good Day Ken:

Put the PartMtl file on the screen three times - E9 will
mark them PatMtl, PartMtl1, and PartMtl 2.

Link COMPONENT part# from Partmtl to PARENT of Partmtl1,
then same for 1 to 2.

Unfortunately, PartMtl does not carry the revision level of
the component so .......

Problem is that it returns ALL the component Part#'s
revision levels of the Parent in Partmtl1. If you have only one
revision, you will be good. Otherwise you have to play with sorting for
revision. And it will do it again when you go from Partmtl1 to PartMtl2.

Is very difficult for all but the smallest BOM's.

When you create a JOB from a BOM, it uses the revision with
the latest "Effective date".

You can solve the problem by linking to the latest Parent,
but I have not done it and it would probably be slow.

Len

From: mailto:vantage%40yahoogroups.com [mailto:mailto:vantage%40yahoogroups.com] On Behalf
Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 11:09 AM
To: mailto:vantage%40yahoogroups.com
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the
MtlPartNum (Sub Assembly). Unfortunately this is only showing the 1st
level of the BOM but I need it to show all the parts on the Sub
Assembly's (MtlPartNum) as well. Of course this drill down though
assembly's could be 5 or more levels deep.

I found the PartBom table but it has nothing in it so I assume that this
is a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

This e-mail and any attachments may contain proprietary and/or confidential information. If you are not the intended recipient, please notify the sender immediately by reply e-mail or at 410-472-2900 and then delete the message without using, disseminating, or copying this message or any portion thereof. With e-mail communications you are urged to protect against viruses.

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]
Cathy,

I'm trying to come up with a different version of the Part Availability report. Â So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken


________________________________
From: Cathy <cathy@...>
To: vantage@yahoogroups.com
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials



Â
What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]
The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.



Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.



An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Indented Bills of Materials





Cathy,

I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials



What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
You don't have to assume the level is fixed if you use Left Outer Joins.

Patrick

On May 15, 2013, at 4:25 PM, "Cathy" <cathy@...> wrote:

The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.

Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.

An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Indented Bills of Materials

Cathy,

I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials

What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
I guess what I meant to say – if you added 5 partmtl tables as alias and you add another level to your BOM –



Would you have to modify the report and add another partmtl alias for the sixth level?



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 3:35 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Indented Bills of Materials





You don't have to assume the level is fixed if you use Left Outer Joins.

Patrick

On May 15, 2013, at 4:25 PM, "Cathy" <cathy@... <mailto:cathy%40embeddedarm.com> > wrote:

The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.

Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.

An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

Cathy,

I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials

What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Hi Patrick,

>You don't have to assume the level
>is fixed if you use Left Outer Joins.

I'm not understanding how this would work.
I wonder if you have an example you can share?
The assemblies I work on are 9 levels deep from top to bottom.
I've always used ODBC and built 9 levels into my indented BOMs.
I used ODBC because this was V8 & BAQ tools were primitive.
Something like this:
L1 PartMtl.PartNum
----|_ PartMtl.MtlPartNum
L2 ------ |_ PartMtl.PartNum
---------------------|_ PartMtl.MtlPartNum
L3 ------------------------|_ L3 PartMtl.PartNum
-----------------------------------|_ PartMtl.MtlPartNum
---- etc... down to L9

These are kind of a pain to work with but they got the job done..
And I never bothered to revisit these in E9.
I'd be interested in using a BAQ instead.

--- In vantage@yahoogroups.com, "Winter, Patrick" <pjw@...> wrote:
>
> You don't have to assume the level is fixed if you use Left Outer Joins.
>
> Patrick
>
> On May 15, 2013, at 4:25 PM, "Cathy" <cathy@...> wrote:
>
> The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.
>
> Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.
>
> An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ken Dumesnil
> Sent: Wednesday, May 15, 2013 10:45 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Indented Bills of Materials
>
> Cathy,
>
> I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.
>
> Ken
>
> ________________________________
> From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com> >
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Sent: Wednesday, May 15, 2013 12:24 PM
> Subject: RE: [Vantage] Indented Bills of Materials
>
> What are you missing from the BOM Listing under Engineering?
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf Of
> Ken Dumesnil
> Sent: Wednesday, May 15, 2013 8:09 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Indented Bills of Materials
>
> I'm trying to create a BAQ to view the indented Bill of Materials. I'm
> using the PartMtl table that shows me the top level part and the MtlPartNum
> (Sub Assembly). Unfortunately this is only showing the 1st level of the
> BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
> as well. Of course this drill down though assembly's could be 5 or more
> levels deep.
>
> I found the PartBom table but it has nothing in it so I assume that this is
> a temp table for structuring the BOM used by reports.
>
> Does anyone know how to get a complete view of an indented BOM in a BAQ?
>
> Thanks,
>
> Ken
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
>
> [Non-text portions of this message have been removed]
>
If you use an outer join for the sixth and you bill only has 5 levels the outer join allows it to work. It simply won't return any data in the fields.

Patrick

On May 15, 2013, at 6:01 PM, "Cathy" <cathy@...> wrote:

I guess what I meant to say – if you added 5 partmtl tables as alias and you add another level to your BOM –

Would you have to modify the report and add another partmtl alias for the sixth level?

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 3:35 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Indented Bills of Materials

You don't have to assume the level is fixed if you use Left Outer Joins.

Patrick

On May 15, 2013, at 4:25 PM, "Cathy" <cathy@... <mailto:cathy%40embeddedarm.com> > wrote:

The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.

Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.

An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

Cathy,

I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials

What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
Did you include approved revisions in your level structure? If you did not you are going to get all revision levels in your bill.



Steve



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 8:04 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Indented Bills of Materials





If you use an outer join for the sixth and you bill only has 5 levels the outer join allows it to work. It simply won't return any data in the fields.

Patrick

On May 15, 2013, at 6:01 PM, "Cathy" <cathy@... <mailto:cathy%40embeddedarm.com> > wrote:

I guess what I meant to say – if you added 5 partmtl tables as alias and you add another level to your BOM –

Would you have to modify the report and add another partmtl alias for the sixth level?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 3:35 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

You don't have to assume the level is fixed if you use Left Outer Joins.

Patrick

On May 15, 2013, at 4:25 PM, "Cathy" <cathy@... <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> > wrote:

The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.

Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.

An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

Cathy,

I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials

What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
If you are using SQL, there are some other options.

You have to consider a few complications though:

(1) Which revision do you want to explode through?

(2) What about revisions in ECOs?


Tom Christie | Information Technology Manager | AGM Container Controls, Inc. | tchristie@...<mailto:tchristie@...> | t: 520.881.2130 ext 2176

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Steve
Sent: Thursday, May 16, 2013 4:35 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Indented Bills of Materials



Did you include approved revisions in your level structure? If you did not you are going to get all revision levels in your bill.

Steve

From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 8:04 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

If you use an outer join for the sixth and you bill only has 5 levels the outer join allows it to work. It simply won't return any data in the fields.

Patrick

On May 15, 2013, at 6:01 PM, "Cathy" <cathy@...<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> > wrote:

I guess what I meant to say – if you added 5 partmtl tables as alias and you add another level to your BOM –

Would you have to modify the report and add another partmtl alias for the sixth level?

From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 3:35 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

You don't have to assume the level is fixed if you use Left Outer Joins.

Patrick

On May 15, 2013, at 4:25 PM, "Cathy" <cathy@...<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> > wrote:

The problem with indented BOM, is you have to assume the number of levels of is fixed when you add the PartMtl tables as alias’s.

Since there is already and indented BOM Listing, just modify that report to add On Hand Qty, Demand and Open PO’s.

An Indented BOM is not your usual report and usually has some special programming inside so you don’t have to assume that your number of levels is a fixed number.

From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

Cathy,

I'm trying to come up with a different version of the Part Availability report. So I need to start with the indented BOM and then look at On Hand Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@...<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials

What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
Hi everyone,



For those of you who keeping the database in SQL Server the following T-SQL
code will scan the latest BOM revision of each part and sub-part down to all
levels and display the indented BOM in a flat table.



Greetings from Greece,

Vassilis



T-SQL CODE:



declare @part varchar(20)

set @part = 'PARTNUM-XX'



if (object_id('tempdb..#tmaxeffdate') is null)

create table #tmaxeffdate(

company varchar(8),

partnum varchar(20),

effectivedate datetime

) else truncate table #tmaxeffdate



insert into #tmaxeffdate

select company, partnum, max(effectivedate)

from partrev with (nolock)

where approved = 1

group by company, partnum



if (object_id('tempdb..#tlastrev') is null)

create table #tlastrev(

company varchar(8),

partnum varchar(20),

revisionnum varchar(12),

effectivedate datetime

) else truncate table #tlastrev



insert into #tlastrev

select partrev.company, partrev.partnum, max(partrev.revisionnum),
partrev.effectivedate

from partrev with (nolock) inner join #tmaxeffdate

on partrev.company = #tmaxeffdate.company and partrev.partnum =
#tmaxeffdate.partnum

and partrev.effectivedate = #tmaxeffdate.effectivedate

where partrev.approved = 1

group by partrev.company, partrev.partnum, partrev.effectivedate



truncate table #tmaxeffdate



insert into #tmaxeffdate

select company, partnum, max(effectivedate)

from partrev with (nolock)

where approved = 0 and company + partnum not in (select company + partnum
from #tlastrev)

group by company, partnum



insert into #tlastrev

select partrev.company, partrev.partnum, max(partrev.revisionnum),
partrev.effectivedate

from partrev with (nolock) inner join #tmaxeffdate

on partrev.company = #tmaxeffdate.company and partrev.partnum =
#tmaxeffdate.partnum

and partrev.effectivedate = #tmaxeffdate.effectivedate

where partrev.approved = 0

group by partrev.company, partrev.partnum, partrev.effectivedate



if not exists(select partnum from part with (nolock) where partnum=@part)

begin

raiserror('Wrong part number',11,1)

return

end



declare @levelnum int

set @levelnum = 0



if (object_id('tempdb..#bomtempo1') is null)

create table #bomtempo1(

company varchar(8),

parent varchar(20),

revision varchar(5),

effectivedate datetime,

pullasasm smallint,

viewasasm smallint,

child varchar(20),

lvl int,

mtlseq varchar(8),

qtyper decimal(15,5),

mfgcomment varchar(1000),

nodes varchar(4000)

) else truncate table #bomtempo1



insert into #bomtempo1

select partrev.company, '', partrev.revisionnum, partrev.effectivedate, 1,
1, @part, @levelnum, '00', 1, '', @part

from partrev with (nolock)

inner join #tlastrev

on #tlastrev.company = partrev.company

and #tlastrev.partnum = partrev.partnum

and #tlastrev.revisionnum = partrev.revisionnum

where partrev.partnum = @part



while (exists (select * from #bomtempo1 with (nolock) where lvl=@levelnum))

begin

insert into #bomtempo1

select partmtl.company, partmtl.partnum, partmtl.revisionnum,
#tlastrev.effectivedate, partmtl.pullasasm, partmtl.viewasasm,
partmtl.mtlpartnum,

@levelnum + 1, cast(partmtl.mtlseq as varchar(8)), partmtl.qtyper,
partmtl.mfgcomment, #bomtempo1.nodes + '-' + partmtl.mtlpartnum

from partmtl with (nolock)

inner join #tlastrev with (nolock)

on partmtl.company = #tlastrev.company and partmtl.partnum =
#tlastrev.partnum and partmtl.revisionnum = #tlastrev.revisionnum

inner join #bomtempo1 with (nolock)

on partmtl.partnum = #bomtempo1.child and partmtl.company =
#bomtempo1.company

where #bomtempo1.lvl = @levelnum and #bomtempo1.viewasasm = 1



set @levelnum = @levelnum + 1

end



select * from #bomtempo1 order by nodes





_____

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Tom J. Christie
Sent: Thursday, May 16, 2013 6:19 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Indented Bills of Materials





If you are using SQL, there are some other options.

You have to consider a few complications though:

(1) Which revision do you want to explode through?

(2) What about revisions in ECOs?


Tom Christie | Information Technology Manager | AGM Container Controls, Inc.
| tchristie@... <mailto:tchristie%40agmcontainer.com>
<mailto:tchristie@... <mailto:tchristie%40agmcontainer.com> > |
t: 520.881.2130 ext 2176

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of Steve
Sent: Thursday, May 16, 2013 4:35 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Indented Bills of Materials



Did you include approved revisions in your level structure? If you did not
you are going to get all revision levels in your bill.

Steve

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>] On
Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 8:04 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

If you use an outer join for the sixth and you bill only has 5 levels the
outer join allows it to work. It simply won't return any data in the fields.

Patrick

On May 15, 2013, at 6:01 PM, "Cathy" <cathy@...
<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com>
<mailto:cathy%40embeddedarm.com> > wrote:

I guess what I meant to say - if you added 5 partmtl tables as alias and you
add another level to your BOM -

Would you have to modify the report and add another partmtl alias for the
sixth level?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
Behalf Of Winter, Patrick
Sent: Wednesday, May 15, 2013 3:35 PM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

You don't have to assume the level is fixed if you use Left Outer Joins.

Patrick

On May 15, 2013, at 4:25 PM, "Cathy" <cathy@...
<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com>
<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> > wrote:

The problem with indented BOM, is you have to assume the number of levels of
is fixed when you add the PartMtl tables as alias's.

Since there is already and indented BOM Listing, just modify that report to
add On Hand Qty, Demand and Open PO's.

An Indented BOM is not your usual report and usually has some special
programming inside so you don't have to assume that your number of levels is
a fixed number.

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 10:45 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Indented Bills of Materials

Cathy,

I'm trying to come up with a different version of the Part Availability
report. So I need to start with the indented BOM and then look at On Hand
Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.

Ken

________________________________
From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com>
<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com>
<mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Sent: Wednesday, May 15, 2013 12:24 PM
Subject: RE: [Vantage] Indented Bills of Materials

What are you missing from the BOM Listing under Engineering?

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
Behalf Of
Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm
using the PartMtl table that shows me the top level part and the MtlPartNum
(Sub Assembly). Unfortunately this is only showing the 1st level of the
BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
as well. Of course this drill down though assembly's could be 5 or more
levels deep.

I found the PartBom table but it has nothing in it so I assume that this is
a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]


[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
>>database in SQL Server the following T-SQL
Thanks for sharing.

This thread has reminded me of an old request I have for an "Indented Where Used".

Anyone ever seen anything like this for Epicor?
- Indented Where Used report that constructs an indented where-used list for a given "root" item, and which then lists every parent item along with the root quantities required.

A previous MRP system had one & users have been asking for an equivalent in Epicor.
It's been on my "maybe... some day" list for about a year.

I only have one printed example of the ole report.
And I do remember it required a separate process to be run first to pre-populate its working table.



--- In vantage@yahoogroups.com, "Vassilis Liaropoulos" <vliarop@...> wrote:
>
> Hi everyone,
>
>
>
> For those of you who keeping the database in SQL Server the following T-SQL
> code will scan the latest BOM revision of each part and sub-part down to all
> levels and display the indented BOM in a flat table.
>
>
>
> Greetings from Greece,
>
> Vassilis
>
>
>
> T-SQL CODE:
>
>
>
> declare @part varchar(20)
>
> set @part = 'PARTNUM-XX'
>
>
>
> if (object_id('tempdb..#tmaxeffdate') is null)
>
> create table #tmaxeffdate(
>
> company varchar(8),
>
> partnum varchar(20),
>
> effectivedate datetime
>
> ) else truncate table #tmaxeffdate
>
>
>
> insert into #tmaxeffdate
>
> select company, partnum, max(effectivedate)
>
> from partrev with (nolock)
>
> where approved = 1
>
> group by company, partnum
>
>
>
> if (object_id('tempdb..#tlastrev') is null)
>
> create table #tlastrev(
>
> company varchar(8),
>
> partnum varchar(20),
>
> revisionnum varchar(12),
>
> effectivedate datetime
>
> ) else truncate table #tlastrev
>
>
>
> insert into #tlastrev
>
> select partrev.company, partrev.partnum, max(partrev.revisionnum),
> partrev.effectivedate
>
> from partrev with (nolock) inner join #tmaxeffdate
>
> on partrev.company = #tmaxeffdate.company and partrev.partnum =
> #tmaxeffdate.partnum
>
> and partrev.effectivedate = #tmaxeffdate.effectivedate
>
> where partrev.approved = 1
>
> group by partrev.company, partrev.partnum, partrev.effectivedate
>
>
>
> truncate table #tmaxeffdate
>
>
>
> insert into #tmaxeffdate
>
> select company, partnum, max(effectivedate)
>
> from partrev with (nolock)
>
> where approved = 0 and company + partnum not in (select company + partnum
> from #tlastrev)
>
> group by company, partnum
>
>
>
> insert into #tlastrev
>
> select partrev.company, partrev.partnum, max(partrev.revisionnum),
> partrev.effectivedate
>
> from partrev with (nolock) inner join #tmaxeffdate
>
> on partrev.company = #tmaxeffdate.company and partrev.partnum =
> #tmaxeffdate.partnum
>
> and partrev.effectivedate = #tmaxeffdate.effectivedate
>
> where partrev.approved = 0
>
> group by partrev.company, partrev.partnum, partrev.effectivedate
>
>
>
> if not exists(select partnum from part with (nolock) where partnum=@part)
>
> begin
>
> raiserror('Wrong part number',11,1)
>
> return
>
> end
>
>
>
> declare @levelnum int
>
> set @levelnum = 0
>
>
>
> if (object_id('tempdb..#bomtempo1') is null)
>
> create table #bomtempo1(
>
> company varchar(8),
>
> parent varchar(20),
>
> revision varchar(5),
>
> effectivedate datetime,
>
> pullasasm smallint,
>
> viewasasm smallint,
>
> child varchar(20),
>
> lvl int,
>
> mtlseq varchar(8),
>
> qtyper decimal(15,5),
>
> mfgcomment varchar(1000),
>
> nodes varchar(4000)
>
> ) else truncate table #bomtempo1
>
>
>
> insert into #bomtempo1
>
> select partrev.company, '', partrev.revisionnum, partrev.effectivedate, 1,
> 1, @part, @levelnum, '00', 1, '', @part
>
> from partrev with (nolock)
>
> inner join #tlastrev
>
> on #tlastrev.company = partrev.company
>
> and #tlastrev.partnum = partrev.partnum
>
> and #tlastrev.revisionnum = partrev.revisionnum
>
> where partrev.partnum = @part
>
>
>
> while (exists (select * from #bomtempo1 with (nolock) where lvl=@levelnum))
>
> begin
>
> insert into #bomtempo1
>
> select partmtl.company, partmtl.partnum, partmtl.revisionnum,
> #tlastrev.effectivedate, partmtl.pullasasm, partmtl.viewasasm,
> partmtl.mtlpartnum,
>
> @levelnum + 1, cast(partmtl.mtlseq as varchar(8)), partmtl.qtyper,
> partmtl.mfgcomment, #bomtempo1.nodes + '-' + partmtl.mtlpartnum
>
> from partmtl with (nolock)
>
> inner join #tlastrev with (nolock)
>
> on partmtl.company = #tlastrev.company and partmtl.partnum =
> #tlastrev.partnum and partmtl.revisionnum = #tlastrev.revisionnum
>
> inner join #bomtempo1 with (nolock)
>
> on partmtl.partnum = #bomtempo1.child and partmtl.company =
> #bomtempo1.company
>
> where #bomtempo1.lvl = @levelnum and #bomtempo1.viewasasm = 1
>
>
>
> set @levelnum = @levelnum + 1
>
> end
>
>
>
> select * from #bomtempo1 order by nodes
>
>
>
>
>
> _____
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> Tom J. Christie
> Sent: Thursday, May 16, 2013 6:19 PM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Indented Bills of Materials
>
>
>
>
>
> If you are using SQL, there are some other options.
>
> You have to consider a few complications though:
>
> (1) Which revision do you want to explode through?
>
> (2) What about revisions in ECOs?
>
>
> Tom Christie | Information Technology Manager | AGM Container Controls, Inc.
> | tchristie@... <mailto:tchristie%40agmcontainer.com>
> <mailto:tchristie@... <mailto:tchristie%40agmcontainer.com> > |
> t: 520.881.2130 ext 2176
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of Steve
> Sent: Thursday, May 16, 2013 4:35 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: RE: [Vantage] Indented Bills of Materials
>
>
>
> Did you include approved revisions in your level structure? If you did not
> you are going to get all revision levels in your bill.
>
> Steve
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>] On
> Behalf Of Winter, Patrick
> Sent: Wednesday, May 15, 2013 8:04 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] Indented Bills of Materials
>
> If you use an outer join for the sixth and you bill only has 5 levels the
> outer join allows it to work. It simply won't return any data in the fields.
>
> Patrick
>
> On May 15, 2013, at 6:01 PM, "Cathy" <cathy@...
> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com>
> <mailto:cathy%40embeddedarm.com> > wrote:
>
> I guess what I meant to say - if you added 5 partmtl tables as alias and you
> add another level to your BOM -
>
> Would you have to modify the report and add another partmtl alias for the
> sixth level?
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of Winter, Patrick
> Sent: Wednesday, May 15, 2013 3:35 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] Indented Bills of Materials
>
> You don't have to assume the level is fixed if you use Left Outer Joins.
>
> Patrick
>
> On May 15, 2013, at 4:25 PM, "Cathy" <cathy@...
> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com>
> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> > wrote:
>
> The problem with indented BOM, is you have to assume the number of levels of
> is fixed when you add the PartMtl tables as alias's.
>
> Since there is already and indented BOM Listing, just modify that report to
> add On Hand Qty, Demand and Open PO's.
>
> An Indented BOM is not your usual report and usually has some special
> programming inside so you don't have to assume that your number of levels is
> a fixed number.
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of Ken Dumesnil
> Sent: Wednesday, May 15, 2013 10:45 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com>
> Subject: Re: [Vantage] Indented Bills of Materials
>
> Cathy,
>
> I'm trying to come up with a different version of the Part Availability
> report. So I need to start with the indented BOM and then look at On Hand
> Qty, Demand (Firmed and unFirmed), open PO's on shortages etc.
>
> Ken
>
> ________________________________
> From: Cathy <cathy@... <mailto:cathy%40embeddedarm.com>
> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com>
> <mailto:cathy%40embeddedarm.com> <mailto:cathy%40embeddedarm.com> >
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> Sent: Wednesday, May 15, 2013 12:24 PM
> Subject: RE: [Vantage] Indented Bills of Materials
>
> What are you missing from the BOM Listing under Engineering?
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> [mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
> Behalf Of
> Ken Dumesnil
> Sent: Wednesday, May 15, 2013 8:09 AM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> <mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Indented Bills of Materials
>
> I'm trying to create a BAQ to view the indented Bill of Materials. I'm
> using the PartMtl table that shows me the top level part and the MtlPartNum
> (Sub Assembly). Unfortunately this is only showing the 1st level of the
> BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum)
> as well. Of course this drill down though assembly's could be 5 or more
> levels deep.
>
> I found the PartBom table but it has nothing in it so I assume that this is
> a temp table for structuring the BOM used by reports.
>
> Does anyone know how to get a complete view of an indented BOM in a BAQ?
>
> Thanks,
>
> Ken
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Did you get this working, I can send you a BAQ Example that I use...only three levels though.


9.05.607A Prog

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Indented Bills of Materials



I'm trying to create a BAQ to view the indented Bill of Materials. I'm using the PartMtl table that shows me the top level part and the MtlPartNum (Sub Assembly). Unfortunately this is only showing the 1st level of the BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum) as well. Of course this drill down though assembly's could be 5 or more levels deep.

I found the PartBom table but it has nothing in it so I assume that this is a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]
Hi,
Â
I did kinda. I can get all the levels but I'm also getting a lot of duplicates.  Some sample code would be nice.
Â
Ken

From: Miguel Santillan <msantillan@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Monday, May 20, 2013 10:42 AM
Subject: RE: [Vantage] Indented Bills of Materials

Â
Did you get this working, I can send you a BAQ Example that I use...only three levels though.

9.05.607A Prog

From: mailto:vantage%40yahoogroups.com [mailto:mailto:vantage%40yahoogroups.com] On Behalf Of Ken Dumesnil
Sent: Wednesday, May 15, 2013 8:09 AM
To: mailto:vantage%40yahoogroups.com
Subject: [Vantage] Indented Bills of Materials

I'm trying to create a BAQ to view the indented Bill of Materials. I'm using the PartMtl table that shows me the top level part and the MtlPartNum (Sub Assembly). Unfortunately this is only showing the 1st level of the BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum) as well. Of course this drill down though assembly's could be 5 or more levels deep.

I found the PartBom table but it has nothing in it so I assume that this is a temp table for structuring the BOM used by reports.

Does anyone know how to get a complete view of an indented BOM in a BAQ?

Thanks,

Ken

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]
--- In vantage@yahoogroups.com, Ken Dumesnil <ken.dumesnil@...> wrote:
>
> Hi,
> ÂÂ
> I did kinda. I can get all the levels but I'm also getting a lot of duplicates.  Some sample code would be nice.
> ÂÂ
> Ken
>
> From: Miguel Santillan <msantillan@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Monday, May 20, 2013 10:42 AM
> Subject: RE: [Vantage] Indented Bills of Materials
>
> ÂÂ
> Did you get this working, I can send you a BAQ Example that I use...only three levels though.
>
> 9.05.607A Prog
>
> From: mailto:vantage%40yahoogroups.com [mailto:mailto:vantage%40yahoogroups.com] On Behalf Of Ken Dumesnil
> Sent: Wednesday, May 15, 2013 8:09 AM
> To: mailto:vantage%40yahoogroups.com
> Subject: [Vantage] Indented Bills of Materials
>
> I'm trying to create a BAQ to view the indented Bill of Materials. I'm using the PartMtl table that shows me the top level part and the MtlPartNum (Sub Assembly). Unfortunately this is only showing the 1st level of the BOM but I need it to show all the parts on the Sub Assembly's (MtlPartNum) as well. Of course this drill down though assembly's could be 5 or more levels deep.
>
> I found the PartBom table but it has nothing in it so I assume that this is a temp table for structuring the BOM used by reports.
>
> Does anyone know how to get a complete view of an indented BOM in a BAQ?
>
> Thanks,
>
> Ken
>
> [Non-text portions of this message have been removed]
>
>

Hi Ken,

As Steve has said use approved revisions...... Add the PartRev file to each PartMtl file and add a criteria to each PartRev to only include approved revisions
If you are on SQL, you can use the following recursive view, then create a external BAQ and dashboard. Works great. Enjoy!


CREATE VIEW [dbo].[vwIndentedBillOfMaterials]
AS
WITH vwBillOfMaterials(Company, Bill, Parent, RevisionNum, Material, MaterialDesc, TypeCode, QtyPer, ReqQty, ViewAsAsm, MtlSeq, Lvl, Sort) AS
(
SELECT DISTINCT PartRev.Company,
CAST(PartRev.PartNum + '/' + PartRev.RevisionNum AS VARCHAR(50)) AS Bill,
PartRev.PartNum AS Parent,
PartRev.RevisionNum,
PartRev.PartNum AS Material,
CAST(p2.PartDescription AS VARCHAR(50)) AS MaterialDesc,
CAST(p2.TypeCode AS VARCHAR(1)) AS TypeCode,
CAST(1 AS DECIMAL(18,8)) AS QtyPer,
CAST(1 AS DECIMAL(18,8)) AS ReqQty,
CAST(0 AS TINYINT) AS ViewAsAsm,
0,
0 AS Lvl,
CAST('/000' AS varchar(80)) AS Sort
FROM PartRev
INNER JOIN Part p2 ON p2.Company = PartRev.Company AND p2.PartNum = PartRev.PartNum
UNION ALL
SELECT mtl.Company,
bom.Bill AS Bill,
mtl.PartNum AS Parent,
mtl.RevisionNum,
mtl.MtlPartNum AS Material,
CAST(p.PartDescription AS VARCHAR(50)) AS MaterialDesc,
CAST(p.TypeCode AS VARCHAR(1)) AS TypeCode,
mtl.QtyPer,
CAST(bom.ReqQty * mtl.QtyPer AS DECIMAL(18,8)) AS ReqQty,
mtl.ViewAsAsm,
mtl.MtlSeq,
Lvl + 1,
CAST(bom.Sort + '/' + RIGHT('000' + CONVERT(VARCHAR,mtl.MtlSeq), 3) AS varchar(80)) AS Sort
FROM PartMtl mtl
INNER JOIN vwBillOfMaterials bom
ON bom.Company = mtl.Company AND bom.Material = mtl.PartNum
INNER JOIN Part p
ON p.Company = mtl.Company AND p.PartNum = mtl.MtlPartNum
WHERE mtl.AltMethod IS NULL OR mtl.AltMethod = ''

)
SELECT Company,
Bill,
Parent,
RevisionNum,
Material,
MaterialDesc,
TypeCode,
QtyPer,
ReqQty,
ViewAsAsm,
MtlSeq,
Lvl,
Sort
FROM vwBillOfMaterials;





GO

/* your SQL or BAQ must then sort the records as follows */

SELECT * FROM vwBillOfMaterials
ORDER BY Bill, Sort

GO