How To Fix DG664 - Cannot determine countries and mode-of-transport categories via user exit


SAP Error Message - Details

  • Message type: E = Error

  • Message class: DG - DG: Messages for Dangerous Goods Management

  • Message number: 664

  • Message text: Cannot determine countries and mode-of-transport categories via user exit

  • Show details Hide details
  • What causes this issue?

    The countries and mode of transport categories could not be determined
    via the user exit you called due to an error.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    The dangerous goods check is canceled.
    If you have activated template-material processing, the dangerous goods
    master records cannot be processed. The SD document cannot be saved.

    How to fix this error?

    See the long text for the message triggered in the user exit in the
    dangerous goods check log for more information and take the
    corresponding steps.

    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 DG664 - Cannot determine countries and mode-of-transport categories via user exit ?

    The SAP error message DG664, which states "Cannot determine countries and mode-of-transport categories via user exit," typically occurs in the context of logistics and transportation management within SAP systems. This error indicates that the system is unable to determine the appropriate countries and mode-of-transport categories due to issues in the user exit implementation or configuration.

    Causes:

    1. User Exit Implementation Issues: The user exit that is supposed to determine the countries and mode-of-transport categories may not be correctly implemented or may contain errors.
    2. Missing Configuration: The necessary configuration for countries and transport modes may not be set up in the system.
    3. Data Inconsistencies: There may be inconsistencies or missing data in the master data (e.g., customer, vendor, or material master) that the user exit relies on.
    4. Authorization Issues: The user executing the transaction may not have the necessary authorizations to access the required data.

    Solutions:

    1. Check User Exit Implementation:

      • Review the code in the user exit (often found in function modules or enhancement points) to ensure it is correctly implemented.
      • Ensure that the logic for determining countries and transport modes is correctly defined.
    2. Verify Configuration:

      • Go to the relevant configuration settings in SPRO (SAP Project Reference Object) and ensure that the countries and mode-of-transport categories are properly defined.
      • Check the settings under "Logistics Execution" or "Transportation Management" for any missing entries.
    3. Data Validation:

      • Validate the master data for customers, vendors, and materials to ensure that all necessary fields are filled out correctly.
      • Check for any missing or incorrect entries in the country or transport mode tables.
    4. Authorization Check:

      • Ensure that the user has the necessary authorizations to access the data required for the user exit to function correctly.
    5. Debugging:

      • If you have access to debugging tools, you can set breakpoints in the user exit to trace the execution flow and identify where the failure occurs.
    6. Consult Documentation:

      • Review SAP documentation or notes related to the specific user exit being used to ensure compliance with best practices.

    Related Information:

    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message. SAP frequently releases updates that may address specific bugs or issues.
    • Community Forums: Engage with SAP community forums or support channels where other users may have encountered and resolved similar issues.
    • Transport Management Documentation: Review the official SAP documentation on transport management for additional insights into configuration and troubleshooting.

    If the issue persists after following these steps, it may be beneficial to consult with an SAP expert or your organization's SAP support team 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