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

Close

How To Fix VG090 - The segment sequence is incorrect.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VG - EDI Messages in SD

  • Message number: 090

  • Message text: The segment sequence is incorrect.

  • Show details Hide details
  • What causes this issue?

    A segment in the <GL:EDI>EDI</>
    <GL:Intermediate_Document>Intermediate Document</> has appeared in
    the wrong order.

    How to fix this error?

    Check the correct order using the report RSEIDOC1, and try and work out
    the cause.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VG090 - The segment sequence is incorrect. ?

    SAP Error Message:
    VG090 - The segment sequence is incorrect.


    Cause:

    The error VG090 typically occurs in SAP when the sequence of segments in a document (such as a delivery, shipment, or billing document) does not follow the expected or predefined order. SAP expects certain segments (data blocks) to appear in a specific sequence according to the business process or IDoc structure. If the sequence is violated, SAP throws this error.

    Common scenarios where this error appears include:

    • During IDoc processing, when segments arrive out of order.
    • When creating or changing delivery documents or shipments, and the system detects that the segment sequence in the document structure is inconsistent.
    • Custom developments or enhancements that manipulate document segments incorrectly.
    • Data inconsistencies or corruption in document flow.

    Solution:

    To resolve the VG090 error, consider the following steps:

    1. Check the Segment Sequence:

      • Review the document or IDoc segment sequence to ensure it follows the standard SAP sequence.
      • Use transaction codes like WE02 or WE05 to analyze IDocs and their segment order.
      • For delivery or shipment documents, check the document flow and segment structure.
    2. Correct the Data or Process:

      • If the error occurs during IDoc processing, reprocess the IDoc after correcting the segment order.
      • If custom code or user exits/enhancements are involved, review and correct the logic to maintain the correct segment sequence.
    3. Recreate or Adjust the Document:

      • Sometimes, deleting and recreating the document (e.g., delivery or shipment) can resolve inconsistencies.
      • Use standard SAP transactions to recreate the document properly.
    4. Check SAP Notes and Support:

      • Search for relevant SAP Notes that address this error in your specific SAP version.
      • Sometimes, patches or corrections are available from SAP.
    5. Consult SAP Documentation:

      • Review the documentation for the specific business process or IDoc type to understand the expected segment sequence.

    Related Information:

    • Transactions to Analyze IDocs:

      • WE02 - Display IDoc
      • WE05 - IDoc List
      • BD87 - Reprocess IDocs
    • Common IDoc Types Involved:

      • DELVRY03 (Delivery)
      • SHPMNT01 (Shipment)
      • INVOIC02 (Invoice)
    • SAP Modules:

      • Logistics Execution (LE)
      • Sales and Distribution (SD)
      • Materials Management (MM)
    • SAP Notes:

      • Check SAP Service Marketplace or SAP ONE Support Launchpad for notes related to VG090.

    Summary:

    VG090 - The segment sequence is incorrect indicates that the order of segments in a document or IDoc is not as expected by SAP. The solution involves verifying and correcting the segment order, reviewing custom code, and ensuring the document structure complies with SAP standards.

    If you provide more context (e.g., transaction, document type, or process), I can help 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'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