How To Fix /STMC/CR_MSG681 - Error while creating HTTP connection &1; rc=&2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /STMC/CR_MSG -

  • Message number: 681

  • Message text: Error while creating HTTP connection &1; rc=&2

  • 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 /STMC/CR_MSG681 - Error while creating HTTP connection &1; rc=&2 ?

    The SAP error message /STMC/CR_MSG681 typically indicates an issue with creating an HTTP connection in the SAP system. This error can arise due to various reasons, including configuration issues, network problems, or incorrect parameters.

    Causes:

    1. Incorrect HTTP Connection Configuration: The HTTP connection might not be set up correctly in the SAP system.
    2. Network Issues: There could be network connectivity problems between the SAP system and the target server.
    3. Firewall Restrictions: Firewalls may be blocking the HTTP requests.
    4. Invalid URL or Parameters: The URL or parameters used in the HTTP connection might be incorrect or malformed.
    5. Authorization Issues: The user or service account may not have the necessary permissions to establish the connection.
    6. Service Unavailability: The target service might be down or not reachable.

    Solutions:

    1. Check HTTP Connection Configuration:

      • Go to transaction SM59 and verify the configuration of the HTTP connection.
      • Ensure that the connection type is set correctly (e.g., HTTP or HTTPS).
      • Test the connection from within the SM59 transaction to see if it is working.
    2. Verify Network Connectivity:

      • Use tools like ping or telnet to check if the target server is reachable from the SAP server.
      • Ensure that there are no network issues or outages.
    3. Review Firewall Settings:

      • Check if there are any firewall rules that might be blocking the HTTP requests.
      • Work with your network/security team to ensure that the necessary ports are open.
    4. Validate URL and Parameters:

      • Double-check the URL and any parameters being used in the HTTP connection.
      • Ensure that they are correctly formatted and valid.
    5. Check User Authorizations:

      • Ensure that the user or service account used for the HTTP connection has the necessary authorizations.
      • Review the roles and permissions assigned to the user.
    6. Monitor Target Service:

      • Check if the target service is up and running.
      • If the service is down, coordinate with the service provider to resolve the issue.

    Related Information:

    • Transaction Codes:

      • SM59: To manage and test RFC and HTTP connections.
      • SICF: To manage HTTP services in the SAP system.
    • Logs and Traces:

      • Check the application logs (SLG1) for more detailed error messages.
      • Use transaction ST22 to check for dumps that might provide additional context.
    • SAP Notes:

      • Search for relevant SAP Notes in the SAP Support Portal that might address specific issues related to HTTP connections.

    By following these steps, you should be able to diagnose and resolve the /STMC/CR_MSG681 error in your SAP system. If the issue persists, consider reaching out to 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author