SAP Message 6E058 - Remaining premium/discount cannot be calculated for flow type &1

Diagnosis
An error occurred while determining the premium/discount not yetaccrued/deferred. As a result, discount/premium currency swap postingscould not be generated.

System Response
Processing is terminated.

Procedure
Check your accrual/deferral Customizing settings forpremiums/discounts. It is likely that they have not been definedcorrectly.
Define accrual/deferral

400933Discount accrual/deferral: negative accrual/deferral amount
413444Discount accrual/deferral: Negative accrual/deferral amount
459319ECCC: Error 6E058 (premium/discount)
456299Discount accrual/deferral:negative accrual/deferral amount