How To Fix R5502 - City number &1 in country &2 does not exist


SAP Error Message - Details

  • Message type: E = Error

  • Message class: R5 - Regional structure

  • Message number: 502

  • Message text: City number &1 in country &2 does not exist

  • Show details Hide details
  • What causes this issue?

    A city number is entered in this address that has no ADRCITY record (in
    the specified country).
    This check will only run when the flag 'XREGS' (address check with city
    file) is marked in the table T005 (country table).

    System Response

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

    How to fix this error?


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message R5502 - City number &1 in country &2 does not exist ?

    The SAP error message R5502, which states "City number &1 in country &2 does not exist," typically occurs when there is an issue with the city code or city data in the SAP system. This error is often related to address data, particularly when trying to validate or process addresses in the system.

    Cause:

    1. Invalid City Code: The city number (code) provided does not exist in the SAP database for the specified country.
    2. Missing Data: The city data may not have been maintained in the system, or the city code may have been deleted or not uploaded correctly.
    3. Incorrect Configuration: There may be configuration issues in the address management settings or the country-specific settings in SAP.
    4. Data Entry Error: There could be a typographical error in the city code or country code being used.

    Solution:

    1. Verify City Code: Check the city code and ensure it is correct. You can do this by looking up the city in the relevant SAP tables (e.g., T005 for countries and T005U for cities).
    2. Maintain City Data: If the city does not exist, you may need to create or maintain the city data in the SAP system. This can typically be done through transaction codes like OVK1 (for maintaining cities) or T005 (for maintaining country data).
    3. Check Configuration: Review the configuration settings related to address management in your SAP system. Ensure that the country and city settings are correctly configured.
    4. Data Upload: If the city data is supposed to be uploaded from an external source, ensure that the upload process was completed successfully and that there were no errors during the upload.
    5. Consult Documentation: Refer to SAP documentation or help resources for specific instructions on maintaining address data and troubleshooting related errors.

    Related Information:

    • SAP Tables: Familiarize yourself with relevant SAP tables such as:
      • T005: Countries
      • T005U: Cities
      • T005S: City codes
    • Transaction Codes: Use transaction codes like OVK1 to maintain city data or SE16 to view table entries.
    • SAP Notes: Check SAP Notes for any known issues or patches related to address management and city data.
    • User Authorization: Ensure that you have the necessary authorizations to maintain address data in the SAP system.

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