I've a requirement for my currnet customer where the settlement needs to have multiple line items.

Let me explain the issue:
All the invoices that get created have one line item and every material is batch valuated. So rebate is accrued for all the invocies.

While the settlement is created, there is a requirement to create the credit memo request/ credit memo with multiple line items so that each of the line item references to the invoices for which the amount was accrued. I'm trying to see if the extended rebate functionality can help me achieve this requirement with the use of VAKEY.