You are on page 1of 5

15/12/2015

BAdIsforMRP|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Store

SearchtheCommunity

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Communications

Actions

SAPERPManufacturingProductionPlanning(SAPPP)

BAdIsforMRP
PostedbyCaetanoAlmeidainSAPERPManufacturingProductionPlanning(SAPPP)on12Aug2013
14:32:07
Share

Tweet

Like

MRPisaveryflexibletoolwithlotsofcustomizingsettingsandmasterdatasettings,however,sometimesisnot
possibletoachievesomebusinessrequirementsusingonlystandardcustomizingandmasterdatasettings.

Forthatreason,someBAdIswereintroducedonthestandardprograms,toallowthecustomerstouseacustomlogic
onthestandardMRP.

IfyouarefacinganyproblemwithaBAdIimplementation,takealookonnote2012620wherethefrequentissueswith
BAdIsonMRParedescribed.

BelowyouwillfindalistofthemostimportantandusefulBAdIsonMRP:

MD_CHANGE_MRP_DATA:Inmyopinion,itisthemostimportantBAdIonMRP.Itallowsyoutochangeany
MRPelementduringtheMRPoronMD04transaction.ThemostcommonuseistomakeanMRPelementnot
relevantforMRPbutitcanbealsousedforanotherchanges,suchaschangesinquantities,forexample.You
canfindanexampleofimplmenentationonthedocument MakinganelementnotrelevanttoMRPusingBAdI
MD_CHANGE_MRP_DATA.
MD_SUBCONT_LOGIC:ThisBAdIisusedtoactivatetheoldsubcontractinglogicwhichwasuseduntilrelease
release3.1I.Allsubcontractingstocksandrequirementsaremanagedinthenetsegment,whichmeans

thattherearenoseparatesubcontractingsegments.Seealsonote1927160.
MD_ADD_ELEMENTS:WiththisBAdIispossibletoincludeanewuserdefinedMRPelement.
MD_DISPLAY_ELEMENT:AllowsyoutochangethedisplayofanMRPelement.
MD_MRP_PARAMETERS:WiththisBAdIispossibletochangethesettingsfrommaterialmaster,customizingor
evenquotaarrangementforanspecificmaterial,beforetheMRPrunorinMD04,forexample.
MD_ADD_COL_EZPS:WiththisBAdIit'spossibletoincludeadditionalcolumnsontheMRPevaluation
transactions(MD04,forexample).
MD_PURREQ_CHANGEandMD_PLDORD_CHANGE:Canbeusedforfillandchangefieldsofpurchase
requisitionsandplannedorderscreated,changedordeletedduringtheMRPrun.
MD_PURREQ_POSTandMD_PLDORD_POST:Canbeusedforadditionalactionsafterthepurchase
requisitionandplannedorderchanges,suchassavinginformationonacustomtableoraworkflos.Shouldnot
beusedforchangingtheorderitself.
MD_MODIFY_SOURCE:ThisBAdiallowsyoutodefineyourownlogicforthesourcedeterminationduringthe
MRPrun.
MD_MODIFY_PRODVERS:ThisBAdiallowsyoutodefineyourownlogicfortheproductionversionselection.
MD_PLDORD_SCHEDULING:WiththisBAdIyoucanchangetheschedulingparametersforplannedorders
beforeschedulingiscalled.
MD_STOCK_TRANSFER:ThisBAdIallowsyoutochangetherequirementdatesoftherequirementsofstock
transferprocurementproposalintheissuingplant.
MD_EXT_SUP:Onthestandardsystem,thereisnodeterminationoftheissuingstoragelocationforstock
transfers,however,itispossibletocreateyourownlogictoselecttheissuingstoragelocationforstocktransfers
usingthisBAdI.YoucanfindmoreinformationaboutMD_EXT_SUPonnote1783556andonwiki
http://wiki.scn.sap.com/wiki/x/qgQbF
MD_CHANGE_CALENDAR:ThisBAdIcanbeusedtouseadifferentcalendarforthesafetytimeandthe
evaluationsoftherangeofcoveragedata,insteadofthefactorycalendar.
MD_EXCLUDE_MATERIAL:Canbeusedtoshowatabwith"AdditionalSelections"ontheinitialscreenof
transactionsMD06andMD07whereyoucanaddyourownfieldstorestricttheselection.
MD_LAST_LOT_EXACT:Allowsyoutouseyourownlogictocalculatthelastlotonasalesorprojectindividual
stocks.
MD_MRP_LIST:WiththisBAdIyoucanprocessdatafromtheMRPlistofamaterialduringpostinginthe
planningrun.ItallowsyoutoevaluatetheMRPdataimmediatelyaftertheplanningrunandtriggerfollowup
actions,however,youcannotchangetheMRPdata.

http://scn.sap.com/community/erp/manufacturingpp/blog/2013/08/12/badisformrp

1/5

15/12/2015

BAdIsforMRP|SCN

MD_INTERACT_PLANNING:WiththisBAdIit'spossibletocontrolisusersareallowedtochangeMRPelements
intheresultsdisplayoftheplanningtransactionsforamaterial(suchasMD02).
MD_SET_TRAFFIC_LIGHTS_DS:WiththisBAdIyoucandefineyourownlimitvaluesfortherangeofcoverage
evaluationforcertainmaterials.Seenote1587375formoredetails.
MD_PURREQ_REL_STRAT:ThisBAdIcanbeusedtodeactivatethereleasestrategyforpurchaserequisitions
generatedbyMRP.
MD_CREATE_GROUPING:YoucanusethisBAdItodefineacustomerspecificgroupingofmaterialsforthe
currentstock/requirementslist.
MD_MRP_RUN_PARALLEL:Canbeusedtoadjustthenumberofmaterialswhichareassignedtoaprocessfor
eachplanningpackagewhenrunningparallelMRP.Thatway,itispossibletoachieveamoreuniformutilization
ofthetaskswhenthereareextremelydifferentruntimeoftheindividualapplicationserversorofthetasks.
MD_ADAPT_DISTRIBUTION:ThisBAdIwasdeliveredtoinfluencethestart/enddateandthefactorycalendar
usedforthedistributionofquantitiesontheMRPtransactions,whenusingadistributionkey.

YoumustbeverycarefulwhenimplementinganyoftheseBAdIs,sincegenerallythereisnotcheckaftertheBAdI
executionanditispossibletomakedeepchangesontheMRPstandardlogic.

InordertofindacompletelistoftheBAdIsavailableforMRP,justlookforBAdIsstartingwithMDontransactionSE18.

ItispossibletoknowifaBAdIisactivebytheindicator"BAdIActive"ontransactionsMD04andMD05.

YoucanalsofindthecompletelistofavailableMRPBAdIsandmoreinformationabouteachBAdIonSPRO,onthe
followingpath:

ProductionMaterialRequirementsPlanningBusinessAddInsforRequirementsPlanning

BR

Caetano

11747Views
Products:sap_erp_manufacturing_production_planningTopics:abap,enterprise_resource_planningTags:badi,material,mm,
mrp,material_management,md04,production_planning,er,md01,md02,md03,material_requirements_planning,mdbt,
consumption_based_planning

http://scn.sap.com/community/erp/manufacturingpp/blog/2013/08/12/badisformrp

2/5

15/12/2015

BAdIsforMRP|SCN

AverageUserRating
(24ratings)

Share

Tweet

Like

20Comments
JelenaPerfiljeva12Aug201319:38

PleaseaddABAPtag,sothatitshowsupintheABAPspacetoo.Thankyou!
Like(1)

CaetanoAlmeida12Aug201322:59(inresponsetoJelenaPerfiljeva)

HelloJelena

TheBAdItagwasalreadyincludedontheblog.

BR

Caetano
Like(0)

JelenaPerfiljeva12Aug201323:04(inresponsetoCaetanoAlmeida)

NotBADIABAP.IfyoutagitwithABAP,itwillalsoappearinthe
onSCN.

ABAPspace
Like(1)

CaetanoAlmeida12Aug201323:15(inresponsetoJelenaPerfiljeva)

ABAPtagadded.Thaksforthetip.
Like(0)

KumarS13Aug201300:45

Thanksforsharing
Like(1)

SharatSugur27Aug201319:12

Goodblog,thislistreallyhelps.Thankyou.
Like(1)

RiteshDube03Sep201309:29

CaetanoAlmeida,

GoodBlog,Thanksforsharing.

Ritesh
Like(1)

MandarNarkar17Sep201315:23

HiAlmeda,

ItwillbegreatifyoucanprovidetwothreesimplebusinessexamplesoneachoftheBADi
Maybeyoucanwriteanotherblogwithexampleselaboratingthesame.

Thanksforsharingthistoo.

Regards,
Mandar.
Like(1)

RaphaeldaSilva29Nov201318:03

HiCaetano,

http://scn.sap.com/community/erp/manufacturingpp/blog/2013/08/12/badisformrp

3/5

15/12/2015

BAdIsforMRP|SCN
Thanksforsummarizingthisimportantinformation!

Bestregards,
Raphael
Like(1)

GeorgeRessos13Dec201311:06

Verygoodsummazization,

thankyou
Like(1)

AdityaS13Dec201315:45

HelloCaetano,

GreatcompilationofMRPRelatedBADIs.Thanksforsharingthesametoall.
Like(1)

VishalSood13Dec201319:21

HelloCaetano,

Helpful!!!!

ThanksandRegards
Like(1)

CaetanoAlmeida24Dec201313:33(inresponsetoVishalSood)

Thankyouallforthefeedback!
Like(0)

MarianoCabalen13Oct201412:28

HiCaetano,
VeryHelpfuldocument!!
Thanksalot.
Like(1)

UmeshMali13Oct201412:32

Itsveryhelpfuldocument,,
Pleasekeepsharingyourknowledge
Like(1)

CaetanoAlmeida13Oct201413:37(inresponsetoUmeshMali)

HiUmeshandMariano

Thankyoubothforthefeedback!

BR
Caetano
Like(0)

VijayChavan12Jun201508:58

Hi,

IamgettingdifferentscreenofMD04/MD05,couldyouhelpmetogetthesamescreenasinformed
above.
Like(0)

CaetanoAlmeida12Jun201518:41(inresponsetoVijayChavan)

HelloVijay

Pleaseopenanewthreadwithyourquestions.

BR
Caetano
Like(0)

AndrasBabi07Dec201517:21

http://scn.sap.com/community/erp/manufacturingpp/blog/2013/08/12/badisformrp

4/5

15/12/2015

BAdIsforMRP|SCN
Caetano,

IsitpossibletoEXCLUDEtheavailablequantity(availablestockforMRP)foragivenmaterial,
howeveratthesametimenottoexcludethematerialfromplanninginMF50?

Imentionthis,asthisresultisnotpossiblebyusingMMSC,inmyopinion.

Regards,

Andras
Like(0)

CaetanoAlmeida08Dec201510:54(inresponsetoAndrasBabi)

Hello

IhavenevertestedonMF50,butonMD04Iknowthatitispossible.Trytomakethesame
changedproposedon MakinganelementnotrelevanttoMRPorMD04usingBAdI
MD_CHANGE_MRP_DATA.

BR
Caetano
Like(0)

SiteIndex
Privacy

ContactUs
TermsofUse

SAPHelpPortal
LegalDisclosure

Copyright

http://scn.sap.com/community/erp/manufacturingpp/blog/2013/08/12/badisformrp

FollowSCN

5/5

You might also like