121259393 abap interview questions

Upload: yellareddy08

Post on 02-Jun-2018

252 views

Category:

Documents


5 download

TRANSCRIPT

  • 8/11/2019 121259393 ABAP Interview Questions

    1/148

    SAP ABAP IMPORTANT INTERVIEW

    1) How to maintain lists in dialog programming?2)How to send greeting with different languages todifferent regions in smartforms?3)Can we transfer 100 screen data to pass 200 screen?4)In reports 1st list o/p can be consider as i/p of 2nd listhow it maintains?) In lsmw data length 20 chars onl! but there is 24 charsfield how can u manage?")#hat is the diff b/w $%&C$'( n *&+C$,,?

    Ans: 1)by using table control

    2)by using tcode se633)yes we can transfer 100 screen data to pass 200screen.4)by using at line-selection

    6)1. It is not possible to clear the content of sy-ucomm sinceit is a system ariable but we can clear the content ofo!"code.2. #he length of sy-ucomm is fi$ed but the length of o!"codeis not fi$ed. we can ta!e any length

    2-how to change col colors in al. reporting?

    Ans.%&'& we hae 2 ways t display the colors.1.slis"specialcol"al.

    2.lc"s"scol ( &mphasie

    3.How to maintain subtotals n grand totals in smart forms?ns- subtotal* for dis initially find which field haing price alues+#hen go to table inside we are haing %eadder+,ainarea+footerthen go for main area+select the field right clic!select-low logic- program lines here u hae to specifyI/p( /p parameters.

    rand total*for this go to table- right clic! -select #e$tthen write the grand total is ("total(.

    4.In smart forms page no will be displa!ed as 2 of 1 of 1but while printing 10 of 1 it does not print correctl! tellme how to handle this scenario-

    ns- or this create a window name is &5+'ight clic! on itcreate te$t- from there u %ae to specify(page(/(smartforms-formpage7)(#hen it will declare in the form 1/10+ 2/10......li!e this.

    1

  • 8/11/2019 121259393 ABAP Interview Questions

    2/148

    5.!pes of updating in call tr?

    Ans. #here are three types of updating in 7all transaction.1.8ynchronous update2.synchronous update3.9ocal update

    6.,odes in Call r?ns. /&/5/

    :isplay 99 87'&&5):I89; &''' 59;&):I89; 5 87'&&55): 5# :I89; :&

  • 8/11/2019 121259393 ABAP Interview Questions

    3/148

    6.)ING ##71 C&EA"E "%E #A"E&IAL.2.END "%E DA"A )ING $D17 "&ANAC"ION.8.GO"O E70 F217.C%EC "%E "A") OF O)"$O)ND IDOC 3 IF ) GO" "%E "A").7, I" ILL )CE.11. LOG ON &ECEI(E& -A&"NE& CLN" AND GO"O $D11 "&ANAC"IONGI(E "%E #A"E&IAL N)#$E& ) C&EA"ED.' F2.

    1* GO"O E70 "&ANAC"ION ' F2 C%EC "%E "A") OF DA"A. IF ) GE" 0, "A") !O) ILL )CE.

    11.what is code for 6asic 5( configuration?7-89& is correct - through this we can define all the basicEs of I:oc

    12- how !ou identif! errors in call tr?7- Fith 7all #ransaction statement we can gie the addition as,&88&8 I5# Ainternal table which is of type

  • 8/11/2019 121259393 ABAP Interview Questions

    4/148

    #7:& K AM#'587#I5 7:&:;5'#< K A L - #hat is the rocedure for 6'C?7- 8'(C5( 6'C 65(

    68:I55 6'C65(C8C$55(C 7CI$7 I7:$,I$7'8C(( 7' (C$' $

  • 8/11/2019 121259393 ABAP Interview Questions

    5/148

    transaction in a single program.2.8ynchronous and synchronous database updation.3.&rror log cannot be created.4.8ignificance for sy-subrc.G.It is faster than session method.6. Fe can directly e$ecute this method.

    22-52?7-92 - rganiation and customiing. #his is used atthe time of system configuration. it is done one time andrarely changed.

    23-How to find 6uffered or not?7-Fe can find buffured or not by going to the technicalsettings of a table .#here is an option called E

  • 8/11/2019 121259393 ABAP Interview Questions

    6/148

    #&I&:I75@,7 D #&I&6@,7#&I&:I75@(7, D #&I&6@(7,(7'5$$-

    32- #H I (' (,(7O7-'&: 8##&,&5# I8 =8&: ' '&:I5 #%& '&7': ', I5#&'59#-In 6 #hat is the +se of G:$ 55 (7I(G Clause whenit is being used- nd what it reall! does?

    7- 1. duplicate rows are automatically remoed2. if the itab used in the clause is empty + all the rows inthe source table will be selected .3. performance degradation when using the clause on big tables.

    (5(9 (5(C ,7 (7, :$, ,I7$ 65( I&,:$ 55 (7I( I7 I&F6

    #H(( ,7 D I&,@,7-

    3-what is Initialiation urpose?7-#%& =8& I5I#I9IP#I5 &J&5#8 I8 F& %J& # 797=##%& 9F 5: %I% J9=&8 I5 #%& I5I#I9IP#I5 &J&5# #%&5 I#FI99 :I89; 5 #%& 8&9&7#I5 87'&&5.

    ' &?* 9F K 8;-:#=,.%I% K 10 Q 8;-:#=,.

    8&9&7#-#I58* &J

  • 8/11/2019 121259393 ABAP Interview Questions

    7/148

    40- #hat is Internal able?7-Internal tables proide a means of ta!ing data from a fi$edstructure and storing it in wor!ing memory in

  • 8/11/2019 121259393 ABAP Interview Questions

    8/148

    4- In an Internal table how do !ou suppress or add the leadingKeroes for a particular field in !our itab?

    7-=npac!s the pac!ed field and places it in the field ) #;& c.=57B p"field # c"field.F'I#&* p"field+ c"field.utput* 103+

    00000103.#%&'FI8F Fe can use a function module E75J&'8I5"&?I#"9%"I5=#Eto add the leading eros.e$ample*799 =57#I5 E75J&'8I5"&?I#"9%"I5=#E&?'#I5 I5=# K "B=55'I,'#I5 =#=# K "B=55'.

    4"- uppose u r using :$ 55 (7I(- #hat happens when thereis no data in the itab which is using all the entries?

    7-If the table on which the or ll &ntries I5 clause isbased is empty+ all rows are selected into the destinationtable. %ence it is adisable to chec! before-hand that thefirst table is not empty.

    4>- How can u transfer the data from one itab to anotherwithout using mo.e write statements?7-using itab1CD K itab2CD.

    4-fter the (I$7 is created where is it stored?7-H('( (CI$7 (I$7 I7:$,I$7 ( $(' I7 LI 65(

    ' (CI$7 ( $(' I7 L' 65(-

    JJ4-In (11 we created two database tables sa! some 1000fields each-7ow f we want both the tables combined into onetable how do we do that?

    7-

    0- How man! fieldsEmaA) can be there in a transparent table?7- table may not hae more than 24 fields.

    1- how to create a button in selection screen?

    7-we can create the buttons li!e thisselection-screen pushbutton 104)Ebutton nameE user-command but1.

    2- what is the difference betn end@of@page and end@of@selection?

    7-&nd-of-page * is footer of the page.&nd-of-selection* is triggered t the end of the

    processing bloc!.3- How do !ou write technical specs?

    7-#here we write description+ selection screen ariables+

    2

  • 8/11/2019 121259393 ABAP Interview Questions

    9/148

    output ariables+ custom tables+ pseudo code+ error msgs+=#unit test plan).

    4- what are the differences between scripts smartforms?

    7-1.8apscript is 7lient dependent 8martform is 7lient independent.2.8apscript can uploaded/:ownloaded whereassmartforms cannot.

    3.protect/endprotect command in sapscript willnot wor! in smartforms

    4.#ransaction for sapscript is 8&H1 or smartform T 8,'#',8

    - *ou are running a report- It is taBing long time foreAecution- #hat steps will !ou do to reduce theeAecution time-

    7-@ust go through st0G and se30.inner select statements r not acceptable.

    select ...endselect is not suitable

    more inner @oins r not recommanded

    "- what is a .alue table?7-a alue table is nothing but a domain leel chec!ing

    >- how man! indeAes can be created for a table?7-we can create 16 inde$es

    1 primary inde$ 1G secondary inde$es

    - How can i de.elop more than 30 interacti.e lists inreports-

    7-Fe can deelop ma$imum 20 interactie lista usingt line-selection.If we need more than 20 interactie list use user-command.set pf-statusA$$$.

    - what are and

  • 8/11/2019 121259393 ABAP Interview Questions

    10/148

    line selectionM and Muser commandM----if possiblethen how?

    7-;&8 - #hat is :ield s!mbol?7-ield symbol is a place holder for e$isting fileds. :oesnot resere place physically but point to the field whichis not !nown until runtime.Fe can assign sections of filedsoffset+ lenght can bespecified dynamically in prg.) and may e$tend beyond fieldboundaries.synta$* I&9:-8;,

  • 8/11/2019 121259393 ABAP Interview Questions

    11/148

    "- How to transfer legac! data into base tables b! schedulinga time frame using bdc?

    7-irst we need to create a session for this process.fter creating session+ we can schedule this @ob using tcode8,36 or we can schedule in 8,3G itself by giing schedule time.

    "- how to handle the errors Eduplicate records) in C557CI$7 ,(H$'and H$# C7 #( H$# H( (7'+( 6$+ H( ($ (C$'

    7-:eclare one structure of type

  • 8/11/2019 121259393 ABAP Interview Questions

    12/148

    for dis initially find which field haing price alues+#hen go to table inside we are haing %eadder+,ainarea+footerthen go for main area+select the field right clic!select-low logic- program lines here u hae to specifyI/p( /p parameters.rand total*for this go to table- right clic! -select #e$tthen write the grand total is ("total(.

    >"- In smart forms page no will be displa!ed as 2 of 1 of 1but while printing 10 of 1 it does not print correctl! tellme how to handle this scenario-7-or this create a window name is &5+'ight clic! on itcreate te$t- from there u %ae to specify(page(/(smartforms-formpage7)(#hen it will declare in the form 1/10+ 2/10......li!e this.

    >>- I am transferring 10 data records from outbound though idocs but records are transferred what about reaming records butit did not show an! error?

    7-Uust 7hec! the ilter settings.'emoe the filter for thefields and then transfer the datarecords again.If the filteris set it will not show any error.

    >- what is the meaning of C((7@I7+ D M0/1M C((7@CIF( DM0/1M- in e.ent (5(CI$7@C((7 $++

    7-when screen-actie component is ero then input K 0+output K0 statically.screen field is inisible they are not readyfor input.when actie component is 1 then field is ready to accept theinput from user.

    >- How will !ou add color in a row using 5F ?7-use the follwing in 89I8slis"t"specialcol"al

    0- wh! script is clint dependent and smartform is clintindepedent ?

    7-sapscript is 7lint dependent and smart form is 7lintindependent bc of smart form creates a function modulewhich sap script doesnEt create

    1- eport abc-op@of@page-

    #rite 9 MHelloM-(nd@of@page-

    #hat is the output of the program?

    7-#here is no output.

  • 8/11/2019 121259393 ABAP Interview Questions

    13/148

    8&9&7# V ', badG I5# #

  • 8/11/2019 121259393 ABAP Interview Questions

    14/148

    - How do !ou set bacBground Nob automaticall! ?7-program '8

  • 8/11/2019 121259393 ABAP Interview Questions

    15/148

    "- Can we use ession method Call transaction both in one 6'Cif !es please gi.e me eAample and scenario where we use this ?

    7-we can use both call transaction and session method in one

  • 8/11/2019 121259393 ABAP Interview Questions

    16/148

    7-1) when we upload a graphic from 8&H> tcode its moed toapplication serer

    102- he logo uploaded using rstAldmc prog - where it isgoing to store ?

    7-#he report '8#?9:,7 allows a #I graphics file to beuploaded from the file system of the '/3 =I to a standardte$t in the '/3 word processor 8script

    103- what r clients ? what r the client no a.ailable in acompan! ? 00 client for which application ?

    7-7lient is a there didgit number which we enter whilelogging which helps in data security by preenting the datafrom being isible to users in other client1) commercially+ organiationally+ and technically self-contained unit within an 8system2) 7lients hae own master records and set of tables3) 7lient is the highest leel in the 8 system hierarchy

    I thin! >00 client is I:&8 serer for traing purpose

    VVV104.if i will displa! data b! writing statement on start@of@selection then what is need of end@of@selection inclassical reporting ?58.

    10- can u use at@line@selection user@comand at atime insame program ?

    7-yes we can use. In the 8##=8 we must gie the tcode I7B besidethe function !ey 2 in freely assigned !eys

    10"- what is the diff between parameter range ?7-:ifference between arameter ( 'anges *'anges *it gies 2 alues ie) fromalue and toalue.we canuse select-options also ranges.It creates 4 selection tablesign+option+low+high).parameters do not create selection table and it shows only1 alue.with paramters we can define chec!bo$es andradiobuttons.

    10"- H$# '$ *$+ C$7:I

  • 8/11/2019 121259393 ABAP Interview Questions

    17/148

    7-ield 8tring is nothing but a wor! area and it holds onlysingle record where as Internal table holds multiple records

    10- #hat is the purpose of (dit ,asBing?7-&dit ,as! is =sed for &diting utput in

  • 8/11/2019 121259393 ABAP Interview Questions

    18/148

    1.I you hae a structure with list of fields on it.2.;ou can hae a structure with in the structure included:eep structure*If you hae tabletypeinternal table) included in the8tructure.

    11>- How to disable the function in al. tool bar?7-for e$ample .799 =57#I5 E'&=8&"9J"'I:":I89;E &?'#I5 i"callbac!"program K sy-cprog i"bac!ground"id K E#'JI7#='&32E i"grid"title K te$t1 is"layout K 8"layout it"fieldcat K #"I&9:7# it"eents K eentCD comment

    i"sae K EE this line will not all u to sae the layout.

    #

  • 8/11/2019 121259393 ABAP Interview Questions

    19/148

    8earch to retriee the records. or 8tandard #ables 8ystemollows 9inear 8earch.

    123- what is Mat line@selectionM and user command?7-at line-selection alidates the entire line and displaysthe secondary list based on 1st list condition means whereeer u double-clic! on line it alidates.sy-liselQ0field"length) K Aconditin.at user-command alidates the function !eys to displys thesecondary list based on primary list conditions.for this we are using sy-ucomm K Afcode.

    124- #hat is a teAt table?7-te$t table is the contan of description of code contain inmultiple language

    12- 'ifference between checB table and .alue table?7-we create alue table for domain leel alidation and chec!table for field leel alidatin.chec! table will come in theconcept of foreign !ey table.

    JJJ12"- #hat is the significance of 'ata element and 'omain?7-

    12>- (Aplain the Importance of each t!pe of window in martforms?

    7-,ain window* In a main window you display te$t and data+which can coer seeral pages flow te$t). s soon as amain window is completely filled with te$t and data+ thesystem continues displaying the te$t in the main window ofthe ne$t page. It automatically triggers the page brea!.

    8econdary Findow* In a secondary window you display te$t and datain a predetermined output area. #here is no flow te$tdisplay with page brea!. If you position a secondary windowwith the same name on seeral pages+ the system displaysthe contents of this secondary window on each page.7opy window;ou use the copies window to define an output area for theprint output+ whose content you want to appear either onlyon the copy or only on the original. #his allows you toflag copies as copies when the form is printed.

    inal window*;ou may want to display or Suery alues on the first page

    that are determined only during processing. or e$ample+you may want to name the grand total in the letter te$t ofan inoice. %oweer+ this amount is determined only afterlisting all indiidual items. r you may want to Suery onthe first page within a condition the total number ofpages+ which the system calculates only after processingall pages.In such a case+ you use the final window* rocessing firsts!ips all windows of this type in the tree and wor!s itsway to the end of the tree. nly after the actual

    18

  • 8/11/2019 121259393 ABAP Interview Questions

    20/148

    processing is finished+ the final windows are processed inthe order in which they appear in the tree from top tobottom). 5ow any information is aailable that is !nownonly at the end of the form processing.

    12- Can we create more than one main window in smartforms?7-5o+ we cannot maintain more than one main window in8martforms.

    12- #hat is the difference bewtween client dependent tablesand client independent tables?

    7-client dependent tables * the tables which has the fieldsmandt is a client dependant. these tables details cannot beiewed in other client.client independant* these tables will not hae the mandtfield + the details of the table can be iewed by in anyclient.

    130- How will !ou .alidate selection screen elements?(,5(9

    '95&(,&,7 *( ,7-(5(C ,7 :$, , I7$E5&(,&,7)+ $ 1 $#

    #H(( ,7 I7 &,7-(7'(5(C-

    131- Is 6(< and 6%: transaparent tables?7-6%: 7(7 65( 6+ 6(< C5+( 65(-

    132- urpose of the statemement 65( in a report?7-:eclaration of #

  • 8/11/2019 121259393 ABAP Interview Questions

    21/148

    I"87'&&5"8#'#"9I5& K 2 I"87'&&5"&5:"79=,5 K 100 I"87'&&5"&5:"9I5& K 20 #

  • 8/11/2019 121259393 ABAP Interview Questions

    22/148

    140- #hat is the difference between *( and 5I%( ?7-#;&* represents the data types.9IB&* represents the data ob@ectstype wont ta!e any memoryli!e -allocate memory

    141- how to code in ,:$, for ,+5I5( (C$'?7-th record?

    7-In call #ransaction method it depends upon the synchronousand asynchrounous update in synchrounous it will stop at Hth record and H+>+ record is not updated and

  • 8/11/2019 121259393 ABAP Interview Questions

    23/148

    7-we use all the four for defing data in abap

    14"- what is pf status interacti.e report?7-8 -8##=8 *#his statement is used to set your own =I status to thereport or the program that you deelop and status isdeeloped in the transaction code 8&41

    14>- -wat is difference b/w dilldown and interacti.e report?7-Fhen a basic condensed list is processed further into asecondary list and then succesie secondary lists+ it is adrill down report. Fhen the basic list or one of thesecondary list is processed further to a transaction code+it is an interactie report.

    14- wh! u select the session method in bdc ? how man! recordswil be updated on that time?7-If there is a huge amount of data is to be transferred fromnon-sap to sap system we use 8ession menthod.

  • 8/11/2019 121259393 ABAP Interview Questions

    24/148

    using the command 8 -8##=8 .... &?79=:I5 .....:#* fcode #;& 8#5:': #

  • 8/11/2019 121259393 ABAP Interview Questions

    25/148

    therawmaterials or the goods reSuired for the cmanufacturingcustomer.#codes related to 8orce list

    ,&01 ,aintain 8ource 9ist,&03 :isplay 8ource 9ist,&04 7hanges to 8ource 9ist,&0G enerate 8ource 9ist,&06 nalye 8ource 9ist,&0H 'eorganie 8ource 9ist,&0> 8end 8ource 9ist,&0, 8ource 9ist for ,aterial

    1"- when are this three e.ents fired and tell me whuich e.entis fired first second and third @@@ at selection @screen at selection @screen output and at selection@screen on .alue reOuest-

    7-1) at seletion-screen output when the screen is displayedits same as - without debugging Be! how can i debug function module?7-/h can be used to debugg. 5: ;ou can use brea! or brea!-pointstatements in your function module.

    1- C7 #( '(6+< I'$C? I: *( H$# $ '(6+< I7 I76$+7' I'( 7'$++ I'(-

    7-;es Fe can :ebug.utbound I:7 is @ust rogram to prepare I:7. o to thatprogram and put a brea!-point and debug.debug the inbound idoc1) we 1 gie the idoc number e$ecute2) clic! on inbound function module select the radio button in fore ground3) chec! the chec! bo$ call in debug mode enter in will go through thefunction nmodule debug mode.

    1- #hat is L5 race how would !ou carried out performanceanal!sis of 6 code using L5 race?

  • 8/11/2019 121259393 ABAP Interview Questions

    26/148

    :,$'1 populates itab1 and when :,$'2 is called will itab1contains those .alues being populated b! :,$'1?

    7-If ,:1 is called before ,:2 then itab1 contains alues.

    1"1- #hat is the s!stem field that stores the le.el of the list?7-*@5I7'

    1"2- Internal table itab contains some records-If the code is liBe this 9 5$$ I6-

    (7' I6-(7'5$$-

    #hat ill be the result??7-It will go to infinite loop

    1"3- what is difference between include structure and appendstructure?

    7-Include structure allows to add one or more structureinto structure or table.lso placed positioning anywhere.=pto 6 include structure can be used in a table.

    ppend structure can be placed only at the end of astructure or table which also stops further insertion offields.nly one append structure can be used

    1"4- when we are using at new?should we use this inside the loopor outside?what will be the effect?

    7-t 5ew1. Fhen a new record comes at new triggers. tnew only usedinside loop and endloop.

    2. t new is controlbrea! statment on at new the left sidefield change+ the eenttrigers and the alues become 0 and V

    1"- when we are entering a purchase order it goes to whichtable?

    7-all header details go to &BBand all line item details go to &Bothers are &B

  • 8/11/2019 121259393 ABAP Interview Questions

    27/148

    operations) ? I need more information regards this?7-,7'8 -- it is @ust the abbreiation of the piece of code8et of few lines). Fhen the same piece of code is repeatedmultiple times in a program+ they can be replaced with a ,7'.=nli!e sub-routines+ during run time the control will notcall the routine+ instead it will @ust replace the ,7'with the piece of code.,7'8 can not be debugged.

    1>0- what is itcs! structure? what is the importance of it? gi.eme the detailed information of it ?7-I#78; is a sturcture. It is used to pass data from the formto subroutine without modifying the print program.perform Aformname) using itcsy changing itcsy.

    endperform.

    1>1- In interacti.e reporting suppose i go to 7Mth list frombasic listEprimar! data) i wanna come bacB directl! to

    basic list- o how can i achie.e this without using (C orbacB button?? Is it possible using set screen 0??7-using sy-lsind we can moe from one list another list asseSuence only not posibble come bac! from nth list to basiclist.using at-user command eent only possible.

    1>2- In report we should ha.e to write e.ents in seOuentialorder or not if we write e.ents inseOuential then what will

    be the drawbacB and if we will seOuential what will be thead.antage-2-what is the function of end@of@selection e.ent? if we

    would not write this e.ent in report what will happen?3-top@of@page e.ent will trigger before theinitialiation and at selection@screen e.ent or after thesetwo e.ent-

    7-5ot 5ecessary for the eents to be in a seSuential order.:uring run time+ the eents will be triggered automaticallyin the seSuence.

  • 8/11/2019 121259393 ABAP Interview Questions

    28/148

  • 8/11/2019 121259393 ABAP Interview Questions

    29/148

    particular customer selected in secondar! list?7-In the aboe mentioned scenrio+ u need to assign thechec!bo$ at runtime. ;ou need to assign a ariable intiallyand later in the write statement+ declare the ariable aschec!bo$.

    #hen using t =ser 7ommand+ u can randomly select therecords and display in the secondary list.# #I,& = 75# 8&9&7# IJ& '&7':8.

    11- +ser has gi.en the specification to displa! the ChecB boAeson the list how will !ou handle this situation-?

    ANS.F'I#& - utput as chec!bo$&ffectutputs the field Af as a chec!bo$. #he contents of thefirst character of f is interpreted as the status*E E K not selectedE?E K selected#he user can change this as reSuired.:#* ch!bo$1) #;& 7 J9=& E?E.

    ...F'I#& ch!bo$ 8 7%&7B

  • 8/11/2019 121259393 ABAP Interview Questions

    30/148

    1. 5 Input chec! 2. no Jalidation 3. enerates automatic proposals4. 5o 4 %elp7hec! table

    1. :oes Input chec! 2. :oes Jalidation 3. roides 4 %elp

    1"- In data element how man! domains were defined?7-or one data element you hae to hae atmost one :omain.

    1>- !pes of internal table? how do u decide which t!pe u ha.eto use?

    7-there are 3 types of internal tables1.standard- inde$+!eys type.

    2.sorted -!eys+inde$ type. 3.hashed -!ey type.to decide the usage of internal table u need themodifications reSuirements of the table.

    1- what is selection teAt in 6?7-t the selection screen we would assign a te$t to theselection screen parameter for display. #his is actually

    called as selection te$t in abap.

    1- what is bacBend and frontend in case of sap abap?whom we are supposed to call as bacBenduser and frontend user-7-rontend in 8

  • 8/11/2019 121259393 ABAP Interview Questions

    31/148

    tables.#here are two types of inde$es.1)rimary Inde$* these are created automatically while tableis actiating. It comprised of all the primary !ey fields only.2)8econdary Inde$* these are created manually on raresituations. #hese contains combination of primary !ey fieldsand 5on-primary !ey fields or nly 5on-primary !ey fields.

    1"- #H I '$C+,(7I$7?#H* I I +('?7-chec! it out 8&3I# 8%F8 79&'7=# I:& %F = :&J&9&: 5 - what are the (.ents in pplication er.er?7-eents are 1 - &5 :# 8 2 - '&: :# 8 3 - 798& :# 8..

    1- #ith out an! #rite statement will the op of the age and(nd of age trigger?

    7-5o. Fithout any Frite statement top-of-page will nottrigger.

  • 8/11/2019 121259393 ABAP Interview Questions

    32/148

    doing enhnacements on the output &g* downloading 9J datato e$cel sheets).

    202- How !ou will doing the b!pass b! using select statement?7-

    203- what will be the sie of transparant table?7-It is depends upon the data class and sie category. It canbe ma$imum of the sie of tablespacedata class) assignedto a table.#ablespace is a container of tables in database.#ablespace can be a auto e$tend 5 or depends uponconfiguration.

    JJ204- i had to write the code in such a wa! that duplicateentries should not entered in sap data base-

    7-

    20- I ha.e two internal tables itab1 and itab2 and I had mo.e

    the content of the itab1 to itab2 and then itab1 had to deleted-7-itab2C D K itab1C Drefresh itab1alternatiely*append lines of itab1 into itab2.pay attention that your internal tables must hae the samestructure.if diff structure not in order)loop at itab1.moe corresponding tab1 to itab2.append itab2.endloop.refresh itab1.

    JJ20"- what is the differnce between normal funcational and 5Ffuncational module?

    7-

    20>-what is naming con.entions gi.en for locB obNect and how!ou create the locB obNect?

    7-o to 8&112. ie the loc! ob@ect name &P:=8%loc! ob@ect name startwith &P) and clic! E7reateE

  • 8/11/2019 121259393 ABAP Interview Questions

    33/148

    stored in buffer.

    20- #hen !ou are in support who will gi.e !ou a :lat file or(Acel fileE5egac! 'ata) to upload into !stem in da!@to@da! acti.it!?

    7-functional people can supply data depends on pro@ect

    210- how we output smartform in pdf format???an!one gi.e me steps on that-

    7-data* i"otf 9IB& itcoo 77='8 100 FI#% %&:&' 9I5&+i"pdf 9IB& tline 77='8 100 FI#% %&:&' 9I5&.

    data* op"option type 887#'9+@ob"output type 887'&879.

    op"option-getotf K E?E.

    799 =57#I5 E/1

  • 8/11/2019 121259393 ABAP Interview Questions

    34/148

    new buttons in the new =I status/ you can create a new =Istatus using 8&41.Fhen calling the , E'&=8&"9J"'I:":I89;E set the statusI"799

  • 8/11/2019 121259393 ABAP Interview Questions

    35/148

    e$ample of master data is the data contained in an addressfile+ such as the name+ address and telephone number.

    91 transaction data)* :ata that is freSuently changed.n e$ample of transaction data is the goods in a warehouse+which change after each purchase order.

    92 organiational data)* 7ustomiing data that isdefined when the system is installed and seldomly changed.n e$ample is the table with country codes.

    21- how to use binar! search in internal table?what is the useof indeAes and secondar! indeAes?

    7-In binary search+ the total records are diided in to twoparts. It will search the particular record in first halfand then in second half.

  • 8/11/2019 121259393 ABAP Interview Questions

    36/148

    7'- match code obNect is a tool to get search help in selection screen(Aample9 select@options9 s&.beln for .&.beln matchcode obNect ;dodo=-$therwise we can use at selection@screen on .alue reOuest e.ent we get this:acilit!-(Aample9parameters: p_ebeln type ekko-ebeln

    TYPES: BEGIN OF t_ekko,ebeln TYPE ekpo-ebeln,

    END OF t_ekko.DT: !t_ekko TYPE STND"D TB#E OF t_ekko INITI# SI$E %,

    &a_ekko TYPE t_ekko,!t_ret'rn type STND"D TB#E OF DDS("ET)#,&a_ret'rn l!ke l!ne o* !t_ret'rn.

    at sele+t!on-s+reen on al'e-re'est *or p_ebeln. sele+t 'p to /% ro&s*rom ekko!nto 0O""ESPONDING FIE#DS OF TB#E !t_ekko.0## F1N0TION 2F3IF_INT_TB#E_)#1E_"E41EST2E5PO"TING"ETFIE#D 6 2EBE#N27INDO7_TIT#E 6 2Ekko "e+or8s2)#1E_O"G 6 2S2TB#ES)#1E_TB 6 !t_ekko"ET1"N_TB 6 !t_ret'rnE50EPTIONSP"9ETE"_E""O" 6 /NO_)#1ES_FO1ND 6 OT(E"S 6 ;."ED TB#E !t_ret'rn !nto &a_ret'rn !n8e< /.p_ebeln 6 &a_ret'rn-*!el8al.

    223.what is the difference between at selection@screen outputand at selection screen?

    7-at selection screen is used for alidating fields+t selection screen out put is used for setting fieldproperty li!e enable + disable+ input etc

    224- what is use of $ stsment?7-Fhen the stop statement is e$ecuted + the runtimeenironment triggers the eent &5:--8&9&7#I5.

    22- H$# $ C(( I7'(( I7 65(?7-o to transaction 8&11+ open your database table. 7hoosethe menu+ oto-Inde$es to create inde$. ie your inde$name and choose the fields of the table.

  • 8/11/2019 121259393 ABAP Interview Questions

    37/148

  • 8/11/2019 121259393 ABAP Interview Questions

    38/148

    endat. when eer the new carrid is reached+ carrid wiil bewritten.t &5: *

    #his is used for row-wise 7alculation i.e+ 8ub-total.&$ * t &nd 7arrid. uline. &ndat. #he end of carrid is reached+ a line will be drawn.t 98# *

    #his is used for 7alculation of rand total&$* t 9ast. wirte * / rand-#otal. &ndat. Fhen entire processing of entire internal table isoer.

    230- what is the difference between at first at newtatements?

    7-t irst - et triggered for the first loop iteration. 7an

    be used for printing report headers.t new - #his eent gets triggered when a new alue isassigned to the field loop. #his eent is normally used forroup headers.&$ample*

    Item no 5amet irst 101 chris 101 ,athewt new 102 'achel 102 5atashat new 103 7hait

    231- what are 5F reports? how the! are different from normalreports?

    7-9J* bap list iewer are user friendly reports. in alreports data will be displayes in a table.we hae tomaintain some operationsasending+ descending+filter) without writing any code in alEs.

    232- what is the use of start@of@selection e.ent?what is the difference betn end@of@page and end@of@selection?7-8tart-of-8election-#his eent gets triggered when the userclic!s on e$ecute button on 8election screen. ll the :ataretrieal and data processing logic will be written in thiseent.

    &nd-of-page- #his eent is used to print page footers for areport

    &nd-of-selection- ny processing reSuired before e$iting thereport is done in &nd-of-8election.

    232- what is the use of 5I t!pe pool in al. reports?7-89I8 is a type pool defined in the

  • 8/11/2019 121259393 ABAP Interview Questions

    39/148

    #his contains some structures and table types used for 9Js

    233- 'ifference betMn simple and interacti.e reports?7-in simple reports we directly interact with report in whichall data is present.in case of interactie reports we interact with specificdata.this is the main difference.

    234- what is the role of 0 in performance tuning?7-#o calculate the performance of programm.Fe can see in which particular area the programm is ta!ingthe time that is database leel are internal processingprogramm ).

    23- #hat is performance tuning?7-performance tuning.......

    oid the following things in ur abap code

    1. oid using nested select statemtns2. oid using global araibales

    3. oid using moe-corresponding4. oid using EVE in ur select SueryG. use !ey fields in where calues6. oid using Suery llooop

    8#0G is #code for performance tuning.

    23"- *ou are gi.en functional specs for a 6'C programand !ou need to decide whether to write a methodcall transaction or a session- How u will decide?

    7-#hat is decided to depend on the client reSuirement.if it is a large data then u will use to session methodif it is small data the u will used to call transaction

    23>- *ou are running a report- It is taBing long time foreAecution- #hat steps will !ou do to reduce the eAecution time-

    7-chec! programs performance by using tcode se30

    23- what is difference between ,$F( and ,$F(@C$($7'I7

  • 8/11/2019 121259393 ABAP Interview Questions

    40/148

    sno name palce 1 abc hyderabad 2 $y bangalore.

    #his is the table and it contains some records. 8uppose if u want change the 2nd record+ means palceis changed to chennai.

    fter modification* sno name palce 1 abc hyderabad 2 $y 7hennai.

    8uppose if u want old alues+ means u donEt want newalues. t that time u use roll bac! command

    fter useing rollbac!* sno name palce 1 abc hyderabad 2 $y bangalore.

    after using roll bac!+ the records are comes li!eaboeoriginal records)

    7ase 2* 7ommit sno name palce 1 abc hyderabad 2 $y bangalore.

    #his is the table and it contains some records. 8uppose if u want change the 2nd record+ means palceis changed to chennai.

    fter modification* sno name palce 1 abc hyderabad 2 $y 7hennai.

    fter useing commit* sno name palce 1 abc hyderabad 2 $y 7hennai. after using commit+ the table is finilased.u canEt getold alues by uisng roll bac!.nce if u use commit+u canEt get old alues for using ofrollbac!.

  • 8/11/2019 121259393 ABAP Interview Questions

    41/148

    report then what we will use in 5F for generating al. list-pls tell me what r the important thing to read in al. forinter.iew purpose-

    7-

    242- can an! one tell me if i will put mode as errorE() insession or call transaction for at bacBground and if an!error data is there in flat file then what will behappen

    7-= can set the ,ode as & in call transaction only.- How to transfer data which is coming from are report asoutput to another report?

    7-&'', ', I5 '', EP

  • 8/11/2019 121259393 ABAP Interview Questions

    42/148

    7-ccurs* when you specify occurs to table it allocatessome space to that paricular table when theprogram is running.

    occurs 0 means minimum >!b space is assign to thetable

    20- how to fetch data form without header line internal table ?7-It is not possible to fetch data from Internal #ablewithout header line. u hae to gie e$plicit wor! area Imean header to handle the records.&$ code *#ypes *

  • 8/11/2019 121259393 ABAP Interview Questions

    43/148

    we hae to use call transaction in

  • 8/11/2019 121259393 ABAP Interview Questions

    44/148

    ENDCAE.ENDCAE.

    ENDFO.

    2"1- How to displa! footer in e.er! page in 5F report?7-In my opinion+ ;ou can display the footer+ by using the

    eent - end of page eent.by using top of page eent+ u can gie the heading or comment.

    2"2- How to do sub totals in classical reports?7-hi use control brea! eents to calculate totals atfirst+at new f+at end of f+at last)

    2"3- #hat is the eAact use of euse&al.&field&catlog&merge?7-#his , is used to populate a field catalog which isessential to display the data in al.

    (,5(9)ro&_pos =ro& pos!t!on>B?col9pos Bcol;n position ale set: 73 1 /7C5fieldna;e Bfield na;e ale set: internal otpt table field na;e Breiredpara;eter

    D5"abna;e Binternal otpt table ale set: -ACE3 internal otpt table na;eE5ref9fieldna;e Breference field na;e (ale set: -ACE3 Data Dictionar fieldna;eF5ref9tabna;e Breference tableHstrctre field na;e ale set: -ACE3 na;e of aData Dictionar strctre or tablEG5otptlen Bcol;n width ale set: 7 Binitial3 n%5 ?e B?e col;n ale set: -ACE3

  • 8/11/2019 121259393 ABAP Interview Questions

    45/148

    these aboe define of both inbound as well as outbound partners.

    2""-1-How can we .alidate single selection screen field andmultiple selection screen field in report and also inmodule pool programming-pls gi.e answer in brief witheAample-2-#hat is search help ? pls tell search help t!pe breifl!

    with eAample?7-267.what is the difference between templates and tables-ANS.#

  • 8/11/2019 121259393 ABAP Interview Questions

    46/148

    u write a Suery for basic list in start-of-selection bloc!.and u must write hide statement after first sSl Suery only.hide is mainly used to display secondary lists. then u writewrite t line-selection eent for secondary lists.in this eent u write sy-lsindK1 for first secondary listand for second secondary list sy-lsindK2. so on. up to u canwrite 20 secondary lists+ but only one basic list.

    2>3- #hat is the role of an abapper in de.elopement process?#hat is the process of technical specification and how it iscarried out?

    7-baper main role is to deelop the ob@ects according to#echnical 8pec.

    unctional people deelop the unctional 8pec according tothe client reSuirement. they will send to technical people.#ech lead is changed the unctional spec to #echnical specand forward to bapers. bapers will deelop the ob@ects byusing spec

    2>4- If i worB in an implementation proNect will i ha.e toregister with ?#hat is the process of blue printing?#hatis the role of an abapper in implementatin proNect?

    7-#his is correct oneu donEt want to register with sap+ @ust u can wor! only thatpro@ect. eerything do company.register with sap is companyEswor!. that is not deeloper.blue print meals+ suppose one company wants to start sap+ie. newly deelopment. at that time technical managersprepare some blue prints+ means how many deelopers need todeelop pro@ect for abap+sd+mm etc)that blue print contains the what are the aims and goals ofcompany. in implementation pro@ect abapers will do deelopthereports+scripts+bdcs etc according to there reSuirement.

    275.what is need of function group for function modules whereasthere is no need of f-group for subroutines?

    7-1)5eed of function modules is to aoid the lengthy andfaster accessing data+how means+suppose for e$ample* i wantthe preious month first day and last day based on #odaydatemeans day 8unday or ,onday or etc)ctually today dateis 1pr200>+8aturday. I want preious month first day andlast day+ ie first day is 1,ar 200> it is 8unday or ,ondayor #uesday etc and li!e last date 31,ar 200> is ,onday or#uesday etc. enerally you need to write lengthy coding + soto aoid lengthy coding @ust u use date function module in

    coding and pass the parameters+ it will gie the out put tou@ust few lines of coding)2)unction groups means+ some related function modules aregrouped in to one function group.or &$ample* or date lot of different date function modulesare aailable in 8 '/3+ so these function modules aregrouped in to one unction group.3)8ubroutines are used in only with in the program.reSuently used part of program is !eep in to subroutines.lobally not aailable.

  • 8/11/2019 121259393 ABAP Interview Questions

    47/148

    aailable in central library of '/3 and global access.

    276.how man! t!pes of windows are there in ,:$,?not inscripts?

    7-1.main window 2.secondary window 3.copies window 4.final window

    2>>- what is the use of $%&C$'( in 6'C?7-

  • 8/11/2019 121259393 ABAP Interview Questions

    48/148

    that list. we can see the print programmes

    23- which t!pe of problems we generall! face in reports and 6'Cin real time?

    7-in

  • 8/11/2019 121259393 ABAP Interview Questions

    49/148

    23- what is the 7

  • 8/11/2019 121259393 ABAP Interview Questions

    50/148

    #he user can thus choose one of seeral alternatie searchpaths with collectie search help.It combines all the search paths that are meaningful for afield. if u r searching for a alue then system will starts fromfirst position. if reSuired alue is founded then e$ecutionwill comes out from table.in case of binary search system will starts from mid point.if alue is not founded then it will search for upper half.in that upper half it will chec! mid point.li!e that searchwill ta!es place.

    301- what is the Beep parameter in 6'C&$(7&

  • 8/11/2019 121259393 ABAP Interview Questions

    51/148

    data type then you canEt use append structure beco appendstructure should be last entitity in this 8cenario you canuse include structure.3) you can append e$actly one append structure to atable/structure if u need it to add more than in a tableyou can do it with different name and append it.

    e$amaple* if your #able contain fields +

  • 8/11/2019 121259393 ABAP Interview Questions

    52/148

    database. rimary Inde$ * =ser cannot create a primary inde$+ the systemcreates a primary inde$ by default based on the primary !eys of the table.8econdary Inde$ * #he secondary inde$es are created by theuser.we can create a ma$imum of upto 1G secondary inde$esfor a table.

    310- what is cardinalit!-how it will worB in abap?7-7ardinality is defined during foreign !ey relationship.#hecardinality of the foreign !ey relationship describes+ foreach alue in the chec! table+ how many rows of data areallowed to be in the foreign !ey table.7ardinality is defined as ?*;+ where refers to the chec!table and ; refers to the foreign !ey table. ? can haeonly alues 1 or 7 and ; can be 1+7+5 or 75.1+7+5+75 has specific descriptions.cardinality is not enforced by the system.It is optional.

    311- what is difference between update and modif!?ns-update*- update not inserte new record but change thee$isting record.

    modify*- it is used to modify the record but if record doesnot e$ist then it insert the new record.

    312- am facing problem in inserting multiple data from userdefined selection screen to internal table can an!one tell

    me an! small code the can insert multiple data from screento internal table-

    7-Vor e$ample i hae used the scarr tableVInternal table declaration.:ata*

  • 8/11/2019 121259393 ABAP Interview Questions

    53/148

    e$tract record to it. In each subseSuent &?#'7# statement+the new e$tract record is added to the dataset.314- #hat is the use of G 65( ,7(77C( 55$#(' G -

    nd itts transaction code?7-#he main purpose of the table maintenance generator is to7reate/7hange/:elete the table entries with out writing anycode. Fhen eer we create table maintenance generator itwill generate a standard program.

    315.#hat are the function module t!pes?7-

  • 8/11/2019 121259393 ABAP Interview Questions

    54/148

    ',&'8*8&9&7#I5-87'&&5*&5:

  • 8/11/2019 121259393 ABAP Interview Questions

    55/148

    &?,9&.'ead table Aitab with !ey Afieldname binary search .324- #hat are the errors occurred in a report?

    7-In the report the these types of errors occured .

    &rrors*1. synta$ errors 2. naming conentions errors 3. dump errors4. runtime errors G. declaration errors 6. terminating errorsH. sucessful errors >. warning errors

    32- what is long teAt?7- long te$t is nothing but a te$t is assinged with thestandard te$t which is assioated with the te$t elements.#his is defined by the transaction code is 810.synta$* selection-screen begin of bloc! bl1 with frame titlete$t-001. If u double clic! on the te$t will go open theone pop-up window for entering the te$t.

    32"- How to change the de.elopment class of an! obNect?7-In deelopment class is nothing but all the ob@ects are

    stored into the deelopment class. for that purpose we willcreate the one customer deelopment names space and what areall the ob@ects are created these are put into the thatdeelopment class. if u want to change the ob@ects we caneasily change the [email protected] 'ifference between $ccurs0occurs10 and occurs100?7- #he differneses are gien below.1. occurs 0* It means it will create the default rows for theinternal table depend on the reSuirement)2. ccurs 10. It means it will create the 11 rows for the internal table)3.ccurs 100. It means it will create the 101 rows for the internal table)B< sie ofthe memory space for the internal table.

    32- what is methodolog!? How man! phases are there? what isthe percentage of each phase?

    7-1.'U&7#..'&'#I5

    2.

  • 8/11/2019 121259393 ABAP Interview Questions

    56/148

    7-

    331- can we write an! interecti.e or classical reports in al.reports if !es how?

    7-;es+ we can generate both classical and Interactie report8in 9J..or classical report in 9J..#ype-pools * slis.:# * it"cat type slis"#"fieldcat"l wa"fcat type slis"fieldcat"l.:ata * itab type standard table of 8me 8tructure) wa li!e line ot itab.

    8tart-of-selection. 8elect..... after readig data from database....

    we use , '&=8&"9J"I&9:7#9",&'&fter that Fe display the utputFe use , * '&=8&"9J"'I:":I89; for rid ormat)

    ' '&=8&"9J"9I8#":I89;for list format)VVVVVV(----I5#&'7I#J& 9JVVVVVVVFe ta!e two Internal tables ...:ata * itab type standard table of ty"marc #ype structure) itab1 type standard table of ty"mara#;& structure)data * it"fcat type slis"t"fieldcat"al+ t"&ent type slis"t"eent+ t"listheader type slis"t"listheader.

    we use , * '&=8&"9J""&J&5##his is function ,odule is used to catch the &J&5#s li!e#--& and &5:--&+ =8&'"7,,5:....etcor interactie 'eport*we will gie form li!eorm =ser"7ommand =sing ucomm li!e 8y-ucomm selfld type 89I8"8&9I&9:+V( weEll call this 8ubroutine in the , 'I: :I89;.. case ucomm.

    when E(I71E. this is unction7ode which catchs whenuser do some actions. '&: #

  • 8/11/2019 121259393 ABAP Interview Questions

    57/148

    7-1.create the pushbutton in resentation serer by using thesynta$ is gien below.for creating the pushbutton*selection-screen pushbutton 1006) Ename of pushbuttonEuser-command cli1.#his is initilied into the Initialiation eent in theclassical report.2.print the record by using the statement 9oop at 9oop at Itab write* itab-field. &ndloop.3.if database has no records it will wor! as li!e this. first up all it will chec! the base table if this table isempty then it will retrie the data from the destinationtable based on the condition.

    333- can on!one tell me how man! data classes and siecategories are there ?

    7-Its totally three classes are there. these are gien below.data classes*1.90 * ,aster data its fi$ed it cannot be changed)2.91* #ransactonal data changed rarely in the business)3.92* organiational data.dialy changes the data in the

  • 8/11/2019 121259393 ABAP Interview Questions

    58/148

    application serer so+ which interm reduces databasetraffic.ullbuffering can only applies to tables which hae lessdata and rarely changed.&$-tcodes+ company master data li!e #100+ etc%ere 8elect 8ingle cannot be used.

    nswer 2. #he 8=

  • 8/11/2019 121259393 ABAP Interview Questions

    59/148

    8creen 4. 8ae and ctiate.33- H$# ,7* ('I$ ( H(( I7 6- #H ( H(* 7'H(( +(-

    7-In 8

  • 8/11/2019 121259393 ABAP Interview Questions

    60/148

    ,++.#hat is the ,, :low with ransaction Codes?7-,, flow is gien below.1.urchase 'eSustion ,&G1)2.'eSuest for Nutataion ,&41)

    3.Nutation from differnt endors ,&4H)4.price comparsion ,&4)G.purchase order send to endors ,&22)6.goods reciept ,I)H.logistic inoice erification. ,I')

    ,+0.what is macro?7-,C$ I 7+,6( $: I7+CI$7-H(( (CH I,( #H(7 *$+ C5 ,C$H( ( $: I7+CI$7 #I55 6( I7((' I7 H 5$CI$7-I (L+I( ,$(

    ,(,$* H7 :+7I$7

    ($ demo&mod&tech&macros-

    '9 result *( i n1 *( i F5+(

    n2 *( i F5+( "-'(:I7( operation- result D 1 2 3- output 1 2 3 result-(7'@$:@'(:I7II$7-

    '(:I7( output- write9 / Mhe result of 1 2 3 isM 4-(7'@$:@'(:I7II$7-

    operation 4 R 3-operation 2 JJ >-operation n2 @ n1-

    TA!s pro8'+es tAe *ollo&!n o'tp't:

    he result of 4 R 3 is >he result of 2 JJ > is 12

    he result of 72 @ 71 is 1

    In tA!s e

  • 8/11/2019 121259393 ABAP Interview Questions

    61/148

    EXAMPLE: PERFORM NA#E(AL)E > LI"."A&"4OF4ELEC"ION.&I"E: H

  • 8/11/2019 121259393 ABAP Interview Questions

    62/148

    32- C7 + (55 ,( I6+( $: 6$H '$,I7 7' '(5(,7C((7?

    7-first of all gie the attributes of the domainattributes of domain*tabletypesielength.attributes of data elementdata element is nothing but technical fields of tablefield.it is a field in data base.

    353.#H I (:$,7C( +7I7

  • 8/11/2019 121259393 ABAP Interview Questions

    63/148

    nested structuresimple structure

    357.how to write code al. with interacti.e?when i clicBed1field i will generated [email protected] reportis it possible inal.?

    7-

  • 8/11/2019 121259393 ABAP Interview Questions

    64/148

    8"&BB 9IB& 9I5& #"&BB.

    :#*#"&B 9IB&8#5:': #

  • 8/11/2019 121259393 ABAP Interview Questions

    65/148

    F"' K 8;-'&I:.

    799 =57#I5 E'&=8&"9J"I&9:7#9",&'&E&?'#I5I"8#'=7#='&"5,& K E&BE7%5I57#"I&9:7# K #"I&9:7#&?7I58I5758I8#&5#"I5#&'7& K 1'',"&''' K 2#%&'8 K 3.I 8;-8=

  • 8/11/2019 121259393 ABAP Interview Questions

    66/148

    359.which of the command flushes the database buffer? a) Ufree b) Utab-

    7-Y#< resets the #

  • 8/11/2019 121259393 ABAP Interview Questions

    67/148

    there is no change. so changes not possible in 9&.365.what is process code?

    ns-which code is used for read the data from cicommunicationidoc) and it stores the data in perticular data base table.that code is process code.e$ * matm .it reads 7I and stores the data in mara table.

    366.what is the difference table t!pe and structure?7-8tructures structured types)8tructured types describe the structure and functions of anystructured data ob@ects+ that is of data structures withcomponents of any type. component can be a field with an elementary type or canitself be a structure. table can also be used as acomponent in a structure. database table always has a structure and is thereforeimplicitly a structured type. %oweer+ the fields of adatabase table can only hae an elementary type.

    #able types#able types describe the structure and functions of internaltables in the

  • 8/11/2019 121259393 ABAP Interview Questions

    68/148

    internal table.368.what is the e.ent while entering data in screen to getneAt field?

    7-start-of-selection

    3"- difference b/w classical report and intracti.e report?7-3>0- what is diffrence between table control and al. grid indialog programming in abap?

    7-l rid control is adanced for #able control.table control means we hae to use in :ialg rograming 2-martform 9 how to print a smartform with portrait st!le andlandscape st!le at the same time?

    7-:ouble clic! on page and go to =#=# #I58 tab.nd choose the radio button for the landscape and portraitstyle.

    4- How to debug an Idoc at runtime?58.I:ocs are processed by a function module+ which are mappedagainst in table &:I7#. Fhen you process an I:oc with Hyou can hae a brea!point in the function and it will stop.or outbound processing it depends on which program issending the I:oc. or transactional data li!e purchaseorders+ the I:oc is created ia '858#00 which in turn callsa function module assigned to the processing code

  • 8/11/2019 121259393 ABAP Interview Questions

    69/148

    #%&8& #F I&9:8 F& 5&&: # =8& ' I5=# ','8.3>- what is the standard program to checB the consistenc! of the

    partner profiles?7-#o chec! the consistency of partner profiles+ we cane$ecute the program '8&7%B0H. ;ou can do this iatransaction 8&3>.

    3>- what is the field to be used in field catalog of an 5Freport to hide the rele.ant column in the list?

    7-ield E5"=#E

    30- what the tcode to checB the consistenc! of worB flow for 5(/('I in a inbound error processing?

    7-le system proides a tool to test the consistency inboundparameter for error handlingby using this we can test all the process codes or oneprocess code at a time.out put is color coded report thsi displays possible causeof errorsfor process codes use '

  • 8/11/2019 121259393 ABAP Interview Questions

    70/148

    gien by the client...3"- #hat is the reason a 6'C program is worBing in MM mode

    but not in M7M mode ?7-*99 87'&&5 ,:& =8&=999 #:I89; 99 87'&&58 # '=5 #I,&5 * 5 87'&&5 ,:& 5 87'&&5 '& J9I

  • 8/11/2019 121259393 ABAP Interview Questions

    71/148

    field3"\" data element 3 """"\34- hat are the Voins used for internal able?

    7-If you want to retry the data from more then one tableconnected with common !ey + we will go for @oins Inner@oines and outer @oins).

    1. irst we will create an internal table wih fields.e$ample.tables* mara.data*s"matnr for mara-matnr.data*

  • 8/11/2019 121259393 ABAP Interview Questions

    72/148

    Fer! fieldplant) and some of fields used as mandatory401- when u create an indeA in 'ata 'ictionar!--how do we call itin a program or report--?

    7-if we want to get the records ery fast by using it ispossible by using stmt called '&:.....inde$ Aid$no statementin program or report8uppose you hae created a secondary inde$ for a field&,5, in the table P:I98.#hen you can use the statementselect V from P:I98 where &,5, K E???E.

    402- what is the difference between at line selection and atline selection on field-

    7-1)at line selection* it is used to capture all the fieldalues2)at line selection on filed* it is used to capture onlyparticular field alue.

    403- how to upload open purchase order through 6'C?7-by using some of function,odules li!e

    in both 8+8 we hae to create internal table1)=-9: 2):F5-9: these are used if the data is in resentation8erer3)'&:-:#8 4)#'58&' these are used if the data is in pplication8ererr)

  • 8/11/2019 121259393 ABAP Interview Questions

    73/148

    40>- how to transfor the data from flat file to bdcpl send the steps as well as eAample7-1.=8I5 =I"=9: =9:&: :# ', 9#I9& # I5#&'59#

  • 8/11/2019 121259393 ABAP Interview Questions

    74/148

    7-1)I:7 &$tension is nothing but &$tending the &$isting I:7 asan &nhancement

    2)#ransactional I:7 is means that sending the I:7 from placeto an another by using , called I5

  • 8/11/2019 121259393 ABAP Interview Questions

    75/148

  • 8/11/2019 121259393 ABAP Interview Questions

    76/148

    427.how to call the function module generated in smartform forprinting the form ?7-in smart forms the function module will be generatedautomatically by the system when actiate the smart form andproides a name for function module as name. you can callthat function module in the print program using pattern

    ctrl Q f6).

    428.what is the print program for smartforms -pls gi.e me oneeAample -

    7-the smart form print programm is the one where the ma@orityof data e$traction occurs. typically+one smart form printprogram should be associated with one type of form. fore$ample the smart form purchase order has a correspondingsmart form purchase order print program tat only handlesdata e$traction for tat form.this one-one relation shipimproes the transparency for the user between what isbeing performed in the form ersus the print program

    always remember tat customer specific customioation mustbe performed in the smart form print form and not in thesmart form print programme.

    #he ma@or benfit of smart form print solutions oer sapscripts tat if the layout or order of information changesin the smart form print form+you do not need to alter theprint programme.the lay out of the data on the form iscontrolled only in the smart form print form.

    429.i want to Bnow abt- I'$Cs and 5( liBe whatMs the role ofmessege t!pe in I'$Cs and how things goes on in bacBgroundi Bnow i sound absurd but as i m not clear abt-

    7-,essage #ype for an Idoc is used to indentify the contentsof the Idoc or a breif conte$t under which the I:7 has tobe sent.

    8uppose you hae an I:7 to be sent to your endor whichhas purchase details .= also want to send the same data to JendorEs lant as anac!nowl!edge to the receipt of material.

    8ending the same idoc with same message type to both ofthem might lead to confusion.

    I5 order to aoid this you attach our idoc segment to a

    message type whih defines what is it carriying.;ou do this assiging a segment to ,essage type in F&>1

    430- what is meaning of idoc monitoring?7-Idoc monitoring means Idoc 8tatus

    431.what is the function module to read the standard teAt?7-or read te$ts asociated to an standard ob@ect use'&:"#&?#. If u want read a standard te$t created by theso10 li!e the te$ts for smartfoms) transaction use

    6/

  • 8/11/2019 121259393 ABAP Interview Questions

    77/148

    '&:"8#:#&?# instead.432-transaction code for assingning the function module to the

    process code?7-F&41for out bound side)F&42 for in bound side)

    433- how can I assign a foregin Be! relation ship for a structure?7-we cannot assign forien !ey relations to structure.itwillnot be possible.strucure itself has many records and wecan assign forien !ey records to the structures.

    434- how to fill the select options from an internal tabled!namicall! ie can i use the loop in the initialiation

    7-#2.fter e$ecuting function module will generate.openfunction module in display mode.

    66

  • 8/11/2019 121259393 ABAP Interview Questions

    78/148

    3.* press source code tab of the function module. In thesource code there is a perform ^9

  • 8/11/2019 121259393 ABAP Interview Questions

    79/148

    440- can u send the results from report to sap memor!?7-yes ofcourse we can send through 8 ',&'.7%&7B #%I8 =#......8 ',&' I: pid I&9: f.&ffectFrites the contents of the field f to the global 8 memoryunder the !ey pid . If the !ey already contains a alue+ itis oerwritten.#he !ey pid must consist of three characters. ;ou can finda list of the !eys parameters) used in the 8 systemdescription or in the

  • 8/11/2019 121259393 ABAP Interview Questions

    80/148

    If you want to simulate multiple default ariant youshould mislead the 9J by changing the report name usedfor storing ariant I8"J'I5#-'&'#)

  • 8/11/2019 121259393 ABAP Interview Questions

    81/148

    controlled only in the smart form print form.44- at the checBing of s!@subrc after call transaction stmtifit is ero what is the meaning of that of s!n and as!nchupdates eAplain-

    a-)update of database table is success-b-)eAecution of call transaction is success-

    :or s!n update which one is correct?:or as!n update which one is correct?

    7-or both sy-subrc will return ero if the database update issuccessful+irrespectie of situations if sy-subrc returns 0its success message.

    40- can u create internal table d!namicall! ? how?7-=se this method.call method cl"al"table"create Kcreate"dynamic"tableand assign this to a field symbol.

    41- what r the main e.ents that r used in al.?7-#""9I8#

    &5:""9I8#&5:""""""7J&'&&5:""7J&'&

    42- if u write a write statement after end of selection willthat be triggered?

    7-Fithout 8top statement also it will trigger.&nd-of-selection normally triggers when all the recordshae been read from database.start-of-selection.end-of-selection.write * / EendofselectionE

    43- in bdc which method is suitable for bacB ground processing?7-in bdc session method is best for the bac!ground processing.because of all error records are stored into the creat theerror logs in session method.records are not updated until to rectify the errors. if anyerror record is that is not updated into the database..to correct the error record then u can process again thenis stored into the data base.

    44- can u sa.e internal table in sap memor! from abap memor!?7-If you want sae I#< in sap memory then you hae to useI,'# nad &?'# statements

    #he followin e$apmles will e$plain how it will wor!s%ere i created two report progrmas1KK P8%5"&?'#"I#< --- # &?'# #%& I#< I5# 8,&,';2KK P8%5"I,'#"I#< --- # I,'# #%& I#< ', 8,&,';---------------------------------------------'&'# P8%5"&?'#"I#0- how man! t!pes of idocMc?7-there are 2 types of idocs1.

  • 8/11/2019 121259393 ABAP Interview Questions

    87/148

    I:.4>3- what is meant b! idoc filtering?

    7-I :oc filtering is nothing but wipout unwnted idocEs thatar not reSuired to receingpartner.9et us suppose some message type iam sending from mycentral datbase seer to G noEs application seers let itta!e as some plants in my company code .#he master idoc will contains the data pertaining to thefie plants.in thia case for plant 5o1 date is not reSiured pertainingto all the remaining plants i.e 2 3 4 G.in this case while creting the distribution model whe haeto mention the filter !eyEs#hen when eer the master I:7 passe through 9& sericelayer it will chec!Rs for filter !eyE alues s for areceier and it will wash outEs the all the idocEsotherthan the alues and cretes the communication I:7.alwys communication Idoc is the subset of ,aster Idoc.

    4>4- what is meant b! ale configuration? what can u do in ale

    configuration?7-9& configuration *oto 89& #-code then1) :esign 9ogical8ystem and go bac! to I, initial 8creenand 2) ssign 9ogical 8ystem to the client.3)then oto 8,G to create '7 :estinatio for the 9ogical8ystem i.e.receier system.).4) then oto F&21 #-code for ort 7reation in F&20 select#ranscationalort and create your wn ort.G) oto "- how can u write in single program call transaction andsession method logic?if u write logic in call transaction is there an! errors ?

    how can u see in session ?7-;ou can set radio button in select optionscall transationcall session methodif call transaction K E?E. call transaction.else call session method.endif.

    26

  • 8/11/2019 121259393 ABAP Interview Questions

    88/148

    4>>- How Calculate $5+6$5 in 5F eporting?7-data* wa"fieldcat type slis"fieldcat"al+ it"fieldcat type slis"t"fieldcat"al.

    data* wa"sort type slis"sortinfo"al+ it"sort type slis"t"sortinfo"al.

    wa"fieldcat-do"sum K E?E.append wa"fieldcat to it"fieldcat.

    wa"sort-fieldname K EB=55'E.wa"sort-tabname K EI#"I59E.wa"sort-subtot K E?E.append wa"sort to it"sort.

    4>- If suppose here are 10 records in flat file then how man!times 6'C&open&group 6'C&I7( 6'C&C5$(&group eAecuted?

    7-open group once+insert 10 times +close group once

    4>- Can op@of@page trigger with F5I7(-?7-one thing remember top of page will betriged only after write statement only if a report ishaing no write statement no top of page will be triged)# & is triggered withwrite ors!ip oruline ornot with line.

    40- what is meant b! maintenance allowedEif it can pro.ideauthoriation what is authoriation)

    7-#able maintenenece will gie authorisation to add or all theenetries into any database table .authorisation is nothing but it is to gie authorisation toparticular user for a transaction.

    41- wh! u can callEr using) ssf&function&module&name in smartforms?7-

  • 8/11/2019 121259393 ABAP Interview Questions

    89/148

    and actiated 8mart orm would be /1

  • 8/11/2019 121259393 ABAP Interview Questions

    90/148

    4- difference between at new and on change ofpl its urgent?7-1.It can be used in any loop construct+ not @ust loop at.or e$ample+ it can be used within select and endselect+ doand enddo+ or while and endwhile+ as well as inside get eents.2. single on change of can be triggered by a change withinone or more fields named after of and separated by or. #hesefields can be elementary fields or field strings. If you arewithin a loop+ these fields do not hae to belong to the loop.3.Fhen used within a loop+ a change in a field to the leftof the control leel does not trigger a control brea!.4.Fhen used within a loop+ fields to the right still containtheir original aluesR they are not changed to contain erosor asteris!s.G.;ou can use else between on change of and endon.6.;ou can use it with loop at it where . . ..H. ;ou can use sum with on change of. It sums all numericfields e$cept the ones) named after of.>.ny alues changed within on change of remain changed

    after endon. #he contents of the header line are notrestored as they are for at and endat

    4- I want to gi.e a input/output field on list where can idefine it-

    7-when you are writing that field.e$* write*/ wa"fname input/output.

    40- I ha.e one selection screen field which is meant for onl!displa! what will !ou do?

    7-field to be display but no alue is inputed into thatfield *.&$* code *parameters * p"matnr li!e marc-matnr modif id 81.t 8election-8creen utput. loop at screen. if screen-group1 K E81E.

    screen-input K E0E.

    modify screen.

    endif. endloop.

    41- If s1 and s2 are different structures how will u transfer7-moe corresponding s1 to s2

    42- I ha.e two structures s1 and s2 ha.e same struture offi.e fields each how can u transfer data from s1 to s2

    7-s2 K s1.ormoe s1 to s2.because both hae same structure so+ wedonEt need moe corresponding)

    43- In data element how man! domains were defined7-one domain

    87

  • 8/11/2019 121259393 ABAP Interview Questions

    91/148

    44- How can !ou call a subroutine which is located in program from program 6?

    7-

  • 8/11/2019 121259393 ABAP Interview Questions

    92/148

    and drop the notepad file on the screen debugging will start.

    4- in which method i can upload data to two transactions?and how?

    7-=sing session method you can upload data for 2 or moretransactions.#he procedure is1)open the session using , *

  • 8/11/2019 121259393 ABAP Interview Questions

    93/148

    7-#his eent is useful if ur report is using a 9ogical:atabase. #he eent &nd-of-selection is triggered once9ogical database has finished reading all the data. nd one more thing if u hae coded a 8# statement inur report+ if some condition inside the loop fails 8#statement is e$ecuted ( control will be transfered to the&nd-of-selection......

    04- #hat is read with binar! search? I ha.e initialiation write ?a?op@of@page write ?b? what is the output for this? If I don?t ha.e start ofselection e.ent in report

    will it eAecute?it is mandator! or not? Is it ad.isable to ha.e secondar!indeA ? #hat is process code in idoc? #here warning msg will displa!?

    #here we use watch point?what eAactl! watch pointmeans? How to transfer std teAt from production to Oualit!?7-

  • 8/11/2019 121259393 ABAP Interview Questions

    94/148

    0- cardinalit! 19" wat .iew?7-:atabase iew or maintainence iew..

    0- how to send output of program .ia email?ns-'&'# P8&5: .

    #.

    8+

  • 8/11/2019 121259393 ABAP Interview Questions

    95/148

    0- final entr! 6'C table?ns-

  • 8/11/2019 121259393 ABAP Interview Questions

    96/148

    1"- will where conditions in a sOl Ouer! help impro.e performance?7-If a table has an inde$ for a !ey in the orderf1+f2+f3 then from the point of iew of performancethe where clause should specify the fields in thesame orderselect ..from ...where f1 K "f1 and f2 K "f2 and f3 K "f3.

    5ote that the ,5:# is implicitly compared first in theorder+ and if using 79I&5# 8&7II&: Sueries+ ensure that,5:# precedes the list.

    1>- will sorted internal tables help in performance?7-;es definitly it increases the performance. Fhen eerbinary se1.arch is used+ sort the internal table.

    1- will Noin conditions in sOl Oueries affect perfomance? how?7-#%# &5#I'&9; :&&5:8 5 #%& 7'I#&'I ;= %J& =8&:. I #%&F%&'& 75:I#I5 %J& 99 #%& 'I,'; B&; I&9: #%&5 #%&

    &'',57& FI99 5&J&'

  • 8/11/2019 121259393 ABAP Interview Questions

    97/148

    21- #hat is performance tuning?7-increasing effeciency of programs thru optimied codingeg * select ... table itab... instead of

    loop at itab

    select +...into itab.. endlooperformance tunning.

    #here are arious steps to increase the performance of

  • 8/11/2019 121259393 ABAP Interview Questions

    98/148

    and in selection-screen8&9&7#I5-87'&&5* =57#I5 B&; 1+

    =57#I5 B&; 2.# 8&9&7#I5-87'&&5.78& sscrfields-ucomm.F%&5 E701E.

    endcase.

    #his will gie you the ida how we can add a button in thepplicationtool bar .

    2- can !ou create a table with out a data element? can !oucreate a field with out a data element?

    7-;es+ Fe can create using buit-in type button on fiedls tab oftable creation. and it is not recommanded cos table to tablerelation is not possible using the direct data type...

    2"-

  • 8/11/2019 121259393 ABAP Interview Questions

    99/148

    2- what does it mean occurs 0 while creating an internal table?7-occurs 0 means a internal table will be allocated >!b ofmemory initially.if it needs more then again > !b of isallocated to it

    2- when do !ou need to create an internal table with headerline ?and with out a header line?

    7-in this Suestion we can proceed li!e this.with header line.data*itab li!e lfa1 occurs o with header line.itab*internal table body.with out header line*data*begin of fs+ field1 li!e lfa1-field1+ end of fs.these are synta$es for both...but if u want to e$tract allthe fields from predefined table or e$histing table.. erycomple$ to write all field names in internal table

    declaration.so that time use with header line synta$.

    fields are ery few..go for with out headerline..performance wise with out header line is better.

    30- what is a binar! search ? and how it is useful in a sortedinternal table?

    7-#he solution proided by 8iddhart is though correct+ Iwould li!e to pro@ect the solution in a much detailed withe$ample.

  • 8/11/2019 121259393 ABAP Interview Questions

    100/148

    select matnr wer!s from marc into table t"marc where matnr K p"matnr.

    if t"marc is not initial.

    select matnr mbrsh meins mat!l from mara into table t"mara for all entries in t"marc where matnr K t"marc-matnr.else. write * / E5o data was fetch by t"marcE. endif.

    32- what is the use of select for all entries in an internal table?7-#o aoid nested select statement we use or ll entriesstatements. If there r more than 1000 records select forall entries is used. erformance o or ll &ntries is better to use...whenwe are using more than ne table

    33- can !ou create an internal table d!namicall!?Eat run time)7-Internal tables can be created dynamically usingob@ect oriented abap.che! out the method79"9J"#

  • 8/11/2019 121259393 ABAP Interview Questions

    101/148

    6.macro is always local to the program that defines it..subroutine may or may not be local..

    3>- How can I maBe a differentiation between dependent andindependent data?

    7-7lient dependent or independent transfer reSuirementsinclude client specific or cross client ob@ects in thechange reSuests. For!bench ob@ects li!e 8scripts areclient specific+ some entries in customiing are clientindependent. If you display the ob@ect list for one changereSuest+ and then for each ob@ect the ob@ect attributes+ youwill find the flag client specific. If one ob@ect in thetas! list has this flag on+ then that transport will beclient dependent.

    3- #hat is mart :orms?7-8mart orms allows you to create forms using a graphicaldesign tool with robust functionality+ color+ and more.dditionally+ all new forms deeloped at 8 will be createdwith the new 8mart orm solution.

    3- #hat is C and what do !ou Bnow about it?7-#he 7hange and #ransport 8ystem 7#8) is a tool that helpsyou to organie deelopment pro@ects in the

  • 8/11/2019 121259393 ABAP Interview Questions

    102/148

  • 8/11/2019 121259393 ABAP Interview Questions

    103/148

    7reating a secondary inde$ *;ou can use the transaction G4RInde$es... (_>G4R 7reate to create an inde$. #o ma!e the inde$uniSue+ select =5IN=&. #o specify the fields that willcomprise the inde$+ choose 7hoose fields. #hen sae andactiate the inde$.ptimal number of inde$es for a table *;ou should not create more than fie inde$es for any onetable because*Fheneer you change table fields that occur in the inde$+the inde$ itself is also updated.#he amount of data increases.#he optimier has too many chances to ma!e mista!es byusing the EwrongE inde$.If you are using more than one inde$ for a database table+ensure that they do not oerlap.

    4"- #hat is foreign Be! relationship?

    7- relationship which can be defined between tables and mustbe e$plicitly defined at field leel. oreign !eys are usedto ensure the consistency of data. :ata entered should bechec!ed against e$isting data to ensure that there are nowcontradiction. Fhile defining foreign !ey relationshipcardinality has to be specified. 7ardinality mentions howmany dependent records or how referenced records are possible.

    4>- difference between cluster and pooled tables?7-pooled tables* these r small small tables haing 100records in each of themWbut+ these tables were used forstoring the system dataWin these tables there will be no!eysWthese tables r haing many - to - one relationshipWthese tables r haing different names which doesnt matchwith database tables.

    cluster tables* these r ery large tables so many recordsin each of themWbut+ these tables were used for storing thesystem dataWin these tables atleast one primary !ey will bepresent to find the recordWthese tables r haing many - to -one relationshipW

    these tables were used by basis people to calculate thesystem performanceW

    G4>.what is the s!ntaA for eliminating duplicate .alues ininternal table-

    7-irst sort the internaltable using8ynta$*8ort i#ab using Afield-name scending/decending

    #hen =se the :elete ad@acent :uplicate statement

    :elete ad@acent duplicate entries from Ai#ab CcomparingA1A2....D

    17,

  • 8/11/2019 121259393 ABAP Interview Questions

    104/148

  • 8/11/2019 121259393 ABAP Interview Questions

    105/148

    #

    2- what do u mean b! one to one relationship in the database oftransparent and man! to one relation in pooled table could

    7-ctually+ 8 itself defines some pre-defined tables. llthese table details will be maintained in :ata :ictionary.

    or transparent table it is always one to one relation. Itmeans+ there e$ist only one table in the :< for an table in:ata :ictionary.

    or ooled table it is always many to one relation. Itmeans+ there e$ist only one table in the :< for more thantwo table in :ata :ictionary. hysically one table e$ists in:atabase leel+ howeer the tables in :ata :ictionary areact as iews. #his concept is implement only to use by 8itself. In general+ we dont ma!e use of this concept. #hisconcept meant of better performance of the 8 application.

    3- what are logical and ph!sical databases?

    7-9I79 :#

  • 8/11/2019 121259393 ABAP Interview Questions

    106/148

    hysical :atabase is actual :atabase.4- what are con.ersion routines?

    7-conersion routines are used to conert the fields eitherfrom display format to 8 internal format or from 8internal format to display format.or this the following routines are used.7onersion"e$it"$$$$$"input - display format to 8internal format.7onersion"e$it"$$$$$"output - 8 internal format todisplay format.we hae to create the conersion routines while creatingdomains.

    - difference between structure and append structure?7-structure *&ither a structured type in the

  • 8/11/2019 121259393 ABAP Interview Questions

    107/148

    8&9&7#-#I58 * s"data ' sy-datum.

    I5I#I9IP#I5. s"data-sign K EIE. s"data-option K E

  • 8/11/2019 121259393 ABAP Interview Questions

    108/148

    data* begin of itab occurs 0+lifnr li!e lfa1-lifnr+name1 li!e lfa1-name1+ort01 li!e lfa1-ort01+end of itab.here lfa1 is : programalso ...using read "form fucntion module..

    "3- #hat is the table which contain the details of all the nameof the programs and forms?

    7-#5' this table contains all print programs and forms.

    "4- #hat are the difference between Interacti.e and 'rill 'owneports?

    7-

  • 8/11/2019 121259393 ABAP Interview Questions

    109/148

    this internal table.

  • 8/11/2019 121259393 ABAP Interview Questions

    110/148

    2.system"failure

    >2- when we use the (5(C statement along with :$ 55(7I( then what t!pe of .alidations we ha.e do before

    eAecuting this statement7-chec! rimary table should not be blan!.

    If not itab1CD is initial. ... endif.

    2. for all entries select statment should hae all primary!yes in where clause.

    3. it is good for small data but for larg data it is notgood to use.

    >3- #hat are +H$I* $6V(C ?7-uthoriation b@ects+1) rotects actions and access data2) llows arious users to perform arious comple$ chec!s

    with arous conditions.3) 7onditions are descibed in uthoriation ields whichare specified 10 at the ma$.

    >4- what is the use of free and refresh?7-'efresh * 'efresh clears the data+ at the same time itreleases dynamically allocated memory. redefined memorynot released.

    ree * ree clears the data+ at the same time releasesboth predefined and dynamically allocated memory. internaltable structure will not aailable any more.

    >- #hat is the difference between Collect statement and ppendtatement?7-ppend adds the record at the end of internal table.7ollect sums up the numeric fields of the records whoseprimary !eys are eSual and adds it as a single record i.e#o fill an itab with lines which hae uniSue standard !eyswe use collect statement.If an entry with the same !eyalready e$ists+the collect statement does not append a newline as append statement but adds the contents of thenumeric fields in the wor! area to the contents of thenumeric fields in the e$isting entry.

    >"- #hat are client dependent obNects in 6 or sap?7-7lient :ependent ob@ects r those ob@ects whose records

    entered in one client for a client dependent table the samerecord is not isible for in any other client .eg* 8 8cript + te$t element+ and some ::I7 ob@ects7lient :ependent b@ect are those ob@ects whoseunctionality is restricted to a particular client.

    >>- How do !ou get output from I'$C?7-unction moudles or processing routines are alloteddynamically based on message type andn I:7 type. Fe use

    117

  • 8/11/2019 121259393 ABAP Interview Questions

    111/148

  • 8/11/2019 121259393 ABAP Interview Questions

    112/148

    be updated to the database?7-'emaining > records will be updated to :< and the 2 errorrecords will be placed in session log for furthercorrection. If you correct those 2 records and run thesession again+ the 2 records will also be updated to :

  • 8/11/2019 121259393 ABAP Interview Questions

    113/148

    If you do not declare a length when you define a dataob@ect+ the system assigns the default length of 1.>- here is a file in application ser.er- How can !ou upload itand separate it as per different fields?

    7-open dataset p"file for input in te$tmode encoding default.if sy-subrc K 0.do.read dataset p"file into w"rec.if sy-subrc K 0.split w"rec at E+E into wa"final-fld1 wa"final-fld2 . . .

    append wa"final to i"final.enddo.

    - How do !ou monitor sessions?7-1.oto 8,3G+ select the session and press 2 to monitor the

    processing details.

    - #hat are the steps need to setup before creating an I'oc?7-7ommunication 8ettings*1) 7reate and ssining 9ogical 8ystems -- 89&2) ,aintain '7 destination -- 8,G3) ,aintain #'7 ort -- F&21

    boe configuration reSuired irrespectie of sending orreceiing an I:7).

    ,andatory utbound 7onfiguration*

    ,atain :istibution ,odel --

  • 8/11/2019 121259393 ABAP Interview Questions

    114/148

    rimary Beyorign Beyppend 8tructureetc..these are also part of the data dictionary which an

  • 8/11/2019 121259393 ABAP Interview Questions

    115/148

    ;ou can find information about the actiation flow in the actiation log+which you can call with =tilities ctiation log. If errors occurred whenactiating the inde$+ the actiation log is automatically displayed.- #hich function module !ou will use to attach a search helpto a field in election screen?

    7-'&'# "test11 .',&'8*p"carrid2).:#* table1 9IB&ddshretal77='8 0 FI#% %&:&' 9I5&.# 8&9&7#I5-87'&&5 5 J9=&-'&N=&8# ' p"carrid.799 =57#I5 E4I"I&9:"J9=&"'&N=&8#E&?'#I5tabname K EscarrEfieldname K EcarridEV 8&'7%%&9 K E EV 8%9', K E EV :;5' K E EV :;55' K E E

    V :;5'I&9: K Ep"carridEV 8#&9 K 0V J9=& K E EV ,=9#I9&"7%I7& K E EV :I89; K E EV 8='&88"'&7':9I8# K E EV 799- +nder which e.ent we can maBe a filed disappear on selectionscreen-

    7-=nder # 8&9&7#I5-87'&&5 =#=#.loop at screen.if screen-name K E",#5'E.screen-actie K E0E.modify screen.

    110

  • 8/11/2019 121259393 ABAP Interview Questions

    116/148

    &5:I.endloop.

    >- How man! records a ead statement will retrie.e?7-ctually read statement for fetching only single record frominternal table+if you are declaring with !ey+inde$) withread statement +then you can focus the e$actrecord+otherwise it will ta!e the 1st inde$ record by default.

    if you want more than a record+using loop statement+you canget it.

    - n an internal table !ou want to modif! content of aparticular field in a row- How to do it?7-irst apply EloopE or EreadE on the table to fetch that rowinto the wor! area. oerwrite the field alue by passingthe data u want to modify with. inally use the statementgien below.

    If changing 1 or 2 fields+ )

    "00- How do !ou generate interacti.e lists in 5F?7-in , reuse"al"grid"displaypass the alue to the foll. parameters+

    callbac!"program K sy-repid.callbac!"usercommand K interactielist.then create a subroutine li!eform interactielist using r"ucomm li!e sy-ucommusing rfield li!e rs"selfieldset parameter id id1 field r"field..........endform.

    "01- #hat is field catalog?

    7-ield catalog comes in 9J. #hrough ield catalog+ u cantell 9J as to which fields hae to be displayed in thelist and at what position they hae to be....

    "02- #hat is 7 able what it will consists?7-E58#E is a transaparant table.It is the table for ,essagestatus.It consists of applicationof message conditions+message type+ message language etc.

    "03- how to transport abap worBbench obNects

    11/

  • 8/11/2019 121259393 ABAP Interview Questions

    117/148

    7-8&0 transaction is for wor!bench transport reSuest whereinthe deelopers can trac! their changes or modifications tothe wor!bench ob@ects ."04- loop times-s!@tabiAs!@indeA-endloop-

    what is the output?7--differences between the sorted +standard+ hashed tables.7-1.8tandard Internal #ables* #hese tables hae a linear inde$and can be accessed using the inde$ or the !ey. #he responsetime is in linear relationship with number of table entries.#hese tables are useful when user wants to addressindiidual table entries using the inde$.2.8orted Internal #ables* #hese tables also hae an inde$and the !ey.

  • 8/11/2019 121259393 ABAP Interview Questions

    118/148

    "11-what is the difference between ' 99 &5#'I&8 and 8&9&7# V', O

    ANS.or all entries is used to @oin the one or more tables based oncondition.8elect V from is used to fetch the data from dbtable+but donEt use select V from due to performance standards. #hecode li!e this select beln erdat ernam !org from ba! into table it"ba!

    where beln eS "beln. select beln posnr matnr mat!l from bap into table it"bap

    for all entrie in it"ba! where beln eS it"ba!-beln#he seSuence of fields used in select Suery must be same asthe seSuence of fields in internal table.than!s+i hpoe this is corrct...........

    612.when you are using 2 internal table in program+ you haedecided to use for all entries statement to retriee databut unfortunately there are no records in the first internaltable. Fhat will be the resultO 2nd internal table containsrecords).

    7-

    "13-%ow to populate signature in smartformsOwhere can we uploadthe signatureOis der any tcode for itOnswerI58&'#--'%I78---graphics means it ta!es

  • 8/11/2019 121259393 ABAP Interview Questions

    119/148

    616.In smart form how can we conert the decimal to whole no.for e$. i hae date li!e G.4G6. now i want conert to wholeno. after point alue more then G means the no should come

    6. below G means its come G. any body can help me with code.7-

    :#* :10) #;& 7+ before :ecimal

  • 8/11/2019 121259393 ABAP Interview Questions

    120/148

    - &nhanced write loc! e$clusie loc! without cumulating)wor!s li!e a write loc! e$cept that the enhanced write loc!also protects from further accesses from thesame transaction.

    ;ou can create a loc! on a ob@ect of 8 thorughtransaction 8&11 and enter any meaningful name start with&P &$ample &P#&8#"97B.

    =se* you can see in almost all transaction when you areopen an ob@ect in 7hange mode 8 could not allow to anyother user to open the same ob@ect in change mode.

    &$ample* in %' when we are enter a personal number inmaster data maintainance screen 8 canEt allow to anyother user to use same personal number for changes.

    #echnicaly*Fhen you create a loc! ob@ect 8ystem automatically creattwo function module.1. &5N=&=&"A9oc!ob@ect name. to insert the ob@ect in aSueue.2. :&N=&=&"A9oc!ob@ect name. #o remoe the ob@ect is beingSueued through aboe ,.

    ;ou hae to use these function module in your program

    62).1)%ow manylayou types we hae in smartforms ( difference between them..O2)how to do pagebrea!s in 8,'#',8..O3):o we deelope 8martform from scratch or do we usestandard smartforms in real time..O

    AN. 1)layout type is one which we can modified the e$istingone or deeloped the new one from scratch.2)in smartforms we will do the page brea!s using of thecommand.3) in real time it will depends on the reSuirement ifclient if the standard aailable we will continue withstandard it is not aailable we will deelope form scratch.

    "21-Fhat is a difference between - '='5+ &?I#+ 7%&7B+ 8# (

    '&U&7# - #o leae the processing bloc!sANS.8#* #his terminates the bloc! and e$ecutes end-of selection.&?I#* It terminates the loop processing and process the ne$tstatements.7%&7B* It ealuates the subseSuent logical e$pression if itis true the processing continue with the ne$t statement.75#I5=& terminates the current loop pass+ returns theprocessing to the beginning of the loop and starts the ne$t

    1*7

  • 8/1