Correcting the -Ve Valuated Stock by Cancelling Material Document

Embed Size (px)

Citation preview

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    1/7

    Note No – 424414

    Symptom• You posted a goods movement for the outbound/inbound delivery with one of the

    following Transactions: VL02 / Vl02N / VL 2 / VL 2N / VL0!"#

    In this case the material document was mistakenly postedseveral times. Cancelling with Transaction VL09 is not successful or isnot wanted since the business process has already been completed.

    owever! you want to correct the stock inconsistency.• You posted a goods movement for an outbound/inbound delivery# $fter this% the

    delivery was deleted although this error would have had to be caught by thesystem# Now you want to cancel the material document later# &owever% this is no

    longer possible with Transaction VL0'#

    Additional key words

    "I! goods issue! cancellation! ##$%&T'(! VL09

    Cause and prerequisites

    The inconsistencies are caused in customer modi)cations! for e*ample!when user e*its are incorrectly used in program +V,0%-# but also

    system errors may occur which cannot be e*plained.

    Solution

    Copy report ##$%&T'( speci)ed in the corrections to the system.%fterwards you have the option to cancel redundant materialdocuments which have been posted by using this report. /ou mustadhere to the documentation in the report.(eport ##$%&T'( only carries out a material document cancellation.

    The delivery used as a basis is not updated at all neither document1ow nor handling unit! serial numbers or delivery re2uirements etc.3.

    The report is always useful if you want to correct a stock inconsistencylater without taking the causing delivery into account again.

    The correction report represents a program modi)cation according to4ote 50 67 and is not contained in the standard system.

    /ou must )rst check the e8ects of the report in a test system

    Source code corrections

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    2/7

    Run the following report to cancel the erroneous materialdocuments after correcting table T160 by referringfollowing note !""!6 #

    REPORT ZZWASTOR

    Delta 001

    Context Block

    Delete Block

    Insert Block

    (:;'(T ##$%&T'( .

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    3/7

    L- +AL4( LI?: +?;->+AL4( 'ALI"%T'(/! L- VA:L4 LI?: LI?;>VA:L4 'ALI"%T'(/! L- T:&T T/;: C E:-%DLT @ .

    E%T%J +AL;' LI?: +&:">#:IL:.

    &:L:CT &I4"L: < -('+ +?;- $ :(: +AL4( F L- +AL4( %4E +H% ( F L- +H% ( %4E @AL4( F L- VA:L4.

    I- &/>&DA(C I& I4ITI%L. C%LL -D4CTI'4 +A C%4C:L "''E& +'V:+:4T :@;'(TI4" ADE%T F L- ADE%T +AL4( F L- +AL4( +AL;' F +AL;' +H% ( F L- +H% ( TC'E: F VL09 C%LL:E A/ F VL09

    I+;'(TI4" :+?;- F :+?;- T%AL:& :+&:" F :+&:" I+&:" F I+&:" :@C:;TI'4& 'T :(& F .

    &DA(C : . I- L- T:&T I& I4ITI%L. C%LL -D4CTI'4 +A ;'&T "''E& +'V:+:4T :@;'(TI4"

    @AL4( &E F L- VA:L4 I+;'(TI4" :+?;- F :+?;- :@C:;TI'4& 'T :(& F 0.

    C'++IT $'(?. $(IT:J M "oods movement was cancelled successfully with documentJ ! :+?;->+AL4(. :L&:. $(IT:J M TestmodeJ "oods movement could be cancelled . :4EI-. :L&:.log L''; %T :+&:". $(IT:J M :+&:">+&"IE! :+&:">+&"4'! :+&:">+&"T/! :+&:">+&"V ! :+&:">+&"VN! :+&:">+&"V7! :+&:">+&"VK.

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    4/7

    :4EL'';. $(IT:J M :+?;->+&"IE! :+?;->+&"4'! :+?;->+&"T/! :+?;->+&"V ! :+?;->+&"VN!

    :+?;->+&"V7! :+?;->+&"VK.

    :4EI-.:L&:. $(IT:J M +aterial document to reverse does not e*sist .:4EI-.

    Note No - 32236

    Symptom

    'ne of the following error messages is generated when you enter agoods movementJ

    • () 0* +,toc- value and .ty are unrealistic: / 1 see long te t+ /

    • () 0' +,toc- value is negative: 1 see long te t+

    • () 30 +Valuated stoc- is negative: 1 see long te t+

    • () 34 Valuated stoc- becomes negative: 1 see long te t

    The error messages are only displayed as of (elease 7.0. owever! thesymptoms negative stocks! stock inconsistencies3 can appear from asearly on as (elease N.N.

    The stock tables are not consistent.Ei8erences occurred between the material valuation and -I.

    This note is release>independent.

    $ther terms

    ++I4?'4

    Reason and %rerequisites

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    5/7

    These messages are generated if the system )nds a data inconsistencywhen reading material master data! that is! the stock 2uantity or thestock value are inconsistent even before the goods movement.

    /ou have inconsistencies in your tables! for e*ample! if you comparethe stock 2uantity in the stock overview taking into account all

    valuated stocks3 with the stock in the accounting view of the materialmaster. /ou get di8erences with (eport (+05++-I.

    Solution

    The stock postings material documents and accounting documents3for the material must be checked by &%; &upport. This re2uires severalcheck reports which need to be imported from sapserv7! sapservK!sapserv,! sapserv=! or sapserv5. -or this! refer to 4ote 75 9.

    Transaction &4'T:& cannot be used for importing the check reports.3 (eport (+05++-I must be present in your system. If it is not! import

    it as speci)ed in 4ote 96,9=.N3 Dse Transaction &: to check if you have the current version of

    Tables ++I4?'4 and ++I4?'4 D;. In the current version! -ieldsC%4C:L /( and '$4:( are present in Table ++I4?'4 D;. If you donot have the tables you must import them! using the followingtransports! and then activate themJ-or (elease 7.*J %L(?N9957 under generalM(7serverMabapMnote.007NN7=-or (elease K.*JEownload the packed Transport )les ( 0 065.#I; and ? 0 065.#I;which are attached to this note. Dnpack the )les! and import them intoyour system.If! after importing the transports! Tables ++I4?'4 and ++I4?'4 D;are not active! check whether the following data elements are activeand! if necessary! activate them manuallyJ A$T%( E! C %(" E!-:LE 70! - &;LIT! L-E4( ++! L-/:%(! L"'(T E! ++I4?'4 ?!4:$ V%LD:! 4:$ V%L C! 'LE V%LD:!73 Eownload the packed Transport )les ( 0 060.#I; and ? 0 060.#I;which are attached to this note. Dnpack the )les! and import them intoyour system.

    The )les contain the following check reportsJ+A-I(&T! +A D%4T! +AV%LD:! +A&T'C?! +AL%A&T! +A+I&&-I!+A-I(&T! +A%4:?A:! +AC?A&:"! +A:4 +%T! (+05+(, !(+05+A, ! +AT(%+:! (+05(:D&! (+05%;; ! +A&:"A&@!(+05%DT ! (+05D;LE! +AI4?'4! (+05C'+;! (+05 I&T! L+(+I-0 !+AD;E%T:! +A I&T! +AC?+I ! +AC?A&I+ and +A& '$D;.+ake sure that the current versionJ Version 000 5

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    6/7

    has been imported into your system. Versions with the format OOMOOfor e*ample! 0M003 are older than Version 000 . To check the

    versions in your system! start (eport +A-I(&T for a company code. Theversion will be the )rst thing displayed in the list output. If this is notthe case! this means you have an earlier version.

    CautionJ>>>>>>>>&ince it can sometimes be very time>consuming to analyBe and correctinconsistencies! &%; carries this out e*clusively in the ;('EDCTI'4&/&T:+.Euring the import! there may be several error messages in thetransport log due to lines that are too long cut o8 at 5N characters3 orsynta* errors in the programs. /ou can ignore these messages. Thetransport has been successful if the programs with the associatedEatabase tables ++I4?'4! ++I4?'4 D;3 e*ist in the system.

  • 8/17/2019 Correcting the -Ve Valuated Stock by Cancelling Material Document

    7/7

    &e recommend that you do not enter any more mo'ements forthis material# (owe'er) if this cannot be a'oided) then theerror message can be issued as a warning message# To do this)you ha'e to make an entry for the respecti'e error message inTable T160 # *f you make an entry in Table T160 and then

    carry out the +absolutely necessary+ material mo'ement) youha'e to delete the entry in Table T160 again#

    ,-ample./ersion Ap sg Cat essage te-t00 !0 Stock 'alue and qty are unrealistic. 2 3 2

    4ear in mind that the +Cat#+ column must be empty# The'ersion is 00 in the standard system) but can be de5ned userspeci5cally with %arameter *7 S/#