2
7/24/2019 1903713 - MIGO SAPSQL_ARRAY_INSERT_DUPREC - Material Document is Not Available in the Database MSEG http://slidepdf.com/reader/full/1903713-migo-sapsqlarrayinsertduprec-material-document-is-not-available 1/2 SAP Knowledge Base Article Symptom l Material Document does not exist in the database after a Goods Movement is performed and "Document ### posted" message is displayed. l  There is a offset / discrepancy of more than 1 between Material Document Interval Number (OMBT) and the latest material document available in MSEG / ACCTHD (Or any table that is causing the "SAPSQL_ARRAY_INSERT_DUPREC" runtime error) Environment l Materials Management (MM) l SAP R/3 l SAP R/3 Enterprise 4.7 l SAP ERP Core Component l SAP ERP l SAP enhancement package for SAP ERP l SAP enhancement package for SAP ERP, version for SAP HANA Reproducing the Issue 1. Create a MIGO: GR (Goods Receipt) and allow a material document to be generated. 2. Search in MSEG / MKPF table and the system respond "Document ### does not exist in calendar year ####" Cause This issue is related to the buffer of application server. When the application server experiences an abnormal shutdown, it causes a synchronization issue between the database and the application server's buffer. This can be observed by comparing the material document number in MSEG and the material document interval in OMBT. Resolution 1. Navigate to MSEG table (Or any table that is causing the " SAPSQL_ARRAY_INSERT_DUPREC" runtime error) and keep track of the latest material document number  posted. 2. Navigate to T-Code: OMBT and ensure the interval number is <latest material document number + 1>. 3. Navigate to T-Code: SNRO, Object: MATBELEG and ensure "No. of numbers in buffer " is set to 1. See Also If this issue is caused by Fiscal Year and the Runtime error: "SAPSQL_ARRAY_INSERT_DUPREC during INSERT MKPF, point of termination: SAPLMBMB, in MB_POST_DOCUMENT, Include LMBMBU04." is received, please navigate to SAP Note: 31793 to resolve your issue. Keywords find, found, update, post, GR, posting Header Data Product 1903713 - MIGO: SAPSQL_ARRAY_INSERT_DUPREC - Material Document is not available in the database / MSEG Version 5 Validity:  06.06.2014 - active Language English Released On 06.06.2014 04:02:57 Release Status Released to Customer Component MM-IM-GR-PO Goods Receipt from External Procurement Priority Normal Category Problem

1903713 - MIGO SAPSQL_ARRAY_INSERT_DUPREC - Material Document is Not Available in the Database MSEG

Embed Size (px)

Citation preview

Page 1: 1903713 - MIGO SAPSQL_ARRAY_INSERT_DUPREC - Material Document is Not Available in the Database MSEG

7/24/2019 1903713 - MIGO SAPSQL_ARRAY_INSERT_DUPREC - Material Document is Not Available in the Database MSEG

http://slidepdf.com/reader/full/1903713-migo-sapsqlarrayinsertduprec-material-document-is-not-available 1/2

SAP Knowledge Base Article 

Symptom 

l Material Document does not exist in the database after a Goods Movement is performed and "Document ### posted" message isdisplayed.

l   There is a offset / discrepancy of more than 1 between Material Document Interval Number (OMBT) and the latest material documentavailable in MSEG / ACCTHD (Or any table that is causing the "SAPSQL_ARRAY_INSERT_DUPREC" runtime error)

Environment 

l Materials Management (MM)l SAP R/3l SAP R/3 Enterprise 4.7l SAP ERP Core Componentl SAP ERPl SAP enhancement package for SAP ERPl SAP enhancement package for SAP ERP, version for SAP HANA

Reproducing the Issue 

1. Create a MIGO: GR (Goods Receipt) and allow a material document to be generated.2. Search in MSEG / MKPF table and the system respond "Document ### does not exist in calendar year ####"

Cause 

This issue is related to the buffer of application server. When the application server experiences an abnormal shutdown, it causes asynchronization issue between the database and the application server's buffer. This can be observed by comparing the material documentnumber in MSEG and the material document interval in OMBT.

Resolution 

1. Navigate to MSEG table (Or any table that is causing the "SAPSQL_ARRAY_INSERT_DUPREC" runtime error) and keep track of the

latest material document number  posted.2. Navigate to T-Code: OMBT and ensure the interval number is <latest material document number + 1>.3. Navigate to T-Code: SNRO, Object: MATBELEG and ensure "No. of numbers in buffer " is set to 1.

See Also 

If this issue is caused by Fiscal Year and the Runtime error: "SAPSQL_ARRAY_INSERT_DUPREC during INSERT MKPF, point of

termination: SAPLMBMB, in MB_POST_DOCUMENT, Include LMBMBU04." is received, please navigate to SAP Note: 31793  to resolveyour issue.

Keywords 

find, found, update, post, GR, posting

Header Data

Product

1903713 - MIGO: SAPSQL_ARRAY_INSERT_DUPREC - Material Document is not available in the database / MSEG  

Version  5 Validity: 06.06.2014 - active Language  English

Released On  06.06.2014 04:02:57

Release Status Released to CustomerComponent  MM-IM-GR-PO Goods Receipt from External Procurement

Priority  Normal

Category  Problem

Page 2: 1903713 - MIGO SAPSQL_ARRAY_INSERT_DUPREC - Material Document is Not Available in the Database MSEG

7/24/2019 1903713 - MIGO SAPSQL_ARRAY_INSERT_DUPREC - Material Document is Not Available in the Database MSEG

http://slidepdf.com/reader/full/1903713-migo-sapsqlarrayinsertduprec-material-document-is-not-available 2/2

 

Product Product Version

SAP ERP   All versions

 SAP ERP Central Component   All versions

 SAP R/3   All versions

 SAP R/3 Enterprise   All versions

 SAP enhancement package for SAP ERP   All versions

 SAP enhancement package for SAP ERP, version for SAP HANA   All versions