How To Fix RDSV_SD_XX040 - Company code &1 is registered as foreign company code for country &2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: RDSV_SD_XX - Regulatory Document and Signature Validation in SD

  • Message number: 040

  • Message text: Company code &1 is registered as foreign company code for country &2

  • Show details Hide details
  • What causes this issue?

    The system must generate digital signature data for a document only for
    a single country.
    The company code that you use for your postings is customized to
    generate digital signature data for multiple countries.

    System Response

    The system prevents postings that are not legal.

    How to fix this error?

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

    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 RDSV_SD_XX040 - Company code &1 is registered as foreign company code for country &2 ?

    The SAP error message RDSV_SD_XX040 indicates that a company code is registered as a foreign company code for a specific country. This typically occurs in the context of SAP's Global Trade Services (GTS) or when dealing with international trade and compliance.

    Cause:

    The error arises when:

    1. The company code specified is set up in the system as a foreign entity for the country indicated.
    2. There may be inconsistencies in the configuration of the company code, such as incorrect settings in the company code master data or in the country-specific settings.
    3. The system is trying to process a transaction that is not allowed for the specified company code due to its foreign status.

    Solution:

    To resolve this error, you can take the following steps:

    1. Check Company Code Configuration:

      • Go to the company code settings in the SAP system (Transaction Code: OX02).
      • Verify that the company code is correctly configured for the intended country and that it is set up as a foreign company code if that is the intention.
    2. Review Country-Specific Settings:

      • Check the country-specific settings in the SAP system to ensure that they align with the requirements for foreign company codes.
      • Ensure that the necessary legal and compliance settings are in place for the foreign company code.
    3. Transaction Validation:

      • Review the transaction that triggered the error. Ensure that it is valid for the foreign company code and that all necessary data is correctly entered.
    4. Consult Documentation:

      • Refer to SAP documentation or help resources for specific guidelines on handling foreign company codes and related configurations.
    5. Contact SAP Support:

      • If the issue persists after checking the configurations, consider reaching out to SAP support for further assistance. They can provide insights based on the specific version and configuration of your SAP system.

    Related Information:

    • Transaction Codes:
      • OX02: Change Company Code
      • OX03: Display Company Code
    • SAP Notes:
      • Check for any relevant SAP Notes that may address this specific error or provide additional guidance.
    • Documentation:
      • Review SAP Help Portal for information on Global Trade Services and foreign company code management.

    By following these steps, you should be able to identify the root cause of the error and implement the necessary changes to resolve it.

    • 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