cancel
Showing results for 
Search instead for 
Did you mean: 

BRF - iterators, collections, recursiveness

Former Member
0 Kudos

Hello,

We have done an implementation of a project where we used BRF (BRFplus not yet release internally for us).

BRF worked just fine but we need to do a phase two which seems to be a bit more complex. What I'm interested in is whether people have used BRF in a bit more advanced way implementing operations on collection of items, doing any sort of recursive operations etc.

The main reason for asking is that I need to design an operation where I will be able to find out if among a collection of items there is at least one of certain type. The main difficulty is that the type can only be derived at run time - so the first operation would need to be mapping of all items into respective type. If not that then iterate on all items and finding out if there is a specific type among them.

Help or insight into the above will be much appreciated.

Regards,

Darek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The question was answered with a suggestion to use BRFplus instead of BRF.

Answers (1)

Answers (1)

Former Member
0 Kudos

I'm replying to myself:) Anyway, to this day I did not find any reasonable solution for my problem other then do some special development and place the functionality in a function module.

I will have to migrate the BRF into BRFplus soon so maybe that new version will have feature that missing functionality.

carsten_ziegler
Active Contributor
0 Kudos

Hi Dariusz,

in BRFplus as of NW 7.0 EhP 2 you have an expression type for loops:

- do until

- do while

- do times

- for each entry in table

Also you have an expression type for table operations:

- at least one entry for condition

- number of entries for condition

- sum, count, average over column for condition

- ...

BR,

Carsten