2022-05-27 1856641
1856641 – Material document shows “Archived” in
document flow.
Version 13 Type SAP Knowledge Base Article
Language Inglés Master Language Inglés
Release Status Released to Customer Category Problem
Component LE-SHP-GI (Goods Issue) Released On 04.10.2021
Please find the original document at https://launchpad.support.sap.com/#/notes/1856641
Symptom
GI (goods issue) / GR (goods receipt) document shows “Archived” status in document flow, although it
wasn’t actually archived it.
•
Not possible to display the GI / GR document from document flow. Error message M7 062 (Document
does not exist in calendar year ****).
•
After posting GI / GR, material document is not generated. There is no movement posted in MM-IM.
Stock remains unchanged.
•
• After posting GI / GR, stock (IM / WM) is not changed (reduced / increased).
GI / GR document doesn’t exist. It can be neither displayed it in tcode MB03 nor found it in table MKPF
and MSEG.
•
Not possible to cancel “Archived” material document. GI / GR cannot be canceled in tcode VL09
because of error VL 622.
•
Delivery has goods movement status (VBUK-WBSTK, VBUP-WBSTA) ‘C’ (complete). However, the
stock is not moved. Goods movement hasn’t happened.
•
VBFA table contains a GI / GR document (VBFA-VBTYP_n = ‘R’ ), which doesn’t exist in table MKPF
and MSEG.
•
VL09 -> get error Message no. VL 622
“No material document could be found for cancellation”
•
“Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to
real data is purely coincidental.”
Environment
• Sales And Distribution (SD)
• Logistics Execution (LE)
• Materials Management (MM)
• SAP ERP Central Component
• SAP ERP
• SAP enhancement package for SAP ERP
• SAP enhancement package for SAP ERP, version for SAP HANA
© 2022 SAP SE or an SAP affiliate company. All rights reserved 1 of
4
2022-05-27 1856641
• SAP S/4HANA
Cause
Why is material document displayed as “Archived” in document flow?
If the material document doesn’t exist in MKPF (material document header) table, system will
display it as “Archived”.
○
“Archived” doesn’t really mean that it’s archived. It means that the material document doesn’t
exist.
○
○ This is an inconsistency across LE-SHP (VBFA table) and MM-IM (MKPF table).
Generally, there are two possible reasons why material document is gone.
The material document has actually been archived. This is normal for very old documents. In
case the material document has been archived, the delivery should not be changed any more.
Then, please check with business user about what to do for the next step.
•
• The material document has never been generated. This is an inconsistency.
Why is material document NOT created when posting GI / GR? What’s the root cause of this
inconsistency?
Usually, this problem is caused by customer coding. Please check whether if there is any
userexit in delivery processing and material document posting. If so, please check whether there
is any COMMIT work or ROLLBACK in your coding.
•
Please check whether there was any update termination (tcode SM13) or short dumps (tcode
ST22) when GR was posted.
•
To find out the exact root cause, it’s necessary to have a reproducible example. If this
inconsistency can be reproduced, please create a SAP message.
•
Resolution
• How to check the inconsistency:
Run tcode SE16 to display table VBFA with selection fields:
VBELV = delivery number
VBTYP_n = ‘R’ (upper case)
Run tcode SE16 to display table MKPF with selection fields:
MBLNR = material document number (VBFA-VBELN selected in step 1)
MJAHR = material document year (VBFA-MJAHR selected in step 1)- Run tcode SE16 to display table MSEG with the same selection fields as step 2.
- If nothing can be selected in MKPF and MSEG, this is the inconsistency.
• How to fix the inconsistency: - Create a correction report as in attachment (ZZRB_VBFA_NO_GI_DOC_5).
Run tcode SE38 / SA38. Execute the correction report ZZRB_VBFA_NO_GI_DOC_5 to delete
the non-existing material document from document flow (VBFA table).
Input the parameters as below:
DELIVERY -> delivery number
MATDOC -> material document number (the one to be deleted)
MATYEAR -> material document year (find the value from VBFA-MJAHR)
© 2022 SAP SE or an SAP affiliate company. All rights reserved 2 of
4
2022-05-27 1856641
If there is batch split in the delivery, it is needed to delete the “Confirmation of service” from
VBFA as well. Please execute step3 for the “Confirmation of service”.- Execute report RVDELSTA to reset delivery status.
After step 4 the dummy material document will be removed from document flow. The delivery’s goods
movement status will be reset.
• CAUTION:
Please DONOT use this report, if the material document has really been archived! Please
check with your business team about whether there has been any archiving job for this
material document.
•
Please test all the reports in quality/development system first before executing it in
production system.
•
This correction report is just a workaround for inconsistency correction. It’s just for your
reference.
•
• Please contact SAP support if there is any questions about the inconsistency.
See Also
To prevent the inconsistency from happening, please:
- Execute report RVDELSTA to reset delivery status.
- Check if the note 1776807 is already implemented in your system. If not, please implement it.
Furthermore create the new form routine USER_EXIT_EARLY_UNLOCK_MM at the end of the include
MV50AFZ1 to set the changing parameter CP_EARLY_UNL to X.
Keywords
“Material document”, archive, “document flow”, goods issue receipt, GI, GR, M7 062, VL 622, WBSTK,
VBFA, MKPF, MSEG, VL09, VL02N, VL03N, VA03, VA02, archieved, PGIed, sales order, SARA, SARI,
© 2022 SAP SE or an SAP affiliate company. All rights reserved 3 of
4
2022-05-27 1856641
MM_MATBEL, MIGO, display, VBFA, update termination, SM13, dump, ST22, “Beleg & ist im Kalenderjahr &
nicht vorhanden”, “Document & does not exist in calendar year &”, “Kein Materialbeleg gefunden, der
storniert werden kann”, “No material document could be found for cancellation”, “
ZZRB_VBFA_NO_GI_DOC_5″, ECC.
Products
SAP ERP Central Component all versions
SAP ERP all versions
SAP S/4HANA all versions
SAP enhancement package for SAP ERP all versions
SAP enhancement package for SAP ERP, version for SAP HANA all versions
Other Components
Component Descripción
MM-IM-GF Basic Functions
MM-IM-GR Goods Receipt
MM-IM-GI Goods Issue and Return Delivery
This document refers to
SAP Note/KBA Title
1776807 Performance improvement for WT parallel processing
Attachments
File Name File Size Mime Type
ZZRB_VBFA_NO_GI_DOC_5.txt 4 text/plain
Terms of use | Copyright | Trademark | Legal Disclosure | Privacy
© 2022 SAP SE or an SAP affiliate company. All rights reserved 4 of
4
No responses yet