SAP Message F5350 - Account type/account for invoice reference does not match item

F5350 : Account type/account for invoice reference does not match item

105034FI ALE FIDCMT: F5350 invoice reference is not possible
167026FI ALE: F5350 Credit memo in MM is not possible