Skip to Content
0

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

Mar 20 at 06:25 AM

83

avatar image

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.

yse3x.png (100.3 kB)
jvivr.png (50.4 kB)
vscts.png (50.4 kB)
pgagi.png (38.7 kB)
wl73a.png (62.3 kB)
0xi6d.png (69.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Christian Lechner Moderator SAP Mentor Mar 21 at 11:02 AM
0

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


Share
10 |10000 characters needed characters left characters exceeded