How To Fix MN842 - Data record length of external file & incorrect


MN842 - Overview

  • Message type: E = Error

  • Message class: MN - Message class for subsequent settlement (Purchasing)

  • Message number: 842

  • Message text: Data record length of external file & incorrect

  • Show details Hide details
  • What causes this issue?

    External file &V1& cannot be read, due to an incorrect data record
    length.
    The data records in the file &V1& have the length &V2&, whereas the data
    records of the underlying structure 'WBONI_MCKONA_LINE' have the length
    &V3&.
    This is not allowed.

    System Response

    The external file cannot be processed.

    How to fix this error?

    Possible reasons:

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    Error during creation of file (record layout is incorrect)
    Change to structure 'WBONI_MCKONA_LINE' (e.g. change to price
    determination structure 'KOMG').
    The system tries to read a Unicode formatted file. This is not possible.
    Check the programs for compiling the external data file. If the
    structures are changed in the system, you must adapt the programs for
    creating the external data files to the new record layout.
    Make the changes. Create a data file with the correct data record
    length.
    Contact 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 MN842 - Data record length of external file & incorrect ?
    The SAP error message MN842 indicates that there is an issue with the data record length of an external file being processed. This error typically occurs during the import of data into SAP, particularly when dealing with flat files or external data sources.
    
    Cause: The error message MN842 is triggered when the length of the data records in the external file does not match the expected length defined in the SAP system. This mismatch can occur due to several reasons: Incorrect File Format: The external file may not be formatted correctly, leading to discrepancies in record length. Field Length Mismatch: The fields in the external file may not align with the expected field lengths in the SAP data structure. Delimiter Issues: If the file uses delimiters (like commas or tabs) incorrectly, it can lead to unexpected record lengths. Corrupted File: The file may be corrupted or improperly generated, resulting in unexpected data lengths.
    Configuration Issues: The configuration

    Already have an account? Login here!




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