How To Fix /SCMTMS/FAG_MSG345 - Cannot run optimizer; execution of historical spend report not finished


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /SCMTMS/FAG_MSG -

  • Message number: 345

  • Message text: Cannot run optimizer; execution of historical spend report not finished

  • Show details Hide details


  • Self-Explanatory Message

    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.



    What else can you do?

    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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message /SCMTMS/FAG_MSG345 - Cannot run optimizer; execution of historical spend report not finished ?

    The SAP error message /SCMTMS/FAG_MSG345 indicates that the optimizer cannot run because the execution of the historical spend report has not been completed. This error typically occurs in the context of SAP Transportation Management (TM) when there is a dependency on the completion of a report or process before the optimizer can be executed.

    Cause:

    1. Pending Report Execution: The historical spend report is still running or has not finished processing. The optimizer requires the data from this report to function correctly.
    2. Long Processing Time: The historical spend report may take a long time to execute due to large volumes of data or system performance issues.
    3. System Locking: There may be a locking issue where the report is being executed by another user or process, preventing the optimizer from starting.

    Solution:

    1. Check Report Status:

      • Go to the transaction code for monitoring background jobs (e.g., SM37) and check if the historical spend report is still running. If it is, wait for it to complete.
      • If the report has failed, investigate the error and resolve it before attempting to run the optimizer again.
    2. Terminate Long-Running Jobs:

      • If the report is taking too long and you suspect it is stuck, you may need to terminate the job. Be cautious with this step, as it may lead to data inconsistencies if not handled properly.
    3. Review System Performance:

      • Check the system performance and resources. If the system is under heavy load, consider scheduling the report execution during off-peak hours.
    4. Retry the Optimizer:

      • Once the historical spend report has completed successfully, try running the optimizer again.
    5. Consult Logs:

      • Review the application logs for any additional error messages or warnings that could provide more context about the issue.
    6. System Configuration:

      • Ensure that the system is properly configured for running both the historical spend report and the optimizer. This includes checking for any necessary authorizations or settings.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as SM37 (Job Monitoring), SLG1 (Application Log), and /SCMTMS/OPTIMIZER (Optimizer Execution).
    • SAP Notes: Check for any SAP Notes related to this error message or the historical spend report for potential patches or updates that may resolve known issues.
    • Documentation: Review the SAP documentation for Transportation Management to understand the dependencies and requirements for running the optimizer and historical reports.

    If the issue persists after following these steps, consider reaching out to your SAP support team or consulting with SAP support for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker