Sunteți pe pagina 1din 3

09/06/2016 AccountassignmentinpurchasingdocumentERPSCMSCNWiki

GettingStarted Newsletters Store

Welcome,Guest Login Register SearchtheCommunity


Products Services&Support AboutSCN Downloads

Industries Training&Education Partnership DeveloperCenter

LinesofBusiness UniversityAlliances Events&Webinars Innovation

ERPSCM / / AccountAssignment

Accountassignmentinpurchasingdocument
CreatedbyGuest,lastmodifiedbyDianaDaionDec07,2015

Purpose
Thepurposeofthiswikiistoprovideanoverviewofaccountassignmentinpurchasingdocument,italsocontainsinformationaboutthecustomizingandthefunctionalities.

Overview
1.Definition.
2.Databasetable.
3.Accountassignmentcategory.
4.Customizing.
5.Functiongroups.
6.Functionmodules.
7.Specialfunctionalities.
8.Tipsandtricks.

Definition:
Specificationoftheobjects(e.g.costcenter,salesorder,project)thatarechargedinthecaseofapurchaseorderforamaterialthatisintendedfordirectusageorconsumption

Databasetable:
EKKNforpurchasingdocumentssuchaspurchaseorders,contracts...),
EBKNforpurchaserequisitions
T163Kaccountassignmentcategorycustomizing
T162Kfieldselection
T163Acombinationofitemcategoryandaccountassignmentcategory.

AccountAssignmentCategory
Theaccountassignmentcategorydetermines:

Thenatureoftheaccountassignment(costcenter,salesorder,andsoon)
Whichaccountsaretobechargedwhentheincominginvoiceorgoodsreceiptisposted
Whichaccountassignmentdatayoumustprovide

Customizing
TheaccountassignmentcategoriescanbemaintainedintransactioncodeOME9.
TableT163Kforsettingthedetailedinformation
TableT162Kforsettingthefieldselectioninformation.
Theautomaticaccountassignmentdeterminationcanbecustomizedunder:
MaterialsmanagementValuationandaccountassignmentaccountdeterminationaccountdeterminationwithoutwizardconfigureautomaticpostings

TheG/LaccountsaremaintainedundertransactionFS03:
FinancialaccountingGeneralLedgeraccountingG/LaccountsMasterrecordsG/LaccountcreationandprocessingeditG/Laccount(individualprocessing)EditG/Laccountcentrally
OneimportantcustomizingfortheG/Laccountisthefieldstatusgroupwhichisonthetabcreate/bank/interest.Ifyouhavealookinsidethemaintainedfieldstatusgroupyoucanfindmanyfieldswhich
canalsobecustomizedintheaccountassignmentcategorycustomizingfrompurchasing.Thefieldstatusfrombothcustomizingmustfittogether.
Thefieldstatusaresetupintwoplaces.
onG/Laccount(FS03display,OB14Maintain)
onaccountassignmentcategoryinpurchasing(OLME>OME9)
Bothsettingsmustfittoeachother.Ifnot,youreceiveerrormessageME045saysthatG/Laccountcannotbeused.
'Earmarkedfund'shouldneverbe'Req.EntryinG/Laccount'sfieldstatusgroupsetting.
BecausetheMIGOdocumentwillnotstore'earmarkedfund'thereforenoearmarkedfundinaccountingdocumenteither.

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 1/3
09/06/2016 AccountassignmentinpurchasingdocumentERPSCMSCNWiki

Functiongroups:
FunctionalgroupMEPO
SubroutineITEM_PROCESS_MAINcheckaccountinginformation
SubroutineMEPO_ACCOUNTINGS_PROCESSnormalchecks
SubroutineKNT_COBL_PRUFEN_OHNE_KNTCocheckswhenaccountassignmentcategoryisinitial
SubroutineFINANZMITTELdetermineFMaccountassignments
FunctiongroupMEACCTVI
Thisfunctiongroupisforaccountassignmentscreens.TheaccountassignmentscreenareusedbothinPOandPR.
Screen1000multipleaccountassignmentscreen
Screen1100singleaccountassignmentscreen
Screen1200headerscreen

Functionmodules
ME_ACOUNTING_CHECK(onlyforenjoytransactions):
Themainchecksaremadehere.ThestructureCOBLisusedtocalldifferentfunctionmodulesfromothercomponentswiththesameinterface.
Someofthesefunctionsare:
K_COBL_CHECK:FunctionthatbelongstothecomponentCOOM(OverheadCostControlling).
SD_ORDER_CHECK:FunctionthatbelongstothecomponentSDSLSGFCO(SDCOinterface).
FI_COBL_CHECK:FunctionthatbelongstothecomponentFI(Financialaccounting).
CASH_FORECAST_MM_RELEVANT:FunctionthatbelongstothecomponentTRCMCM(CashManagement).
AC_COBL_FAREA_SET:FunctionthatbelongstothecomponentFIGL(GeneralLedgerAccounting).
AMIN_ORDER_ON_ASSET_CHECK:FunctionthatbelongstoFIAAAA(AssetAccounting).
FMRE_COBL_CHECK:FunctionthatbelongstoPSMFMPOEF(PublicsectorFundsmanagement).
ME_ACCOUNT_ASSIGNMENT:
ItdeterminestheG/LaccountforprocessGBBorBSX.(eachmovementtypehasitsowntransaction/process).
WiththisfunctionmodulewepreparethedatatofinallycallthefunctionmoduleMR_ACCOUNT_ASSIGNMENTwhichdeliversthecorrectG/Laccountaccordingtothevaluemaintainedintheautomatic
G/Laccountdeterminationincustomizing(TAOMWB):
FunctionmoduleME_ACCOUNT_ASSIGNMENTisusedeachtimewhereanewG/Laccounthastobedeterminedinpurchasingapplications.
Whenchangingaccountassignmentcategory,G/LaccountwillalwaysbefilledbythenewderivedG/Laccount.IfnoG/Laccountderived,theG/Laccountfieldisinitializedinscreen.
ME_ACCOUNTING_TYPE_CHANGE:
Thisfunctionmoduleiscalledwhentheaccountassignmentcategoryischanged.AveryimportantsubroutinehereisthesubroutineCOBL_REDUCE.Inthissubroutineallfieldsareclearedwhichare
suppressedbycustomizingforthenewaccountassignmentcategory(seealsotheFAQnote496082question20).

Specialfunctionalities
Inadocument,only1COrealobjectwithmaxim3COstatisticalobjectsisallowed.Refertonote41103.ButforCOcommitmentupdating,itdoesnotmatteriftheobjectisrealorstatistical,the
determineisdoneinfunctionmoduleK_OPEN_ITEM_PO
WBSELEMENT:
FortheWBSElementwehavetodifferentvalues:theexternalpresentationandtheinternalpresentation.Theexternalpresentationwhichwillbeseenandmaintainedonthedynproisthevalueinfield
PS_POSID,theinternalnumberistheoneinfieldPS_PSP_PNR.OnlytheinternalnumberwillbesavedintableEKKN/EBKN.Therearetwofunctionmodulestoconvertthesenumbersintoeachother.
Theseare:PSPNUM_EXTERN_TO_INTERN_CONVPSPNUM_INTERN_TO_EXTERN_CONV.
Realestateobjects(IMKEY):
IfwehaveaaccountingwithreferencetoanrealestateobjectthecheckstothisrealestateobjectwillbedoneinsubroutineENCODE_IMKEYinME_ACCOUNTING_CHECK.
Assets:
WecallthefunctionmoduleAMIN_COST_OBJECTS_GETbeforewereadtableTRWPRinME_ACCOUNTING_CHECK.Thespecialityfortheassetisthatwealwaysdeterminespecialfieldsfromthe
asset.
Example:
Intheassetacostcenterismaintained>thiscostcenterwillalwaysbedeterminedfromtheassetandcannotbemaintainedmanuallyinourscreen.Ifthecostcenterischangeableinourtransaction
andischangedmanuallythesystemwillalwaysswitchthisvaluebacktotheassetcostcenter.
SDorder(thirdpartyPO):
SDcreatesapurchaserequisitionwithaccountassignmenttoasalesorder.Whensuchapurchaserequisitioniscreatedwetakeovertheordernumber(AUFNR)andsavethepurchaserequisition
withaccountingreferencetothisorder.TherestoftheaccountassignmentinformationwillbedeterminedfromSD_ORDER_CHECKinME_ACCOUNTING_CHECK.APOcanbecreatedfromthis
PREQbuttheordernumbercanneverbechanged.

WhenenterasalesordertoPOasaccountassignment,inME_ACCOUNITNG_CHECK,RWINcallsSD_ORDER_CHECK,SD_ORDER_CHECKdeterminescoblkzbws(valuationofspecialstock)for
thesalesorder,ifcoblkzbwsischanged,systemwilldeterminetheG/LaccountagainaccordingtotheIMGsettings(TransactionOVZGandOMWB)
Functionalarea
Functionalareacanbeenteredmanuallyorbederivedbysystem.
COwillinitializethefunctionalareaiffundsmanagementisnotactive.
Thismaycausesproblemifcustomeralwaysenterthefunctionalareamanually.
Note1061814willtaketheoriginalfunctionalareaifthereisnonewfunctionalareaderived.
Note1047795makesureMMpassesG/LaccounttoCO,thereforeCOwillinitializethefunctionalareaonlyifaccountassignmentdataarechanged.
Fundsmanagement/cashforecastmanagement:
UnassignedPurchasingdocument
Thefundsmanagementmustbeactivatedoncompanycodelevel.
Iffundsmanagementisactive,systemwillshowtheaccountassignmenttabonitemdetaillevelinthenewpurchasingtransactions.
OnthistabthefieldsFIPOS,FISTL,GEBER,KBLNR,KBLPOSandGRANTcanbemaintainedandwillbestoredinEKPOorEBAN.
ItisnotpossibletomaintainmultiaccountassignmentlinesandthereisnoEKKNorEBKNentryforsuchitems.

Tipsandtricks:

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 2/3
09/06/2016 AccountassignmentinpurchasingdocumentERPSCMSCNWiki
Whenyoudeletetheaccountassignmentcategoryinlineitem,allaccountassignmentsaredeletedautomatically.Youenterthenewaccountassignmentcategoryafterwards,systemwillrederivethe
accountassignmentobjectsagain.
IfyouchangetheaccountassignmentcategoryfromAdirectlytoB,systemtakesallaccountassignmentobjectsfromAasmanualentry,andderiveotheraccountassignmentobjects,afterwards
accordingtothefieldstatus'settingtodisplayorhidetheaccountassignmentobjects.ExceptionisG/Laccount.

Theaccountassignmentcategorydetermines:

Thenatureoftheaccountassignment(costcenter,salesorder,andsoon)
Whichaccountsaretobechargedwhentheincominginvoiceorgoodsreceiptisposted
Whichaccountassignmentdatayoumustprovide
mmpurgfacc mm_acc mm_pur_gf_acc mm_wiki mmpur hkok

ContactUs SAPHelpPortal
Privacy TermsofUse LegalDisclosure Copyright FollowSCN

https://wiki.scn.sap.com/wiki/display/ERPSCM/Account+assignment+in+purchasing+document 3/3

S-ar putea să vă placă și