Message type: E = Error
Message class:  FICUSTOM - Customizable Messages for Funds Management 
Message number: 334
Message text: An invoice should refer to an earmarked funds document
You want to post an invoice that refers to different purchase order
items. However, these purchase order items do not refer to one and the
same earmarked funds document.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Only use purchase order items in the invoice that refer to the same
earmarked funds document.
This message is usually displayed as a warning.
You can change the message type in Customizing activity
<DS:SIMG._ISPSFM_MV_SM30>Change Message Control</>.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message FICUSTOM334 indicates that an invoice is attempting to reference an earmarked funds document, but there is an issue with the reference. This error typically arises in the context of public sector accounting or when dealing with budgetary control in SAP.
Cause: The error occurs when: An invoice is created that does not properly reference an earmarked funds document (such as a commitment or reservation). The earmarked funds document may not exist, or it may not be in a status that allows it to be referenced. The invoice may not meet the necessary criteria to link to the earmarked funds document, such as incorrect document types or missing information.
Solution: To resolve this error, you can take the following steps: Check the Earmarked Funds Document: Ensure that the earmarked funds document exists and is in the correct status. You can do this by navigating to the relevant transaction (e.g., FMX1, FMX2) to view the earmarked
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FICUSTOM333 Earmarked funds document &2 item &3 cannot be used
What causes this issue?  You want to post a purchase order for vendor&V1&, however the referenced item &V3& of the earmarked funds &am...
FICUSTOM332 Read the long text before you create an exception for budget management
What causes this issue?  The budget check normally takes place using earmarked funds documents. When you create an exception, the budget check only ta...
FICUSTOM335 Dif. cash effect. year of pur. req./earmarked funds &3/&4; see long text
What causes this issue?  You are processing a purchase requisition that refers to the earmarked funds &V3& / Item &V4&. This message i...
FICUSTOM336 Dif. cash effectivity year of PO/earmarked funds &3/&4; see long text
What causes this issue?  You are processing a purchase order that refers to the earmarked funds &V3& / Item &V4&. This message is to n...
Click on this link to search all SAP messages.