Message type: E = Error
Message class:  FI - TR-FM Funds Management 
Message number: 604
Message text: Only enter commitment items which are assigned to transaction &
You have entered a commitment item which is assigned to a financial
transaction other than the one to which the commitment item in the G/L
account master is assigned.
Enter a commitment item which is assigned to the same transaction.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message FI604 ("Only enter commitment items which are assigned to transaction &") typically occurs in the context of financial transactions, particularly when dealing with budgetary control and commitment items in the SAP system. This error indicates that the commitment item you are trying to use is not assigned to the specified transaction type.
Cause:
Incorrect Commitment Item: The commitment item you are trying to enter is not linked to the transaction type you are using. Each transaction type in SAP has specific commitment items that are allowed.
Configuration Issues: There may be a configuration issue in the system where the commitment item is not properly assigned to the relevant transaction type.
Data Entry Error: There might be a typo or incorrect selection of the commitment item during data entry.
Solution:
Check Commitment Item Assignment:
Go to the configuration settings in SAP (transaction code SPRO).
Navigate to the relevant path for commitment item assignment to transaction Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FI603 Commitment item &/&/& does not exist
What causes this issue?  The G/L account master contains a commitment item for which there is no longer a master record.How to fix this error?  Create...
FI602 Budgeting not allowed in commitment item &/&
What causes this issue?  The commitment item is marked as a clearing line item or a stock item (financial transaction other than 30).  Budgeting is no...
FI605 Position cursor on a valid field
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...
FI606 No commitment items selected
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.