I've posted a similar thread to this before, but I have not yet found a complete solution so i thought i'd go for it....
A bit of background first, I'm using BO 5.1.6 with a db2 database (version 6/type OS/390) and i'm trying to create a new object.
There are three fields involved in this new object <WillCod>, <MirrWillCod>, <PrimaryInd>
<WillCod> is unique to each item, each <WillCod> has a <MirrWillCod> and up to two items can share a <MirrWillCod>, each item also has a <PrimaryInd>. All these fields are in the same table.
If a <WillCod> has a <MirrWillCod> that also applies to another <WillCod> then these items are linked and one will have a <PrimaryInd> of 'Y' and the other will have a <PrimaryInd> of 'N'. If a <WillCod> has a unique <MirrWillCod> then it has no linked item and will have a <PrimaryInd> of 'Y'
OK, sorry about the long winded explanation but i think iit's integral to the problem. Now onto the new object i want a linked <WillCod> with <PrimaryInd> 'Y' to be labled as 'P', a linked <WillCod> with <PrimaryInd> 'N' to be 'M' and a non linked <WillCod> to be 'S'.
I've tried all sorts, mainly based around counting distinct<WillCod> for each <MirrWillCod>'s, but the problem is that evertime i include an item relating to <WillCod> the count is 1 and it BO assumes that there are no linked items...
Does anybody have any suggestions for any concepts i can try???
A bit of background first, I'm using BO 5.1.6 with a db2 database (version 6/type OS/390) and i'm trying to create a new object.
There are three fields involved in this new object <WillCod>, <MirrWillCod>, <PrimaryInd>
<WillCod> is unique to each item, each <WillCod> has a <MirrWillCod> and up to two items can share a <MirrWillCod>, each item also has a <PrimaryInd>. All these fields are in the same table.
If a <WillCod> has a <MirrWillCod> that also applies to another <WillCod> then these items are linked and one will have a <PrimaryInd> of 'Y' and the other will have a <PrimaryInd> of 'N'. If a <WillCod> has a unique <MirrWillCod> then it has no linked item and will have a <PrimaryInd> of 'Y'
OK, sorry about the long winded explanation but i think iit's integral to the problem. Now onto the new object i want a linked <WillCod> with <PrimaryInd> 'Y' to be labled as 'P', a linked <WillCod> with <PrimaryInd> 'N' to be 'M' and a non linked <WillCod> to be 'S'.
I've tried all sorts, mainly based around counting distinct<WillCod> for each <MirrWillCod>'s, but the problem is that evertime i include an item relating to <WillCod> the count is 1 and it BO assumes that there are no linked items...
Does anybody have any suggestions for any concepts i can try???