How To Fix CM_EHSDS_INTEGRATION021 - &1 SDS generation failed: Unauthorized call to the service.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CM_EHSDS_INTEGRATION - SDS Integration related Messages

  • Message number: 021

  • Message text: &1 SDS generation failed: Unauthorized call to the service.

  • Show details Hide details
  • What causes this issue?

    INCLUDE EHSDS_FINAL_SDS_GEN_INTRO OBJECT DOKU ID TX
    OAuth 2.0 is a standard authentication method where the service provides
    a possibility to generate a temporary token (based on a client ID and
    secret) that can be used for subsequent calls to the service. The tokens
    have an expiration time. Calls without a token or with an expired token
    are rejected.

    System Response

    The service does not generate a final safety data sheet for &V1&.

    How to fix this error?

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CM_EHSDS_INTEGRATION021 - &1 SDS generation failed: Unauthorized call to the service. ?

    The SAP error message CM_EHSDS_INTEGRATION021 indicates that there was an issue with generating a Safety Data Sheet (SDS) due to an unauthorized call to the service. This error typically arises in the context of SAP Environment, Health, and Safety (EHS) module, particularly when integrating with other systems or services for SDS generation.

    Causes:

    1. Authorization Issues: The user or service account attempting to generate the SDS may not have the necessary authorizations or roles assigned to access the required services.
    2. Service Configuration: The service responsible for generating the SDS may not be properly configured or may not be active.
    3. Network Issues: There could be network-related issues preventing the service from being accessed.
    4. Incorrect Parameters: The parameters being passed to the service may be incorrect or incomplete, leading to unauthorized access errors.

    Solutions:

    1. Check User Authorizations:

      • Ensure that the user or service account has the necessary roles and authorizations to access the SDS generation service. This can be done by reviewing the user roles in transaction PFCG.
      • If necessary, assign the appropriate roles that include access to the EHS and SDS generation functionalities.
    2. Review Service Configuration:

      • Verify that the SDS generation service is correctly configured in the system. Check the relevant settings in the SAP EHS module.
      • Ensure that the service is active and properly set up in the system.
    3. Check Network Connectivity:

      • If the SDS generation involves external services, ensure that there are no network issues preventing access to those services.
      • Test the connectivity to the service endpoint to confirm that it is reachable.
    4. Validate Input Parameters:

      • Review the parameters being sent to the SDS generation service. Ensure that all required fields are populated correctly and that the data is valid.
      • Check for any specific requirements or constraints related to the data being processed.
    5. Consult Logs and Traces:

      • Check the application logs and traces for more detailed error messages that can provide additional context about the failure.
      • Use transaction SLG1 to view application logs related to the EHS module.
    6. Contact SAP Support:

      • If the issue persists after checking the above points, consider reaching out to SAP support for further assistance. Provide them with the error message details and any relevant logs.

    Related Information:

    • SAP Notes: Search for relevant SAP Notes that may address known issues or provide patches related to the error.
    • Documentation: Review the SAP EHS documentation for guidelines on SDS generation and service integration.
    • Community Forums: Check SAP Community forums for discussions related to similar issues, as other users may have encountered and resolved the same error.

    By following these steps, you should be able to identify and resolve the issue causing the SDS generation failure in SAP.

    • 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant