cancel
Showing results for 
Search instead for 
Did you mean: 

How to add rows to table using a loop expression in BRFPlus?

Former Member
0 Kudos

Hi Experts,

I want to fill a table using a loop expression, I have tried two options but I have not been successful.

(I am showing simple examples of what I want to do to, to make myselft understand)

First option:

I have informed the structure "estruct_bases_liquid" (which is related with table "Taula_bases_liquidab") and then I try to insert values to this table from the structure

"estruct_bases_liquid".

When I activated it no problem, but when I try to simulate my aplication BRF+ show me an error: "Multiple use of identical objects in context not allowed":

Second option:

I filled another structure "estruct_bases_liqui2" and I used this to fille the table "Taula_bases_liquidab" but when I active the error is "":

Could you tell me please what I am doing wrong?

Thanks!!

Best Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

christianlechne
Active Contributor

Hi David,

can you check if the following approach is working for you:

  • Remove the result data object from your loop expression (e. g. put in a basic element)
  • The model of your option 1 should work then

I have tested it in a very simple scenario as depicted in the two screenshots and it works:

  1. BRFplus function with two tables with three text fields (one as context, one as result data object)

  2. Loop expression in analogy to your logic

Best regards,

Christian

satish_kumar118
Explorer
0 Kudos

Hi Christian ,

Thank you for your post it very useful for me.

I new to the BRF+ I have one doubt

How we are creating below statements. Could you please provide the details steps

  1. Change text_struc2-text4 from value of text_table-text1
  2. Insert values into text_table2 from text_struc2