Message type: E = Error
Message class:  FI - TR-FM Funds Management 
Message number: 258
Message text: Activity &1 is not defined in FM area &2
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message FI258 ("Activity &1 is not defined in FM area &2") typically occurs in the context of Funds Management (FM) when there is an attempt to post a transaction that references an activity that has not been defined for the specified Funds Management area.
Cause:
Undefined Activity: The activity code you are trying to use is not defined in the configuration for the specified FM area.
Incorrect FM Area: The FM area specified in the transaction may not be the one where the activity is defined.
Configuration Issues: There may be issues with the configuration settings in the Funds Management module, such as missing or incorrect entries in the activity configuration.
Solution:
Check Activity Definition:
Go to the configuration settings in SAP for Funds Management.
Navigate to the path: SPRO > Public Sector Management > Funds Management > Master Data > Define Activities.
Verify if the activity code (represented by &1 in the error message) is Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FI257 The activity must either begin with &1 or be empty
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FI256 No permitted activities found for the balance carryforward
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FI259 Program only permitted for payment matching with enhanced function
What causes this issue?  You have not activated payment selection with enhanced functions for this company code in Customizing. This program is not pe...
FI260 No authorization for changing functional area groups
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.