Trying to find a proper solution for assigning serial numbers to a purchase order line through extension or API method.
BC version is 19.3.0.2 on-prem.
Here is the extension method code:


In NAV, you would pass serial number directly into CreateReservEntry.CreateReservEntryFor method, like this:


But in BC, CreateReservEntry.CreateReservEntryFor method is changed, so you no longer can pass Serial No., but instead it is copied from ReservEntry:
Codeunit 99000830 Create Reserv. Entry

Table 337 Reservation Entry

So, the question is what would be the correct way to 'feed' Reservation Entry with serial nos. before executing CreateReservEntryFor?
Is there a method in Codeunit 99000830 Create Reserv. Entry or Table 337 Reservation Entry that can be utilized for this?