Вы находитесь на странице: 1из 1

6/25/2015

HowtofindBAdIswithaFunctionModule|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

HowtofindBAdIswithaFunctionModule

Store

SearchtheCommunity

Communications

Actions

Version6

createdbyVSBHARGAVMYLAVARAPUonNov23,20129:19AM,lastmodifiedbyDerekFelsheronMar9,20157:39AM

Tweet

HiAll,

AfterseeingaLotofquestionsonIdentifyingBADI.HereIwouldliketogiveasimpleandeasymethodtoIdentifya
BADI.
ManypeoplewasnotawareofObjectOrientedProgrammingastheywishtosucceedinProceduralprogramming
only.
SotheyprefernottosearchaBADIusingcommonlyknowmethodCL_EXITHANDLERandGET_INSTANCE.

ThereisonemorewaytoidentifytheBADIsinasimpleway
UsingtheFunctionModuleSXV_GET_CLIF_BY_NAME.

HowtousethisFunctionModuletoIdentifyaBADIforaTransaction.
Step1.GotoSE37anddisplaytheFunctionModuleSXV_GET_CLIF_BY_NAME.
Step2.PutabreakpointattheENDFUNCTIONoftheAbovementionedFunctionModule.
Step3.RuntheTransactionforwhichyouwanttosearchaBADI.

Note:ForeveryoperationtheCodeBreaksandFunctionModulereturnsomevaluesinitsParameters.
IntheParameterCLIFandNAME.youwillgettheBADIorExitname.

NowthequestionishowtoidentifywhetheritisaBADIorExit.Answeris,ParameterPREFIXoftheFunctionModule.
IfthisisCL_EXthenitisaBADIelseitisaExit.ExampleisshowninthebelowScreenshot.ABADIforTransaction
FPP2whenyouclickonSAVE.

HopethisdocumenthelpsOtherpeoplewhodontknowthismethodoffindingaBADI.

Regards,
VSBHARGAV.

6992Views

Topics:abapTags:badis

AverageUserRating
(45ratings)

http://scn.sap.com/docs/DOC33611

1/7

Вам также может понравиться