You are on page 1of 25

HowisanABAPprogramwithseveraldialogstepsexecuted?

Theprogramisalwaysexecutedinjustonedialogworkprocesswithroll
out
Theprogramisalwaysexecutedinjustonedialogworkprocesswithout
rollout
TheABAPdispatchertakesovertheentireexecutionwithoutassigning
anyworkprocess.
Usuallydialogstepsareassignedtodifferentdialogworkprocess
WhendoyouneedtousetheGROUPBYclauseintheSELECTstatement?

Ifyouwanttouseaggregatefunctionsandallcomponentsinthefieldslist
areaggregatefunctions
Ifyouwanttoredefinethesequenceofthecolumnsintheresultset
Ifyouwanttouseaggregatefunctionsandatleastonecomponentinthe
fieldlistisacolumnidentifier
IfyouwanttouseORDERBYtospecifyasuborder
Whatfeatureareprovidebythedatabseinterface?
Note:3ans
Sytaxcheckof"native"SQLcommands
ConversionofOpenSQLstatementsfromABAPstatementsintothe
correspondingdatabsestatements.
AccesstoSAPtablebuffers.
Databseindependenceofapplicationprograms
Dataconsistencycheckusingforeginkeyrelationships

Inwhichmodularizationunitscanyouuseparameters?
note:3Ans
Subroutines
Functionmodule
Methods
DialogmodulessuchasPBOmodules
EventBlockssuchasSTARTOFSELECTION
Whichboundaryconditionsleadtoimprovedaccesstimetoaninternaltable?
note:3ans
Indexaccessforhashedtables
Fullyqualifiedkeyforsortedtables
LeftJustifiedpartofkeyforsortedtables
Indexaccessforstandardtables
Leftjustifiedpartofkeyforhashedtables
Whathappenwhenanauthorizationcheckfails?
Theprogramisterminated
ACX_AUTH_FAILEDtypeexceptionisraised
AtypeEmessageisdisplayed
ThesystemfieldSY_SUBRCissettoavalueotherthanzero

whenanalyzingaprogram,whichtaskscanyouperformusingthecodeinspector?
Discoverunusedvariables
Determineuseddatabasetables.
Evaluatethetimeneededforprogramexecution.
Inspectthememoryconsumption
SearchforABAPStatements
TowhichABAPDictionarydefinitioncanyouassignfixedvalues?
Componentofastructure
Domain
Dataelement
Fieldofatransparenttable
Howcanyoumaintaindocumentationforinputfieldsonyourscreen?
note:2ans
DefineTexttablesfortheunderlyingstructure
Adddocumentationtotheunderlyingdataelement.
UsePROCESSONHELP_REQUEST(POH)
AddDocumnetationtotheSCREENtableatPROCESSBEFOUR
OUTPUT
WhichABAPstatementusingthelocaltypegty_1correctlydefinesadataobject?
DATAgv_1TYPEgty_1DEFAULT'1'.
DATAgv_1TYPEgty_1VALUE'1'.
CONSTANTSgc_1TYPEgty_1.
DATAgv_1LIKEgty_1.

AcustomerchangesthacodeofastanderdSAPABAPprogram.
Howdoyoucallthisaction?
Correction
Customizing
Modification
Personalization
Whatcanyoudousingtheclassbuilder?
note:3ans
Redesignclassesandinterfacesusingtherefactoringassistant.
Convertmethodstofunctionmodules
Importclassicalscreensfromyourprogram
TestClassesinasimulatedruntimeenvironment
Improtlocalclassesandlocalinterfacesfromyourprogram
whichofthefollowingdataobjectsarecalled"deep"?
Note:3ans
Structurescontainingonlynumbericcomponents
TypeFelementaryvariables
Referencevariables
STRINGtypeelementaryvariables
Internaltables

whatcanyouenhanceusingBAdIs?
note3ans
Screens
Databasetables
Dataelements
SouceCode
Menus
Youhavecreatedaclassicalscreen(dynpro)with5radiobuttons.
Howdoyouensurethatonlyoneradiobuttonisselectedatatime?
Combineallradiobuttonsintoaradiobuttongroup.
Encloseallradiobuttonsinaframe

Assignethesamevaluetothesamemodificationgroupofallradiobuttons
Assignethesamefunctionscodetoallradiobuttons
Whichofthefollowingdataobjectsarecalled"deep"?
note:3ans
TypeFelementaryvariables
Structurescontainingonlynumericcomponents
Referencevariables
InternalTables
STRINGtypeelementaryvariables

Whatismandatoryforautomaticdatatransportbetweenavariableandaninput
fieldonaclassicalscreen(dynpro)?
ThevariablemustbedeclaredusingtheTABLESstatement
Thenameofthevariableandthenameoftheinputfieldmustbeidentical
ThevariablemustbedeclaredusingtheDATAstatement
ThepropertyOUTPUToftheinputfieldmustbeset.
Whatcanyouusetoachivepolymorphism?
note:2ans
Events
Interfaces
Inheritance
Friends

Youhavedefinedaclassicalscreen(dynpro)withmandatoryinputfields.Youwant
toexitthescreenusingtheCancelbuttonevenifnotallofthemandatoryfields
havebeenfilled.
Whatisnecessarytoachievethis?
DefinethefunctioncodeassignedtotheCancelbuttonastypeEand
handleitinamodulewiththeadditionATEXITCOMMAND.
UsetheLOOPATSCREEN....ENDLOOPstatementtosetthe"required"
propertyoftheinputfieldtozero.
SetthefunctioncodeassignedtothecancelbuttontoCANCEL
SetthefunctiontypeassignedtothecancelbuttontoS.

Youwanttostartamodulepool.
Whatdoyouneedtocreate?
OOtransaction
Dialogtransaction
SelectionTransaction
Reporttransaction
YouwanttouseaBAdItoextendthefunctionsofanSAPprogram.
Whichofthefollowingtasksinnecessary?
Createanenhancementprojectusingacustomerexit
CalltheBAdI
DefineanInterfacefortheBAdI.
ImplementaclassthatimplementsthatBAdIinterface
Whichofthefollowingstatementsregardingdatabaseindexesandbufferingis
correct?
Iftabledataisreadusingindexesthetablebuffercannotbefilled
Ifdataisreadfromthetablebuffer,theexistingindexesarenotused.
Abufferedtablecannothavesecondaryindexs
Ifindexesaredefinedforatable,bufferingsettingcannotbedefined.
Whatisthepurposeofimplicitenhancementpoints?
TochangecodeinastandardSAPprogram
ToaddcodetoastandardSAPprogram
ToaddfiledstoanSAPdatabasetable
TocreateasecondaryindexforanSAPdatabasetable.

WhatisthetaskofaviewwithinaWebDynprocomponent?
TodefinethatnavigationstructurewithinaWebDynproApplication
Todefineapartofthegraphicallayout
TodefinetheURLforaWebDynproapplication
Tostoredatathatcanbeaccessedbyothercontrollers
AnexecutableABAPprogramcontainsastandardselectionscreenandusesthe
eventblocksATSELECTIONSCREEN,ATSELECTIONSCREEN
OUTPUT,INITIALIZATION,START_OF_SELECTION
InwhichsequencewillABAPruntimecalltheseeventblocks?
INITIALIZATION
ATSELECTIONSCREEN
ATSELECTIONSCREENOUTPUT
START_OF_SELECTION
ATSELECTIONSCREEN
ATSELECTIONSCREENOUTPUT
INITIALIZATION
START_OF_SELECTION
INITIALIZATION
ATSELECTIONSCREENOUTPUT
ATSELECTIONSCREEN
START_OF_SELECTION
ATSELECTIONSCREENOUTPUT
INITIALIZATION
ATSELECTIONSCREEN
START_OF_SELECTION
WherecanyousettheGUIstatusandtheGUItitleforaclassicalscreen?
InthepropertiesoftherelatedheaderUIelement
InamodulecalledfromPAIofthescreen
Intheattributesofthescreen
InamodulecalledfromPBOofthescreen

WhatdoyouneedinyourprogramtorespondtotheDOUBLE_CLICKeventraised
byaninstanceoftheCL_GUI_ALV_GRIDclass?
note:3ans
Amethodtoreadtheregistrationtable.
ASETHANDLERstatementtoreagesterthehandlertotheevent
Ahandlerclass
ACATCHstatementtocapturetheevent
Ahandlermethodfortheevent
Whichoptionsdoyouhavewhensettingawatchpoint?
note:2ans
Stopatanychangeofanyvariable.
Stopatanychangeofaspecificvariable
Stopatpredefinedconditionsforanyvariable.
Stopatpredefinedconditionsforaspecificvariable.
HowcanyoudeclareaninternaltableusingthetransparenttableAasitslinetype
DATAgt_itabTYPEa
DATAgt_itabTYPELINEOFa
DATAgt_itabTYPEREFTOa
DATAgt_itabTYPETABLEOFa.

TheeventblockATSELECTIONSCREENcontainsaMESSAGEstatement.This
issuesawarningmessagethatisdisplayedontheselectionscreen.
Whatactioncantheusertaketocontinuetheexecutionoftheprogramafterthe
MESSAGEstatement?
ChangeatleastonefieldvalueandpressExecute.
PressExecute(F8)withoutchangingantfieldvalue
ChangeatleastonefieldvalueandpassENTER
PressENTERwithoutchanginganyfieldvalue
TheinstancemethodSUPER_METHODbelongtoclassCL_SUPERandthe
instancemethodSUB_METHODbelongstoclassCL_SUB.
YouCreatetworeferencevariables:
DATAgo_superTYPEREFTOcl_super.
DATAgo_subTYPEREFTOcl_sub.
Whichstatementwillraiseasyntaxerror?
go_sub>super_method()
go_super>super_method()
go_super>sub_method()
go_sub>sub_method()
Youdefineacomponentthatcontainstwoviews.Eachviewcontainsaninbound
plugandanoutboundplug.Youwanttodefineanapplicationthatdisplayonlyone
viewatattimeandallowsnavigationbetweenthesetwoviews.
Howdoyoudefinenavigationbetweenthesetwoviews?

Embedeachviewinaseparatewindowandconnecttheplugsofthe
windowsusingnavigationlinks.
Embedthesamewindowinbothviewsusingviewcontainersandconnect
thepligsoftheviewsusingnavigationlinks.
embedoneviewinawindow,embedtheotherviewinthisviewusinga
viewcontainer,andconnecttheplugsoftheviewsusingnavigationlinks.
Embedbothviewinonewindowandconnecttheplugsoftheviewsusing
navigationlinks.

Howdoyouembedasubscreeninamainscreen?
UseCALLSUBSCREENinaPBImoduleofthemainscreen
UseSETSUBSCREENinaPBOmoduleofthemainscreen
UseCALLSUBSCREENintheflowlogicofthemainscreen
UseSETSUBSCREENintheflowlogicofthemainscreen
Yourprogramcontainsthefollowingcode:
result=cl_list=>number_of_lists().
WhattypeofcomponentisNUMBER_OF_LISTS?
Apublicinstanceattribute
Apublicstaticattribute
Apublicstaticfunctionalmethod
Apublicinstancefunctionalmethod
Whichcomponentsbelogtoanelementaryseatchhelp?
note:3ans
fixedvalues
Selectionmethod
Attachementtoafield
Import/Exportparameters
Dialogbehavior

Attheendofaproject,thedevelopersofateamneedtoreleasetheirtasksandthe
projectleadneedstoreleasetheirchangerequestR1.Nowanotherdeveloperwho
doesnotbelongtothisteamneedstomaintaintheobjectO1thatispartofthe
changerequestR1.
whenwillthisdeveloperbeabletochangetheobjectO1?
AftertherequestR1hasbeenreleased
AftertheobjectO1hasbeenactivated.
AfterallobjectsoftherequestR1havebeenimportedsuccessfullyinto
thenextsystem.
AfterthetaskthatcontainstheobjectO1hasbeenreleased
Wherecanyoudefineglobaldatatypesthatarevisiblesystemwide?
note:3ans
IntheABAPDictionary
Inafunctionmodule
Inaglobalinterface
Inamethodofaglobalclass
Inaglobalclass
WhichsolutionsarepartoftheSAPBusinessSuite?
Note:3ans
SAPBusinessOne
SAPProductLifecycleManagement
SAPBusinessBYDesign
SAPEnterpriseResourcePlanning
SAPSupplyChainManagement

Youwanttoreaddatafrom2databasetablesAandBusingadatabase
join.DatabasetableBContainsdetailsfordatarecordsstoredindatabasetable
A.YourresultshouldcontainallcombainationsofmatchingrowsfromAandBplus
allrowsfromAthatdonothavematchingrowsinB.
Whichstatementdoyouuse?
SELECT...FROMaJOINb...
SELECT..FROMaINNERJOINb
SELECT..FROMaLEFTOUTERJOINb..
SELECT..FROMbRIGHTOUTERJOINa...
WhichModularizationunitscanbecalledacrossserveralsystems?
Subroutines
Methods
FunctionModules
DialogModules
Youwanttochecktheuserauthorizationfordataenteredinaninputfieldofa
selectionscreen.
wheredoyoudothis?
InaPBOmoduleoftheselectionscreen
IntheeventblockATSELECTIONSCREENOUTPUT
IntheeventblockATSELECTIONSCREEN.
IntheeventblockLOADOFPROGRAM.

HowcanyoustarttheABAPdebugger?
note:3ans
SetabreakpointintheABAPeditorforaspecificcodeline
SetaWatchpointintheABAPeditorforaspecificcodeline
SelectExecute>Debugginginthecontextmenuoftheprogram
Enter/hinthecommandfieldandproceedwiththeexecutionofthe
program
AddtheABAPstatementSTOPtothesourcecode.
WhichadditionalfeatureshavedomainscomparedtoABAPdictionarybuildin
types?
note:3ans
Conversionexits
valuetables
searchhelp
ParametersIDs
fixedvalues
Touperformanupdatetaskusingupdatefunctionmodulesanddetestanerrorin
theprogramthatcallstheupdatefunctionmodules.
whichstatementcanbeusedtodiscardallupdatesrequestsforthecurrentSAP
LUW?
ROLLBACKWORK
DELETEUPDATE
EXIT
MESSAGEexxx(nnn)

Inwhichdatabsetabletypeisthereaonetoonerelationshipbetweenthe
Dictionarytabledefinationandthereleventphysicaltableinthedatabase?
Internaltable
TransperentTable
Clustertable
Pooledtable.
Whichstepsareneededwhenimplementingasingletonpattern?
note:3ans
Definetheinstantiationoftheclassasprivate
Createaneventthatreturnstheinstanceoftheclass
Definetheclassasabstract
Savetheinstanceoftheclassinoneofitsstaticattributes
Createaninstanceoftheclassinoneofitsstaticmethods.
YouwanttochecktheuserinutinthefieldFIELD_NAMEonaclassicalscreen.If
anincorrectvalueisentered,theusershouldbeabletocorectthefieldvalue.
HowdoyoucallthemoduleCHECK_MODULEinthePAIofthescreento
accomplishthis?
FIELDfield_nameMODULEcheck_module.
FIELDfield_nameMODULEcheck_moduleMESSAGEEnnn.
MODULEcheck_moduleONERROR.
CHAIN.MODULEcheck_moduleFIELDfield_name,ENDCHAIN

WhatcanyoucreateusingtheABAPDictionary?
Note3ans
TypePools
InternalTables
FieldSymbols
TransparentTables
Domains
ControllerAdeclarscontrollerBasausedcontroller.
WhichpartsofcontrollerBcanbeaccessedbycontrollerA?
Note:2ans
Allcontextnode
Allsupplyfunctions
Allnormalmethods
Allcontrollerattributes
whichprerequisitesmustbefulfilledbefourarepositoryobjectcanbetransported?
note:3Ans
AnApplicationcomponentmustbeassignedtotherepositoryobject
Therepositoryobjectmustbeassignedtoachangerequest
Therepositoryobjectmustbeassignedtoapackage
Aninactiveversionoftherepositoryobjectmustexist
Atransportlayermustbeassignedtothepackage.

youwanttodevelopaclassicalscren(dynpro)withaninputfield.youdefinethe
inputfieldwithreferencetoacomponentofanABAPDictionarystructure.
Defineaforeignkeyrelationshipforthestuucturecomponent.
ImplementaPBOmoduletocheckthefieldvalue.
Assigneasearchhelptotheinputfield.
Assigneavaluetabletotheunderlyingdomain.
Whatdoglobaltypeandlocaltypehaveincommon?
TechnicalInformation
FieldLabels
Documentation
Searchhelp
Whatdoyouhavetoconsiderwhenusingtheappendstructuretechniquefora
standerdSAPtable?
AnappendstructuretriggersanadjustmentwhenSAPdeliversanew
versionoftheappendingtable
ThenameoftheappendstructuremuststartwithZZorYY
ThefieldofanappendstructureshouldstartwithZZorYY
Anappendstructurecanbeassignedtomorethanonetable

YouhavewrittenaprogramtooutputdatausingtheALVgridcontrol.
Whichsequenceofstepsshouldbeexecutedatruntime?
1.Createagridobject.
2.Createacontainerobject
3.Passdatatothegridobject.
1.Createacontainerobject
2.Createagridobject
3.Passdatatothegridobject.
1.Passdatatothegridobject.
2.Createacontainerobject
3.Createagridobject.
1.Createacontainerobject
2.Passdatatothegridobject.
3.Createagridobject.

WhatdoyouhavetodotoaddfieldstoanSAPdeliveredtransparenttablewithout
modification?
CreateanAppendstructurecontainingthenewfields
Addthenewfieldstothetabledefinition.
Defineastructurecontainingthenewfieldsandincludeitinthetable
definition
Usethedatabaseutilitytoenhancethedefinitiononthedatabasedirectly
Youimplementasearchhelpthatdisplaysdataselectedviaanouterjoin.
Whichviewtypecanyouuse?
Projectionview
Helpview
Maintenanceview
Databseview

Whatdoyouneedtofullyspecifyatabletype?
note3ans
TableCategory
Linetype
TableKey
HeaderLine
Tablesize
YouwanttodisplayadialogboxinyourABAPprogram.
Whichstatementdoyouuse?
SETSCREEN200
WINDOW200STARINGAT55.
CALLSCREEN200.
CALLSCREEN200STARINGAT55.

YOuhavewrittenaclassicalscreen(dynpro)containingabuttonnamedP_SAVE
youhaveassignedthefunctioncodeSAVEtothisbutton.YouwanttocheckatPAI
whethertheuserhasclickedthisbutton.
howcanyouachivethis?
CheckwetherthedataobjectrelatedtotheOKcodefieldcontainsthe
valueSAVE
CheckwetherP_SAVEACTIVEequals1.
CheckwetherSYOKCODEcontainsthevalueSAVE
CheckwetherP_SAVEOKCODEequalsSAVE

WhichoptionsdoyouhavetoreaddatafrommultipletableswithinaSELECT
statement?
NestedSelectstatements
Joinstatement
Databaseviews
Polledtables
Nestedloopstatements
WhichdefinitionsareNOTallowedinABAPobjects?
Note:2ans
Definitionsofnestedstructures
DefinitionsusingtheTABLESstatement
Definitionsofinternaltableswithheaderlines
Definitionsofdeepstructures
Definitionsoftabletypes

Youwanttodefinetwodatabasetableswithdifferrentstructures.Bothtablesshould
containthefieldsCHANGE_DATEandCHANGE_TIME.
Howdoyouimplementthisinordertominimizethemaintenanceeffort?
Defineanappendstructurewiththesetwofieldsandassignthisappend
structuretobothdatabasetables.
definethetwofieldsineachdatabsetableseparately.
Definethetwofieldsinonedatabsetableandcopythemtotheother
databasetable.
Defineastructurewiththesetwofieldsandincludethisstructureinboth
databsetables

WhatcanyouchangeintheABAPdebugger?
contentofaninternaltable
Valueofaconstant
Valueofreferencevariable
Definitionofastructure
TowhichcontextobjectistheattributeLEAD_SELECTION_INDEXrelated?
Node
Element
Attribute
Supplyfunction
HowmanybytesareneededforatypeIdataobjects?
Asmanyasareneededtostoretheassignedvalue.
2
4
8
Whichcomparisionoperatorscanyouuseinalogicalexperssionrelatedtothe
WHEREclauseoftheSELECTstatment?
note:3ans
CP(Coverspattern)
EQ(equals)
GT(graterthan)
CO(containsonly)
LIKE(fitspattern)

Whichassignmentwillleadtoaconversionerror?
AtypePdataobjecttoatypeFdataobject.
AXSTRINGtypedataobjecttoaSTRINGtypedataobject.
AtypeCdataobjectwiththevalue'123'toatypeCdataobjectwith
lenght2.
AtypeCdataobjectwiththevalue'1.50E4'toatypeIdataobject.
WhichofthefollowingtoolsbelongtotheABAPworkbench?
Functionbuilder
Easyaccessmenu
ScreenPainter
ImplementationGuide
Classbuilder
Howcanyouimprovetheperformanceofadatabasetableaccesswhenusinga
givenSELECTstatement?
Note:2ans
Putthedatabasetableinthespecialfastaccesstablespaceofthe
database.
useappropriatetablebufferingforthedatabasetable.
Covertthedatabasetabletoapooledtable.
Defineappropriateindexesforthedatabasetable.

WhatmustyoudotodefineadatabaseviewusingtheABAPDictionary?
Note:3Ans
Definebufferingsettingsfortheunderlyingdatabsetables
Definethejoinconditionbetweenthetable
Choosethefieldsfromthetablesthatshouldbepartoftheview
Defineselectioncriteriafortheview
Choosethedatabasetablesfromwheretheviewacquiresdata
WhatkindofdataobjectdoyoudeclarewiththefollowingStatement?
DATAmyvarTYPEdbtab.
Astructurevariable
Areferencetoaninternaltable.
Anelementaryfield
Aninternaltable
WhichcontrollertypescanexistwithinaWebDynproComponent?
note:3Ans
Windowcontroller
ApplicationController
componentcontroller
UserController
viewcontroller

Whydoyouneedtobundledatabaseupdateinyourdialogprograms?

ToavoiddatabaselockssetbyanSQLstatmentpersistinguntiltheendof
theprogram
Toavoiddatainconsistencyduetotheimplicitdatabasecommitaftereach
dialogstep

Tobeabletorollbackdatabsechangesperformedinthesamedialogstep
TobeabletouseSAPlocks
Howdoyouprogramaninputvalidationonaselectionscreenthatallowsusersto
correcttheirinput?

ImplementacheckattheeventATSELECTIONSCREENincaseofan
inputerror,atypeEMESSAGEmustbedisplayed.
ImplementthecheckattheeventATSELECTIONSCREENOUTPUT.In
caseofaninputerror,atypeEMESSAGEmustbedisplayed.
ImplementthecheckattheeventENDOFSELECTION.Incaseofan
inputerror,atypeEMESSAGEmustbedisplayed.
ImplementthecheckattheeventATSELECTIONSCREEN.Incaseofan
inputerroratypeAMESSAGEmustbedisplayed.
YouWanttodefineaforeignkeyrelationshipbetweenacombinationoffieldsina
tableandtheprimarykeyfieldsofanothertable
Whatdoyouhavetoconsider?
Thecardinalityoftheforeginkeyrelationshipmustbe1:cn

Thecheckfieldanditscorrespondingfieldsinthechecktablemusthave
thesamedomain.
Thenumberofkeyfieldsintheforeignkeytablemustbeexactlythesame
asinthechecktable
Thetablemustbeassignedasavaluetableinthedomainofthecheck
field

Whichparametertypescanbeusedinthesignatureofafunctionalmethod?
note:2ans
EXPORTING
RETURNING
IMPORTING
CHANGING
Youwanttoloopoveraninternaltablewithoutcopyingeachtablerowtoawork
area.
howcanyouachievethisusingafieldsymbol?
LOOP...TRANSPORTINGINTO.
ENDLOOP.
LOOP...INTO.
ENDLOOP.
LOOP...REFERENCEINTO.
ENDLOOP.
LOOP...ASSIGNING.
ENDLOOP.
Whichstatementsareallowedforprocessinginternaltables?
note:3ans
MODIFY
DELETE
UPDATE
SELECT
INSERT

You might also like