Ticket number TrackingID#2505050040012911
The SubBillDeferralTransactionLineDeferralEntity only accepts Sales Order and General Ledger entries. There are several customers using Deferrals for Item Requirements, AP, and POP. 1) There is currently no method available for these customers to import Open records for data migration off a legacy system. 2) There is also no way for customers migrating from Revenue Recognition using item requirements over to sub bill deferrals.
Please add these 2 MSFT offered solutions to the standard release. Otherwise ALL customers wanting the functionality will have to build extensions for every implementation
In the class SubBillDeferralTransactionLineDeferralEntity, there is a method called mapDeferralEntity inside which you can handle the cases for SubBillTransactionType::SalesOrder or LedgerJournalTrans.
You can add a piece of code like shown below, to address the gap in entity for Sales Orders of sales type ItemRequirement.
An extension can be written for this method to add this logic.
Now, with another approach, in the same entity class SubBillDeferralTransactionLineDeferralEntity and in the same method, where we are manually setting the values in insert_buffer (SUBBILLDEFERRALTRANSACTIONLINEDEFERRAL). In this section, the system is setting values imported from the file.