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

Close

How To Fix VG070 - Mandatory field & is missing in segment &.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VG - EDI Messages in SD

  • Message number: 070

  • Message text: Mandatory field & is missing in segment &.

  • Show details Hide details
  • What causes this issue?

    The specified field in the specified segment of the
    <GL:EDI>EDI</> <GL:Intermediate_Document>
    Intermediate Document</> is a mandatory field, which means it has to
    be filled. In this case it was not filled.

    How to fix this error?

    Find out why the field was not filled.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VG070 - Mandatory field & is missing in segment &. ?

    SAP Error Message:
    VG070 - Mandatory field & is missing in segment &.


    Cause:

    This error occurs during IDoc processing or EDI communication when a mandatory field in a specific segment of the IDoc is missing or not filled. The system expects certain fields to be populated in the IDoc segments based on the message type and segment definition, and if these mandatory fields are empty or missing, the error VG070 is triggered.


    Explanation:

    • & (first placeholder): The name of the mandatory field that is missing.
    • & (second placeholder): The segment name in which the field is missing.

    For example, the message might read:
    VG070 Mandatory field MATNR is missing in segment E1EDP01.

    This means the material number (MATNR) field is mandatory in the E1EDP01 segment but was not provided.


    Common Scenarios:

    • During outbound IDoc creation, the data source does not provide the mandatory field.
    • During inbound IDoc processing, the IDoc received from the partner is incomplete.
    • Customization or mapping errors in EDI or ALE configurations.
    • Master data or transactional data missing mandatory information.

    Solution:

    1. Identify the missing field and segment:
      Check the error message to find out which field and segment are missing.

    2. Check the IDoc data:

      • Use transaction WE02 or WE05 to display the IDoc and verify the segment data.
      • Confirm if the mandatory field is empty or missing.
    3. Check the source data:

      • For outbound IDocs, verify the application data (e.g., sales order, delivery, invoice) contains the required field.
      • For inbound IDocs, check with the sending partner or the interface generating the IDoc.
    4. Review segment definitions and mandatory fields:

      • Use transaction WE31 to check segment definitions.
      • Use transaction WE60 to check IDoc documentation for mandatory fields.
    5. Correct the data or mapping:

      • If the field is missing in the source data, update the master or transactional data.
      • If the field is missing due to mapping or user exit, adjust the mapping or user exit logic to populate the field.
    6. Reprocess the IDoc:
      After correction, reprocess the IDoc using BD87 or manually trigger the outbound IDoc again.


    Additional Information:

    • Message Class: VG (EDI subsystem)

    • Transaction Codes:

      • WE02 / WE05 - Display IDocs
      • WE19 - Test tool for IDocs
      • BD87 - Reprocess IDocs
      • WE31 - IDoc segment editor
      • WE60 - IDoc documentation
    • Notes:

      • Always ensure that the partner profile and message type configurations are correct.
      • Check if any user exits or BADIs are modifying the IDoc data and causing the field to be empty.
      • For inbound IDocs, coordinate with the sending party to ensure complete data.

    If you provide the exact field and segment names from the error message, I can help you with 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant