Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix TG312 - Internal RFC exception & raised; RFC canceled


SAP Error Message - Details

  • Message type: E = Error

  • Message class: TG - Messages for Upgrade Repository Switch

  • Message number: 312

  • Message text: Internal RFC exception & raised; RFC canceled

  • Show details Hide details
  • What causes this issue?

    There are various reasons why an RFC connection could not be set up by
    an external program (here "R3up"):
    The DDIC password is not correct (message "not authorized")
    The logon language is not supported (R3up: system language)
    The host name of the application server is not known to the gateway
    The gateway addressed (= gateway host plus gateway service) does not
    exist, is not running, or cannot be reached.

    System Response

    The upgrade stops with an error message.

    How to fix this error?

    Check the parameters entered. The working directory (this is the tmp
    subdirectory for R3up) contains a trace file "dev_rfc" with information
    about the error. If the trace is not detailed enough, use the following
    traces as well:
    In the environment of the process, set "CPIC_TRACE=2".
    Also set the system trace (profile parameter rdisp/trace) to "2".
    Activate the trace in the gateway (R3up: RfcTrace=ON in R3up.par)

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message TG312 - Internal RFC exception & raised; RFC canceled ?

    The SAP error message TG312, which indicates an "Internal RFC exception & raised; RFC canceled," typically occurs during Remote Function Call (RFC) operations. This error can arise due to various reasons, and understanding the cause is essential for troubleshooting. Here are some common causes, potential solutions, and related information:

    Causes:

    1. Network Issues: Problems with the network connection between the SAP systems can lead to RFC failures.
    2. System Configuration: Incorrect configuration of the RFC destination or the target system can cause this error.
    3. Authorization Issues: The user executing the RFC may not have the necessary authorizations in the target system.
    4. Resource Limitations: The target system may be experiencing resource constraints (e.g., memory, CPU) that prevent it from processing the RFC call.
    5. System Errors: Internal errors in the SAP system, such as bugs or inconsistencies in the system, can lead to this exception.
    6. Timeouts: If the RFC call takes too long to execute, it may time out and result in this error.

    Solutions:

    1. Check Network Connectivity: Ensure that there are no network issues between the systems involved. You can use tools like ping or traceroute to diagnose connectivity problems.
    2. Verify RFC Destination: Check the configuration of the RFC destination in transaction SM59. Ensure that the connection parameters are correct and that the target system is reachable.
    3. Review Authorizations: Ensure that the user executing the RFC has the necessary authorizations in the target system. You can check this in transaction SU53 after the error occurs.
    4. Monitor System Resources: Check the performance and resource usage of the target system. Use transaction SM50 or SM66 to monitor active processes and system load.
    5. Check System Logs: Review the system logs (transaction SM21) and short dumps (transaction ST22) for any related errors that might provide more context on the issue.
    6. Increase Timeout Settings: If timeouts are suspected, consider increasing the timeout settings for the RFC connection in SM59.
    7. Consult SAP Notes: Search for relevant SAP Notes in the SAP Support Portal that may address known issues related to this error.

    Related Information:

    • Transaction Codes:
      • SM59: RFC Destinations
      • SM21: System Log
      • ST22: Dump Analysis
      • SU53: Authorization Check
      • SM50/SM66: Process Overview
    • SAP Support: If the issue persists after trying the above solutions, consider reaching out to SAP Support for further assistance. Provide them with detailed information about the error, including any logs or dumps you have collected.

    By systematically addressing these areas, you should be able to identify and resolve the cause of the TG312 error in your SAP environment.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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