SAP Webdynpro ABAP Interview Questions Part 3

12
2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3 http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 1/12 SAP ABAP Intervi 11 SAP ABAP Intervi 32 BDC Interview Q16 SAP ALE IDocs i 25 SAP Webdynpro 25 SAP Web Dynpro21 SAP Webdynpro 19 Now we come to the tougher side of web Dynpro. I have tried to put together some concepts from the point of view of an interview . That's why you wont find the details here but an overview. Question 1: What is Web Dynpro Component Usage? Real world business scenarios are quite complex and may involve multiple Web Dynpro Components. While dealing with multiple WD components, you may come across a situation where you need to reuse already developed parts of an existing Web dynpro component. The Web Dynpro framework provides you with a technique called ‘Component Usage’, with the help of which you can reuse the events, methods, and context of one WD component into another WD component. Standard examples of Component Usage: Select Options , ALV , OVS. You declare component usage both at the Component and at the view levels: @Component Level: [http://3.bp.blogspot.com/- K9BMWfVzBxA/T_MmZTQ1AeI/AAAAAAAAHHw/bPvckQjzlwo/s1600/WD1.png] @View Level: [http://4.bp.blogspot.com/- srpzh83TNsw/T_MnF99c4AI/AAAAAAAAHH4/wb_pvsB2v9c/s1600/WD2.png] Question 2: Briefly explain how will you use implement Select Options in SAP Webdynpro ABAP Interview Questions Part 3 Web Dynpro ABAP interview questions Part 3: Dynamic View s template. Pow ered by Blogger. Home ABAP Interview Questions Smartforms Sidebar SAP Interview Questi search Send feedback

description

SAP Webdynpro ABAP Interview Questions Part 3

Transcript of SAP Webdynpro ABAP Interview Questions Part 3

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 1/12

    SAP ABAP Intervi 11

    SAP ABAP Intervi 32

    BDC Interview Q 16

    SAP ALE IDocs i 25

    SAP Webdynpro 25

    SAP Web Dynpro 21

    SAP Webdynpro 19 NowwecometothetoughersideofwebDynpro.Ihavetriedtoputtogethersomeconceptsfromthepointofviewofaninterview.That'swhyyouwontfindthedetailsherebutanoverview.

    Question1:WhatisWebDynproComponentUsage?RealworldbusinessscenariosarequitecomplexandmayinvolvemultipleWebDynproComponents.WhiledealingwithmultipleWDcomponents,youmaycomeacrossasituationwhereyouneedtoreusealreadydevelopedpartsofanexistingWebdynprocomponent.

    TheWebDynproframeworkprovidesyouwithatechniquecalledComponentUsage,withthehelpofwhichyoucanreusetheevents,methods,andcontextofoneWDcomponentintoanotherWDcomponent.StandardexamplesofComponentUsage:SelectOptions,ALV,OVS.YoudeclarecomponentusagebothattheComponentandattheviewlevels:

    @ComponentLevel:

    [http://3.bp.blogspot.com/-

    K9BMWfVzBxA/T_MmZTQ1AeI/AAAAAAAAHHw/bPvckQjzlwo/s1600/WD1.png]

    @ViewLevel:

    [http://4.bp.blogspot.com/-

    srpzh83TNsw/T_MnF99c4AI/AAAAAAAAHH4/wb_pvsB2v9c/s1600/WD2.png]

    Question2:BrieflyexplainhowwillyouuseimplementSelectOptionsin

    SAP Webdynpro ABAP Interview Questions Part 3

    WebDynproABAPinterviewquestionsPart3:

    Dynamic View s template. Pow ered by Blogger.

    Home ABAP Interview Questions SmartformsSidebar

    SAP Interview Questi search

    Send feedback

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 2/12

    WebDynpro?1)DeclareComponentUsageforStandardWDcomponentWDR_SELECT_OPTIONSbothatcomponentandviewlevel.

    [http://4.bp.blogspot.com/-LSTbEw9ntvo/T_MtHwUqOBI/AAAAAAAAHIE/JcZAiMMrm-

    k/s1600/WD2.png]

    [http://4.bp.blogspot.com/-QsMVCqUUa80/T_MtX6fnE-

    I/AAAAAAAAHIM/tT0OZgBaZXE/s1600/WD2.png]

    2)PlaceaVIEWCONTAINERonyourmainviewandembedtheviewWND_SELECTION_SCREENofcomponentWDR_SELECT_OPTIONSinit.

    [http://1.bp.blogspot.com/-85qxoyxt5wk/T_Mt8m9olsI/AAAAAAAAHIU/4jum76-

    DvyE/s1600/12.png]

    3)UsethemethodsCREATE_RANGE_TABLEandADD_SELECTION_FIELDforyourfieldsonSelectionscreen.

    4)UsemethodGET_RANGE_TABLE_OF_SEL_FIELDtoreaduserinputbeforeyoudoaSELECT.Question3:WhatistheWebDynproPhasemodel?Wheneveraroundtripoccursfromtheclient(browser)totheserver,asequenceofprocessingstepsisexecuted.ThissequenceofprocessingstepsinwebDynproiscalledthePhaseModel.ExecutingallthetasksinthephasemodelistheresponsibilityoftheWebDynproframework.Eachstepisexecutedonlyonceanderrorsifanyarecaptured.

    Ifyouwanttogetintothedetails,havealookatthewebinarfromChris

    Whealy:Understanding the Web Dynpro Phase model.

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 3/12

    [http://scn.sap.com/docs/DOC-2412]

    ImportantQuestion4:WhatisOVS?CanyouexplainthedifferentphasesusedinOVS?FirstweshouldunderstandthedifferencebetweenValuehelpandOVSi.e.objectValueSelector.WeusegenericValueHelponlyforthefieldtowhichitisbound.OVSisusedwhenwewanttopopulatemultiplefieldsbasedononefieldonthescreen.

    [http://1.bp.blogspot.com/-

    LYrpB8SRTWc/T_MwpTygWCI/AAAAAAAAHIg/S4SCZl712P0/s1600/12.png]

    Soasperthescreenshot,IfIselectUseridfromOVShelp,FirstnameandLastnamewillbepopulatedautomatically.ThestandardcomponentWDR_OVSisusedforimplementingOVS.

    OVSworksonthePHASEMODELanddifferenttasksareperformedduringdifferentphases.ThecurrentphaseisindicatedbytheparameterPHASE_INDICATOR.

    Phase1:Inthisphaseyouhavethepossibilitytodefinethetexts,ifyoudonotwanttousethedefaults:SoYoucanplayaroundwiththehighlightedtextsinthescreenshotbelowinthisphase.Herewecallthemethodovs_callback_object->Set_Configuration

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 4/12

    [http://3.bp.blogspot.com/-

    qLuxVqtJMnU/T_MxUmDxr2I/AAAAAAAAHIo/6PlBakPCODM/s1600/12.png]

    Phase2:Ifyoudonotwantthefilterfields,youcandothatinthisphaseandthetablewillbedisplayeddirectly.Referscreenshotbelow.Thetableisdisplayeddirectly.Ihaveblurredsomeresults.Hereyoucancallthemethodovs_callback_object->Set_Input_Structure

    [http://2.bp.blogspot.com/-

    PETVlUxelUE/T_MyGPxZVZI/AAAAAAAAHIw/phop_9TGiRk/s1600/12.png]

    Phase3:InthisPhase,YouwritetheselectqueriesthatshouldrunasperuserinputwhentheuserhitsStartSearchbuttonandfinallysettheoutputtable.Youcancallthemethodovs_callback_object->Set_Output_Tableforthatpurpose.

    Phase4:Inthisphase,youpasstheselectedrecordtotheWebdynproFields.i.e.settheattributesusing ovs_callback_object->context_element->Set_Attribute

    [http://4.bp.blogspot.com/-7b6989yt3Cc/T_MynEaFngI/AAAAAAAAHI4/YCJJBhnCb-

    Y/s1600/12.png]

    Question5:BrieflyexplainhowwillyouimplementALVinWebDynpro?ToimplementALVinWebDynpro,youneedtousetheStandardWDcomponentSALV_WD_TABLE.Weneedtouse:

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 5/12

    a)theviewTABLEofcomponentSALV_WD_TABLEb)thenodeDATAofcomponentSALV_WD_TABLE.Hereisthebriefprocess:

    1)DeclarecomponentUsageforSALV_WD_TABLEattheWDcomponentlevelandtheviewlevel.@ComponentLevel:

    [http://4.bp.blogspot.com/-91hqmJOtIyY/T_M5yvSw5QI/AAAAAAAAHJE/Pktvgx8QBic/s1600/12.

    png]

    @ViewLevel:

    [http://3.bp.blogspot.com/-

    FYPxCZlrdlA/T_M8Hj47frI/AAAAAAAAHJM/83KYvWGgS40/s1600/12.png]

    2)PutaVIEWCONTAINERUIelementontheMAINviewandembertheviewTABLEofSALV_WD_TABLEintoit.

    [http://4.bp.blogspot.com/-

    kHPMav60j6M/T_NBKVejiVI/AAAAAAAAHJY/soJwsbeVQxY/s1600/12.png]

    [http://1.bp.blogspot.com/-

    GII2S82YlpI/T_NBYghbb4I/AAAAAAAAHJg/_jnDWmOQAAo/s1600/12.png]

    3)LetssaytheALVdataistobepopulatedinNODE_FLIGHT.

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 6/12

    WritethelogictoselecttheALVDataandbindittoNODE_FLIGHT:node_flight_alv->BIND_TABLE(lt_node_flight_alv).

    4)DoaContextmappingbetweenNODE_ALVandthenodeDATAofSALV_WD_TABLE.

    [http://1.bp.blogspot.com/-63g8ZyavPN8/T_NB4uVjAMI/AAAAAAAAHJo/8KImS7Sw9nw/s1600/1

    2.png]

    Question6:Howtomakecolumnsinatableeditable?WhiledoingtheBindingfortheTable,justchoose'Inputfield'insteadof'Textview'.RefertheScreenshotbelow:

    [http://2.bp.blogspot.com/-y59A4DPbBAc/T_NCaYy-

    hbI/AAAAAAAAHJw/MIOi9bnoZ7Q/s1600/12.png]

    [http://1.bp.blogspot.com/-

    iFyyTCGamGs/T_NCpWP0XVI/AAAAAAAAHJ4/GwTX19qYSNw/s1600/12.png]

    Question7:HowwillyoudeleteselectedrowsinaTable/ALV?GettheTable/ALVdatainaninternaltable.Deletetherowselectedbytheuserfromtheinternaltable.Re-bindtheinternaltabletothenodeboundtotheTable/ALV.

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 7/12

    [http://4.bp.blogspot.com/-

    HvC3Ki7L9L4/UNlapQNnerI/AAAAAAAAHNk/1G7Z_TKj700/s1600/Inbound+plugs+for+Window.PNG]

    Question8:HowdoyougeneratePOPUPinWD?ThiscanbeeasilydoneusingtheWizard:TheCREATE_WINDOWmethodisusedinthiscase.

    [http://3.bp.blogspot.com/-

    icMPQyhkyO0/T_NDfWzDxOI/AAAAAAAAHKA/B7ikKEWDCzY/s1600/12.png]

    Question9:HowdoyoucloseawindowinWebDynpro?

    ThereisaspecialoutboundplugcalledExitPlugthatcanbeusedforthispurpose.

    wd_this->fire_to_exit_plg(url=urlclose_window=close_window).

    [http://4.bp.blogspot.com/-

    MtUwwo0BBvw/T_NEIysGRkI/AAAAAAAAHKI/cGPbQ3xn3Vw/s1600/12.png]

    AlsoexploreotherPlugTypes:

    [http://2.bp.blogspot.com/-1jD1MNNqjoc/UNlaqQCwu9I/AAAAAAAAHNo/Q0R0Uf6b2Yc/s1600/O

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 8/12

    utbound+plugs+for+Window.PNG]

    Iamgoingtoaddsomemorequestionstopart3:Letmeknowifyouneedanswerstothebelowquestionsbyputtingyourcommentsbelow:

    Question:WhatisthedifferencebetweenDropdownbykeyanddropdownbyindex?

    Question:Howdoyoudisplayerror/success/warningmessagesinWebDynpro?

    Question:Howdoyouaccessmethodsofcomponentcontrollerinaview?

    Question:HaveyouworkedonroadmapUIelement?Elaborate.

    Question:WhatisdynamicALVinwebdynpro?

    Question:CanyouhaveTotalsandSubtotalsinWebdynproALV?How?Hint:FirstgetthereferenceoftheALV.Thengetthecolumns.Byloopingatlt_columns,gettotherequiredcolumn.Onceyouachievethis,checkmethodscreate_aggr_ruleandcreate_sort_ruleoftheclasscl_salv_wd_field.

    Question:CanyouhaveTOPOFPAGEandENDOFPAGE?How?Hint:CheckTOP_OF_LISTandEND_OF_LISTevents.

    Question:HaveyouworkedoneventsinALVinwebdynpro?Whicheventsdoyouknow?

    [http://2.bp.blogspot.com/-RsJbVrIq7-s/UA1unVWwUII/AAAAAAAAHMg/ZoO7BptS3-

    g/s1600/wd+alv+events.PNG]

    Question:CanyouaddcustombuttonsonWebDynproALVtoolbar?How?

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 9/12

    [http://1.bp.blogspot.com/-iO0eIvlThno/UA1vhP7ehNI/AAAAAAAAHMo/0jMbkvoG-

    M8/s1600/ALV+custm+buttons.PNG]

    Question:CanyouaddcustombuttonsinWebDynproALVcells?How?

    [http://3.bp.blogspot.com/-

    uYk4cKtayl0/UA1vw_MsGhI/AAAAAAAAHMw/8i8pHkSuk1o/s1600/wd+buttons.PNG]

    Question:CanyouaddImage/IconsinWebDynproALVcells?How?Howdoyoudefineandimplementactionhandlersforthem?

    [http://4.bp.blogspot.com/-

    WhWTd1c4oCo/UA1wLu_0ceI/AAAAAAAAHM4/nC6u7UtIhMA/s1600/icons+in+wd.PNG]

    Question:CanyouaddlinksinWebDynproALVcells?How?

    [http://3.bp.blogspot.com/-

    _eVsC2R854Y/UA1wo4F5-aI/AAAAAAAAHNA/JRjBuUUpMc8/s1600/LInk+WD.PNG]

    IhopethisbloghelpsyoucrackyourwebdynprointerviewJ.Allthebestdudesanddudettes!!

    Ifyoulikedthispostsofar,pleaseconsiderhittingtheGoogleplusbuttonbelow:

    Posted 3rd July 2012 by Amby

    19 View comments

    Sonal and her friends December 4, 2012 at 8:23 PM

    Good one Amby

    Reply

    Vallabhaneni December 21, 2012 at 7:34 AM

    Hi Amby,

    Could you please post the answers for the unaswered questions as well.

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 10/12

    Replies

    ThanksBob

    Reply

    Amby December 24, 2012 at 11:57 PM

    Let's wait to see . If more people demand answers . Then it would make sense to upload answers :)

    Reply

    manasa allamsetty December 30, 2012 at 1:01 PM

    Reply

    This comment has been removed by the author.

    Singh December 30, 2012 at 3:49 PM

    Thanks a lot for this awesome blog :)World was never easier place untill people like you happened.

    Answer to unanswered questions and few more blog links like this would be a great :)

    Reply

    Sumit Jindal January 8, 2013 at 10:08 PM

    Hi Amby,

    Please post the answers to the remaining set of questions. They'll really be veryuseful. Thanks.

    Reply

    vaibhav January 17, 2013 at 6:40 AM

    Hi

    How may types of value selector are there in Webdynpro ABAP. Do we have SVSand EVS in Webdynpro ABAP too?

    Reply

    Anonymous February 10, 2013 at 8:05 AM

    Thanks Amby for all the information ... It would be great help if you share answers toremaining questions. :)

    Reply

    Amby February 10, 2013 at 8:21 PM

    okay ... will try to add those in sometime.

    Glad that you liked it. I am planning to put some more blogs on ALV,Scripts, Smart forms as well. So stay tuned :)

    Anonymous March 16, 2013 at 10:34 PM

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 11/12

    Reply

    Hi vaibhav we have 4 types of value selectors in WEBDYNPRO ABAP,1) Simple Value selector2) Extended value selector3) Dynamic value selector4) Object Value selector

    vaibhav April 27, 2013 at 10:54 AM

    Okie...Thanks for your reply:)

    Anonymous June 13, 2013 at 5:45 PM

    Good Blog... Thank you..

    NARASIMHA February 26, 2013 at 9:53 PM

    Thank you Amby...very useful for interviews

    Reply

    Vijay Vikram May 22, 2013 at 10:49 AM

    No words man... mind blowing explanation... Keep up d good work

    Reply

    Anonymous May 28, 2013 at 6:50 AM

    Hello Amby,This series is very useful.Please add answers to the remaining questions as well. Thanks.

    Reply

    Surya Prakash Reddy Maryadha June 11, 2013 at 8:47 AM

    Hi Experts,

    Here are the answers for few questions.

    1.Can you add custom buttons in Web Dynpro ALV cells ? How?2.Can you add Image / Icons in Web Dynpro ALV cells ? How?3.Can you add links in Web Dynpro ALV cells ? How?

    For all the above 3 questions here is the common answer.

    Ans: Yes. We can add Custom buttons, Image / Icons and links in Web Dynpro ALVcells by using Table cell editor property.

    For example you have designed a table in view layout with 4 fields. Now you want toadd button in 1 field (Column). Now you can select 1 column of that field and rightclick on that and click on Insert Cell Editor then popup box will show then give IDwhich you want and select Typ as Button hit enter then maintain properties of button. Similarly for Image / Icon and Links and etc.

    4.How do you access methods of component controller in a view ?Ans: We can access methods of component controller by usingWD_COMP_CONTROLLER attribute. It will refer component controller. Syntax:

  • 2/19/2014 SAP Webdynpro ABAP Interview Questions Part 3

    http://sap-interview-questions-and-answers.blogspot.in/2012/07/sap-webdynpro-abap-interview-questions.html 12/12

    Enter your comment...

    Comment as: Google Account

    Publish

    Preview

    WD_COMP_CONTROLLER->.

    Amby,Please let me know if any of these answers wrong.

    Thanks,Surya Prakash Reddy M

    Reply

    anil kumar July 4, 2013 at 5:07 AM

    Very good Documents which changes the so many life's in interviews....Well done Amby...

    Reply

    Arun Narayanan July 10, 2013 at 4:25 AM

    Hi Amby,

    Expecting answers for all unanswered questions in each topics.Please update your blog with OOABAP questions and answers.It will help a lot.

    Cheerz..Arun.

    Reply

    Anonymous December 18, 2013 at 11:22 PM

    Hi Amby,

    I found very helpful with the stuffs you shared here. As a newbie this blog gives me aclear idea on the WDA and grown my confidence level to choose this carrier path.

    Please update the answers for the questions which are not yet answered. This wouldhelp more the guys like me.

    Thanks you for the excellent stuffs.

    Reply