Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix VG013 - ISO country key & is not assigned (item &)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VG - EDI Messages in SD

  • Message number: 013

  • Message text: ISO country key & is not assigned (item &)

  • Show details Hide details
  • What causes this issue?

    In the specified item of the <GL:EDI>EDI</>
    <GL:Intermediate_Document>Intermediate Document</> there is an ISO
    country code which is not maintained in the global parameters for the
    respective country.

    How to fix this error?

    If the ISO country code should be supplied, make the appropriate entry.
    Otherwise you should find out how the unauthorized value got into the
    Intermediate Document.
    If you have the authorization, change the ISO country code as required
    in <GL:customizing>Customizing</>.
    If not, inform your system administrator.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VG013 - ISO country key & is not assigned (item &) ?

    The SAP error message:

    VG013 ISO country key & is not assigned (item &)

    typically occurs in the context of vendor master data or purchasing documents when the system expects a valid ISO country key but finds that the country key is either missing or not properly assigned.


    Cause

    • The ISO country key (a two-character country code, e.g., DE for Germany, US for United States) is either not maintained or not assigned to the relevant entity in the system.
    • This can happen if:
      • The country key is missing in the vendor master record or purchasing info record.
      • The country key is not assigned to the relevant organizational unit or document item.
      • The country key is not maintained in the system customizing.
    • Sometimes, the error occurs during document creation (e.g., purchase order, invoice) when the system tries to validate the country key for tax, customs, or legal reasons.

    Solution

    1. Check and maintain the ISO country key:

      • Go to transaction OBYZ or SPRO ? Logistics General ? Business Partner ? Basic Settings ? Country ? Define Country Codes.
      • Verify that the country key in question exists and is correctly maintained.
    2. Assign the country key to the relevant entity:

      • For vendor master data, use transaction XK02 or FK02 to check the vendor's address and country key.
      • For purchasing documents, check the vendor master or info record to ensure the country key is assigned.
    3. Maintain the country key in the relevant customizing:

      • Sometimes, the country key must be assigned to the relevant purchasing organization or plant.
      • Check customizing under SPRO ? Materials Management ? Purchasing ? Conditions ? Define Country Keys or similar paths depending on your SAP version.
    4. Check the document/item causing the error:

      • Identify the item number mentioned in the error message.
      • Verify the country key assigned to that item or vendor.
    5. If the country key is missing in the vendor master:

      • Update the vendor master data with the correct country key.
    6. If the error occurs during data upload or interface:

      • Ensure the data being uploaded contains valid and assigned country keys.

    Related Information

    • ISO Country Keys in SAP are two-character codes used to identify countries consistently.
    • The error message is part of the validation checks to ensure compliance with legal and tax regulations.
    • This message is often seen in purchasing, vendor master, or invoice verification processes.
    • SAP Note or documentation related to country key assignments may provide additional guidance.
    • Transaction codes to check:
      • OBYZ – Define Country Codes
      • XK02/FK02 – Change Vendor Master
      • ME21N/ME22N – Purchase Order creation/change (to check vendor and country key)
      • SPRO – Customizing for country keys

    If you provide the exact transaction or process where the error occurs, I can give more tailored steps.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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