...
You can create as many RRs as needed.
Most RR’s fields (e.g. customer, product, validity, inputs) are populated automatically when copying data from the Line Itemline item.
If you need to set up the RR with values different than the automatically assigned ones, you can specify their values by the logic.
Rebate Record is created by the Rebate logic element with Calculation Context set to "agreement". For this purpose, the Rebate Line Item logic provides you with a binding variable:
rebateRecords
which which refers to the object RebateRecordManager.Note: this binding variable exists also in the Calculation Contexts "agreement" and "read-only", but you can only read the rebate records Rebate Records in the objects there. ONLY in the Calculation Context "rebateRecord" the object allows you to add new records for the line item.
...
This is the simplest code to add one Rebate Record with default settings: it creates a new RR for the RBA line item. Such code must run only in an element with the "agreement" context. This function will also copy many values of the line items fields to the new Rebate Record fields. So if you only need a RR which "matches" the Line Itemline item, this code is sufficient. It creates a RR and populates most RR’s fields (e.g. customer, product, validity, inputs) with a copy of data from the Line Itemline item. The RR’s attributes will be empty.
...