on 11-30-2015 12:55 PM
Is it possible to insert new entries into a table?
I am getting a table as conext and doing some calculations with it. The result should be inserted into an yet empty table in brf+ and the filled table will then be the result data object of the function.
If not, is there any other option than calling the function from abap for every entry?
Regards,
Dominik
Hi Dominik,
yes this is possible directly in BRFplus. How is the context table worked on in BRFplus? Is there a loop over it and you do some processing per line and then you want to append the line to the result data object or do you want to append the complete tabel to the result data object?
BR
Christian
P.S. There is also a way to call a BRFplus function module or a static class method from BRFplus but this is not needed in your case
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
i got a context table with the base data. I'm looping over all entries, processing some rules and then calculating a result for every entry. This result should then be inserted into a new table (no binding). The new table consists of the result and two key-elements. After the loop the new result table should be returned.
Regards,
Dominik
Hi Dominik,
here is a simple example:
I have a function which gets as input an input table (structure with two fields) and has a result table (structure with two fields)
In a rule set I have a rule that loops over the input table:
The decision table now changes Element 1 of the result data structure and I set the value of the second result data element to a fixed value (for the sake of the example). Then I have two option to fill the result table:
I can either Insert values into the table (= append):
Or I can modify existing entries
You get these options of handling the entries of a table as soon as you change/access a context/result data object of type table
So summarizing the typical workflow is:
Hope that helps
BR
Christian
User | Count |
---|---|
77 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.