Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
AddingExplicitEnhancementtocustomprogram
Search
Home Trai ni ngs Qui z Ti ps Tutori al s Functi onal Cert Q's I ntervi ew Q's Jobs Testi moni al s Adverti se Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
AdobeForms
ABAPHR
ALE&IDocs
ALV
BAPI
BASIS
BSP
BusinessObjects
BusinessWorkflow
CRMNEW
LSMW
SAPScript/SmartForms
BI/BW
eXchangeInfrastructure(XI)
EnterprisePortals(EP)
eCATT
ObjectOrientedProgramming
SAPQuery
Userexits/BADIs
WebDynproforJava/ABAPTM
Others
What's New?
ABAPTestCockpitHOT
SAPABAPPragmas
UnderstandingSE32(ABAPText
ElementMaintenance)
CreatinganIDocFileonSAP
ApplicationServer
UnderstandingAdvancewith
dialogoptionofSAPWorkflow
SAPWorkflowScenario:
MaintenanceNotification
Approval
Enhancementstoastandard
class
WorkingwithFloatingFieldin
AdobeForms
InsertingdatafromInternalTable
intothestepSendMail
DisplayGLAccountlongtext
usingenhancementframework
Differencesbetween
polymorphisminJAVAand
ABAP
Passingmultilineparameters
fromanABAPClasseventtoa
Workflowcontainer
ConceptofReevaluateagents
foractiveworkitemsinSAP
Workflow
Dynamiccreationofcomponent
usageinABAPWebDynpro
AdobeForms:Displaysymbols
likecopyrightandothers
DeactivateHoldfunctionalityin
Purchaseorder(ME21N)
QuizonOOABAP
AddfieldsinFBL5NusingBADIs
TutorialonWidecasting
DefiningaRangeinModulePool
Program
Copyfieldsfromone
structure/tableintoanother
structure/table
SidePanelUsageinNWBC
StartaNursery
School
StartEarningFromFirstMonth.
LowInvestmentandHigh
Returns.
Introduction:
EnhancementFramework is the new paradigm to bring all enhancement techniques under one roof. It can also be
switched using Switch Framework. The following are different enhancement technologies available under this
framework.
JEE
Mains
Rank
Predicto
UseourJE
MainsRank
Predictor
2015and
KnowWher
YouStand.
SourceCodeEnhancement
FunctionGroupEnhancement
ClassEnhancement
KernelBADIEnhancement
SourceCodeenhancement
Whenever enhancement needs to be incorporated directly into the ABAP source code, this technology shall be
provided. Implementing this technology is also called as Source Code PlugIn. There are two types of Source Code
enhancementspossible.
Implicitenhancementoption
Explicitenhancementoption
Explicitenhancementoption
As implicit enhancements are predefined enhancements provided by SAP in the source code, the explicit
enhancementscanbeimplementedbythecustomersorpartners.
TherearetwotypesofExplicitEnhancementoptionsavailable.Forthis,wenowhavetwonewABAPstatements,viz.
1.Enhancementpoint(SyntaxENHANCEMENTPOINT)
2.Enhancementsection(SyntaxENHANCEMENTSECTION)
Enhancementsectionisusedtoreplaceasetofcodeorstatementswiththecustomer(customcode).Inthistechnique
theoriginalsourcecodedoesnotgetexecutedbut,thecustomerimplementation(customcode)getsexecuted.
NoteExplicitenhancementsthoughcanbeplacedanywhereinthesourcecodebut,notjustanywhereexceptsome
areaswhereSAPwouldallow(programallows).
STEP1:CreateapackageintransactionSE80(Objectnavigator)NameYDEV
Contribute?
Sample Specs
What's Hot?
WebDynproforABAPTutorials
JointheMailingList
Enternameandemailaddressbelow:
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Index.htm
1/3
6/12/2015
AddingExplicitEnhancementtocustomprogram
Name:
Email:
STEP2:Navigateto'Enhancements'folderofyourpackage.Package(YDEV)Enhancement.
Rightclickthe'Enhancements''Create''EnhancementSpot'.
Subscribe
Unsubscribe
GO
Fillinthedetailsinthe'CreateEnhancementSpot'dialog.
Andsaveitintocreatedpackage.Observetheenhancementspotcreatedunderthe'EnhancementSpots'folder.
STEP3:'RightClick'thespotcreatedand'Implement'it(CreateanImplementation).
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Index.htm
2/3
6/12/2015
AddingExplicitEnhancementtocustomprogram
Fillinallthedetailsinthe'CreateEnhancementImplementation'dialog.
STEP4:Now,weneedto'Activate'theenhancementspot.InadditionwiththeEnhancementspotthe'Enhancement
Implementation'willgetactivated.
Clickheretocontinue...
LimitedElectronics
Sale
ElectriyingOffersUpto50%
Off.WideRangeOfProducts.
ShopToday!
Pleasesendusyourfeedback/suggestionsatwebmaster@SAPTechnical.COM
HomeContributeAboutUsPrivacyTermsOfUseDisclaimerSafeCompanies:AdvertiseonSAPTechnical.COM|PostJobContactUs
SAPTechnical.COM.Allrightsreserved.
Allproductnamesaretrademarksoftheirrespectivecompanies.SAPTechnical.COMisinnowayaffiliatedwithSAPAG.
SAP,SAPR/3,R/3software,mySAP,ABAP,BAPI,xApps,SAPNetWeaver,andandanyotherSAPtrademarksareregisteredtrademarksofSAPAGinGermanyandinseveralothercountries.
Everyeffortismadetoensurecontentintegrity.Useinformationonthissiteatyourownrisk.
GraphicDesignbyRoundtheBendWizards
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Index.htm
3/3
6/12/2015
AddingExplicitEnhancementtocustomprogram
Search
Home Trai ni ngs Qui z Ti ps Tutori al s Functi onal Cert Q's I ntervi ew Q's Jobs Testi moni al s Adverti se Contact Us
SAP Virtual/Onsite
Trainings
Document Categories:
ABAPTM
AdobeForms
ABAPHR
ALE&IDocs
ALV
BAPI
BASIS
BSP
BusinessObjects
BusinessWorkflow
CRMNEW
LSMW
SAPScript/SmartForms
BI/BW
eXchangeInfrastructure(XI)
EnterprisePortals(EP)
eCATT
ObjectOrientedProgramming
SAPQuery
Userexits/BADIs
WebDynproforJava/ABAPTM
Others
What's New?
TrainingMaterials
Customizabletrainingmaterials
toteachsoftskillsworkshops.
1YearOnlineMBA
Rs.7500
nibmglobal.com/OnlineMBA
100%1YearOnlineMBA
Approved&AccreditedBy
&AACBE.JoinNow
TopMNCVacancie
monsterindia.com
FindtheRightJobwithMo
SubmitCVtoApply&Get
BareBonesDynam
AX
STEP 5: Here we are applying enhancements to a CUSTOM program not a standard program to demonstrate the
functionality. So we create a simple program 'YDEV_CODE' (say) it is retrieving records from the database table
'VBAK'(SalesDocumentHeader)anddisplayingafewrecords.
Now,if the customer wants to replace the set of logic with his own logic (say) like retrieving records from database
table'VBAP'(SalesDocumentItem)andthendisplayafewrecords,he/shewillcreateanenhancementsectionwhich
goeslike,
CreateaprogramYDEV_CODE.
ABAPTestCockpitHOT
SAPABAPPragmas
UnderstandingSE32(ABAPText
ElementMaintenance)
CreatinganIDocFileonSAP
ApplicationServer
UnderstandingAdvancewith
dialogoptionofSAPWorkflow
SAPWorkflowScenario:
MaintenanceNotification
Approval
Enhancementstoastandard
class
WorkingwithFloatingFieldin
AdobeForms
InsertingdatafromInternalTable
intothestepSendMail
DisplayGLAccountlongtext
usingenhancementframework
Differencesbetween
polymorphisminJAVAand
ABAP
Passingmultilineparameters
fromanABAPClasseventtoa
Workflowcontainer
ConceptofReevaluateagents
foractiveworkitemsinSAP
Workflow
Dynamiccreationofcomponent
usageinABAPWebDynpro
AdobeForms:Displaysymbols
likecopyrightandothers
DeactivateHoldfunctionalityin
Purchaseorder(ME21N)
QuizonOOABAP
AddfieldsinFBL5NusingBADIs
TutorialonWidecasting
DefiningaRangeinModulePool
Program
Copyfieldsfromone
structure/tableintoanother
structure/table
SidePanelUsageinNWBC
dynamicsaxcompanions.com
Everythingyouneedtose
DynamicsAX2012from
scratch
OnlineMongoDB
Training
easylearning.guru/MongoDBT
27+hrsofMongoDBOnlin
Training.RegisterForLiv
DemoClasses.
GetFreeMobile
Recharge
mysmartprice.com
FreeRs.20MobileRecha
Voucher.AddMySmartPr
ChromeExtension
Contribute?
Sample Specs
What's Hot?
OUTPUT
WebDynproforABAPTutorials
JointheMailingList
Enternameandemailaddressbelow:
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page2.htm
1/3
6/12/2015
AddingExplicitEnhancementtocustomprogram
Name:
Email:
Subscribe
Unsubscribe
GO
STEP6:Rightclicktheareawhichisappropriatetoapplytheenhancement
NoteExplicitenhancementsthoughcanbeplacedanywhereinthesourcecodebut,notjustanywhereexceptsome
areaswhereSAPwouldallow(programallows).
Now,inthe'CreateEnhancementOption'fillinthedetails,herefillthenameunder'Enhancementsection'only.
ThenfillintheEnhancementSpotImplementationNamewhichwecreatedearlier.
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page2.htm
2/3
6/12/2015
AddingExplicitEnhancementtocustomprogram
NowweareabletoseeprogramlineshaveEnhancementSectionEndEnhancementSection.
Note Make sure that the code which has to be replaced is within the 'ENHANCEMENTSECTION...' and 'END
ENHANCEMENTSECTION'.
Clickheretocontinue..
Mobile&Tab
DhamakaSale
ElectriyingOffersUpto55%Off
OnHandsets&Accessories.
ShopToday!
Pleasesendusyourfeedback/suggestionsatwebmaster@SAPTechnical.COM
HomeContributeAboutUsPrivacyTermsOfUseDisclaimerSafeCompanies:AdvertiseonSAPTechnical.COM|PostJobContactUs
SAPTechnical.COM.Allrightsreserved.
Allproductnamesaretrademarksoftheirrespectivecompanies.SAPTechnical.COMisinnowayaffiliatedwithSAPAG.
SAP,SAPR/3,R/3software,mySAP,ABAP,BAPI,xApps,SAPNetWeaver,andandanyotherSAPtrademarksareregisteredtrademarksofSAPAGinGermanyandinseveralothercountries.
Everyeffortismadetoensurecontentintegrity.Useinformationonthissiteatyourownrisk.
GraphicDesignbyRoundtheBendWizards
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page2.htm
3/3
6/12/2015
AddingExplicitEnhancementtocustomprogram
Search
Home Trai ni ngs Qui z Ti ps Tutori al s Functi onal Cert Q's I ntervi ew Q's Jobs Testi moni al s Adverti se Contact Us
SAP Virtual/Onsite
Trainings
LimitedElectronicsSale
shopclues.com/Electronic_Deal
Document Categories:
ABAPTM
AdobeForms
ABAPHR
ALE&IDocs
ALV
BAPI
BASIS
BSP
BusinessObjects
BusinessWorkflow
CRMNEW
LSMW
SAPScript/SmartForms
BI/BW
eXchangeInfrastructure(XI)
EnterprisePortals(EP)
eCATT
ObjectOrientedProgramming
SAPQuery
Userexits/BADIs
WebDynproforJava/ABAPTM
Others
ElectriyingOffersUpto50%Off.WideRangeOf
Products.ShopToday!
Call/SMSBasedFeatures
knowlarity.com/Appdevelopment
EnableCall/SMSBasedFeaturesCustom
SolutionsforAndroid/iOS
Training
Materials
Customizabl
training
materialsto
teachsoft
skills
workshops.
STEP7:Nowtoincludethecustomcodeintheprogramwhichwillreplacetheoriginalcode,enablethe'Enhancement
Mode'byclickingonthe'Spiral'button.
What's New?
ABAPTestCockpitHOT
SAPABAPPragmas
UnderstandingSE32(ABAPText
ElementMaintenance)
CreatinganIDocFileonSAP
ApplicationServer
UnderstandingAdvancewith
dialogoptionofSAPWorkflow
SAPWorkflowScenario:
MaintenanceNotification
Approval
Enhancementstoastandard
class
WorkingwithFloatingFieldin
AdobeForms
InsertingdatafromInternalTable
intothestepSendMail
DisplayGLAccountlongtext
usingenhancementframework
Differencesbetween
polymorphisminJAVAand
ABAP
Passingmultilineparameters
fromanABAPClasseventtoa
Workflowcontainer
ConceptofReevaluateagents
foractiveworkitemsinSAP
Workflow
Dynamiccreationofcomponent
usageinABAPWebDynpro
AdobeForms:Displaysymbols
likecopyrightandothers
DeactivateHoldfunctionalityin
Purchaseorder(ME21N)
QuizonOOABAP
AddfieldsinFBL5NusingBADIs
TutorialonWidecasting
DefiningaRangeinModulePool
Program
Copyfieldsfromone
structure/tableintoanother
structure/table
SidePanelUsageinNWBC
Contribute?
Sample Specs
Place the cursor on the 'Enhancementsection' and navigate to 'Edit' 'Enhancement Operations' 'Create
Implementation'.
Fillin the details for the 'Create Enhancement Implementation' dialog. Click on 'Create' button for the 'Select or
CreateEnhancementImplementation'dialog.
What's Hot?
WebDynproforABAPTutorials
JointheMailingList
Enternameandemailaddressbelow:
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page3.htm
1/4
6/12/2015
AddingExplicitEnhancementtocustomprogram
Name:
Email:
Subscribe
Unsubscribe
GO
STEP 8: Now, write the code within the 'ENHANCEMENT' and 'ENDENHANCEMENT' statements as the
replacementcode.
STEP9: Don't forget to 'Activate' the enhancement Switch the 'Enhancement' mode OFF and 'Activate' the
entireprogram.
STEP10:Executethetransaction/programtofindoutthedifference.
BeforeEnhancement:
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page3.htm
2/4
6/12/2015
AddingExplicitEnhancementtocustomprogram
AfterEnhancement:
Summary:
1. Here we deals with the enhancement of a 'Z' program it is possible to 'CREATE' an 'ENHANCEMENT
SECTION'. But, in case of a 'STANDARD SAP' program there are certain places (provided by SAP) like
'ENHANCEMENTPOINT...'and'ENHANCEMENTSECTION...'wherewecancreateimplementationsbased
oncustomersbusinessfunctionality.
2.Therecanbeonlyoneandonlyone'ACTIVE'implementationforan'ENHANCEMENTSECTION'.
SourceCode:
*&*
*&ReportYDEV_CODE
*&
*&*
*&
*&
*&*
REPORTYDEV_CODE.
TABLES:VBAK,VBAP.
DATA:IT_VBAKTYPESTANDARDTABLEOFVBAKINITIALSIZE0,
WA_VBAKTYPEVBAK,
IT_VBAPTYPESTANDARDTABLEOFVBAPINITIALSIZE0,
WA_VBAPTYPEVBAP.
INITIALIZATION.
REFRESH:IT_VBAK,
IT_VBAP.
CLEAR:WA_VBAK,
WA_VBAP.
STARTOFSELECTION.
ENHANCEMENTSECTIONYDEV_ENHANCE_SECTIONSPOTSYDEV_IMPLEMENT_SPOT.
SELECT*
FROMVBAP
INTOTABLEIT_VBAP[]
UPTO15ROWS.
WRITE:/02'SalesDocument',
20'Date',
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page3.htm
3/4
6/12/2015
AddingExplicitEnhancementtocustomprogram
40'Time',
65'NameofPerson'.
ULINE.
IFIT_VBAP[]ISNOTINITIAL.
LOOPATIT_VBAPINTOWA_VBAP.
WRITE:/02WA_VBAPVBELN,
20WA_VBAPPOSNR,
40WA_VBAPMATNR,
65WA_VBAPMATWA.
ENDLOOP.
ENDIF.
ENDENHANCEMENTSECTION.
*$*$Start:YDEV_ENHANCE_SECTION$*$*
ENHANCEMENT1YDEV_IMPLEMENT_ENHC_SECTION."activeversion
SELECT*
FROMVBAP
INTOTABLEIT_VBAP[]
UPTO10ROWS.
WRITE:/02'SalesDocument',
20'SalesItem',
40'MaterialNumber',
65'Materialentered'.
ULINE.
IFIT_VBAP[]ISNOTINITIAL.
LOOPATIT_VBAPINTOWA_VBAP.
WRITE:/02WA_VBAPVBELN,
20WA_VBAPPOSNR,
40WA_VBAPMATNR,
65WA_VBAPMATWA.
ENDLOOP.
ENDIF.
ENDENHANCEMENT.
*$*$End:YDEV_ENHANCE_SECTION$*$*
TopMNC
Vacancies
FindtheRightJobwithMonster.
SubmitCVtoApply&GetHired!
Pleasesendusyourfeedback/suggestionsatwebmaster@SAPTechnical.COM
HomeContributeAboutUsPrivacyTermsOfUseDisclaimerSafeCompanies:AdvertiseonSAPTechnical.COM|PostJobContactUs
SAPTechnical.COM.Allrightsreserved.
Allproductnamesaretrademarksoftheirrespectivecompanies.SAPTechnical.COMisinnowayaffiliatedwithSAPAG.
SAP,SAPR/3,R/3software,mySAP,ABAP,BAPI,xApps,SAPNetWeaver,andandanyotherSAPtrademarksareregisteredtrademarksofSAPAGinGermanyandinseveralothercountries.
Everyeffortismadetoensurecontentintegrity.Useinformationonthissiteatyourownrisk.
GraphicDesignbyRoundtheBendWizards
http://saptechnical.com/Tutorials/ExitsBADIs/Explicit/Page3.htm
4/4