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

Close

How To Fix WG002 - No ISO currency code in header segment (general part)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WG - Messages for store order and investment buy

  • Message number: 002

  • Message text: No ISO currency code in header segment (general part)

  • Show details Hide details
  • What causes this issue?

    The currency code was not entered as ISO code in the currency
    table.

    System Response

    The currency is determined using the store.

    How to fix this error?

    Maintain <DS:SIMG.SIMG_CFMENUSAPCOY03>the currency table</>.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WG002 - No ISO currency code in header segment (general part) ?

    Certainly! Here's a detailed explanation for the SAP error message WG002 - No ISO currency code in header segment (general part):


    Error Message

    WG002 - No ISO currency code in header segment (general part)


    Cause

    This error occurs because the system expects an ISO currency code in the header segment of a message (typically in IDoc processing or ALE/EDI communication), but it is missing or not maintained.

    • The ISO currency code is a standardized 3-character currency code (e.g., USD, EUR, GBP) defined by ISO 4217.
    • In the context of IDocs or ALE messages, the header segment must contain the currency code to correctly interpret monetary values.
    • If the currency code is missing or incorrectly maintained in the master data or the message, the system raises this error.

    When does it occur?

    • During IDoc processing, especially for financial or sales documents.
    • When sending or receiving ALE/EDI messages that include currency information.
    • When the currency field in the header segment is empty or contains a non-ISO code.
    • When customizing or mapping currency fields in partner profiles or message types is incorrect.

    Solution

    1. Check the Currency Code in the IDoc Header:

      • Use transaction WE02 or WE05 to display the IDoc.
      • Verify the currency field in the header segment (e.g., segment E1EDK01 for sales documents).
      • Ensure the currency code is a valid ISO 4217 code.
    2. Maintain Currency Codes in Master Data:

      • Check the currency assigned to the customer/vendor/material or document.
      • Use transaction OB08 to verify currency exchange rates and currency codes.
      • Ensure the currency is correctly maintained in the master data.
    3. Check Partner Profile and Message Type Configuration:

      • Use transaction WE20 to check partner profiles.
      • Verify that the currency field is correctly mapped and populated in the outbound/inbound parameters.
    4. Correct the Mapping or User Exit:

      • If the currency code is missing due to incorrect mapping in IDoc segments, adjust the mapping.
      • If a user exit or BAdI is used to populate the currency, ensure it correctly fills the ISO currency code.
    5. Reprocess the IDoc:

      • After correcting the currency code, reprocess the IDoc using BD87 or manually trigger the processing.

    Additional Information

    • ISO Currency Codes: These are standardized codes like USD (US Dollar), EUR (Euro), JPY (Japanese Yen), etc.
    • Relevant Transactions:
      • WE02 / WE05: Display IDocs
      • WE20: Partner profiles
      • OB08: Currency exchange rates
      • BD87: Reprocess IDocs
    • Related Notes:
      • Sometimes, this error can be related to missing or incorrect configuration in the ALE distribution model or message type.
      • Ensure that the currency field is not left blank in the source system before sending the IDoc.

    Summary

    Aspect Details
    Cause Missing or invalid ISO currency code in the IDoc header segment.
    Effect IDoc processing fails with WG002 error.
    Solution Verify and maintain correct ISO currency code in master data, IDoc header, and partner profiles. Reprocess the IDoc.
    Transactions WE02, WE05, WE20, OB08, BD87

    If you provide more context (e.g., which IDoc/message type or process you are working with), I can give more specific guidance.

    • 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
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