You are on page 1of 6

GettingStarted Newsletters Store

Welcome,Guest Login Register SearchtheCommunity


Products Services&Support AboutSCN Downloads

Industries Training&Education Partnership DeveloperCenter

LinesofBusiness UniversityAlliances Events&Webinars Innovation

ERPSCM / / LogisticsInvoiceVerification

Valuation
CreatedbyGuest,lastmodifiedbyCarlaBussoloonDec03,2015

Purpose
ThepurposeofthispageistogiveanoverviewaboutValutioninInvoiceVerificationarea.

Overview
ThefollowingsectionswillexplainhowValutionprocessworksinInvoiceVerificationarea,showingsometipsthatmayhelpduringinvoicescreationandissueresolution.

WRXpostinglogic
GeneralruleforGR/IRamount(WRXamount):

Incaseofgoodsreceiptquantityisequaltotheinvoicedquantityandviceversa,theGR/IRaccountshouldbecompletelycleared.

DebuggingtipsinInvoiceVerification:

Functionmodule:MR_POSTING_GENERATE

Include:LGNB8F03

Routine:FORMRE_ZUGANG_N

WRXamountforinvoice
Example1:GRalreadyreceived

CaseA:invoicewouldpost5EURtoGR/IRaccountwiththesamelogicaswecleartheGR/IRaccountduringgoodsreceipt.thesamelogicisvalidforinvoiceswhenhittingthealreadyreceivedquantity.
Theclearingvalueinthatcase(EKBEAREWR)wouldbethesameasthevaluepostedtotheGR/IRaccount.

Purchaseorder:10PC1,00EUR/PC

GR(101):5PC

Invoice:5PC1,5EUR/PC

GR IR

Stockaccount(BSX) 5,00+ 2,50+

GR/IRaccount(WRX) 5,00 5,00+(AREWR)

Vendor 7,50

CaseB:theWRXvaluewillbe4EUR.TheinvoicewillclearWRXpartiallywithrespecttothereceiptquantityinvoicedquantity.

Purchaseorder:10PC1,00EUR/PC

GR(101):5PC

Invoice:4PC1,5EUR/PC

GR IR

Stockaccount(BSX) 5,00+ 2,00+

GR/IRaccount(WRX) 5,00 4,00+(AREWR)

Vendor 6,00

CaseC:GR/IRamountcalculatesas5EURinordertoclearthevalueforthereceived5pieces+9EUR/6fortheremaining1piece=1,5EUR.Thislogicwillgohandinhandwiththelogicduring
goodsreceipts,becausethenextgoodsreceiptwillbecalculatedbythepricefromtheinvoice.

Purchaseorder:10PC1,00EUR/PC

GR(101):5PC

Invoice:6PC1,5EUR/PC

GRGR IR

Stockaccount(BSX) 5,00+ 2,50+


GR/IRaccount(WRX) 5,00 6,50+(AREWR)

Vendor 9,00+

Example2:GRnotyetreceived

Here,quantityofsubsequentdebitishigherthanthequantitydelivered(notyetdelivered).WholeamountofsubsequentdebitispostedonWRX(becausenotyetaGR).PostingsforSubsequentCredit
arethesame,onlywithdifferentsign.

Purchaseorder:10PC1,00EUR/PC

Invoice:5PC2,00EUR/PC

IR

Stockaccount(BSX)

GR/IRaccount(WRX) 10,00+

Vendor 10,00

Example3:GRnotyetreceived

CaseA:Quantityofsubsequentdebit>quantitydelivered(notyetdelivered).WholeamountofsubsequentdebitispostedonWRX(becausenotyetaGR).PostingsforSubsequentCreditarethesame,
onlywithdifferentsign.

Purchaseorder:10PC1,00EUR/PC

Invoice:5PC1,00EUR/PC

Subsequentdebit/credit:5PC0,30EUR/PC

IR SubsequentDebit

Stockaccount(BSX)

GR/IRaccount(WRX) 5,00+ 1,50+

Vendor 5,00 1,50

CaseB:Quantityofsubsequentdebit=quantitydelivered,thereforenoWRXposting(sameifquantityofsubsequentdebit<quantitydelivered).PostingsforSubsequentCreditarethesame,onlywith
differentsign.

Purchaseorder:10PC1,00EUR/PC

GR(101):5PC

Invoice:5PC1,00EUR/PC

Subsequentdebit/credit:5PC0,30EUR/PC

GR IR SubsequentDebit

Stockaccount(BSX) 5,00+ 1,50+

GR/IRaccount(WRX) 5,00 5,00+

Vendor 5,00 1,50

CaseC:Quantityofsubsequentdebit>quantitydelivered.ThepartforwhichnotyettheGRiscreatedispostedonWRXtheotherpartonBSX.PostingsforSubsequentCreditarethesame,onlywith
differentsign.

Purchaseorder:10PC1,00EUR/PC

GR(101):5PC

Invoice:6PC1,00EUR/PC

Subsequentdebit/credit:6PC0,30EUR/PC

GR IR SubsequentDebit

Stockaccount(BSX) 5,00+ 1,50+

GR/IRaccount(WRX) 5,00 6,00+ 0,30+

Vendor 6,00 1,80

WRXamountforcancellinginvoices
DebuggingtipsinInvoiceVerification:

FunctionModuleMR_POSTING_GENERATE

Include:LGNB8F03

Routine:FORMRE01>FORMRE_STORNO_N

Example1:IRsurplusalreadyinvoicedquantityisgreaterthanalreadyreceivedquantity.

CaseA:thevaluepostedtoGR/IRaccountisonlydependentfromthecreditedquantitybutindependentfromthecreditedvalue.

Purchaseorder:10PC1,00EUR/PC
GR(101):10PC

Invoice:15PC1,5EUR/PC

Creditmemo:2PC1,5EUR/PC

GR IR CreditMemo

Stockaccount(BSX) 10,00+ 5,00+

GR/IRaccount(WRX) 10,00 17,50+ 3,00

Vendor 22,50 3,00+

CaseB:thevaluepostedtoGR/IRaccountisonlydependentfromthecreditedquantitybutindependentfromthecreditedvalue.

Purchaseorder:10PC1,00EUR/PC

Invoice1:5PC3,0EUR/PC

GR(101):10PC

Invoice2:10PC2,0EUR/PC

Creditmemo:8PC1,5EUR/PC

IR1 GR IR2 CreditMemo

Stockaccount(BSX) 20,00+ 5,00+ 4,00+

GR/IRaccount(WRX) 15,00+ 20,00 15,00+ 16,00

Vendor 15,00 20,00 12,00+

UMB:Revaluationduetostockshortage
Example:Intheinvoicethereisapricedeviationof1EUR/PCfor10PCtheseare10EUR.Thiswillbepostednormallytothestockaccount(ifthereisenoughstockcoverage).Inthepreviousperiod
wehavestill10PCinthestock,sothewhole10EURcanbepostedtoBSX.Inthecurrentperiodthestockisonly5PC.Theinvoicehasaquantityof10PC,thatmeansthatonlyapartofthevalue(50%
inthiscase)canbepostedtothestockaccount.ThereforetheBSXaccountisreducedforthecurrentperiodby5EUR.Soforthecurrentperiodthereareonly5EURwhichwerepostedtoBSX.The
other5EURispostedtotheUMBaccount.ThepostinglogicisdescribedinSAPnote402856.

Mainvalues:

Stocksituationbeforeposting:nostock(MBEWLBKUM=0,MBEWSALK3=0)

Purchaseorder:10PC10EUR/PC

GoodsReceiptinpreviousperiod:10PC

GoodsIssueincurrentperiod:5PC

IRpostedtopreviousperiod:10PC11EUR/PC

PostingDate BSX WRX UMB GBB Vendor

GR Prev.period 100EUR+ 100EUR

GI Curr.period 50EUR+ 50EUR+

IR Prev.period 10EUR+ 100EUR+ 110EUR

IR Curr.period 5EUR 5EUR+

TechnicaldetailsandDebuggingtips
FunctionGroup:GNB8

FunctionMRM_INVOICE_POST

PERFORMzeile_generieren

CALLFUNCTION'MR_STRING_DETERMINE'

CALLFUNCTION'MR_POSTING_GENERATE'

FunctionCKMV_AC_DOCUMENT_CREATE

InternaltableXACCIT:KTOSL,KOART,BUZID,HKONT,POSNR

InternaltableXACCCR:POSNR,CURTP,WAERS,WRBTR

Valuestrings
EIN+EKG+FRE:Purchaseaccountandoffsetposting
Purchaseaccountisapostingrequiredinsomecountries,asexampleFrance,SpainandItaly.Thevalueofallpurchasedgoodshastobepostedinadditionintooneaccount,thepurchaseaccount.The
lawsfortheexactvaluedodifferfromcountrytocountry.

Thecustomizingforthepurchaseaccountisdoneviathefollowingpath:

ThepurchaseaccounthastobeactivatedforthecompanycodeviaOMWOtransaction.TheflagT001XEINKisset,ifthePOaccountisactivatedforthecompanycode.Incustomizingpoint"Calculation
ofvalueforpurchaseaccount"itissetifthepurchasevalueorthestockvalueisusedforthePOaccountposting(flagT001KXEWRX).FordetailsreadSAPnotes184770and62139.Thisaccountisnot
postedifthePOhasanaccountassignment(readSAPnote128752).

IncaseofsubcontractingandpurchaseaccountreadSAPnote108844.

IffreightcostsarepostedduringtheGR,incaseofactivepurchaseaccount,anadditionalpostinglineisgenerated:FRE.InthiscasetheoffsetpostingoftheFRNispostedtoFREinsteadofPRD.Read
SAPnote184770.

Example:

Purchaseorder:10PC12EUR/PC

Standardpricematerial:10EUR/PC

Goodsreceipt:10PC

BSX WRX EIN EKG PRD

GR 10+ 12 10+ 10 2+

Stockvalue

GR 10+ 12 12+ 12 2+

Purchasevalue
KDM:ExchangeratedifferenceduringGR
ThevaluationlogictogetherwithsomeexamplesisdescribedwithinSAPnote191927.

KDMisonlypostedduringgoodsreceiptifthefieldt169pxplcuisinitialandso,KDMwillnotbepostedduringincominginvoice.

ThefieldT001ACURDTforthecompanycodewilldeterminewhichdateisrelevanttocalculatetheexchangeratedifference.So,thevalueforKDMcalculatesasdifferencebetweenGR/IRamountin
localcurrencyminustheGR/IRamountinforeigncurrency*exchangerate.

AftertheimplementationofSAPnote381900,exchangeratedifferencesareonlydeterminedduringgoodsreceiptifoneofthefollowingrequirementsisfulfilled:

Theexchangerateisfixedinthepurchaseorderanddeviatesfromtheexchangerateforthepostingdate.
Thegoodsreceiptispostedaftertheinvoicereceipt.Thismeans,thatthequantityofgoodsreceivedposteduptonowissmallerthanthepreviouslycalculatedquantity.
Inthecaseofagoodsissue,forexample,reversalorreturndelivery,thequantitytobepostedisgreaterthanthequantitystilltobecalculated.Thisensuresthatexchangeratedifferencesposted
beforeduringgoodsreceiptarealsodeterminedduringreversal.

Note:AsageneralruleKDMisperdefinitionneverpostedindocumentcurrency.

Example:

Purchaseorder:10PC10USD/PC

Localcurrency:EUR

Transactioncurrency:USD

Invoice:1PC10USD/PC(Exchangerate:1USD=2,5EUR)

Goodsreceipt:1PC(Exchangerate:1USD=2EUR)

Formula:

KDMamount=WRXamountinlocalcurrency(WRXamountintransactioncurrency*exchangerate)

KDMamount=25EUR10USD*2EUR/USD

KDMamount=5EUR

BSX WRX KDM Vendor

IR 10USD+ 10USD

25EUR+ 25EUR

GR 10USD+ 10USD

20EUR+ 25EUR 5EUR+

KDM:ExchangeratedifferenceduringIR
ThevaluationlogictogetherwithsomeexamplesisdescribedinSAPnote331910.

KDMisonlypostedduringinvoicereceiptifthefieldt169pxplcuisinitialandthematerialhasstandardpricecontrol.

ThefieldT001ACURDTforthecompanycodewilldeterminewhichdateisrelevanttocalculatetheexchangeratedifference.So,thevalueforKDMcalculatesasdifferencebetweenGR/IRamountin
localcurrencyminustheGR/IRamountinforeigncurrency*exchangerate.

Exchangeratedifferencesareonlydeterminedduringinvoicereceiptifoneofthefollowingrequirementsisfulfilled:

Theexchangerateisfixedinthepurchaseorderanddeviatesfromtheexchangerateforthepostingdate.
Theinvoicereceiptispostedafterthegoodsreceipt.Thismeansthatthequantityofgoodsreceivedposteduptonowissmallerthanthepreviouslycalculatedquantity.
Inthecaseofacreditmemo,forexample,thequantitytobepostedisgreaterthanthequantitystilltobecalculated.Thisensuresthatexchangeratedifferencespostedbeforeduringinvoicereceipt
arealsodeterminedduringreversal.

Note:AsageneralruleKDMisperdefinitionneverpostedindocumentcurrency.

Example:

Purchaseorder:10PC10USD/PC

Localcurrency:EUR

Transactioncurrency:USD

Goodsreceipt:1PC(Exchangerate:1USD=2EUR)

Invoice:1PC10USD/PC(Exchangerate:1USD=2,5EUR)

Formula:

KDMamount=WRXamountinlocalcurrency(WRXamountintransactioncurrency*exchangerate)

KDMamount=20EUR+10USD*2,50EUR/USD

KDMamount=5EUR

BSX WRX KDM Vendor

GR 10USD+ 10USD

20EUR+ 20EUR

IR 10USD+ 10USD

20EUR+ 5EUR+ 25EUR


RelatedContent
RelatedDocuments
AccountDetermination

PurchaseAccountManagement

ForeignCurrencyTranslation

RelatedSAPNotes/KBAs
SAPNote980402KDMforPOswithaccountassignment,MApricematerial

SAPNote335608Trnslnof2ndand3rdlclcrcyfm1stlcl/trnscrcy

SAPNote331910MR1M,MIRO:Postingsinforeigncurrency/localcurrency

SAPNote191927Postinglogic:GRforforeigncurrencyPO

SAPNote116250MR08/MR8M:Cancellation+exchangeratediffrnces(KDM)

mm_liv mmiv hkok

ContactUs SAPHelpPortal
Privacy TermsofUse LegalDisclosure Copyright FollowSCN

You might also like