answers_to_some_abap_interview_questions.doc

Upload: siddhartha-barua

Post on 02-Jun-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    1/16

    Answers to some ABAP Interview Questions

    Questions which I have faced in an interview:

    1) What is runtime analysis? Have you used this?2) What is meant y !erformance analysis? Have done anythin" to im!rove the

    !erformance?#) How to transfer the o$ects? Have to transferred any o$ects?%) How did you test the develo!ed o$ects?

    &) What is the difference etween 'AP (emory and ABAP (emory?

    ) In order to u!load Purchase order details* how you handle multi!le values for a sin"lefield?

    +": Item field may contain no, of values for a record

    -) What is the !rocedure you followed to u!load the data?

    .) How did you handle errors in /all 0ransaction?) Amon" the /all 0ransaction and 'ession (ethod* which is faster?

    1) What are the difference etween Interactive and 3rill 3own 4e!orts?

    11) How to !ass the variales to forms?12) How to create a lin5 etween modified form and modified !rint !ro"ram?

    1#) What is the tale* which contain the details of all the name of the !ro"rams and

    forms?1%) How did you test the form u develo!ed? How did you ta5en !rint?

    1&) What are 'tandard 0e6ts?

    1) What is the difference etween /lustered 0ales and Pooled 0ales?

    1-) What is !f7status?1.) Amon" 8(ove8 and 8(ove /orres!ondin"8* which is efficient one?

    1) What are the out!ut ty!e and 0codes?

    2) Where we use /hain and +ndchain?

    21) 3o you use select statement in loo! endloo!* how will e the !erformance? 0oim!rove the !erformance?

    22) In select7o!tions* how to "et the default values as current month first date and lastdate y default?

    +": 191292% and #191292%

    o thru these answers:

    1) What is runtime analysis? Have you used this?

    It;s chec5s !ro"ram e6ecution time in microseconds, When you "o to se#,if you "ive

    desired !ro"ram name in !erformance file, It will ta5e you to elow screen,

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    2/16

    I was testin" a develo!ed o$ect, 0here are two ty!es of testin"

    7 =e"ative testin"

    7 Positive testin"

    In ne"ative testin" we will "ive ne"ative data in in!ut and we chec5 any errors occurs,

    In !ositive testin" we will "ive !ositive data in in!ut for chec5in" errors,

    .) How did you handle errors in /all 0ransaction?

    We can create a internal tale li5e ;s"mc"coll;, All the messa"es will "o to internal tale,

    We can "et errors in this internal tale,

    Below messa"es are "o to internal tale, when you run the call transaction,7 (essa"e ty!e

    7 (essa"e id

    7 (essa"e =umer7 >ariale1

    7 >ariale2

    7 >ariale#

    ) Amon" the /all 0ransaction and 'ession (ethod* which is faster?

    /all transaction is faster then session method, But usually we use session method in realtime,,,ecause we can transfer lar"e amount of data from internal tale to dataase and if

    any errors in a session, Process will not com!lete until session "et correct,

    1) What are the difference etween Interactive and

    3rill 3own 4e!orts?

    ABAP9% !rovides some interactive events on lists such as A0 I=+7'++/0I@=

    doule clic5) or A0 '+47/@((A=3 !ressin" a utton),

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    3/16

    Which contain the details of all the name of the !ro"rams and forms? I don;t 5now),

    1#) How did you test the form u develo!ed? How did you ta5en !rint?

    1%) What are 'tandard 0e6ts?

    1) What is the difference etween /lustered 0ales and Pooled 0ales?

    A !ooled tale is used to comine several lo"ical tales in the ABAP9% dictionary, Pooledtales are lo"ical tales that must e assi"ned to a tale !ool when they are defined,

    /luster tale are lo"ical tales that must e assi"ned to a tale cluster when they are

    defined,

    /luster tale can e used to store control data they can also used to store tem!orary dataor te6t such as documentation,

    1-) What is !f7status?

    Pf status is used in interactive re!ort for enhancin" the functionality, If we "o to se%1* we

    can "et menus* items and different function 5eys* which we are usin" for secondary list in

    interactive re!ort,

    1.) Amon" 8(ove8 and 8(ove /orres!ondin"8* which is efficient one?

    I "uess* ;move corres!ondin"; is very efficient then ;move; statement, Because usually we

    use this stamtent for internal tale fields only,,,so if we "ive move corres!ondin", 0hose

    fields only movin" to other !lace what ever you want),

    1) What are the out!ut ty!e and 0codes?

    2) Where we use /hain and +nd chain?

    21) 3o you use select statement in loo! end loo!* how will e the !erformance? 0o

    im!rove the !erformance?

    22) In select7o!tions* how to "et the default values as current month first date and last

    date y default?

    +": 191292% and #191292%

    Prem Dumar

    Q: How to com!are the 2 tales etween the 2 systems?

    Ans: Which is usin" the transaction code is ;oy1;,

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    4/16

    Q, What is the use of !ic5 statement do?

    Ans: 0he !ic5 statement is used to it will ca!ture the user action,

    e6: if sy7ucomm E ;6;,0his statement is used to ca!ture the user action,

    F77 Bandiven5atewarlu andiven5ateswarluGhotmail,com)

    eel free to contriute to those uestions without answers or add7in additional ti!s for

    those answers which youthin5 can e further im!rove y'umittin" a ABAP 0i!s or ABAP Pro"rams,

    1 ABAP AQ

    (ore than 1 ABAP Interview fa;s

    et hel! for your ABAP !rolems3o you have a ABAP Question?

    ABAP Boo5s

    ABAP /ertification* BAPI* Java* We Pro"rammin"* 'mart orms* 'a!scri!ts 4eference

    Boo5s

    ABAP 0i!s

    ABAP orum for 3iscussion and 'am!les Pro"ram /odes for Aa!ers

    Best re"ards*

    'AP Basis* ABAP Pro"rammin" and @ther I( 'tuffhtt!:99www,sa!7im",com

    999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999

    (ore than 1 ABAP Interview a;s

    http://www.sap-img.com/sap-tips.htmhttp://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htmhttp://www.sap-img.com/abap/abap-question.htmhttp://www.sap-img.com/abap/abap-question.htmhttp://www.sap-img.com/sap-books.htm#ABAP-CERTIFICATIONhttp://www.sap-img.com/sap-books.htm#ABAP-CERTIFICATIONhttp://www.sap-img.com/abap.htmhttp://www.sap-img.com/index.htmhttp://www.sap-img.com/index.htmhttp://www.sap-img.com/sap-tips.htmhttp://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htmhttp://www.sap-img.com/abap/abap-question.htmhttp://www.sap-img.com/sap-books.htm#ABAP-CERTIFICATIONhttp://www.sap-img.com/sap-books.htm#ABAP-CERTIFICATIONhttp://www.sap-img.com/abap.htmhttp://www.sap-img.com/index.htm
  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    5/16

    /ontent Author : Prau

    Author email :!rauGyahoo,co,in

    eel free to contriute to those uestions without answers or add7in additional ti!s for

    those answers which you thin5 can e further im!rove y'umittin" a ABAP 0i!s orABAP Pro"rams,

    1, What is the ty!ical structure of an ABAP9% !ro"ram?

    A=':7H+A3+4 *B@3

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    6/16

    'ortin" of seuential dataset y field "rou!,

    @@P A=3 +=3@@P

    777777777777777

    @@P,A0 FFF

    ,,,,,,

    ,,,,+=3A0,

    A0 FFF

    ,,,,,

    ,,,,+=3A0,

    +=3@@P, F77 /hinmaya

    #, What should e the a!!roach for writin" a B3/ !ro"ram?

    A=':7'0+P 1: /@=>+40I= 0H+ +A/< '

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    7/16

    A=':7

    P4@B+(':7

    i) If the user for"ets to o!t for 5ee! session then the session will e automaticallyremoved from the session ueuelo" remains), However if session is !rocessed we may

    delete it manually,ii)if session !rocessin" fails data will not e transferred to 'AP dataase tale,

    1, What are the different ty!es of data dictionary o$ects?ans:7

    tales* structures* views* domains* data elements* loc5 o$ects* (atchcode o$ects,

    11, How many ty!es of tales e6ists and what are they in data dictionary?

    ans :7% ty!es of tales

    i)0rans!arent tales 7 +6ists with the same structure oth in dictionary as well as in

    dataase e6actly with the same data and fields, Both @!ensl and =ativesl can e used,

    ii)Pool tales L iii)/luster tales 70hese are lo"ical tales that are arran"ed as records of trans!arent tales,one cannot use

    native sl on these tales

    only o!ensl),0hey are not mana"ale directly usin" dataase system tools,

    iv)Internal tales 7 ,

    12, What is the ste! y ste! !rocess to create a tale in data dictionary?

    ans:7

    ste! 1: creatin" domainsdata ty!e*field len"th*ran"e),ste! 2: creatin" data elements!ro!erties and ty!e for a tale

    field),

    ste! #: creatin" tales'+11),

    1#, /an a trans!arent tale e6ist in data dictionary ut not in the data ase !hysically?A=':7 =@,

    04A='PA4+=0 0AB+ 3@ +KI'0 WI0H 0H+ 'A(+ '04/04+ B@0H I= 0H+

    3I/0I@=A4< A' W+ A' I= 0H+ 3A0ABA'+*+KA/0< WI0H 0H+ 'A(+3A0A A=3 I+3',

    1%, What are the domains and data elements?A=':7

    3@(AI=' : @4(A 3+I=I0I@= @ 0H+ 3A0A 0

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    8/16

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    9/16

    =ative 'Q is the dataase lan"ua"e s!ecific to dataase,Its API is s!ecific to the datase,

    @!en 'Q API is consistent across all vendors

    2, What does an +K+/ 'Q stmt do in ABAP? What is the disadvanta"e of usin" it?A=':7

    21, What is the meanin" of ABAP9% editor inte"rated with ABAP9% data dictionary?

    A=':7

    22, What are the events in ABAP9% lan"ua"e?A=':7

    InitialiCation* At selection7screen*'tart7of7selection*end7of7selection*to!7of7!a"e*end7of7

    !a"e* At line7selection*At user7command*At P*et*At =ew*At A'0*A0 +=3* A0I4'0,

    2#, What is an interactive re!ort?

    What is the ovious diff of such re!ort com!ared with classical ty!e re!orts?

    A=':7An Interactive re!ort is a dynamic drill down re!ort that !roduces the list on users choice,

    diff:7

    a) 0H+ I'0 P4@3/+3 B< /A''I/A 4+P@40 3@+'=;0 allow user to interactwith the system

    the list !roduced y interactive re!ort allows the user to interact with the system,

    ) @=/+ A /A''I/A 4+P@40 +K+/0+3 '+4 @@'+' /@=04@,I4 '+4

    HA' /@=04@,

    c) I= /A''I/A 4+P@40 34II= I' =@0 P@''IB+,I= I=0+4A/0I>+34II= I' P@''IB+,

    2%, What is a drill down re!ort?A=':7

    Its an Interactive re!ort where in the user can "et more relavent data y selectin"

    e6!licitly,

    2&, How do you write a function module in 'AP? descrie,A=':7

    creatin" function module:7

    called !ro"ram 7 se#-7creatin" func"r!*funcmodule y assi"nin"attriutes*im!ortin"*e6!ortin"*tales*e6ce!tions,callin" !ro"ram 7 '+#.7in !"m clic5 !attern and write function name7 !rovide

    e6!ort*im!ort*tales*e6ce!tion values,

    2, What are the e6ce!tions in function module?A=':7

    /@((=I/A0I@=OAI4+

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    10/16

    '

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    11/16

    selection tale,

    '++/07@P0I@=' M'+N @4 MfieldN,

    A selection tale is an internal tale with fields 'I=* @P0I@=* @W and HIH,0he ty!e of @W and HIH is the same as that of MfieldN,0he 'I= field can ta5e the followin" values: I Inclusive should a!!ly) + +6clusive

    should not a!!ly)

    0he @P0I@= field can ta5e the followin" values: +Q +ual 0 reater than =+ =oteual B0 Between + ess

    than or eual =B =ot etween 0 ess than /P /ontains !attern + reater than or eual

    =P =o !attern,

    diff:7PA4A(+0+4' allow users to enter a sin"le value into an internal field within a re!ort,

    '++/07@P0I@=' allow users to fill an internal tale with a ran"e of values,

    or each PA4A(+0+4' or '++/07@P0I@=' statement you should define te6t

    elements y choosin"oto 7 0e6t elements 7 'election te6ts 7 /han"e,

    +":7 Parameters name#),

    when the user e6ecutes the ABAP9% !ro"ram*an in!ut field for ;name; will a!!ear on theselection screen,

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    12/16

    or !ractical information on wor5in" with the /han"e and 0rans!ort 'ystem* see /han"e

    and 0rans!ort @r"aniCer and 0rans!ort (ana"ement 'ystem,

    %1, When a !ro"ram is created and need to e trans!orted to !rodn does selection te6ts

    always "o with it? if not how do you ma5e sure? /an you chan"e the /0' entries? Howdo you do it?

    A=':7

    %2, What is the client conce!t in 'AP? What is the meanin" of client inde!endent?A=':7

    %#, Are !ro"rams client de!endent?

    A=':7

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    13/16

    i)system tools

    ii)field symols and field "rou!s,

    ans:7

    ield 'ymols : ield symols are !laceholders for e6istin" fields, A ield 'ymol doesnot !hysically reserve s!ace for a field*ut !oints to a field which is not 5nown until

    runtime of the !ro"ram,

    e":7 I+37'+4'I@= : +A/< '

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    14/16

    ABAP orum for 3iscussion and 'am!les Pro"ram /odes for Aa!ers

    Best re"ards*

    'AP Basis* ABAP Pro"rammin" and @ther I( 'tuff

    htt!:99www,sa!7im",com

    All the site contents are /o!yri"ht S www,sa!7im",com and the content authors, All ri"hts reserved,All !roduct names are trademar5s of their res!ective com!anies, 0he site www,sa!7im",com is in no way

    affiliated with 'AP A,

    +very effort is made to ensure the content inte"rity, Information used on this site is at your own ris5,

    0he content on this site may not e re!roduced or redistriuted without the e6!ress written !ermission ofwww,sa!7im",com or the content authors,

    99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999

    ABAP interview questions and answers

    Byadmin| May 2, 2005

    Thanks to the reader who sent in this question set:

    1. What is an ABAP data ditionary!" ABAP # data ditionary desri$es the %o&ia% strutures o' the o$(ets used ina))%iation deve%o)*ent and shows how they are *a))ed to the under%yin& re%ationa% data$ase in

    ta$%es+views.

    2. What are do*ains and data e%e*ent!" o*ains:o*ain is the entra% o$(et 'or desri$in& the tehnia%

    harateristis o' an attri$ute o' an $usiness o$(ets. -t desri$es the va%ue ran&e o' the 'ie%d. ata %e*ent: -t

    is used to desri$e the se*anti de'inition o' the ta$%e 'ie%ds %ike desri)tion the 'ie%d. ata e%e*ent desri$es

    how a 'ie%d an $e dis)%ayed to end"user.

    /. What is 'orei&n key re%ationshi)!" A re%ationshi) whih an $e de'ined $etween ta$%es and *ust $e e)%iit%y

    de'ined at 'ie%d %eve%. orei&n keys are used to ensure the onsisteny o' data. ata entered shou%d $e heked

    a&ainst eistin& data to ensure that there are now ontradition. Whi%e de'inin& 'orei&n key re%ationshi)

    ardina%ity has to $e s)ei'ied. ardina%ity *entions how *any de)endent reords or how re'erened reords

    are )ossi$%e.

    #. esri$e data %asses." Master data: -t is the data whih is se%do*%y han&ed. Transation data: -t is the data

    whih is o'ten han&ed. 3r&ani4ation data: -t is a usto*i4in& data whih is entered in the syste* when the

    syste* is on'i&ured and is then rare%y han&ed. yste* data:-t is the data whih 6+/ syste* needs 'or itse%'.

    5. What are indees!" -ndees are desri$ed as a o)y o' a data$ase ta$%e redued to s)ei'i 'ie%ds. This data eists

    in sorted 'or*. This sortin& 'or* ease 'ast aess to the 'ie%d o' the ta$%es. -n order that other 'ie%ds are a%so

    read, a )ointer to the assoiated reord o' the atua% ta$%e are in%uded in the inde. 7he indees are ativated

    a%on& with the ta$%e and are reated auto*atia%%y with it in the data$ase.

    8. i''erene $etween trans)arent ta$%es and )oo%ed ta$%es." Trans)arent ta$%es: Trans)arent ta$%es in the

    ditionary has a one"to"one re%ation with the ta$%e in data$ase. -ts struture orres)onds to sin&%e data$ase

    'ie%d. Ta$%e in the data$ase has the sa*e na*e as in the ditionary. Trans)arent ta$%e ho%ds a))%iation data.

    http://www.sap-img.com/abap.htmhttp://www.sap-img.com/index.htmhttp://www.techinterviews.com/author/admin/http://www.techinterviews.com/author/admin/http://www.techinterviews.com/author/admin/http://www.sap-img.com/abap.htmhttp://www.sap-img.com/index.htmhttp://www.techinterviews.com/author/admin/
  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    15/16

    Poo%ed ta$%es. Poo%ed ta$%es in the ditionary has a *any"to"one re%ation with the ta$%e in data$ase. Ta$%e in

    the data$ase has the di''erent na*e as in the ditionary. Poo%ed ta$%e are stored in ta$%e )oo% at the data$ase

    %eve%.

    9. What is an ABAP+# uery!" ABAP+# uery is a )ower'u% too% to &enerate si*)%e re)orts without any odin&.

    ABAP+# uery an &enerate the 'o%%owin& / si*)%e re)orts: Basi ;ist: -t is the si*)%e re)orts. tatistis:

    6e)orts with statistia% 'untions %ike Avera&e, Perenta&es. 6anked ;ists: or ana%ytia% re)orts. " or

    reatin& a ABAP+# uery, )ro&ra**er has to reate user &rou) and a 'untiona% &rou). untiona% &rou) an$e reated usin& with or without %o&ia% data$ase ta$%e. ina%%y, assi&n user &rou) to 'untiona% &rou). ina%%y,

    reate a query on the 'untiona% &rou) &enerated.

  • 8/11/2019 Answers_to_some_ABAP_Interview_Questions.doc

    16/16

    han&es $etween the AP yste*s and %ients in your syste* %andsa)e. This dou*entation )rovides you

    with an overview o' how to *ana&e han&es with the T and essentia% in'or*ation on settin& u) your syste*

    and %ient %andsa)e and deidin& on a trans)ort strate&y. 6ead and 'o%%ow this dou*entation when )%annin&

    your deve%o)*ent )ro(et.

    1hek 'untions whih hek that user in)ut is o*)%ete,orret,and )%ausi$%e. ii>Meanin&'u% data se%etion. iii>entra% authori4ation heks 'or data$ase aesses.

    iv>&ood read aess )er'or*ane whi%e retainin& the hierarhia% data view deter*ined $y the a))%iation

    %o&i. dis advanta&es: i>-' you donot s)ei'y a %o&ia% data$ase in the )ro&ra* attri$utes,the DT events never

    our. ii>There is no CDT o**and,so the ode $%ok assoiated with an event ends with the net event

    state*ent =suh as another DT or an C"3";T-3C>.

    1.What is a $ath in)ut session!" BATF -CPET -3C is an inter*ediate ste) $etween interna% ta$%e and

    data$ase ta$%e. ata a%on& with the ation is stored in session ie data 'or sreen 'ie%ds, to whih sreen it is

    )assed, )ro&ra* na*e $ehind it, and how net sreen is )roessed.

    20. Fow to u)%oad data usin& ATT !" These are the ste)s to $e 'o%%owed to E)%oad data throu&h ATT: reation

    o' the ATT test ase H reordin& the sa*)%e data in)ut. own%oad o' the soure 'i%e te*)%ate. Modi'iation o'

    the soure 'i%e. E)%oad o' the data 'ro* the soure 'i%e.

    21. What is *art or*s!" *art or*s a%%ows you to reate 'or*s usin& a &ra)hia% desi&n too% with ro$ust

    'untiona%ity, o%or, and *ore. Additiona%%y, a%% new 'or*s deve%o)ed at AP wi%% $e reated with the new

    *art or* so%ution.

    22.Fow an - *ake a di''erentiation $etween de)endent and inde)endent data!" %ient de)endent or inde)endent

    trans'er require*ents in%ude %ient s)ei'i or ross %ient o$(ets in the han&e requests. Work$enh o$(ets

    %ike APsri)ts are %ient s)ei'i, so*e entries in usto*i4in& are %ient inde)endent. -' you dis)%ay the o$(et

    %ist 'or one han&e request, and then 'or eah o$(et the o$(et attri$utes, you wi%% 'ind the '%a& %ient s)ei'i.

    -' one o$(et in the task %ist has this '%a& on, then that trans)ort wi%% $e %ient de)endent.

    2/.What is the di''erene $etween *aro and su$routine!" Maros an on%y $e used in the )ro&ra* the are de'ined

    in and on%y a'ter the de'inition are e)anded at o*)i%ation + &eneration. u$routines =36M> an $e a%%ed

    'ro* $oth the )ro&ra* the are de'ined in and other )ro&ra*s . A MA63 is *ore or %ess an a$$reviation 'or

    so*e %ines o' ode that are used *ore than one or twie. A 36M is a %oa% su$routine =whih an $e a%%ed

    eterna%>. A ECT-3C is =*ore or %ess> a su$routine that is a%%ed eterna%. ine de$u&&in& a MA63 is not

    rea%%y )ossi$%e, )revent the use o' the* =-Ive never used the*, $ut seen the* in ation>. -' the su$routine is

    used on%y %oa% =a%%ed interna%> use a 36M. -' the su$routine is a%%ed eterna% =used $y *ore than one

    )ro&ra*> use a ECT-3C.