Understanding SAP Error Message No. 00058
When working with SAP systems, particularly during company creation or data entry operations, you may encounter the following error:
SAP Error Message no. 00058
This error message typically appears when entering country-related information and indicates a configuration issue with the country tables. In this comprehensive guide, we'll explain what causes this error and provide multiple solutions to resolve it.
What Causes SAP Error 00058?
SAP Error Message No. 00058 occurs when the system cannot validate country-related input values. The primary causes include:
Cause 1: Missing Country Entry in Table T005
The most common cause is that the country code you're trying to use doesn't exist in SAP's country master table (T005). This table contains all valid country codes and their associated data.
Cause 2: Incomplete Country Configuration
Even if the country exists in T005, the configuration might be incomplete. Related tables like T005S (regions/states) or T005U (counties) might be missing necessary entries.
Cause 3: Incorrect Country Code Format
Using an incorrect format for the country code (e.g., using "USA" instead of "US") will trigger this error.
Cause 4: Missing Authorization
In some cases, you might not have the proper authorization to access certain country configurations.
Solution 1: Check Table T005 Using SE16
The first step is to verify if the country exists in the T005 table:
- Open transaction SE16 (Data Browser)
- Enter table name: T005
- Click Execute or press F8
- Search for your country code in the LAND1 field
If the country is missing, you'll need to add it through configuration (see Solution 3).
Checking T005 Contents
You can also check the table contents using the following steps:
- Go to transaction SE16N (General Table Display)
- Enter T005 as the table name
- In the selection screen, enter your country code in LAND1
- Execute the query
If no results appear, the country configuration is missing.
Solution 2: Verify Related Tables
Sometimes the country exists in T005 but related information is missing:
Check Table T005S (Regions/States)
- Transaction SE16
- Table: T005S
- Filter by your country code (LAND1)
- Verify regions/states are configured
Check Table T005U (Counties)
- Transaction SE16
- Table: T005U
- Filter by your country code
- Verify county entries exist
Solution 3: Configure Countries via SPRO
If the country configuration is missing, you can add it through the SAP customizing menu:
Path 1: General Settings
- Open transaction SPRO
- Click "SAP Reference IMG"
- Navigate to: General Settings → Set Countries → Define Countries
- Add or modify the country entry
Path 2: Personnel Management (HR Module)
For HR-related country errors:
- Open transaction SPRO
- Navigate to: Personnel Management → Personnel Administration → Personal Data → Define Counties
- Add the missing county or region entries
Required Fields for Country Configuration
When adding a new country, ensure these fields are properly configured:
| Field | Description | Example |
|---|---|---|
| LAND1 | Country Key | US |
| LANDK | Vehicle Country Key | USA |
| LNPLZ | Postal Code Length | 5 |
| PRESSION | Postal Code Position | Before City |
| INTCA | ISO Country Code | US |
Solution 4: Copy Existing Country Configuration
If you need to add a new country similar to an existing one:
- Go to transaction SPRO
- Navigate to country configuration
- Select an existing country with similar requirements
- Use the copy function to create a new entry
- Modify the copied entry with correct values
Solution 5: Transport the Configuration
If the configuration exists in another system (like Development):
- Check if a transport request contains the country configuration
- Import the transport to your current system
- Refresh the configuration buffers
To refresh buffers:
Transaction: SE38
Program: RSBUFFER
Solution 6: Check Customizing Tables
For detailed country customization, review these tables:
- T005 - Country Master
- T005S - Regions (States/Provinces)
- T005U - Counties
- T005H - Country Hierarchy
- T005T - Country Names (Text Table)
Use transaction SM30 to maintain these tables directly (if authorized).
Verification Steps
After implementing the solution:
- Clear any session buffers by logging out and back in
- Try the original transaction that caused the error
- Enter the country information again
- Verify the error no longer appears
Prevention Tips
To avoid SAP Error 00058 in the future:
- Complete Configuration: Always ensure country data is fully configured before going live
- Transport Strategy: Include country configuration in your transport strategy
- Documentation: Keep a list of configured countries and their settings
- Testing: Test country-related functions in development/QA before production
Related SAP Errors
If you're troubleshooting country-related errors, you might also encounter:
- Message 00059: Invalid region/state code
- Message 00060: Postal code format error
- Message V1 311: Missing country in vendor master
Summary
SAP Error Message No. 00058 is typically caused by missing or incomplete country configuration in table T005 and related tables. The resolution involves:
- Checking table T005 for the country entry
- Verifying related tables (T005S, T005U) are configured
- Adding missing entries via SPRO
- Refreshing system buffers after changes
By following these steps, you should be able to resolve this error and continue with your SAP operations.