Professional Documents
Culture Documents
Symptom
You posted a goods movement for the outbound/inbound delivery with one of the
following Transactions: VL02 / Vl02N / VL32 / VL32N / VL06G.
Solution
Copy report ZZWASTOR specified in the corrections to the system.
Afterwards you have the option to cancel redundant material
documents which have been posted by using this report. You must
adhere to the documentation in the report.
Report ZZWASTOR only carries out a material document cancellation.
The delivery used as a basis is not updated at all (neither document
flow nor handling unit, serial numbers or delivery requirements etc.).
The report is always useful if you want to correct a stock inconsistency
later without taking the causing delivery into account again.
The correction report represents a program modification according to
Note 170183 and is not contained in the standard system.
You must first check the effects of the report in a test system!
REPORT ZZWASTOR
Delta 001
Context Block
Delete Block
Insert Block
REPORT ZZWASTOR .
*********************************************************************
* If you do not know the material document of the goods issue any *
* more you can use transaction SE16.
*
* - Type in table name MKPF
*
* - Type in the delivery note number in field XBLNR (always with *
* leading zeroes)
*
* - Execute
*
* - The Material document number of the goods issue for the deleted *
* delivery will be shown.
*
*
*
*
*
*
*
* LF_BUDAT => Posting date for the reversal
*
* LF_MJAHR => Posting year of the material document to reverse *
* LF_MBLNR => Goods issue document (with leading zeroes)
*
* LF_VBELN => Delivery note number (with leading zeroes)
*
* LF_TEST => When 'X' it is test mode only, otherwise GI will be *
*
cancelled
*
*********************************************************************
TABLES: MKPF, IMKPF, EMKPF, LIKP.
DATA: BEGIN OF IMSEG OCCURS 0.
INCLUDE STRUCTURE IMSEG.
DATA: END OF IMSEG.
DATA: BEGIN OF EMSEG OCCURS 0.
INCLUDE STRUCTURE EMSEG.
DATA: END OF EMSEG.
PARAMETERS: LF_BUDAT LIKE SY-DATLO DEFAULT SY-DATLO OBLIGATORY,
LF_MJAHR LIKE MKPF-MJAHR DEFAULT SY-DATLO(4) OBLIGATORY,
ENDLOOP.
WRITE: / EMKPF-MSGID,
EMKPF-MSGNO,
EMKPF-MSGTY,
EMKPF-MSGV1,
EMKPF-MSGV2,
EMKPF-MSGV3,
EMKPF-MSGV4.
ENDIF.
ELSE.
WRITE: / 'Material document to reverse does not exsist'.
ENDIF.
Note No - 32236
Symptom
One of the following error messages is generated when you enter a
goods movement:
M7308 'Stock value and qty are unrealistic: & / & -> see long text' & / &
M7309 'Stock value is negative: & -> see long text' &
M7310 'Valuated stock is negative: & -> see long text' &
M7314 Valuated stock becomes negative: & -> see long text
The error messages are only displayed as of Release 3.0. However, the
symptoms (negative stocks, stock inconsistencies) can appear from as
early on as Release 2.2.
The stock tables are not consistent.
Differences occurred between the material valuation and FI.
This note is release-independent.
Other terms
MMINKON
Solution
The stock postings (material documents and accounting documents)
for the material must be checked by SAP Support. This requires several
check reports which need to be imported from sapserv3, sapserv4,
sapserv5, sapserv6, or sapserv7. For this, refer to Note 13719.
Transaction SNOTES cannot be used for importing the check reports.
1) Report RM07MMFI must be present in your system. If it is not, import
it as specified in Note 198596.
2) Use Transaction SE11 to check if you have the current version of
Tables MMINKON and MMINKON_UP. In the current version, Fields
CANCEL_YR and OWNER are present in Table MMINKON_UP. If you do
not have the tables you must import them, using the following
transports, and then activate them:
For Release 3.x:
ALRK299731 under general/R3server/abap/note.0032236
For Release 4.x:
Download the packed Transport files R101087.ZIP and K101087.ZIP
which are attached to this note. Unpack the files, and import them into
your system.
If, after importing the transports, Tables MMINKON and MMINKON_UP
are not active, check whether the following data elements are active
and, if necessary, activate them manually: BWTAR_D, CHARG_D,
FELD_30, F_SPLIT, LFDNR_MM, LFYEAR, LGORT_D, MMINKON_K,
NEW_VALUE, NEW_VAL_C, OLD_VALUE,
3) Download the packed Transport files R101080.ZIP and K101080.ZIP
which are attached to this note. Unpack the files, and import them into
your system.
The files contain the following check reports:
MBFIRST, MBQUANT, MBVALUE, MBSTOCK, MBLABST, MBMISSFI,
MBFIRST, MBANEKBE, MBCKBSEG, MBENQMAT, RM07MR51,
RM07MB51, MBTRAME, RM07REUS, RM07APP1, MBSEGBSX,
RM07AUTH, RM07UPLD, MBINKON, RM07COMP, RM07HIST, LMRMIF01,
MBUPDATE, MBHIST, MBCKMI1, MBCKBSIM and MBSHOWUP.
Make sure that the current version:
'Version 00017'
has been imported into your system. Versions with the format ##/##
(for example, 10/00) are older than Version 00011. To check the
versions in your system, start Report MBFIRST for a company code. The
version will be the first thing displayed in the list output. If this is not
the case, this means you have an earlier version.
Caution:
-------Since it can sometimes be very time-consuming to analyze and correct
inconsistencies, SAP carries this out exclusively in the PRODUCTION
SYSTEM.
During the import, there may be several error messages in the
transport log due to lines that are too long (cut off at 72 characters) or
syntax errors in the programs. You can ignore these messages. The
transport has been successful if the programs with the associated
Database tables (MMINKON, MMINKON_UP) exist in the system.
************************************************************************
If you encounter problems during the import, make sure that you have
the latest transport of R/3 trans in your system.
If this is not the case, import the current R/3 trans or kernel (see Notes
60928, 126776, and the notes referred to in these notes).
************************************************************************
In general, you should not execute the reports contained in this note
yourself because the results can often be misleading!
************************************************************************
Some check reports can also make hard updates on the database,
provided that the update parameters have been set. Updates are only
executed by the SAP Support Department and SAP cannot guarantee
data consistency in the event of incorrect use. If the data
inconsistencies are caused by SAP software, only SAP Support is
authorized to change the data. If the inconsistencies are caused by the
customer, the customer can choose to have processing done by SAP
Remote Consulting. The customer has to pay for this service. If
customers choose to process inconsistencies caused by them, applying
the data inconsistency programs listed in this note, we want to
expressly point out that this action is solely the customer's
responsibility. Follow-up problems caused by this approach cannot be
processed by SAP Support but only by SAP Remote Consulting.
If you have already archived material documents or accounting
documents in your system, or if you use the aggregation of posting
lines for your stock accounts, report this to the Hotline Services as
some of the check reports are based on these documents and can no
longer be run after the documents have been archived or the posting
lines aggregated.
For more information on the corrections which might have been
implemented, refer to Note 34440.