Recursion - Loop

Hello Guys

Is there a way that we can execute a recursion logic in board for example, for the productnumber ADVE0001, we are looking for conversion from ctn to kg, so we need to

look for the fromunitsymbol where it is ea and tounitssymbol = kg, this is the simplest scenario

from CTN to ea and

ea to kg

It could have been from a to b

b to d

d to e

e to kg

PRODUCTNUMBER

FROMUNITSYMBOL

TOUNITSYMBOL

DENOMINATOR

FACTOR

ADVE0001

ctn

ea

1

6.0000000000000000

ADVE0001

ea

kg

1

.4720000000000000

ADVE0001

layer

ctn

1

12.0000000000000000

ADVE0001

layer

ea

1

72.0000000000000000

ADVE0001

pl

ctn

1

156.0000000000000000

ADVE0001

pl

ea

1

936.0000000000000000

ADVE0001

pl

layer

1

13.0000000000000000

Any idea please, should it be done through loop ?

Thanks

Answers

  • Hi,

    maybe this best practice article helps you
    https://community.board.com/discussion/18090/how-to-loop-procedures
    Kind regards,
    Bettina

  • Thank you Bettina,

    I went through this before. I thought may be someone had to do a recursion which is not time bound. In any case i will try a loop and see

    Thank you

  • The described path in 3.2 can be applied also to non-time related entities. It's the same logic.