Message type: E = Error
Message class:  FI - TR-FM Funds Management 
Message number: 240
Message text: Bank line items are only permitted in one FI document
You have entered more than one bank line item or bank clearing line item
but only one expense or revenue line item in a document. This document
cannot be converted to a payment online in Funds Management as the
corresponding bank accounts are in different accounting documents.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Split the posting between several documents so that the used bank lines
can be posted in one accounting document. (For example, in the case of
cross company codes, use only the bank accounts of just one company
code).
Error message extract from SAP system. Copyright SAP SE.
The SAP error message FI240 ("Bank line items are only permitted in one FI document") typically occurs when there is an attempt to post bank-related line items in multiple financial documents simultaneously. This is a restriction in SAP to ensure the integrity of financial transactions, particularly those involving bank accounts.
Cause:
Multiple Document Posting: The error usually arises when a user tries to post a transaction that involves bank line items in more than one financial document at the same time.
Incorrect Configuration: There may be issues with the configuration of the financial document types or the way bank accounts are set up in the system.
Data Entry Errors: Users may inadvertently attempt to enter bank-related transactions in a way that violates the system's rules.
Solution:
Single Document Posting: Ensure that bank line items are only included in one financial document. Review the transaction you are trying to post and separate any bank-related entries into their Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FI239 Functional area cannot be activated for FM area &1
What causes this issue?  You want to activate the functional area for FM area &V1&. However, this is not permitted as Funds and Position Manag...
FI238 Payment reversal &1 for invoice &2 &3 &4: different fiscal year
What causes this issue?  The assignment of the payment to the invoice was cancelled. This means that you must cancel the payment records generated in ...
FI241 Payment selection was not carried out for interval &1 to &2
What causes this issue?  An a parallel processing for interval &1 to &2, either a short dump or program cancellation occurred.System Response ...
FI242 Function is not possible; RFC server group '&1' does not exist
What causes this issue?  The system issues an error message and will not allow you to continue with this transaction until the error is resolved. Syst...
Click on this link to search all SAP messages.