Message type: E = Error
Message class:  ERP_CO_OLC_E - Messages for Operative Level Costing 
Message number: 031
Message text: Operation &1; not relevant for costing
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 ERP_CO_OLC_E031 indicates that a specific operation (denoted as &1) is not relevant for costing in the context of production or order processing. This error typically arises in the context of controlling (CO) and production planning (PP) modules when trying to perform cost calculations or when processing production orders.
Cause: Operation Not Marked for Costing: The operation in question may not be marked as relevant for costing in the routing or work center settings. Incorrect Configuration: The configuration of the routing or work center may not align with the costing requirements. Missing Costing Data: There may be missing or incomplete costing data for the operation or the associated work center. Status of the Order: The production order or process order may be in a status that does not allow for costing calculations.
Solution: Check Routing and Work Center: Go to the routing associated with the production order and check the operation settings. Ensure that the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
ERP_CO_OLC_E030 *** SETTLEMENT ***
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ERP_CO_OLC_E024 Historical order from operation account assigned order type not supported
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ERP_CO_OLC_E032 Operation &1 / &2; settlement rules not supported for suboperations
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ERP_CO_OLC_E033 Settlement profile &1; default receiver object type is not defined
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.