ABAP Interview Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 148

SAP ABAP IMPORTANT INTERVIEW

1) How to maintain lists in dialog programming?


2)How to send greeting with different languages to
different 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 list
how it maintains?
) In lsmw data length 20 chars onl! but there is 24 chars
field how can u manage?
")#hat is the diff b/w $%&C$'( n )*&+C$,,?
Ans: 1)by using table control
2)by using tcode se63
3)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 since
it is a system ariable but we can clear the content of
o!"code.
2. #he length of sy-ucomm is fi$ed but the length of o!"code
is 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 ( &mphasi)e
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+footer
then go for main area+select the field right clic!
select--.low logic-- program lines here u hae to specifyI/p
( 0/p parameters.
1rand total*
for this go to table-- right clic! --select #e$t
then write the grand total is ("total(.
4. In smart forms page no will be displa!ed as 2 of 10 1 of 1
but while printing 10 of 1 it does not print correctl! tell
me how to handle this scenario-
/ns- .or this create a window name is 2341&502+'ight clic! on it
create te$t- from there u %ae to specify
2(page(/(smartforms-formpage67)(
#hen it will declare in the form 1/10+ 2/10......li!e this.
1
5. 2!pes of updating in call tr?
Ans. #here are three types of updating in 7all transaction.
1.8ynchronous update
2.4synchronous update
3.9ocal update
6. ,odes in Call 2r?
4ns. 4/&/5/3
:isplay 499 87'&&564)
:I8394; &''0' 059;6&)
:I8394; 50 87'&&565)
:0 50# :I8394; :&<=1I51 3088I<9&63).
7. How !ou prepare documentation?
#here is an option in se3>..1o to =tilities and there u can
find option called documentation. 7lic! that and u can write
ur documentaion.
8. 'ifferentiate select and select single?
458. 4- select statement which is used to read all the records from
the database.select single statement read the single record
from the database.
<- 8elect statement can be e$ecuted without where clause
but+select single needs to hae where clause and we need to
specify the full primary !ey.
1- )uppose in the 3eport 4rogram I want to pass data to
another 3eport 4rogram --how will !ou do that one?
ANS. = can do this by &?30'# I,30'# concept...
u e$port all the data which you want may it be an internal
table or @ust a structure or some data ob@ect using the
command...
&?30'# Af1- Af 2- ... #0 ,&,0'; I: A!ey-. for indiidual
ariables and for e$porting internal table the command is
&?30'# A#able name- to ,&,0'; I: ABey-.
#hen+ u can import them in some other program by using the
command ...
I,30'# Af1- C#0 Ag 1-D Af 2- C#0 Ag 2-D ... .'0, ,&,0'; I:
A!ey-.
10- #hat are steps in.ol.ed in creating /5(?
the following steps will be done when creating ALE:
1.DEFINE LOGICAL !"E# $O"% ENDE& ' &ECEI(E& )ING ALE
"&ANAC"ION.
*.AIGN CLIEN" "O LOGICAL !"E# )ING CC+ "&ANAC"ION.
,.C&EA"E -O&" )ING .E*1 "&ANAC"ION.
+.C&EA"E #ODEL (IE. )ING $D/+ "&ANAC"ION.
0.GO"O EN(I&ON#EN" ' CLIC1 ON GENE&A"E -A&"NE& -&OFILE
GI(E -A&"NE& !"E# NA#E ' F2.
/.!O) GO" "%E &E)L" #ODEL (IE. %A $EEN C&EA"ED.
F, 3F, GO"O EDI"45#ODEL (IE.45DI"&I$)"E
*
6.)ING ##71 C&EA"E "%E #A"E&IAL.
2.END "%E DA"A )ING $D17 "&ANAC"ION.
8.GO"O .E70 F2
17.C%EC1 "%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"ION
GI(E "%E #A"E&IAL N)#$E& ) C&EA"ED.' F2.
1* GO"O .E70 "&ANAC"ION ' F2 C%EC1 "%E "A") OF DA"A.
IF ) GE" 0, "A") !O) .ILL )CE.
11. what is 2code for 6asic /5( configuration?
/7)- 849& 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
,&8841&8 I5#0 Ainternal table- which is of type <:7,817099
which will contain all the messages.then loop through this
table to analyse the messages.
13- what are the fields in 6'C 'ata?
/7)- <:7 :ata is a structure with G fields.
1.program char holds program name responsible for the scrn
2.:ynpro numc screen number
3.:;n<egin char E$E indicates start of the screen.
4..nam char .ield name
G..al char6>0) .ield alue
13- tell me about status codes?
/7)- these r the mile stones in transfer of I:07 by which the
I:07 sending system !nows the status of I:07 . there are HG status record
0 to 4I are recorded for outbound and G0 to H4 are for
inbound.

14- #hat is the 'ifference 6etween basic list and interacti.e
list?
/7)-/8 #%&'& I8 059; 4 8I519& <48I7 9I8# F%&'& 48 F& 745 %4J& 45;
I5#&'47#IJ& 9I8#8 I5 F%I7% #%&8& 8%0=9: <& <&#F&&5 1 45: 20.
<; =8I51 98I5: F& 745 1&# #%& 9I8# 5=,<&'.
<- <asic list is nothing but classical list it will display
only one single list.we can not possible to hae trigger
secondary lists. so we will use interactie reports to
triggering the secondary lists using 4t line-selection+4t
user-command+4t pf-n.
1- what are parameters of 6'C $4(7 /7' I7)(32 fun module ?
/7)9 C/55 :+72I$7 ;6'C&$4(7&<3$+4=
79I&5# K A- LI5 F%I7% 8&88I05 <& 3'088&:
1'0=3 K A- L8&88I05 54,&
%09: :4#& K A- L 8&88I05 74550# 3'07&88 =5#I9 #%I8 907B :4#&
B&&3 K A- L.941 I5:I74#& F%&#%&' 8&88I05 B&3# 0' :&9&#&
=8&' K A- L4=#%0'I84#I05 FI99 <& 7%&7B
3'01'4, K A- L54,& 0. #%& 3'01'4,
C/55 :+72I$7 ;6'C&I7)(32=-
&?30'#I51.
,
#70:& K A-M#'45847#I05 70:&
:;53'0#4< K A- L <:7 I5#&'549 #4<9& 54,&
1"- what is the status code when I'$C is created?
/7)- 01 for 0utbound side
G1 for Inbound 8ide.
1>- #hat is the 4rocedure for 6'C?
/7)- /8'(C5/3( 6'C 2/65(
68:I55 6'C2/65(
C8C$55(C2 23/7)C2I$7 I7:$3,/2I$7
'8C3(/2( /7' 3(C$3' 43$<3/,
(843$C()) 6/2CH I74+2
:8)())I$7/C/55 23/7)/C2I$7
1?- 3ecording @@ 2ransaction code?
/7)- )H'6/ 8,3G for <ach input session oer iew
11-)2(4 6* )2(4 '(2/I5 43$C(() $: 6'C-
/7)- 1eneral flow of a <:7 program is li!e this....
1) .irst create recording for the # code which you want to
ma!e <:7 for... =se # code 8%:< for recording.
2 ) 5ow sae that recording and create pogram from that
recording using 7reate 3rogram button. gie the <:7 drier
program name and create.
3 ) 5ow the general logic of <:7 program goes li!e this....
- =pload .lat file into and internal table using function
module 2=3904:2
- 03&5 <:7 1'0=3.
- 5ow loop at that internal table which contains the data
from flat file.
- moe data from internal table to fields of <:7:4#4 using
automatically gebnerated code from <:7.
- 7499 #'45847#I05 A# 70:&- using <:7:4#4...
- 7908& <:7 1'0=3
20- 3un 2ime /nal!sis @ 2ransaction code?
/7)- 8&30 * .0' '=5 #I,& 4549;8I8.
8#0G * .0' 8N9 #'47&
87I * .0' 70:& I583&7#0'
89I5 * .0' &?#&5:&: 7%&7B
8#22 * .0' 8%0'# :=,3 4549;8I8
21- what is the difference between session 0call 2ransaction?
/7)- session method*
1.4synchronous processing i.e we can process multiple
transaction codes in a single program.
2.8ynchronous data base updation
3.&rror log created.
4.5o significance for sy-subrc.
G.It is slower than call transaction method.
6.Fe cannot e$ecute this method directly.
call transaction method*
1.8ynchronous processing i.e we can process single
+
transaction in a single program.
2.8ynchronous and 4synchronous 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- /4452?
/7)- 43392 - 0rgani)ation and customi)ing. #his is used at
the time of system configuration. it is done one time and
rarely changed.
23- How to find 6uffered or not?
/7)- Fe can find buffured or not by going to the technical
settings of a table .#here is an option called E<uffering
allowedE.If that option is chec!ed +that means the table is
buffured.
24- what is table maintenance?
/7)- #able maintainance is nothing but adding / modifying /
deleting records from table. ;ou can use transactions
8,30 / 8,31 for the same.4lso 8,13/8,14 can be used.
2- what is search helps--How man! t!pes are there?
/7)- 1.elementary search help i.e to gie help for a single table
2.collectie search help i.e to gie help for multiple
#ables.
2"- what is eAact difference between uline and s!@uline?
/7)- F'I#&* uline. --- does not wor!.
F'I#&* sy-line. --- 7orrect
2>- In 6acBground 3eport0 how to handle errors?
/7)-+)I7< (33$3 5$<)-
2?- How to process the session d!namicall!?
/7)- %ere two ways for processing sessions.
1.1o to 8,3G process the session.
2.<y e$ecuting '8<:78=<.
21- what are Con.ersion 3outings?
/7)- I# 705J&'# 843 8#45:4': #4<9& :4#4 #0 50',49 :4#4
&?4,39&* 0000003> -- 3> =8I51 #F0 .=5#I05 ,0:=9&
705J&'8I05"&?I#"$$$$$"I53=#
705J&'8I05"&?I#"$$$$$"0=#3=#
#he I53=# module performs the conersion from display
format to internal format. #he 0=#3=# module performs
the conersion from internal format to display format.
30-)ort statement?
/7)- its is used for sorting internal table.
synat$ *
80'# Aitab- by Afield- 4scending/descending.
31- How to fetch all the data from the Internal table?
/7)- (C/,45(9 5$$4 /2 I2&2/6 I72$ #/&I2&2/6
0
#/&I2&:I7/5@,/273 D #/&I2&2/6@,/273
#/&I2&:I7/5@(37/, D #/&I2&2/6@(37/,
(7'5$$4-
32- #H/2 I) 3(/' )2/2(,(72O
/7)- '&4: 8#4#&,&5# I8 =8&: .0' '&4:I51 #%& '&70': .'0, I5#&'549
#4<9& 50# .0' :4#4<48& #4<9&.
(C/,45(9 3(/' 2/65( I2&2/6 I72$ #/&I2&2/6 #I2H %(* ,/273 D#/&I2&2/61@,/273-
33- what is checB table?--what is domain?
/7)- #H(7 #( '(:I7( / :$3(<I7 %(* I7 / 2/65( E/)- I: 2HI) %(* 3(:(3) 2$
43I,/3* %(* $: /7$2H(3 2/65( E6) 2H(7 2/65( E6) I) CH(C% 2/65(-
:0,4I5* #&7%5I749 7%4'4#&'&8#I7 0. #%& #4<9& I8 7499&: :0,4I5.
34- #H/2 I) )elect option?
/7)- 8elect option is a type if internal table
it has four options . #hey are
1. 8ign
2. 0ption
3. 9ow
4. %igh
it is used for multiple selection
3- /t selection@screen on :ields output?
/7)- we can change field before going to display li!e hide. this
will process before at-selection screen and after
initiali)ation eents.
3"- can an!one gi.e me notes on bdc direct input method?
/7)- #( H/F( )$,( )2/7'/3' 43$<3/, :$3 'I3(C2 I74+2-
3,'/2I7'@,/2(3I/5 ,/)2(3 I74+2
3>- In /6/4 #hat is the +se of G:$3 /55 (723I()G Clause H when
it is being used- /nd what it reall! does?
/7)- 1. duplicate rows are automatically remoed
2. if the itab used in the clause is empty + all the rows in
the source table will be selected .
3. performance degradation when using the clause on big tables.
(C/45(9 )(5(C2 ,/273 (37/, :3$, ,/3/
I72$ 2/65( I2&,/3/
:$3 /55 (723I() I7 I2&F6/4
#H(3( ,/273 D I2&,/3/@,/273-
3?- what is InitialiIation 4urpose?
/7)- #%& =8& 0. I5I#I49IP4#I05 &J&5#8 I8 F& %4J& #0 7497=#4#&
#%& 90F 45: %I1% J49=&8 I5 #%& I5I#I49IP4#I05 &J&5# #%&5 I#
FI99 :I8394; 05 #%& 8&9&7#I05 87'&&5.
.0' &?* 90F K 8;-:4#=,.
%I1% K 10 Q 8;-:4#=,.
8&9&7#-03#I058* &J<&95 .0' J<4B. /44(7' (F(57
I5I#I49IP4#I05.
&J<&95-90F K EHG>0E.
&J<&95-%I1% K EHGI0E.
&J<&95-8I15 K EIE. I ,&458 I579=:&:
&J<&95-03#I058 K E<#E.
31- #H/2 I) 2H( 3(C$3'I7< 4+34$)(?
/7)- to upload the multiple data from flat file.
/
40- #hat is Internal 2able?
/7)- Internal tables proide a means of ta!ing data from a fi$ed
structure and storing it in wor!ing memory in 4<43. #he
data is stored line by line in memory+ and each line has
the same structure. 4 particularly important use
for internal tables is for storing and formatting data from
a database table within a program.
41- 2!pes of 6'C?
/7)- there r 3 types 6or) methods of <:7.
1. call transaction
2. session method
3. direct input method
41- #hat are Call 2ransaction ,odes?
/7)- #he call transaction mode can ta!e the following alues*
E4E :isplay screen
E&E :isplay only if an error occurs
E5E :o not display
E3E :o not displayR debugging possible
If the ,0:& addition is omitted+ then the processing mode
is E4E.
42- what are s!stem Fariables?
/7)- system ariable r sap defined we can use anywhere of a
program and also these r global.
43- #H/2 /C2+/55* I) 3(/5 2I,( I,45(,(72/2I$7 H$# ,/7* 4H/)()
/3( 2H(3( I7 2H/2-
/7)- <est implement of &'3 can be done using its 11 stages and
these are as follows
-3re-ealuation and screening
-3ac!age ealuation
-3ro@ect planning phase
-1ap analysis
-'eengineering
-7onfiguration
-Implementation team training
-#esting
-1oing lie
-&nd-user training
-3ost-implementation
44- )elect -- +p to one row will ha.e better performance than
the )elect single J?
/7)- 1)8&9&7# single retries only one record which eer come
across first in data base Suery
8&9&7# ..upto 1 row + all records are fetched into a buffer
which are satisfied from Fhere condition in :ata base
Suery + and from buffer first record is fetched .
--same as 4nswer 2
2) If you !now all the primary !eys in F%&'& condition +
use 8&9&7# single.
If you dont !now all primary !yes in F%&'& condition + use
8&9&7#...=3#0
6
4- In an Internal table how do !ou suppress or add the leading
Keroes for a particular field in !our itab?
/7)- =npac!s the pac!ed field 4 and places it in the field <
with leading )eros. If < is too
short+ it is truncated on the left.
&$ampl* :4#4* p"field 62) #;3& p J49=& 103+
c"field 6>) #;3& c.
=5347B p"field #0 c"field.
F'I#&* p"field+ c"field.
0utput* 103+
00000103.
0#%&'FI8F Fe can use a function module E705J&'8I05"&?I#"493%4"I53=#E
to add the leading )eros.
e$ample*
7499 .=57#I05 E705J&'8I05"&?I#"493%4"I53=#E
&?30'#I51
I53=# K 3"B=55'
I,30'#I51
0=#3=# K 3"B=55'.
4"- )uppose u r using :$3 /55 (723I()- #hat happens when there
is no data in the itab which is using all the entries?
/7)- If the table on which the .or 4ll &ntries I5 clause is
based is empty+ all rows are selected into the destination
table. %ence it is adisable to chec! before-hand that the
first table is not empty.
4>- How can u transfer the data from one itab to another
without using mo.e H write statements?
/7)- using itab1CD K itab2CD.
4?- /fter the )())I$7 is created where is it stored?
/7)-H('(3 )(C2I$7 )())I$7 I7:$3,/2I$7 /3( )2$3(' I7 /4LI 2/65(
'/2/ )(C2I$7 /3( )2$3(' I7 /4L' 2/65(-
JJ41- In )(11 we created two database tables sa! some 1000
fields each-7ow f we want both the tables combined into one
table0 how do we do that?
/7)-
0- How man! fieldsEmaA) can be there in a transparent table?
/7)- 4 table may not hae more than 24I fields.
1- how to create a button in selection screen?
/7)- we can create the buttons li!e this
selection-screen pushbutton 1064)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 4t the end of the
processing bloc!.
3- How do !ou write technical specs?
/7)- #here we write description+ selection screen ariables+
2
output ariables+ custom tables+ pseudo code+ error msgs+
=#36unit test plan).
4- what are the differences between scripts H smart
forms?
/7)- 1.8apscript is 7lient dependent
8martform is 7lient independent.
2.8apscript can uploaded/:ownloaded whereas
smartforms cannot.
3.protect/endprotect command in sapscript will
not wor! in smartforms
4.#ransaction for sapscript is 8&H1
.or smartform T 8,4'#.0',8
- *ou are running a report- It is taBing long time for
eAecution- #hat steps will !ou do to reduce the
eAecution 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 in
reports-
/7)- Fe can deelop ma$imum 20 interactie lista using
4t line-selection.
If we need more than 20 interactie list use user-command.
set pf-statusA$$$-.
1- what are )4/ and <4/ parameters?#hat the 4urpose?(Aamples?
under /6/4 ,emor!-
/7)- Fithin a main session+ when eer you start an application
program+ it opens up an internal sessions with in the main
session. #he internal session has a memory area that
contains the 4<43 program and its associated data. 8o when
eer you want to pass data between two internal sessions+
then you can use 4<43 ,emory 6i.e import+ e$port).
Fhen comes to 843 memory 6also !nown as global memory)+ if
the data has to be passed b/w two main sessions+ we can use
843 ,emory6834/134 3arameters). 843 ,emory can also be used
to pass data b/w internal sessions.
"0- what is Import and (Aport ,emor!?
"1- in an interacti.e report i want to trigger both Mat
8
line selectionM and Muser commandM----if possible
then how?
/7)- ;&8 <0#% #%& J&5#8 4'& #'11&'&: I5 #%& 84,& 3'01'4,. 4#
9I5& 8&9&7#I05 &J&5# #%& J49=& 0. #%& 7=''&5# '0F I8 8#0'&:
I5 #%& 8;8#&, .I&9: 0' #%& %I:& F0'B 4'&4 45: #%& #I,& #%&
=8&' :0=<9& 79I7B #%& 87'&&5 #%& 4# =8&' 70,,45: &?&7=#&8
F%I7% 1IJ& #%& :&8I'&: .=57#I05 70:& #0 3'07&&: .='#%&'.
"2- )+44$)( #( /3( 3+77I7< / 6'C 43$<3/, I7 6/C% <3$+7' /7' /2
2H( (7' #( :$+7' 2H/2 )$,( 3(C$3') /3( 7$2 +4'/2('?#H/2 I)
2H( )$5+2I$7)
/7)- according to your Suestion + error records will moe to log
file+go to log file and rectify the errors what eer you
hae+again start the process from begining onwards+ so in
seesion method because of synchronous updating the process
will be stoped+so you hae process from begining onwards.
"3- gi.e eAamples of pool0cluster tables?
/7)- 3ool tables are* 400G+4001
7luster table*<8&1
"4- How do !ou get output from I'$C?
/7)- .unction moudles or processing routines are alloted
dynamically based on message type andn I:70 type. Fe use
these function modules to process I:07 segments to get data
and moe this segment data into internal tables.
"- (Aplain about roll area 0 'ispatcher0 /6/4@4rocessor?
/7)- 4pplication serer contains :ispather.
:ispatcher contains Sueue file and wor!processors.
Fhen we e$ecute ob@ect+ the reSuest goes to dispatcher and
dispatcher sends it to Sueue file. after that dispatcher
allocates the reSuest to aailable wor! proecessor to
process the reSuest.
#he wor! processor contains screen processor+ abap
processor and flow logic.
4<43 processor process the abap code.
.or each reSuest in wor!processor contains user conte$t and
roll area.
'oll area contains program name+ ariables+ memory area+
dyanmic ariables+ etc.
""- #hat is the main point while using control breaB in
internal table ?
/7)- #he main point is that we hae to first sort out the #able
in 4sce/:ese order and we can use control bear! with in
loop and endloop.
">- #hat is :ield s!mbol?
/7)- .ield symbol is a place holder for e$isting fileds. :oes
not resere place physically but point to the field which
is not !nown until runtime.
Fe can assign sections of fileds6offset+ lenght can be
specified dynamically in prg.) and may e$tend beyond field
boundaries.
synta$* .I&9:-8;,<098 Afs-Ctype/structure As- defualt Awa-D.
Fe can also assing components of structure to field symbols.
17
"?- How to transfer legac! data into base tables b! scheduling
a time frame using bdc?
/7)- .irst we need to create a session for this process.
4fter creating session+ we can schedule this @ob using tcode
8,36 or we can schedule in 8,3G itself by giing schedule time.
"1- how to handle the errors Eduplicate records) in C/55
23/7)/C2I$7 ,(2H$'
and H$# C/7 #( )H$# 2H( (7'+)(3 /6$+2 2H( (33$3 3(C$3'
/7)- :eclare one structure of type <:7,817099 and then create
the internal table for the same.
#hen use the 7all transaction using statement with the
,essages addition then call the function module
.ormat"message to conert the systems error messages into
the desired format so that user can understand.
>0- How to debug a smartform?
/7)- 8#&31-- 4.#&' 47#IJ4#& 8,4'#.0', ;0= 1&# 4 54,& 0. .=5#I05,0:=9&.
8#&32-- 10 #0 #70:& 8&3H.1IJ& 54,& 0. .=5#I05 ,0:=9&. 45: 1&# .=5#I05
:&#4I9 45: 3'01'4, 54,&.
8#&33-- 10 #0 #70:& 8&3> '=5 #%4# 3'01'4,.
8#&34-- 1IJ& <'&4B30I5# 45: :&<=1.
>1- #hat is mean )*@)+63CD? in 6'CEwhile uploading data)-
/7)- the meaning of sy-subrc K > ,eans the 'ecord is not .0=5:.
>2- what is template in smartform?
/7)- #emplate haing fi$ed si)e but a table will be e$pandable.
>3- what is /5(0 'ebugging0 )mart :orms 0I'$CM) H 6'CM)?
/7)- 49&64pplication 9in! &nabling) is a 5etwor!.it used to communicate two
or more serers which are geographically e$isted.
:ebugging * :etailed error analysis source code leel.it is e$ecuted the
program in line by line .
8martforms * 8martforms is a #009 .which is used to generate <usiness 9egal
3rocessing :ocuments .#he #code of 8martforms is 8,4'#.0',8.it is adanced
ersion of 8cripts.
I:07Es6Intermediate :ocument) * it is a collection of segments .segment is a
collection of fields.I:07 is used to transfer the data between two
serers.#code for I:07 is F&30.
>3-#hat is the diff b/w $%&C$'( n )*&+C$,,?
/7)- 1. It is not possible to clear the content of sy-ucomm since
it is a system ariable but we can clear the content of
o!"code.
2. #he length of sy-ucomm is fi$ed but the length of o!"code
is not fi$ed. we can ta!e any length
>4- how to change col colors in al. reporting?
/7)- =se the 9J7"8"8709 structure gies the column name in
.54,& and gie the color in 7090'.
>- How to maintain subtotals n grand totals in smart forms?
/7)- subtotal*
11
for dis initially find which field haing price alues+
#hen go to table inside we are haing %eadder+,ainarea+footer
then go for main area+select the field right clic!
select--.low logic-- program lines here u hae to specifyI/p
( 0/p parameters.
1rand total*
for this go to table-- right clic! --select #e$t
then write the grand total is ("total(.
>"- In smart forms page no will be displa!ed as 2 of 10 1 of 1
but while printing 10 of 1 it does not print correctl! tell
me how to handle this scenario-
/7)- .or this create a window name is 2341&502+'ight clic! on it
create te$t- from there u %ae to specify
2(page(/(smartforms-formpage67)(
#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 0 what about reaming records but
it did not show an! error?
/7)- Uust 7hec! the .ilter settings.'emoe the filter for the
fields and then transfer the datarecords again.If the filter
is set it will not show any error.
>?- what is the meaning of )C3((7@I74+2 D M0/1M0 )C3((7@/C2IF( D
M0/1M- in e.ent /2 )(5(C2I$7@)C3((7 $+24+2
/7)- when screen-actie component is )ero then input K 0+output K
0 statically.screen field is inisible they are not ready
for input.
when actie component is 1 then field is ready to accept the
input from user.
>1- How will !ou add color in a row using /5F ?
/7)- use the follwing in 89I8
slis"t"specialcol"al
?0- wh! )/4 script is clint dependent and smartform is clint
indepedent ?
/7)- sapscript is 7lint dependent and smart form is 7lint
independent bc) of smart form creates a function module
which sap script doesnEt create
?1- 3eport Iabc-
2op@of@page-
#rite 9 MHelloM-
(nd@of@page-
#hat is the output of the program?
/7)- #here is no output.<ecause+#op-of-page triggered when first write
statement encountered.
?2- / database table contains 3
fieldsE)tudent&no0)ection02otal&marBs)-I want retrie.e top 10
students from each section-7ote9E)ection contains data liBe
/060C-(ach section contains more than 10 students)-
/7)-
'&30'# )scenario.
:4#4 itab 9IB& )abc 077='8 10 FI#% %&4:&' 9I5&.
1*
8&9&7# V .'0, )badG I5#0 #4<9& itab =3 #0 10 '0F8.
&5:8&9&7#
80'# itab <; sclass smar!s.
9003 4# itab.
4# 5&F sclass.
F'I#&* / itab.2-sno1 itab-sclass itab-smar!s.
&5:4#.
&5:9003.
?3- can an! bod! tell what is idoc archie.ing and how to do that?
/7)- 4rchiing means collection of %I8#0'I49 Idocs that can be
stored out side of #he :atabase+<y using this Fe can reduce
load on the data base.
2F&102 is the #70:& for archie idoc info structure.
%ere 2 options is aailabale.
1. :atabase
2. 4rchie
-- Fe can select 4rchie idoc then it gie the information
about #his.
?4- #hat is partner profile?
/7)- #he tcode for creating the partner profile is F&20 . #hese partner
profiles are used when generating idocs i.e sending and receiing idocs.
6partner profiles are nothing but sender and receier information ) In this
the mandatory things to remember is port number + logical system + inbound
parameters + out bound parameters.
?- how to create form without mainwindow?
/7)- Fe can create a smartform without a main window. In smartform we can
directly loop by right clic!ing on table+ which gies a loop window and also
we can create a window and a table line outside the main window. In table
line we can gie data in main area.
?"- what is sap pacBage ?
/7)- 4 3ac!age is #ype of :eelopment ob@ect which act as a
container to store a deelopment ob@ects such as screens +
menus+ function + transactions
?>- !ou ha.e to select fourth .endor no in basic list go to open
new list E secondar! list) - what is the coding in
interacti.e report ?-- tell me the coding clearl! plI?--
/7)- data * beln type beln.
form usercomm using rucomm type syucomm
rselfield type slis"selfied.
case rucomm.
when E(I71E.
if rselfield-fieldname K beln
beln K rselfied-alue.
select beln VVV from bap into table it"bap where
beln K beln.
endif.
endcase.
endform.
??- what are .arious wa!s of triggering a new page in reports ?
/7)- trigger the command new-page.
1,
?1- How do !ou set bacBground Nob automaticall! ?
/7)- program '8<:78=<.
10- How do !ou call a report from a transaction ?
/7)- 7reate a new )-transaction form seI3 ( specify the report
name. when this newly created tcode will be e$ecuted the
specified report will be triggered.
11- How do !ou call a transaction from a report ?
/7)- <y using 7499 #'45847#I05 Atransaction name- function module.
synta$*
Frite*/ E7lic! %ereE %otspot.
4# 9ine-8election.
call transaction Ese11.
3ress .> 4nd #ransaction 8e11 will open.
12- C/7 /7* $7( 2(55 ,( #hat is the use of fallowing structures
1)6'C'/2/
2)6'C,)<C$55
/7)- <:7:4#4 standard structure contains following parameters.
program *name of the module pool programm.
dynpro *screen number
dynbegin*it indicates for the new screen
fnam *name of the fields in database
fal *fields alues are assinged with the fields
by defineing that structure bdcdata as it"bdcdata and wor!
area wa"bdcdata and we can pass aboe alues.
e$* wa"bdcdata-program K name of the module pool program.
4nd <:7,817099 this is the structure to !eep the errors while we
are using call transaction method in bdc.
e$ synta$*
call transaction Ea01E using it"bdcdata mode a/n/e update
s/a messages into it"bdcmsgcoll.
13- what are medrucB0 r.order01?
/7)- #hese r standard script forms
,&:'=7B - 3urchase orders
'J0':&'01 - 0rder conformation
14- #hat is direct input method ?
/7)- In bdc+ direct input method can handle e$clusiely large
amount of data only.It is also can process foreground and
bac!ground. It also haing log file default.
difference with session method is alidations can be done by
sap predefine function modules. It is faster than session
method. In case of errors direct input mechanism proides
restart mechanism for this we hae to e$ecute in the
bac!ground only this rbmshow or tcode bm0.
1- /fter running a 6'C program in bacBground0 neAt
da! morning when !ou see the results0 few records
are not updatedEerror records)- #hat will !ou do
then ?
/7)- In case of session method we hae to download the records
through log file. again reload the records.
1+
1"- Can we use )ession method H Call transaction both in one 6'C
if !es please gi.e me eAample and scenario where we use this ?
/7)- we can use both call transaction and session method in one <:7
3rogram..
If we want to use call transaction method+ In 7all
transaction ,ethod there is no error log will be
generated...8o we use 8ession ,ethod In the 8ame <:7 3rogram...
1>- Is it possible to include two transactions with one group
name in one program in session method ?
/7)- ;es+ it is possible+ for eery new transaction we need to
use bdc"insert function module.
1?- what is the Currenc! and Luantit! field in 6'C?
/7)- In <:7+ for currency+ Suantity+ date and time fields you
need to ta!e the data into a char ariable of enough length
and use F'I#& #0 statement to ta!e care of user settings.
&1* F'I#& l"curr #0 l"char 7=''&57; E7urrency codeE.
705:&58& l"char.
3ass l"char to <:7.
11- what is difference between 3(+)(&/5F&<3I'&displa! and
reuse&al.&list&displa!?
/7)-/8 In 1rid display #03-0.-341& eent will be used and we can
display logos in '&30'#. <ut where as in case of 9I8#
display it is not possible. &en edit is not possible in
9I8# display but in grid display it is possible
68 <y using '&=8&"49J"9I8#":I8394; we can display only a
normal list it it not a user friendly .
but where as using '&=8&"49J"1'I:":I8394;
we can calculate grand total +sub totals+
and filter the fields with out using any functions.
C8 moing of colum position one place to other place in
griddisplay+ but not posible in listdisplay.
100- #hat are the tables using in diff modules liBe )'0 4,0 ,,0
L, /7' :IC$? gi.e me some eAample names ? 'o we need to use
the eAisting tables in 3/3 most of the time?
/7)- #ables for 8:* #hese are somr of main tables in 8:
.or 8ales :ocument ie 80 *J<4B ( J<43
.or 8hipping* 9IB3 ( 93I8
.or <illing * J<'B ( J<'3.

#ables for ,,* #hese are some of main tables in ,,
.or ,aterial info* ,4'4+ ,4B#+ ,4'7+ ,<&F.
.or 3' * &<45 + &<B5.
.or 30 * &BB0 + &B30.
.or 1'5 * ,B3. + ,8&1.

#ables for .I70* #hese are some of main tables in .I70
.or .inancial 4cc* <B3. + <8&1
.or Jendor * 9.41 + 9.<1 + 9.<B
.or 7ustomer * B541 + B5<1.
101- how can u mo.e a logo from presentation ser.er to
application ser.er ?
10
/7)- 1) when we upload a graphic from 8&H> tcode its moed to
application serer
102- 2he logo uploaded using rstAldmc prog - where it is
going to store ?
/7)- #he report '8#?9:,7 allows a #I.. graphics file to be
uploaded from the file system of the '/3 1=I to a standard
te$t in the '/3 word processor 843script
103- what r clients ? what r the client no a.ailable in a
compan! ? ?00 client for which application ?
/7)-
7lient is a there didgit number which we enter while
logging which helps in data security by preenting the data
from being isible to users in other client
1) 4 commercially+ organi)ationally+ and technically self-
contained unit within an 843
system
2) 7lients hae own master records and set of tables
3) 7lient is the highest leel in the 843 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 in
classical reporting ?
458.
10- can u use at@line@selection H user@comand at atime in
same program ?
/7)- yes we can use.
In the 3. 8#4#=8 we must gie the tcode 3I7B beside
the function !ey .2 in freely assigned !eys
10"- what is the diff between parameter H range ?
/7)- :ifference between 3arameter ( 'anges *
'anges *it gies 2 alues ie) fromalue and toalue.we can
use select-options also ranges.It creates 4 selection table
6sign+option+low+high).
parameters do not create selection table and it shows only
1 alue.with paramters we can define chec!bo$es and
radiobuttons.
10"- H$# '$ *$+ C$7:I<+3( /5( 6(2#((7 2#$ 'I::(3(72 F(3)I$7) $:
)/4 ?
/7)- 49& is configured li!e this*
.irst setup logical system 6<:G4)
4ssign the logical system to respectie clients 68774)
:efine the '.7 destination 68,GI)
:istribute the customer model6<:64)
7reate the port6F&21)
7reate the 3artner profile 6F&20)
#o chec! the the Idocs 6F&02/0G)
10>- #hat is the difference between field string and internal
table?
1/
/7)- .ield 8tring is nothing but a wor! area and it holds only
single record where as Internal table holds multiple records
10?- #hat is the purpose of (dit ,asBing?
/7)- &dit ,as! is =sed for &diting 0utput in 4<43 &ditor.
for e$ample *
:4#4 #I,& #;3& # J49=& E1G4633E.
F'I#& 6>) #I,& =8I51 &:I# ,48B E""*""*""E.
0utput* 1G*46*33
101- How man! t!pes of organiIation data?
/7)- the organi)ation data is can be categeroised by three types.
#hese are gien below.
,aster data
transaction data
organi)ation data
master data* it can be fi$ed it cannot be changed during the
e$ecution of the program.
#ransaction data* rarely changed.
0rgani)ation data* daily changes the data .
110- #ithou using )5I7 transaction how would !ou checB custom
programs?
/7)- 89I5* is the transaction code is used to chec! the program
e$tends
111- #hat are different t!pes of windows in )martform?
/7)- 1.main window 2.secondary window 3.copies window 4.final window
112- *ou ha.e laBh records to transfer to sap from flat
file-which method of bdc !ou wiil choose and wh!?
/7)- G la!sh records is not a small amount of data it is large
amount. for largee amount we use the session method
113- Can we ha.e two reports running parallel! and both the
reports sharing the same internal table for processing the
data?
/7)- yes+ two reports are running parallely because both hae
two different ob@ects and they hae their own independent
conte$t.:ue to this we can share same internal table for
data processing.
114- #hat is the difference between field string and internal
table?
/7)- .ield 8tring is nothing but a wor! area and it holds only
single record where as Internal table holds multiple records
11- How would !ou debug custom programs at runtime?
/7)- 1ie /h to go to debug when e$ecuting.
#his is also applicable for standard code. <ut system
debugging has to be switched on.
11"- #hat is 'eep structure and :lat structure?
/7)- .lat structure*
16
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 tabletype6internal table) included in the
8tructure.
11>- How to disable the function in al. tool bar?
/7)- for e$ample .
7499 .=57#I05 E'&=8&"49J"1'I:":I8394;E
&?30'#I51
i"callbac!"program K sy-cprog
i"bac!ground"id K E#'J3I7#='&32E
i"grid"title K te$t1
is"layout K 8"layout
it"fieldcat K #".I&9:74#
it"eents K eentCD
2comment
i"sae K E4E
2 this line will not all u to sae the layout.
#4<9&8
t"outtab K I".I549.
I. sy-subrc A- 0.
11?- ,! internal table eAceed the limit- then it goes to dump-
how will u handle this issue?
/7)- using Eoccurs 10E for u r internal table
then internal table occupy ma$imum length62gb).
if the problem will happend same+u can contact u r basis
consultant.
111- #hat are the components in technical setting while creating
a table?
/7)- #echnical setting are mandatory to maintain when you create
a table. :ata class+ si)e category and buffering things are must be
maintained in the technical settings of table.
JJJ120- how to debug the program based on the user?
/7)-
121- how to create the new page in al.-EeA9 after 0 records it
will trigger new page or based on some condition)-
/7)- if the curent page line count has got finished it will
automatically moe to ne$t page.
i thin! u !now about line-si)e as well as line-count.
122- what is standard 0 sorted and hash in abap ?
/7)- In 4<43 we hae two !inds of internal #ables.
1)Inde$ Internal #ables
2)%ash Internal #ables
4gain Inde$ed Internal tables further diided into two types
i) 8tandard Internal #ables
ii)8orted Internal #ables
8o <oth 8tandard and 8orted Internal #ables 7an be accessed
by Inde$es. Fhereas %ashed Internal #ables 7an be accessed
<y 0nly Bey .ields. .or %ashed #ables 8ystem automatically
maintain a %ash 4lgorithm to retriee the records with one
time hit. .or sorted #ables system automatically uses <inary
12
8earch to retriee the records. .or 8tandard #ables 8ystem
.ollows 9inear 8earch.
123- what is Mat line@selectionM and user command?
/7)- at line-selection alidates the entire line and displays
the secondary list based on 1st list condition means where
eer u double-clic! on line it alidates.
sy-liselQ06field"length) K Aconditin-.
at user-command alidates the function !eys to displys the
secondary 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 in
multiple 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 the
concept 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 )mart
forms?
/7)- ,ain window*
In a main window you display te$t and data+
which can coer seeral pages 6flow te$t). 4s soon as a
main window is completely filled with te$t and data+ the
system continues displaying the te$t in the main window of
the ne$t page. It automatically triggers the page brea!.
8econdary Findow*
In a secondary window you display te$t and data
in a predetermined output area. #here is no flow te$t
display with page brea!. If you position a secondary window
with the same name on seeral pages+ the system displays
the contents of this secondary window on each page.
7opy window
;ou use the copies window to define an output area for the
print output+ whose content you want to appear either only
on the copy or only on the original. #his allows you to
flag 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 of
an inoice. %oweer+ this amount is determined only after
listing all indiidual items. 0r you may want to Suery on
the first page within a condition the total number of
pages+ which the system calculates only after processing
all pages.
In such a case+ you use the final window* 3rocessing first
s!ips all windows of this type in the tree and wor!s its
way to the end of the tree. 0nly after the actual
18
processing is finished+ the final windows are processed in
the order in which they appear in the tree 6from top to
bottom). 5ow any information is aailable that is !nown
only 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 in
8martforms.
121- #hat is the difference bewtween client dependent tables
and client independent tables?
/7)- client dependent tables * the tables which has the fields
mandt is a client dependant. these tables details cannot be
iewed in other client.
client independant* these tables will not hae the mandt
field + the details of the table can be iewed by in any
client.
130- How will !ou .alidate selection screen elements?
(C/,45(9
'/2/95&2(,4&,/273 2*4( ,/273-
)(5(C2 ,/273 :3$, ,/3/ I72$
E5&2(,4&,/273)+4 2$ 1 3$#
#H(3( ,/273 I7 )&,/273-
(7')(5(C2-
131- Is 6)(< and 6%4: transaparent tables?
/7)-6%4: 23/7)4/3(72 2/65() 6+2 6)(< C5+)2(3 2/65(-
132- 4urpose of the statemement 2/65( in a report?
/7)- :eclaration of #4<9& statement in 'eport 3rogram 7reates a
F0'B4'&4 for that table6s) in thr 'eport program.
#4<9&8* ,8&1+ ,B3..
#his comes handy when you write 8&9&7# N=&'; as
select single V from mseg client specified
where mandt K sy-mandt
and mblnr K pmblnr
and m@ahr K pm@ahr.
8o your :ata against the parameters will be colected in the
wor!area6,8&1).
133- How to get 4$4+4 )C3((7 in a program?
/7)- 1.If you want to get a popup in normal report program+ call
function module 303=3"#0"705.I',.
2.If you want to get a popup in 49J program+ then call
function E'&=8&"49J"303=3"#0"8&9&7#E.
If you want to display al in 303 =3 window then use
parameters I"87'&&5"8#4'#"709=,5 + I"87'&&5"8#4'#"9I5& +
I"87'&&5"&5:"709=,5 + I"87'&&5"&5:"9I5& .

7499 .=57#I05 E'&=8&"49J"1'I:":I8394;E
&?30'#I51
I"7499<47B"3'01'4, K J"'&3I:
I8"94;0=# K F4"94;0=#
I#".I&9:74# K #".74#
V I#"&J&5#8 K #"&J&5#
I"87'&&5"8#4'#"709=,5 K 10
*7
I"87'&&5"8#4'#"9I5& K 2
I"87'&&5"&5:"709=,5 K 100
I"87'&&5"&5:"9I5& K 20
#4<9&8
#"0=##4< K I#4<
&?7&3#I058
3'01'4,"&''0' K 1
0#%&'8 K 2. .
I. 8;-8=<'7 A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
V FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
134- How to add 2eAt ,odules in ),/32:$3,)?
/7)- #code * smartforms - select 3rd radio button i.e.
#e$t ,odule - create A write there what eer want.-
%ow to call*
smartforms - create te$t - general attribute - #ype * #e$t
module + gie name and language.
13- #e gi.e %((4 in 6'C structure---what is its purpose?
/7)- It is Indicator to !eep processed sessions. i.e. If this
flag is set+ then session is !ept after processing also.
0therwise+ session will be deleted after processing.
13"- #hat are the compulsar! .alues in 3()+)(&5I)2&'I)45/*
and 3()+)(&5I)2&<3I'?
/7)- 7ompulsory alues in 49J"9I8#":I8394; are*-
6a) I"callbac!"program * report"id.
6b) I"callbac!"pf"status"set *
6c) I"callbac!"user"command*
6d) It"fieldcat.
7ompulsory alues in 49J"1rid":I8394; are*-
6a) I"callbac!"program * report"id.
6b) I"callbac!"pf"status"set * routine for pf status
6c) I"callbac!"user"command* routine for user command
6d) it"fieldcat
6e) Is"layout
13>- #ant to stop the 6'C session in progress-How?
/7)-/8'(5(2( 23/7)/C2I$7E/6'(5)
687(C2 23/7)/C2I$7E/7)
C843$C()) /:$3(<3$+7'E/6'/)
'8'I)45/* (33$3) $75*E/6'()
(8C/7C(5E/6(7')-
13?- #hat happens if there is no C5$)(&<3$+4 in a 6'C-
/7)-2H( )())I$7 #I55 7$2 (C(C+2( 6* '$()7$2 <IF( /7*
)*72/C2IC/5 (33$3-
131- #hat is the difference between 2*4( and '/2/?
/7)- #;3&* is used to define new data types and will not occupy
any memory space.
:4#4* is used to define the ariables representing the
e$isitng data types. and will hold the memory space.
*1
140- #hat is the difference between 2*4( and 5I%( ?
/7)- #;3&* represents the data types.
9IB&* represents the data ob@ects
type wont ta!e any memory
li!e -allocate memory
141- how to code in ),/32:$3,) for ,+52I45( 3(C$3')?
/7)- <ut u !now nobody can gie answer to it and eerybody will
say 2F& 745 =8& 9003 .0' .=57#I05 ,0:=9& 1&5&'4#&: <;
8,4'#.0',2.... I thin! nobody cannot send code for this...
142- what is the diff b/w error and eAceptions?
/7)- 28ynta$ &rrors2*

#he mista!es done while writing statements. .or
e$ample+ instead of 2F'I#&2+ if you type 2FI'#&2 it is a
synta$ error.7ompiler can detect these types of errors. ;ou
will not able to be run the program till these errors are
rectified.

2'untime &rrors 6&$ceptions)2*
'untime &rrors are thrown when the situation occurs
during e$ecution of program where the system will not
!now how to deal with such situation. .or e$ample+ you hae
written a program that ta!es an e$cel file and reads the
data and stores in the database. ;ou hae done the program
perfectly. 5o synta$ errors.<ut while e$ecuting the
program+ if the user enters a filename that does not e$ist+
the program will not !now what to do ne$t+ at that time
runtime error occurs.
143- I ha.e 10 records in flat file- In that >th record is
error record- I want to update to data base- If i used Call
transaction method what about > record and what about
?01010 records- If i used )ession method what happen- Is it
updated or stop at >th record?
/7)- In call #ransaction method it depends upon the synchronous
and asynchrounous update in synchrounous it will stop at H
th record and H+>+I record is not updated and <:7,817099
gies error msg the Hth record. in asynchronous all the
records are updated e$cept H record In sesion method
database table is not updated and it will go to sesion log
file . and can analise or correct the error foud in the
data file or program.
if find the error in data file u can correct them
interacteely . other wise u modified the batch input
program.
144- in which table idocs are stored?
/7)- &:I:7 ---7ontrol record I:oc
&:I:8 ---8tatus 'ecord I:oc
&:I:: ---:ata records
14- which of the following are used to define data in abap
1)parameters 2)tables 3)class 4)data
**
/7)- we use all the four for defing data in abap
14"- what is pf status interacti.e report?
/7)- 8&# 3.-8#4#=8 *
#his statement is used to set your own 1=I status to the
report or the program that you deelop and 3. status is
deeloped 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 a
secondary list and then succesie secondary lists+ it is a
drill down report. Fhen the basic list or one of the
secondary list is processed further to a transaction code+
it is an interactie report.
14?- wh! u select the session method in bdc ? how man! records
wil be updated on that time?
/7)- If there is a huge amount of data is to be transferred from
non-sap to sap system we use 8ession menthod.<ut session
method also has its limitation. Fe can transferred ma$. of
III records using the session method.If we hae hae
thousands of records to transfer then we will use 9egacy
8ystem ,igration For!bench 6lsmw) tool that can transfer
ma$. of G000 records at a time.
141- what is Catch Command?
/7)- 8ynta$
74#7% c$"class1 c$"class2 ... CI5#0 orefD.
&ffect
Introduction of a statement bloc! of a #'; control
structure in which e$ceptions can be handled.
8ynta$
#';. Ctry"bloc!D
C74#7% c$"class1 c$"class2 ... CI5#0 orefD.
Ccatch"bloc!DD
...
C79&45=3 CI5#0 orefD.
Ccleanup"bloc!DD
&5:#';.
&ffect
#he statement #'; introduces a control structure with
seeral statement bloc!s. #he first statement bloc!
try"bloc! is always run+ whereas a branching off to e$actly
one of the remaining statement bloc!s only occurs if a
class-based e$ception occurs in the try"bloc!.
10- write the codes for how to fetch data from a select Ouer!
written under end@of@setection e.ent-
/7)- #he code is gien below.
&nd-of-selection.
select V from Atable- into Aitabl- where Acondition-
then populate the fields are li!e this
loop at itab.
write* itab-field.
&ndloop.
11- How we can Hide buttons on application toolbar?
/7)- ;ou can hide specific buttons on application toolbar by
*,
using the command 8&# 3.-8#4#=8 .... &?79=:I51 .....
:4#4* fcode #;3& 8#45:4': #4<9& 0. sy-ucomm.
433&5: E84J&E #0 fcode.
433&5: E3'I5#E #0 fcode.
--8&# 3.-8#4#=8 E3.E &?79=:I51 fcode.
12- eAplain the scenario of /5(/I'$C-
/7)- 49&* is nothing but application lin! enabling is used to
connect with the non sap systems to the sap systems. and
also the used to connect with the legacy systems with the
sap systems. @ust its a lin! between the two process.
I:07R is nothing but intermediate document. I# is the
container of the message. idoc can be transferred between
the two process to send the data or container of the
message. &ery idoc hae three types of records.
these three types are records are gien below.
----- data record
----- control record
----- status record
data record* is contains administration data header data
and item data.
control record* is contains of sender information recieer
information + message type+ idoc type + idoc number.
status record* is contains of all the status of idocs.
process steps*
---define the logical systems
---assign the logical systems to the respectie clients
---define the '.7 destination
---create the customer distribution model
---create the patner profile
---creat the port
---create the message type
---assign the message type into the idoc type
--- to chec! the status of idocs.
13- if i want to insert 10 laBs ,, records and for inserting one
record it taBes 1 min b! using call transaction or session
method - so here is there an! alternati.e
/7)- <rea! the records into 100/1000 sessions and process ur
session it ll ta!e same time as it ta!es for single
sessions.
14- how to see the last updated record in a table?
/7)- 1eneraly in 843 we hae the update date + update time and
updated by user field + we can find by using these field.
if you dont hae the aboe stated fields then you need to
use natie sSl using row id to select the last row id.
$2H(3 #I)( F& %4J& #F0 #4<9& F%&'& F& 745 8&& #%& =3:4#I05 0. #4<9&.
1. 7:%:' 2. 7:308
1- wat is a source list?
/7)- 8ource list is nothing but the list of endors proiding
*+
the
rawmaterials or the goods reSuired for the cmanufacturing
customer.
#codes related to 8orce list
,&01 ,aintain 8ource 9ist
,&03 :isplay 8ource 9ist
,&04 7hanges to 8ource 9ist
,&0G 1enerate 8ource 9ist
,&06 4naly)e 8ource 9ist
,&0H 'eorgani)e 8ource 9ist
,&0> 8end 8ource 9ist
,&0, 8ource 9ist for ,aterial
1"- when are this three e.ents fired and tell me whuich e.ent
is fired first 0second and third @@@ at selection @
screen0 at selection @screen output0 and at selection@
screen on .alue reOuest-
/7)- 1) at seletion-screen output 6when the screen is displayed
its same as 3<0 in module pool-- generally we use this
eent for scenerio li!e filling the list bo$ etc.)
2) at selection-screen 6this eent gets called when the
user presses enter or e$ecute -- generally we use this
eent to carry out alidations)
3) at selection-screen on alue reSuest6this eent will get
called only when the user presses .4 on a specific field on
the selection screen.)
1>- without debugging Be! how can i debug function module?
/7)- /h can be used to debugg. 45: ;ou can use brea! or brea!-point
statements in your function module.
1?- C/7 #( '(6+< / I'$C? I: *() H$# 2$ '(6+< I7 I76$+7' )I'( /7'
$+24+2 )I'(-
/7)- ;es Fe can :ebug.
0utbound I:07 is @ust 3rogram to prepare I:07. 1o to that
program and put a brea!-point and debug.
debug the inbound idoc
1) we 1I gie the idoc number e$ecute
2) clic! on inbound function module select the radio button in fore ground
3) chec! the chec! bo$ call in debug mode enter in will go through the
function nmodule debug mode.
11- #hat is )L5 2race0 how would !ou carried out performance
anal!sis of /6/4 code using )L5 2race? <i.e the steps?
/7)- 8N# #race is used to anali)e the performance of select
Sueries.#ransaction code is 8#0G.
8#&38*
go to 8#0G. select 4ctie mode
select #race on .select application proide the transaction code in command
line li!e $!01+$d01 li!e that. now enter the data in application
again go for 8#0G. select Inaciemode .#race off.9ist #race
1"0- / function group contains globall! defined internal tables
and function modules defined in it-
*0
:,$'1 populates itab1 and when :,$'2 is called will itab1
contains those .alues being populated b! :,$'1?
/7)- If .,0:1 is called before .,0:2 then itab1 contains alues.
1"1- #hat is the s!stem field that stores the le.el of the list?
/7)-)*@5)I7'
1"2- Internal table itab contains some records-
If the code is liBe this 9 5$$4 /2 I2/6-
/44(7' I2/6-
(7'5$$4-
#hat ill be the result??
/7)- It will go to infinite loop
1"3- what is difference between include structure and append
structure?
/7)- Include structure allows to add one or more structure
into structure or table.4lso placed positioning anywhere.
=pto 6 include structure can be used in a table.
4ppend structure can be placed only at the end of a
structure or table which also stops further insertion of
fields.0nly one append structure can be used
1"4- when we are using at new?should we use this inside the loop
or outside?what will be the effect?
/7)- 4t 5ew
1. Fhen a new record comes at new triggers. 4tnew only used
inside loop and endloop.
2. 4t new is controlbrea! statment on at new the left side
field change+ the eent
trigers and the alues become 0 and V
1"- when we are entering a purchase order it goes to which
table?
/7)- all header details go to &BB0
and all line item details go to &B30
others are &B<& +&B&#
1""- what is use of material master c segmentEmarc) table?
/7)- ,4'7 - it contains material plant data
1"?- whats the difference between range H select@option?
/7)- mainly 8elect-options is used for selection screen..
where as ranges is used inside the program..
'anges cannot isible in selection screen
.unctionality wise there is no difference e$cept 8&9&7#-
03#I058 are isible in the selection screen while 'anges
are not isible.
<oth hae same structure.
0ne restriction in 'anges is u canEt use 'ange in 8elect
Suery if it has more than 2000 entries.
'anges are used @ust li!e we use temporary internal tables.
1"1- what is the importance of macros? is it that it is useful
onl! for addition or subtraction operation Earithmetic
*/
operations) ? I need more information regards this?
/7)- ,47'08 -- it is @ust the abbreiation of the piece of code
68et of few lines). Fhen the same piece of code is repeated
multiple times in a program+ they can be replaced with a ,47'0.
=nli!e sub-routines+ during run time the control will not
call the routine+ instead it will @ust replace the ,47'0
with the piece of code.
,47'08 can not be debugged.
1>0- what is itcs! structure? what is the importance of it? gi.e
me the detailed information of it ?
/7)- I#78; is a sturcture. It is used to pass data from the form
to subroutine without modifying the print program.
perform Aformname) using itcsy
changing itcsy.
endperform.
1>1- In interacti.e reporting0 suppose i go to 7Mth list from
basic listEprimar! data) H i wanna come bacB directl! to
basic list- )o how can i achie.e this without using ()C or
bacB button?? Is it possible using set screen 0??
/7)- using sy-lsind we can moe from one list another list as
seSuence only not posibble come bac! from nth list to basic
list.
using at-user command eent only possible.
1>2- In report0 we should ha.e to write e.ents in seOuential
order or not0 if we write e.ents inseOuential then what will
be the drawbacB and if we will seOuential what will be the
ad.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 the
initialiIation0 and at selection@screen e.ent or after these
two e.ent-
/7)- 5ot 5ecessary for the eents to be in a seSuential order.
:uring run time+ the eents will be triggered automatically
in the seSuence.
<ut it is suggested to write the eents in a seSuence for
the user to easily understand the flow of program and for
the efficiency purpose.
&5:-0.-8&9&7#I05* Fill be normally used to free the memory
and display the write statements once all the fetching is
done. <ut it is not mandatory or necessary to write
&5:-0.-8&9&7#I05. If any eent is missing in the seSuence+
the ne$t eent will be triggered automatically.
I5I#I49IP4#I05 initiali)es the filed alues in the
selection screen. #his is done before at-selection screen+
before 3<0.
#03-0.-341&* #his is used to display the reSuired te$t on
the top of the page as header. #his eent will come 4.#&'
I5I#I49IP4#I05 eent only WW
1>3- How to implement a program Ebatch input) which reads a
eAternal teAt file with in.entor! data0 and write these data
*6
in sap?
/7)- If u implement to batch input program we should follow
these guide lines.
guide lines.
1. 4nalying the data from the local file or flat file.
2. 4nalying the transaction.
3. :eclaring the internal table 6<:7:4#4)

program* 5ame of the module pool program name
dynpro* it indicate for screen no
dynbegin* it indicates for new screen no
fname* 5ame of the fields in the database table
fal* alues area assinged with the fields
4.#ransfeering the data from local file to internal table.
G. 3opulating the internal table . 6<:7:4#4)
#hen call either #ransaction or session method to pass the
data into the 843 :atabase table.
1>4- 6etween select ---------endselect write one statement
eAecutes the cursor goes to dump anal!sis?what is the
statement ?
/7)- 8tatements li!e 7499 87'&&5 + 7499 :I4901 + 7499
#'45847#I05 or ,&8841& are not allowed within a 8&9&7# ...
&5:8&9&7# loop.
1>- #hat will happen if we write P#3I2(Q statement in the
2$4&$:&4/<(? Can we write?
/7)- #%I8 &J&5# FI99 #'I11&'&: 059; F%&5 1&5&'4#I51 #%& <48I7
9I8#. #%I8 I8 059; &?&7=#&: <&.0'& 0=#3=##I51 #%& .I'8# 9I5&
=8I51 45; 0=#3=# 8#4#&,&#5 9IB& F'I#& + =9I5&+ 8BI3 05 4
5&F341&.
1>"- #ould #)&+45$/' function module worB if the 6'C is run in
6acBground? If !es eAplain0 If no eAplain
/7)- F8"=3904: will not wor! in case of bac!ground
4s bac!ground @obs run in application serer and F8"=3904:
is the ., which reSuire input from the 3rsentation serer+
so it will not get the file at run time and will gie error.
1>>- #hat is a .iew?
/7)- It is a logical collection of fields from different tables.
1>?- How do u Bnow that updation is successful in 6'C?
/7)- using bdcmsgcol we can find out it is success or not
4fter run the <:7 3'01'4, 67'&4#I51 <4#7% 8&&8I05).
=8I51 8,3G ;0= 745 3'07&&: <4#7% 8&88I05+ I. =3:4#I05 I8
8=77&88.=99; :05& #%&5 8#4#=8 8%0FI51 1'&&5 #I7B. I. 45;
&''0' 0J&' #%&'& #%&5 I#8 8%0FI51 '&: #I7B
JJJ1>1- How do u handle a button in /5F report- 5iBe in which e.ent?
1?0-I ha.e 2 fields liBe customer and name ha.ing 20 records
on basic list- #hen I select records randoml!0 I want to get the address of
*2
particular customer selected in secondar! list?
/7)- In the aboe mentioned scenrio+ u need to assign the
chec!bo$ at runtime. ;ou need to assign a ariable intially
and later in the write statement+ declare the ariable as
chec!bo$.
#hen using 4t =ser 7ommand+ u can randomly select the
records and display in the secondary list.
4# 4 #I,& = 745# 8&9&7# .IJ& '&70':8.
1?1- +ser has gi.en the specification to displa! the ChecB boAes
on the list0 how will !ou handle this situation-?
ANS. F'I#& - 0utput as chec!bo$
&ffect
0utputs the field Af- as a chec!bo$. #he contents of the
first character of f is interpreted as the 2status2*
E E K not selected
E?E K selected
#he user can change this as reSuired.
:4#4* ch!bo$61) #;3& 7 J49=& E?E.
...
F'I#& ch!bo$ 48 7%&7B<0?. 2chec!bo$ selected
ch!bo$ K 8347&.
F'I#& ch!bo$ 48 7%&7B<0?. 2deselected
F'I#& ch!bo$ 48 7%&7B<0? I53=# 0... 2deselected+ protected
182. #hat are reference fields in data dictionar! ? how do u
assign them to a table field?
/7)- .or 7urrency 4nd Nuantity fields 'eference #able is reSuired.
In the 7urrency/Nuantity fields ;ou need to specify the
reference table name.
.or 7='' field.. there must be a corresponding 7=B; field
.or N=45 field there must be a corresponding =5I# field.
7an be in the same table or we can gie reference of any
other table.
183. #hat is an indeA ? 2!pes of indeA and there uses ?
/7)- #here are two types of inde$es*
1.3rimary Inde$
2.8econdary Inde$.
Fhile creating a table or in an e$isting standard table the
!ey fields are the default primary inde$es.
If we reSuire to fetch records from non !ey fields we need
to proide 8econdary Inde$es.i.e.+ we need to e$plicitly
ma!e non !ey fields as inde$es.
#his can be done by clic!ing on Inde$ and adding the fields
for secondary inde$.
184. #hat is the difference between .iew and table ?
/7)- Jiew is a irtual table. 9i!e table it contains fields but
it does not contain any data.In run time it contains the
data and after that it gets free.<ut table stores the datas
in database occupy some space.
185. #hat is the difference between .alue table and checB table?
/7)- Jalue #able
*8
1. 50 Input chec! 2. no Jalidation 3. 1enerates automatic proposals
4. 5o .4 %elp
7hec! table
1. :oes Input chec! 2. :oes Jalidation 3. 3roides .4 %elp
1?"- In data element how man! domains were defined?
/7)- .or one data element you hae to hae atmost one :omain.
1?>- 2!pes of internal table? how do u decide which t!pe u ha.e
to use?
/7)- there are 3 types of internal tables
1.standard- inde$+!eys type.
2.sorted -!eys+inde$ type.
3.hashed -!ey type.
to decide the usage of internal table u need the
modifications reSuirements of the table.
1??- what is selection teAt in /6/4?
/7)- 4t the selection screen we would assign a te$t to the
selection screen parameter for display. #his is actually
called as selection te$t in abap.
1?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 843 4<43 is nothing but the presentation layer.
<ac!end is nothing but the :atabase layer.
110- can an! post me all steps in ,, 0)'?
/7)- 8: .90F
1) I5N=I'; 2) N=0#4#I05 3) 849&8 0':&' 4) :&9IJ&'; G) <I99I51 6) I5J0I7&
,, .90F
1) purchase reSuisition 2) reSuest for Suotation 3) purchase order
4) goods issue G) goods receipt 6) inoice erification
111- #hich client is called as golden cient? I) it 1000 if !es wh!?
/7)- 1olden client contains all the configuration data and master
data so some e$tent. 4ll the configuration settings are done
in golden clients and then moed to other clients. %ence
this client acts as a master record for all transaction
settings+ hence the name 21olden 7lient2. ItEs client is 000.
112- How to create the ur own barcodes?
/7) =sing E8,4'#8#;9&E 7'&4#& character format with ur barcode
font+In smartform create window 4ssign the style into the chracter format
where u want to display the barcode for that window.
113- what t!pe of error eAactl! !ou will be seeing in the log
file while using call transaction mode ;(=?
/7)- ;our Nuestion is Frong.
5o 9og.ile is generated for 7# ,ethod.
.or 8ession ,ethod a 9og file is generated.
114- how do put the data in the application ser.er in 6'C?
/7)- #o transfer the data from database serer to application
serer using #'458.&' AF4- #0 A03&5:4#48&#-
11- how man! t!pe of indeA are there?
/7)- Inde$es are used for .ast access of records from database
,7
tables.
#here are two types of inde$es.
1)3rimary Inde$* these are created automatically while table
is actiating. It comprised of all the primary !ey fields only.
2)8econdary Inde$* these are created manually on rare
situations. #hese contains combination of primary !ey fields
and 5on-primary !ey fields or 0nly 5on-primary !ey fields.
11"- #H/2 I) '$C+,(72/2I$7?#H* I2 I) +)('?
/7)- chec! it out 8&3I
I# 8%0F8 79&4'7=# I:&4 %0F = :&J&903&: 45 0<U&7# 80 #%4#
45; 05& 745 &48I9; =5:&'8#45: + I5 .=#='& I# FI99 <& =8&.=9
.0' 0#%&' 7058=9#45# F%0 #4B& =' 3'0U&7#+4549;8&8 &48I9;
45: %&93.=9 :='I51 =31'4:4#I05 0' :='I51 ,4BI51 45;
&5%457&,&5#.
JJJ11>-when does the secondar! indeA should be used what role it
pla! when we use secondar! indeA in tables?
/7)
11>- what are the (.ents in /pplication )er.er?
/7)- eents are 1 - 03&5 :4#4 8&#
2 - '&4: :4#4 8&#
3 - 7908& :4#4 8&#..
11?- #ith out an! #rite statement will the 2op of the 4age and
(nd of 4age trigger?
/7)- 5o. Fithout any Frite statement top-of-page will not
trigger. <ecause top-of-page will trigger only after
e$ecuting first write statement.
111- what are 4rogram (.ents and 3un time (.ents in 3eports?
/7)- 3rogram &ents are*
#03-0.-341&
&5:-0.-341&
'un tine &ents*
I5I#I49IP4#I05
4# 8&9&7#I05 87'&&5 0=#3=#
4# 8&9&7#I05 87'&&5
8#4'#-0.-8&9&7#I05
1&# &J&5#6I. F& =8& 901I749 :4#4<48&)
&5:-0.-8&9&7#I05
200- How !ou can handle errors in 6'C-I7 the log file what t!pe
of error mostl! will be facing in real time?
/7)- #he errors we will face during <:7 real time are
1) :uplicate 'ecords
2) .ield of not 7%4' type
3) <atch input data is not aailable for screen $$$$
201- 'ifference between interacti.e and /5F 3eports?
/7)- Interactie or drill-down reports are for naigation
purposes to get the most information to a deeper leel on a
particular field or for a record from the basic list to the
secondary lists or ice-ersa . Fhereas 49J is a sap
defined standard table format for display purposes and for
,1
doing enhnacements on the output6 &g* downloading 49J data
to e$cel sheets).
202- How !ou will doing the b!pass b! using select statement?
/7)-
203- what will be the siIe of transparant table?
/7)- It is depends upon the data class and si)e category. It can
be ma$imum of the si)e of tablespace6data class) assigned
to a table.
#ablespace is a container of tables in database.
#ablespace can be a auto e$tend 05 or 0.. depends upon
configuration.
JJ204- i had to write the code in such a wa! that duplicate
entries 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 D
refresh itab1
alternatiely*
append lines of itab1 into itab2.
pay attention that your internal tables must hae the same
structure.
if diff structure 6not in order)
loop at itab1.
moe corresponding tab1 to itab2.
append itab2.
endloop.
refresh itab1.
JJ20"- what is the differnce between normal funcational and /5F
funcational module?
/7)-
20>-what is naming con.entions gi.en for locB obNect and how
!ou create the locB obNect?
/7)- 1o to 8&11
2. 1ie the loc! ob@ect name &P:=8%6loc! ob@ect name start
with &P) and clic! E7reateE <utton.
3. &nter the short description+#able nameA????-+ loc! mode
and !ey fields which is used to loc! the entry.
4. 8ae and actiate+ it will generate 2 .,.
&$* :&N=&=&"&P:=8% 'elease loc! on ob@ect &P:=8%
&5N=&=&"&P:=8% 'eSuest loc! for ob@ect &P:=8%
In your program+
1. .irst loop the table. 2. call the ., E&5N=&=&"&P:=8%E to loc!.
3. =pdate the d<.4. 'elease the loc! using :&N=&=&"&P:=8%.
endloop.
:&N=&=&"499 this ., will release all the loc!.
20?- #here does the Hide data stored?
/7)- It is stored in a temporary %ide area.In other words it is
,*
stored in buffer.
201- #hen !ou are in support0 who will gi.e !ou a :lat file or
(Acel fileE5egac! 'ata) to upload into )/4 )!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 077='8 100 FI#% %&4:&' 9I5&+
i"pdf 9IB& tline 077='8 100 FI#% %&4:&' 9I5&.
data* op"option type 88.7#'903+
@ob"output type 88.7'&879.
op"option-getotf K E?E.
7499 .=57#I05 E/1<7:F</8.0000000GE
&?30'#I51
U0<"0=#3=#"I5.0 K @ob"output
I. sy-subrc 0.
,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
7499 .=57#I05 E705J&'#"0#.E
&?30'#I51
.0',4# K E3:.E
#4<9&8
otf K @ob"output-otfdata
lines K i"pdf
I. sy-subrc 0.
,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I.
7499 .=57#I05 E1=I":0F5904:E
&?30'#I51
<I5".I9&8IP& K
filename K Ec*Xtest"pdf"sf.pdfE
.I9&#;3& K E<I5E
tables
data"tab K i"pdf.
I. sy-subrc 0.
,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
211- wh! we call smartform as a client independent?
Eas we are able to retri.e data from an! client dependent
d/b table in smartforms- )
/7)- when we e$ecute a smartform a function module is being
created.we call this fm in our program using another function
module 88.".=57#I05",0:=9&"54,&.4s fmodules are client
independent smartforms are also client independent..
212- how to Beep pushbuttons in application toolbar in al.?
/7)- ;ou need to copy the 1=I status to the )program and add the
,,
new buttons in the new 1=I status/ you can create a new 1=I
status using 8&41.
Fhen calling the ., E'&=8&"49J"1'I:":I8394;E set the status
I"7499<47B"3."8#4#=8"8&# K E."8&#"8#4#=8E and write a perform
.orm ."8&#"8#4#=8 using rt"e$tab type slis"t"e$tab.
set pf-status E1=I":&,0E e$cluding rt"e$tab.
set titlebar E:0100E.
endform. 2f01"al"eent"pf"status"set
213- if there is no top@of@page e.ent in reports then what
happens?
/7)- #op-of-page eent is not triggered+heading is not printed.
1enarally if #op-of-page is used+%eading of the report is
printed in eery page. If #op-of-page is not used heading
of the report is not printed.
214- what is the use of help .iew?how can we create search help
for a field?in how man! wa!s we can gi.e search help?
/7)- %elp iew is used to display the list of possible alues
for a particular help.
%elps are of two types.
&lementary 8earch help.
7ollectie 8earch %elp.
21- what is ment b! .iew?how man! t!pes are there ?what are
the!?and what is the difference between data base .iew and
proNection .iew?
/7)- Jiew is an imaginary table. It does not lies under
database. 4ctually the Jiew data is stored in database
tables only. Jiews are filled during runtime only.
#here are 4 types of iews* :atabase iew+ pro@ection Jiew+
,aintenance iew and %elp Jiew
:ata base iew implement Inner @oin whereas ,aintenance
iew and %elp iew implement outer @oin
pro@ection iews can be created only on single table
select condition cannot be specified for pro@ection iews
since the database iew is implemented on a database+ only
transparent table can be used to create them
it is possible to access pooled and cluster table using
pro@ection iew
21"- what is ment b! buffering?
/7)- <uffering is temporary storage of data in application
serer. If ur using buffering+ the data retrieing is ery
fast. <uffering is selected during the creation of table
only. full <uffering+ <uffering but switched off+ no buffering.
these r the types.
21>- what is the functionalit! of data class?
/7)- :ata class tells how the table is automatically going to be
assigned to the correct area of table space or :ata base
space of the database when it is created.
&ach data class corresponds to a physical area in which all
the tables assigned to this data class are stored.
.ollowing are the data classes*
43390 6master data)* :ata which is seldomly changed. 4n
,+
e$ample of master data is the data contained in an address
file+ such as the name+ address and telephone number.
43391 6transaction data)* :ata that is freSuently changed.
4n e$ample of transaction data is the goods in a warehouse+
which change after each purchase order.
43392 6organi)ational data)* 7ustomi)ing data that is
defined when the system is installed and seldomly changed.
4n e$ample is the table with country codes.
21?- how to use binar! search in internal table?what is the use
of indeAes and secondar! indeAes?
/7)- In binary search+ the total records are diided in to two
parts. It will search the particular record in first half
and then in second half. <inary means+ diiding in two
parts.
Inde$s are used to get the data ery fast.
Inde$s are 2 types+ primary and secondary.
3rimary inde$es are crated during the creation of table. <y
defaultly primary inde$es are created. <ut secondary
inde$es are created by used according to user need.
211- functional spec gi.en b! whom?
/7)- .unctional people will create the functional spec according
to client reSuirement. #hen they will pass the functional
spec to #echnical people.#echnical people will create the
#ech. spec and forward to deeloper.:eeloper will de the
ob@ect
220- in report gui we are gi.ing customer number if it is wrong
entr! then how to write the code to restrict wrong entr!?
/7)- parameter * pa"!unnr type !unnr. 6#his is input field)
select single !unnr into pa"!unnr
from !na1
where !unnr eS pa"!unr.
if sy-subrc ne o.
message i0006)e$p). 6 )e$p is message class+
i message type
000 message number)
endif.
221- what are selection screens which one triggers first?
/7)- 4# 8&9&7#I05-87'&&5 0=#3=#
222- how we insert record in to data base table ? how man! wa!s
are there what are there?
/7)- .ollowing are the ways which I can promptly thin! of*
1.=sing internal table* I58&'# Adbtab- from table Aitab-.
where itab 6internal table)contains the entries to be inserted into the
database table2. =sing wor! area*
I58&'# Awa- into Adbtab-.
3. =8I51 <:7
4. #able maintenance iew through 8,30
222- wh! we use matchcode obNect?without using match codes how
we use search helps?
,0
/7'- match code obNect is a tool to get search help in selection screen
(Aample9 select@options9 s&.beln for .&.beln matchcode obNect ;Idodo=-
$therwise we can use at selection@screen on .alue reOuest e.ent we get this
:acilit!-
(Aample9 parameters: 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_"E41EST2
E5PO"TING
"ETFIE#D 6 2EBE#N2
7INDO7_TIT#E 6 2Ekko "e+or8s2
)#1E_O"G 6 2S2
TB#ES
)#1E_TB 6 !t_ekko
"ET1"N_TB 6 !t_ret'rn
E50EPTIONS
P"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-*!el8,al.
223. what is the difference between at selection@screen output
and at selection screen?
/7)- at selection screen is used for alidating fields+
4t selection screen out put is used for setting field
property li!e enable + disable+ input etc
224- what is use of )2$4 stsment?
/7)- Fhen the stop statement is e$ecuted + the runtime
enironment triggers the eent &5:-0.-8&9&7#I05.
22- H$# 2$ C3(/2( I7'(C() I7 2/65()?
/7)- 1o to transaction 8&11+ open your database table. 7hoose
the menu+ 1oto--Inde$es to create inde$. 1ie your inde$
name and choose the fields of the table. <e careful+ an
additional inde$ may anish with the ne$t upgrade or
hotpac!age.
22"- In real time how we get the ticBets?
whether it is through email or an! thing else-
/7)- In 'eal #ime tic!ets will issued through a #ic!eting
#ool ...It depends upon the company which tool they
use .....#he 7lient will send the tic!et through that tool and
4ttachment documents for clearity of the tic!et and proide
3riority whehter it is high+ ,edium + low...
#his is how tic!ets will be handled and receied..
22>-what are the main e.ents that are used in an /5F report?
/7)- V &ents
,/
slis"e"item"data"e$pand type slis"formname alue
EI#&,":4#4"&?345:E+
slis"e"reprep"sel"modify type slis"formname alue
E'&3'&3"8&9",0:I.;E+
slis"e"caller"e$it"at"start type slis"formname alue
E7499&'"&?I#E+
slis"e"user"command type slis"formname alue
E=8&'"70,,45:E+
slis"e"top"of"page type slis"formname alue
E#03"0."341&E+
slis"e"data"changed type slis"formname alue
E:4#4"7%451&:E+
slis"e"top"of"coerpage type slis"formname alue
E#03"0."70J&'341&E+
slis"e"end"of"coerpage type slis"formname alue
E&5:"0."70J&'341&E+
slis"e"foreign"top"of"page type slis"formname
alue
E.0'&I15"#03"0."341&E+
slis"e"foreign"end"of"page type slis"formname
alue
E.0'&I15"&5:"0."341&E+
slis"e"pf"status"set type slis"formname alue
E3."8#4#=8"8&#E+
slis"e"list"modify type slis"formname alue
E9I8#",0:I.;E+
slis"e"top"of"list type slis"formname alue
E#03"0."9I8#E+
slis"e"end"of"page type slis"formname alue
E&5:"0."341&E+
slis"e"end"of"list type slis"formname alue
E&5:"0."9I8#E+
slis"e"after"line"output type slis"formname alue
E4.#&'"9I5&"0=#3=#E+
slis"e"before"line"output type slis"formname alue
E<&.0'&"9I5&"0=#3=#E+
slis"e"subtotal"te$t type slis"formname alue
E8=<#0#49"#&?#E+
slis"e"groupleel"change type slis"formname alue
E1'0=39&J&9"7%451&E+
slis"e"conte$t"menu type slis"formname alue
E705#&?#",&5=E.
22?-what is the role of eAtended s!ntaA checB in
performance tuning?
/7)- &$tended synta$ chec! identifies unused ariables+ obsolete
statments etc. which is important for performance tuning.
221- in a loop of an internal table0 what is the use of at first H
at last statements?
/7)- #hese come under 7ontrol <rea! 8tatements *
4t .I'8# *
#his is used for system .ield %eading in 4<43 program
4t 5&F * #his is used to display the fields.
&$ 4t 5ew 7arrid.
write * /7arrid.
,6
endat.
when eer the new carrid is reached+ carrid wiil be
written.
4t &5: *
#his is used for row-wise 7alculation i.e+ 8ub-total.
&$ * 4t &nd 7arrid.
uline.
&ndat.
#he end of carrid is reached+ a line will be drawn.
4t 948# *
#his is used for 7alculation of 1rand total
&$* 4t 9ast.
wirte * / 1rand-#otal.
&ndat.
Fhen entire processing of entire internal table is
oer.
230- what is the difference between at first H at new
)tatements?
/7)- 4t .irst - 1et triggered for the first loop iteration. 7an
be used for printing report headers.
4t new - #his eent gets triggered when a new alue is
assigned to the field loop. #his eent is normally used for
1roup headers.
&$ample*
Item no 5ame
4t .irst 101 chris
101 ,athew
4t new 102 'achel
102 5atasha
4t new 103 7hait
231- what are /5F reports? how the! are different from normal
reports?
/7)- 49J* 4bap list iewer are user friendly reports. in al
reports data will be displayes in a table.we hae to
maintain some operations6asending+ descending+filter) with
out 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 user
clic!s on e$ecute button on 8election screen. 4ll the :ata
retrieal and data processing logic will be written in this
eent.
&nd-of-page- #his eent is used to print page footers for a
report
&nd-of-selection- 4ny processing reSuired before e$iting the
report 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 4<43 dictionary.
,2
#his contains some structures and table types used for 49Js
233- 'ifference betMn simple and interacti.e reports?
/7)- in simple reports we directly interact with report in which
all data is present.in case of interactie reports we interact with specific
data.this is the main difference.
234- what is the role of )20 in performance tuning?
/7)- #o calculate the performance of programm.
Fe can see in which particular area the programm is ta!ing
the time that is database leel are internal processing
6programm ).
23- #hat is performance tuning?
/7)- performance tuning.......
4oid the following things in ur abap code
1. 4oid using nested select statemtns
2. 4oid using global araibales
3. 4oid using moe-corresponding
4. 4oid using EVE in ur select Suery
G. use !ey fields in where calues
6. 4oid using Suery llooop
8#0G is #code for performance tuning.
23"- *ou are gi.en functional specs for a 6'C program
and !ou need to decide whether to write a method
call 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 method
if it is small data the u will used to call transaction
23>- *ou are running a report- It is taBing long time for
eAecution- #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$33()4$7'I7<?
/7)- moe-corresponding is the one used to moe internal body
wor! area to screen fields.
moe-corresponding itab to lfa1.
where as moe statement is used to moe field by field from
internal body to screen fields.
moe * itab-lifnr K lfa1-lifnr.
231- what is difference between commit and rollbacB-?
/7)- suppose u hae one table which is in database. #he table
contains some records. = want to modify one record of table.
after modification+ u donEt want that new alues for
the record. @ust u use rollbac! command. preious alues are
placed in database.


&$ample*
7ase 1* 'oll <ac!
,8
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 palce
is changed to chennai.
4fter modification*
sno name palce
1 abc hyderabad
2 $y) 7hennai.
8uppose if u want old alues+ means u donEt want new
alues. 4t that time u use roll bac! command
4fter useing rollbac!*
sno name palce
1 abc hyderabad
2 $y) bangalore.
after using roll bac!+ the records are comes li!e
aboe6original 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 palce
is changed to chennai.
4fter modification*
sno name palce
1 abc hyderabad
2 $y) 7hennai.
4fter useing commit*
sno name palce
1 abc hyderabad
2 $y) 7hennai.
after using commit+ the table is finilased.u canEt get
old alues by uisng roll bac!.

0nce if u use commit+u canEt get old alues for using of
rollbac!. <efore commit+ u can get old alues for rollbac!.
240- #h! we need I'ocs---?
#hat is the purpose of I'ocs---?
/7)- I:ocEs are ment for transfering data from one 843/5on 843
system to 843/5on 843 8ystem. I:oc stands for Intermidate
:ocuments. &g. 'eceiing orders from Jendor and passing
them the inoice can be done using I:oc.&en using web serices we can send
or recied data to and from 843 using I:oc.
%ope i answered your Suestion+ if you need more info do let me !now.
JJJ241- 4ls tell me0 we r using at line@selection0at user@command
and at pf@status for generating the secondar! list in
+7
report then what we will use in /5F for generating al. list-
pls tell me what r the important thing to read in al. for
inter.iew purpose-
/7)-
242- can an! one tell me if i will put mode as errorE() in
session or call transaction for at bacBground and if an!
error data is there in flat file 0 then what will be
happen 0
/7)- = can set the ,ode as & in call transaction only.<ut in
8ession method u can erify the logs only. 4ctually & means
&rrors in screen mode only. If any errors will come+
automatically it comes to screen mode from bac! ground.8o u
can identify the errors.
243- #hat t!pe of reports E/5F0 Interacti.e0 Classic) we can
generate in )/4 /6/4?
/7)-3(4$32) 6/)IC/5* 2#$ 2*4() C5/))IC/5 /7' I72(3/C2IF(
6+2 /5F I) 7$2 / 2*4( 3(4$32 2HI) I) 3(4$32 $+24+2 2*4(-
I2 /5)$ 2#$ 2*4() C5/))IC/5 /5F /7' I72(3/C2IF( /5F-
244- (Aplain about 7o inter.als0 no eAtension in select options-
/7)- In the select options it show the ranging alues.
If we define no interal+ no e$tension it will act as a
parameter.
3lease chec! this code.
#4<9&8* ba!.
8&9&7#-03#I058 * s"beln .0' ba!-beln 50-&?#&58I05 50
I5#&'J498. by using no e$tension we gie range of alues but we cant see
e$tension tab right side on selection screen.

24- ha.e !ou used performance tunig?what maNor steps will !ou
use for those?
/7)-
24"- How to Noin 3 tallies H looping- #e ha.e de.eloped a program
in a client sa!
E200@ client) and 210 has test data- 7o de.eloping rights-
How to test data?
/7)- 3rogram is client independent so you can ery well logon to
210 system and test it.
24>- How to transfer data which is coming from are report as
output to another report?
/7)- 3&'.0', .0',4 I5 3'01'4, 6EP4<7E) #4<9&8 I#4<.
I5 3'01'4, P4<7 I,39&,&5# .0',4
.0', .0',4 #4<9&8 I#4<.
&5:.0',.
<; #%I8 F4; = 745 1&# :4#4 0. I5#&'549 #4<9& .'0, 05&
3'01'4, #0 450#%&' '&30'#
24?- In start of selection0 if we perform .alidation0 what
happens ?
/7)- 5othing happend+ because start-of-selection triggers after
displaying the selection screen.
241- #ill 00000 records be uploaded directl! into /44=)?
)er.er?
+1
/7)- 0ccurs* when you specify occurs to table it allocates
some space to that paricular table when the
program is running.
occurs 0 means minimum >!b space is assign to the
table
20- how to fetch data form without header line internal table ?
/7)- It is not possible to fetch data from Internal #able
without header line. u hae to gie e$plicit wor! area I
mean header to handle the records.
&$ code *
#ypes * <egin of ty"marc+
matnr type matnr+
wer!s type wer!s"d+
end of ty"marc.
#;3&8*#;"#",4'7 #;3& 8#45:4': #4<9& 0. #;",4'7
:ata * it"tab ty"#"marc+
wa"tab type ty"marc.
V select statement to read the data.
V :isplay the output.
loop at it"tab into wa"tab.
write * / wa"tab-matnr+
wa"tab-wer!s.
endloop.
21- difference between the worBarea and headerline?
/7)- For!area and headerline both are contain single record
structure.normally we hae two types of internal tables.
1. with headerline
2. with out headerline
in with headerline internal table it self first row
contains wor!area. In case of without headerline internal
table it will contain wor! area and body.
22- defination of worBarea? and header line?
/7) For!area* For!area as the same structure as table...and
contains only one record6last) record...no internal table
declaration* begin of wa+
headerline* in this hae internal table with headerline
means that internal table will hae wor!area..and data is
pulled from that internal table body...
23- what is the difference bet ween the appened and insert
)tatement?
/7)- append *- <y using this we can add a record at the end of
the table only
Insert *- <y using can we can add a record in between the
records of table where eer it is neccesary
4ppend can be used only with the internal tables where as
insert can be used with both.
24- Can u gi.e me one eAample where we should use onl!
C/55 23/7)/C2I$7 method in 6'C?
/7)- we hae to use process the only one application at time and
update the database is asynchronously and synchronously.then
+*
we hae to use call transaction in <:7
JJ2- #e eAecute the 6'C program in foreground and got list in C
dri.e- If the same program we can eAecute in bacB ground
what happen?
/7)-
2"- Can we write inner Noin between transparent table and
cluster table? If both ha.ing common fields?
/7)- Fe can only use inner @oin in #ransparent table not in pool
or 7luster #able.
2>- #hen using call transaction method for 1000 records 0 If u
found error in "4th record then how can u find it and how
can u send this to user?
/7)- =sing <:7,817099 structure you can capture the error
records.
2?- )cenario 19
I am uploading 1000 records using session method- I ha.e an
error in 10th record- #hat will happen and howman! records
will upload?
)cenario 29
I am uploading 1000 records using Call 2ransaction method-
I ha.e an error in 10th record- #hat will happen and
howman! records will upload?
/7)- 8cenario 1*
upto I4I records will upload
8cenario 2*
e$pect IG0th record+ all records will be uploaded.
21- How to do sorting in classical report?
/7)-<; #%& 80'# 8#4#&,&5# F& 745 80'# #%& I5#&'549#4<9& I5 79488I749 '&30'#
&?439&* 80'# I#",4'4 <; ,4#5'.
2"0- How to call transactionE /n! transaction eA9AB03)from /5F
3eport- #here should I write code?
/7)- DA"A: c9:ser9co;;and "!-E slis9for;na;e (AL)E <)E&9CO##AND<.
CALL F)NC"ION <&E)E9AL(9G&ID9DI-LA!<
E=-O&"ING
I9CALL$AC19)E&9CO##AND > c9:ser9co;;and.

FO&# )E&9CO##AND )ING F9)CO## LI1E !4)CO##
I9ELFIELD "!-E LI9ELFIELD.
DA"A: F9)$&C LI1E !4)$&C3
s9arseg li?e tab9arseg.
&EAD "A$LE tab9arseg INDE= i9selfield4tabinde@ IN"O s9arseg.CAE F9)CO##.
.%EN <'IC1<.
CAE i9ELFIELD4EL9"A$9FIELD.
.%EN <"A$9A&EG4$ELN&<.
C%EC1 NO" 9A&EG4$ELN& I INI"IAL.
E" -A&A#E"E& ID <&$N< FIELD 9A&EG4$ELN&.
E" -A&A#E"E& ID <GA&< FIELD 9A&EG4GAA%&.
CALL "&ANAC"ION <#I&+< AND 1I- FI&" C&EEN.
+,
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 6at
first+at new f+at end of f+at last)
2"3- #hat is the eAact use of 3euse&al.&field&catlog&merge?
/7)- #his ., is used to populate a field catalog which is
essential to display the data in al.
(C/,45(9/)ro&_pos =ro& pos!t!on>B?col9pos Bcol:;n positionC Dal:e set: 73 1 E /7
C5fieldna;e Bfield na;eC Dal:e set: internal o:tp:t table field na;e BreF:ired
para;eterC
D5"abna;e Binternal o:tp:t tableC Dal:e set: -ACE3 internal o:tp:t table na;e
E5ref9fieldna;e Breference field na;eC (al:e set: -ACE3 Data DictionarG field
na;e
F5ref9tabna;e Breference tableHstr:ct:re field na;eC Dal:e set: -ACE3 na;e of a
Data DictionarG str:ct:re or tablE
G5o:tp:tlen Bcol:;n widthC Dal:e set: 7 BinitialC3 n
%5 ?eG B?eG col:;nC Dal:e set: -ACE3 <=< <=< > ?e@ field B?eG field o:tp:t in colorC
I5no9o:t Bfield in field listC Dal:e set: -ACE3 <=< <=< > field is not displaGed in the
c:rrent list.
A5e;phasiIe Bhighlight col:;ns in colorC Dal:e set: -ACE3 <=< or <C@GI< B@:<1<4<8<J
G3I: <7<>off <1<>onC
<=< > col:;n is colored with the defa:lt col:;n highlight color. C@GI< > col:;n is
colored with a coded color:
C: Color Bcoding ;:st begin with CC @: color n:;ber G: bold I: inDerse
15hotspot Bcol:;n as hotspotC Dal:e set: -ACE3 <=< <=< > col:;n cells are o:tp:t
as hotspots
L5do9s:; Bs:; oDer col:;nC Dal:e set: -ACE3 <=< <=< > a s:; is to be calc:lated
oDer this internal o:tp:t table field
#5A:st BK:stificationC Dal:e set: -ACE3 <&<3 <L<3 <C<.
LL*/+. #hat is updated :unction ,odule?
/7)- 0## F1N0TION 21PD_F92 IN 1PDTE TS@ E5PO"TING P" 6 ...
a 6 :.
0## F1N0TION 21PD_F92 IN 1PDTE TS@ E5PO"TING P" 6 ...
a 6 ;.
0O99IT 7O"@.
(ere, tAe *'n+t!on mo8'le 1PD_F9 !s per*orme8 t&!+e !n tAe 'p8ate task: tAe *!rst t!me, &!tA ,al'e / !n P", tAe se+on8
t!me &!tA ,al'e : !n P".
265. what is partner profiles?
/7)- 3atner profile is nothing but which patner u will hae to
asigned that is either outbound partner or inbound partner.
#he transaction code is for partner profile F&20.
In this partner profile u will define the these parameters.
8ender receier message type
++
these aboe define of both inbound as well as outbound partners.
2""-1-How can we .alidate single selection screen field and
multiple selection screen field in report and also in
module pool programming-pls gi.e answer in brief with
eAample-
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. #4<9& I8 :;54,I7 +#&,394#& I8 8#4#I7
269. how to write a Classical batch input program using
transaction :%01 to create .endor/change the .endor address
into 3/3 s!stem- ECall 2ransaction ,ethod)
plI mention the detail coding
/7)- .B01 is for create endor t-code.
.B02 is for change endor t-code.
the steps as follows*
1.'ecording through 8%:<
2.#ransfer the recording into 3rogram )$y)...
3.:efine <:7 structure and internal table
4.:ecomment the <:7 open grp + <:7 insert and <:7 close
group functions in appropriate steps.
G..etch the data from 9.41 or 4:'7 table into internal table
and assign the internal table fields to <:7 structure
inside the loop.
2>0- How to ,odif! the standard in.oice and sales order form to
generate purchase order for printing and upload the compan!
logo-
/7)- 7opy the standard forms in )forms and you can upload logo
by using '8#?9:,7 or 8&H>.
2>1- How to create 3eports with 3adio 6uttons0 which gi.es sales
information0 'eli.er! information and 6illing information-
/7)- 3arameter* sales"information radiobutton group g1.
:eliery"information radiobutton group g1.
<illing"information radiobutton group g1.
u write it for selection criteria.
then u write the eent
at selection-screen on radiobutton group.
u write Suery for each one here.
when u select first one+ first Suery is e$ecuted+ then
second e$ecuted for second etc.
2>2- How to Create an Interacti.e 5ist based on the selection
criteria specified for the customer number for displa!ing
the customer information on the basic list0 their
corresponding order details on the secondar! list-
4lI specif! the coding details-
458.in selection criteria u use select-options statement
eg* select-options Afield- for Atable-field-
here Afield- is name of field and
Atable-field- is name of table filed6 ur field customer no)
+0
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 write
write 4t line-selection eent for secondary lists.
in this eent u write sy-lsindK1 for first secondary list
and for second secondary list sy-lsindK2. so on. up to u can
write 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 is
carried out?
/7)- 4baper main role is to deelop the ob@ects according to
#echnical 8pec.
.unctional people deelop the .unctional 8pec according to
the client reSuirement. they will send to technical people.
#ech lead is changed the .unctional spec to #echnical spec
and forward to 4bapers. 4bapers will deelop the ob@ects by
using spec
2>4- If i worB in an implementation proNect will i ha.e to
register with )/4?#hat is the process of blue printing?#hat
is the role of an abapper in implementatin proNect?
/7)- #his is correct one
u donEt want to register with sap+ @ust u can wor! only that
pro@ect. eerything do company.register with sap is companyEs
wor!. that is not deeloper.
blue print meals+ suppose one company wants to start sap+
ie. newly deelopment. at that time technical managers
prepare some blue prints+ means how many deelopers need to
deelop pro@ect 6for abap+sd+mm etc)
that blue print contains the what are the aims and goals of
company. in implementation pro@ect abapers will do deelop
thereports+scripts+bdcs etc according to there reSuirement.
275. what is need of function group for function modules whereas
there is no need of f-group for subroutines?
/7)-
1)5eed of function modules is to aoid the lengthy and
faster accessing data+how means+suppose for e$ample* i want
the preious month first day and last day based on #oday
date6means day 8unday or ,onday or etc)4ctually today date
is 1I4pr200>+8aturday. I want preious month first day and
last day+ ie first day is 1,ar 200> it is 8unday or ,onday
or #uesday etc and li!e last date 31,ar 200> is ,onday or
#uesday etc. 1enerally you need to write lengthy coding + so
to aoid lengthy coding @ust u use date function module in
coding and pass the parameters+ it will gie the out put to
u6@ust few lines of coding)
2).unction groups means+ some related function modules are
grouped in to one function group.
.or &$ample* .or date lot of different date function modules
are aailable in 843 '/3+ so these function modules are
grouped 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.
1lobally not aailable. <ut where as .unction modules are
+/
aailable in central library of '/3 and global access.
276. how man! t!pes of windows are there in ),/32:$3,)?not in
scripts?
/7)- 1.main window 2.secondary window 3.copies window 4.final window
2>>- what is the use of $%&C$'( in 6'C?
/7)- <:7"0B70:& will store all the o! codes in the <:7 program+
when you pass the .ields to a scrren after filling the
fields we need to clic! any button to moe other screens+
so here the <utton will be hae a 0B"70:& internally to
!now this we do the recording of the 3rogram+ after that we
will store this 0B code in the <:7"0B70:& field to trigger
the ne$t operation.
2>?- which command is used to flushes the database buffer?
/7)- Ytab is command which flushes database buffer.
2>1- how to change the pacBage of an obNect?i-e a report stored
in !madhuri pacBage-now it should be changed to !saru?
/7) 10to 8&3>---1oto-- 0b@ect dictionary entry--
7lic! on change button--'emoe preiouis pac!age name.
&nter your new pac!age name.7lic! on sae.
If you want a new reSuest you can create.
2?0- what is cardinalit!?how it worBs in /6/4?
/7)- #he cardinality 6n*m) describes the foreign !ey
relationship with regard to the number of possible
dependent records 6records of the foreign !ey table) or
referenced records 6records of the chec!
table).
#he left side 6n) of the cardinality is defined as follows*
nK1* #here is e$actly one record assigned to the chec!
table for each record of the
foreign !ey table.
nK7* #he foreign !ey table may contain records which do
not correspond to any record of
the chec! table because the foreign !ey field is empty.
#his can occur for e$ample if the
field of the foreign !ey table is optional+ in which case
it does not hae to be filled.
#he right side 6m) of the cardinality is defined as follows*
mK1* #here is e$actly one dependent record for each
record of the chec! table.
mK7* #here is at most one dependent record for each
record of the chec! table.
mK5* #here is at least one dependent record for each
record of the chec! table.
mK75* #here may be any number of dependent records for
each record of the chec! table.
2?1- can labels generate in smartforms?if !es how?
/7)- in ecc G.0 there is one smartforms lable printing e$ample .
go to smartforms - search by VlabelV +you will get it .
2?2- whai is the transaction code or table to see all print programs?
/7)- =se 547& transaction and then select the output type from
+6
that list. we can see the print programmes
2?3- which t!pe of problems we generall! face in reports and 6'C
in real time?
/7)- in <:7*
1 Incorrect session
2 incorrect transaction
2?4- #hat is the difference between normal report program and
module pool program?
/7)- 'eports are created from abap editor
'eport is ealuate data from database+and displayed in list.
'eport are standalone programs.
'eports are controlled be eents.
,odule pool is nothing but transaction+ created from ob@ect
browser.
#ransaction is the seSuence of screens. In module pool at
least one screen is participated.
,odule pool is not standalone programs.
3<0+34I and screen flow are important eents
2?- How man! sessions will be opened using bdc&open&group?
/7)- 0nly 0ne
2?"- #hat do !ou do when the s!stem crashes in the middle of
batch session?
/7)- if system crashes in the middle of batch session.we chec!
the log.howmany records are successfuly updated and delete
those records from source file.and re run the session.
2??- #hat are the problems in processing batch input session?
/7)- sessions can not run fast and not in parallel
2?1- How to generate and processing the session in the same
program?
/7)- Frite <:7 3rogram then call 2'8<:78=<2 using 28ubmit2 7ommand
210- #hat table stores online messages?
/7)- #100
211- #hat is the 'ifference between Header and Item in /6/4?
F6/%@)ales $rder Header0F6/4@)ales $rder Item0 how can u use
these tables in one Ouer!0means b! using these tables write
a select Ouer!-
/7)- %eader is always standard and Item is ariable.
&$* If one isits the :octor+ the prescrition would contain
standard te$t i.e :octor name+ Nualification+ address etc.
#his info can be considered as %eader and the :rugs that
are prescribed for the patient+ which aries from person to
person can be considered as Item.
212- could u plI pro.ide me the details of blue printing?
3ole of an abapper in implementation proNect?
'etails steps of implementation?
/7)- Implementaion 3hases
1) 3ro@ect 3reparation.2) <usiness <lue3rint. 3) 'eali)ation. 64<43ers)
4) .inal 3reparation G) 1o9ie and 8upport.
+2
213- what is the 3/7<() stmt used in /6/4?
/7)- ranges are @ust li!e select-options but you dont get the
option to enter at seletion screen .
ranges* gr"h!ont for bsis-h!ont.
you can use it in the select Sueries
214- how to run bdc program in bacBground?
/7)- by using '8<:78=< we can do this
21- how to send the idoc to multiple sub s!stems?
/7) <efore send I:0c to multiple system you haeto configure
logical system6849&)+ ,aintain '.7 destination68,GI)+
7reate 3ort6F&21) in all receied systems..
5e$t step In sender sytem maintain message type in
:istribution ,odel6<:64) and maintain outbound partener
profile6we20) in sender system..
In receier recier system @ust maintain inbound partner
profile6we20)..
#he aboe steps repeat for all receiers and finally send
I:07.
2I6. there is siIe categer!E0010203)if i need more space after
gi.ing the siIe 0-what i ha.e to do now?
/7)- #he si)e category is used to define initial space reSuire
in database. If due to oerload of data more si)e is
reSuire then it will automatically increase in the ratio of
si)e category.
.or e$ample category 0 can contains 0 to 630 records.
Fhen 631 item will be inserted into table automatically
space for ne$t 630 records6as category is 0) will be
proided in database.
4ppreciate it helpsR
21>. t!pes of buffering techniOes-
1-bufering not allowed
2-buffering swithed on
3-buffering not allowed but switced on
what does it means?
458. %i .irst of all please correct 3rd option*
It is buffering allowed but switched off.
4nswer* <uffering depends on table is selectedR
1. Jolume of :ata and 2. 4ccess type6read or write)
<uffering techniSues
<uffering not allowed * 5o buffering
<uffering switched on * buffering allowed but it depends on
buffering type 68ingle record bufferingR 1eneric 4rea
bufferingR .ully buffered)
<uffering allowed but switched off * buffering is allowed
on the table as per aboe two parameters but currently it
is switched off.
21?- what is collecti.e search help?
/7)- 7ollectie search helps combine seeral elementary search
helps. 7ollectie search help thus can offer seeral
alternatie search paths.
+8
#he user can thus choose one of seeral alternatie search
paths with collectie search help.
It combines all the search paths that are meaningful for a
field.
<oth elementary search helps and other search helps can be
included in a collectie search help. If other collectie
search helps are contained in collectie search help+ they
are e$panded to the leel of the elementary search helps
when the input help is called.
211- how to create locB obNect?
/7)- #ransaction * 8&11 and go to last option
9oc! ob@ect name should always start from E&E and it will
generate two fuction module enSueue 64ctiate the loc!) and
deSueue6:eactiate the loc!). =se update sSl between these
.,Es.
300- what is the difference b/w linear search and binar! search?
/7)- in case of linear search system will search from begining.
that means &$ample * ) table contains single field with alues
1 2 3 4 G 6 H > I
if u r searching for a alue then system will starts from
first position. if reSuired alue is founded then e$ecution
will 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 search
will ta!es place.
301- what is the Beep parameter in 6'C&$4(7&<3$+4 function module?
/7)- If B&&3 K E?E 3arameter is passed. #he session will remain
in 8,3G een after successful e$ecution otherwise it will be
deleted.
302- what is the difference b/w database and data dictionar!?
/7)-
303- if we are inserting record in 6'C0if poweroff how can !ou
Bnow how man! records inserted?Epoweroff !ourside)
458. #hese types of logs are called as 4pplication logs. In 8911
tcode we can find those the records which r not updated.
304- 1-#hat is the difference between append structure and
include structure-
2- what is the logging of technical setting while creating
db table-
/7)- 4ppend structure and Include 8tructure both are used to
appened table/structure in ::I7.
1)4ppend 8tructure is to add fields to the 843 standrad
#able/structure.
1)Include structure is used to add field in
)table/)structure.
2);ou can append structure only at the last of
table/structure.
2)you 7an use include any where in your #able/structure.
3)If the structure or table contains the last field as long
07
data type then you canEt use append structure beco) append
structure should be last entitity in this 8cenario you can
use include structure.
3) you can append e$actly one append structure to a
table/structure if u need it to add more than in a table
you can do it with different name and append it.
e$amaple* if your #able contain fields 444 +<<<+ 777 and
you want to include a structure to it with field ::: and &&&
after 4ctiating table you will fine 444+<<<+777+:::+&&&.
In 4<43 point of iew there is almost no difference in
handling .Include and .4ppend.
#echnical settings determines data class+ 8IP& category and
buffering details
30- )uppose0 we are creating one table- at that time we are
mention table space and siIe categor!-
<enerall! siIe categor! is from 0 to " is a.ailable- suppose
if we are declare siIe categor! as 0EIero)-
:or 0 EIero) the siIe of rows is from 0EIero) to 11000- I
ha.e 2000 records to insert into table- but table siIe is
declared as 0EIero)- i-e 11000 records- what about remaining
"000 records- shall i insert in to table or not?
if insert how can i do? if not insert what can i do?
/7)- It will create another e$tent . suppose the primary e$tent
contain the 1I000 record and the ne$t e$tent or secondary
e$tent contain the remaining 6000 record . Its created
automatecally by the ':,8.
30"- how to calculate the difference between two date t!pe of
.ariables ?
/7)- data * date1 type sy-datum +
date2 type sy-datum +
days type i .
date1 K sy-datum.
date2 K sy-datum - H.
days K date1 - date2.
write * days. 24nswer should be H
30>- How man! ser.ers present for 'atabase ser.ers04resentation
and /pplication ser.ers in 5andscape? /ll these ser.ers are
present at client side or compan! side0means where the
'atabase ser.er is 5ocated0 where the /pplication and
4resentation ser.ers 5ocated in a 5andscape?
/7)- all the serers are located at client location only.
7lient is giing authorisation6user id and password to us)
to offshor people to wor! on that
30?- #hat are t!pes of 4roNects ?
/7)- implementation support rollout upgrade
301- #hat is an indeA? 6! default s!stem will create the primar! indeA or
+ser can create0if user How?
/nd also )econdar! indeAes b! +ser or b! defaultl! s!stem?
/7)- Inde$es are a sorted copy of the table that e$ist in the
database which helps in faster retrial of data from the
01
database. 3rimary Inde$ * =ser cannot create a primary inde$+ the system
creates a primary inde$ by default based on the primary !eys of the table.
8econdary Inde$ * #he secondary inde$es are created by the
user.we can create a ma$imum of upto 1G secondary inde$es
for a table.
310- what is cardinalit!-how it will worB in abap?
/7)- 7ardinality is defined during foreign !ey relationship.#he
cardinality of the foreign !ey relationship describes+ for
each alue in the chec! table+ how many rows of data are
allowed 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 hae
only 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 the
e$isting record.
modify*- it is used to modify the record but if record does
not e$ist then it insert the new record.
312- am facing problem in inserting multiple data from user
defined selection screen to internal table can an!one tell
me an! small code the can insert multiple data from screen
to internal table-
/7)- V.or e$ample i hae used the scarr table
VInternal table declaration.
:ata* <egin of Itab occurs 0+
carrid li!e scarr-carrid+
carrname li!e scarr-carrname+
currcode li!e scarr-currcode+
end of itab.
V.ields on selection screen.
parameter * carrid for scarr-carrid +
carrname for scarr-carrname+
currcode for scarr-currcode.
V#o insert data from 8election screen fields to the
Vinternal table
loop at itab.
itab-carrid K carrid.
itab-carrname K carrname.
itab-currcode K currcode.
append itab.
clear itab.
endloop.
313- eAplain abt (C23/C2 )2/2(,(27?
/7)- 0nce you hae declared the possible record types as field
groups and defined their structure+ you can fill the
e$tract dataset using the following statements*
&?#'47# Afg-.
Fhen the first &?#'47# statement occurs in a program+ the
system creates the e$tract dataset and adds the first
0*
e$tract record to it. In each subseSuent &?#'47# statement+
the new e$tract record is added to the dataset.
314- #hat is the use of G 2/65( ,/72(7/7C( /55$#(' G -
/nd itts transaction code?
/7)- #he main purpose of the table maintenance generator is to
7reate/7hange/:elete the table entries with out writing any
code. Fhen eer we create table maintenance generator it
will generate a standard program.
315. #hat are the function module t!pes?
/7)- <asically+the word function module come from reusability
techniSue. :epending on this reusability and scope we can
categori)e the types of function modules.
4 types of function modules*
1. 8ubroutines - scope is within program or pac!age
6using e$ternal calling mechanism).
2.5ormal function module- scope is within '3 system.
3.'emote enable function module6'.7)- scope is between '3
systems
4. <43I - scope is between sap and non-sap legacy systems
and can be used within '3 systems also.
31"- #hat is the significance of Be!word G H I ' (G
/7)- #his statement stores the content of a ariable dob@
together with the current list line whose line number is
contained in sy-linno in the hide area of the current list
leel. #he data type of the ariables dob@ must be flat and
no field symbols can be specified that point to rows of
internal tables+ and no class attributes can be specified
&$* :4#4* 4 #;3& i+
< #;3& i.
8#4'#-0.-8&9&7#I05.
.0',4# %0#830#.
:0 10 #I,&8.
4 K sy-inde$ VV 2.
< K sy-inde$ VV 3.
F'I#& / sy-inde$.
%I:&* 4+ <.
&5::0.
4# 9I5&-8&9&7#I05.
F'I#&* 4+ <.

31>- .hat is the difference between occ:rs 1 and occ:rs *M
/7)- #he main difference between the occurs1 and occurs 2 is
gien below.
occurs1* is used to the system allocate the 2 memory
locations are cratead.
occurs2* is used to the system allocate the 3 memory
locations are crated.
31?- Can we ha.e more than one selection@screen - /nd how ?
/7)- Fe hae created the more than one selection screen by using
the call screen statement .
#his is the synta$ for the more than one selection screen.
call screen 6sno) including program 6program) 6screen no)
45: <; #%I8 70,,45:
&?4,39&* 8&9&7#I05-87'&&5*<&1I5 0. <907B <1 FI#% .'4,& #I#9& #F?#-001
8&9&7#-03#I058*
0,
34'4,&#&'8*
8&9&7#I05-87'&&5*&5: 0. <907B <1.
8&9&7#I05-87'&&5*<&1I5 0. <907B <2 FI#% .'4,& #I#9& #F?#-001
8&9&7#-03#I058*
34'4,&#&'8*
8&9&7#I05-87'&&5*&5: 0. <907B <2.
311- what is the significance of Be!word G5I%( G?
/7)-/8 9IB& is used to refer the e$isting :ata0b@ects
&?4,39&. #;3&* '&.&' #%& :4#4 #;3&.650 ,&,0'; 7'&4#&:)
9IB&* 703; #%& :4#4 #;3&.6I#8 0F5 ,&,0'; FI99 <& 7'&4#&:)
:ata* 3rice 9i!e 5um.
%ere 9i!e is used to refer e$isting :ata0b@ect 5um.
320- how do !ou pass table to function module?
/7)- pass the data from the table to the function module is used
to the by using the import and e$port parameters.
import* is used to the transfer the data from the table to
the function module
e$port* is used to the transfer the data from the function
module to the table.
321- what are the similarities between internal tables and
structures?
/7)- 1)<oth Internal #ables and strucures do not hae enries
stored in data base.
2) <oth of them do not hae a primary !ey or a forieng !ey
relation ship with any table in the data base.
3) =nli!e database tables both internal tables and
structures do not hae technical settings.
Internal table is a temporary storage area that e$its at
runtime of the program .
8tructure also e$ists at runtime of the program.
8tructute does not hae allocate memory in the system.
where as Internal table allocate memory in the system.
322- which state ment is used to mo.e identicall! named fields
between structures?
/7) #he statement ,oe-7orresponding can be used to moe data
related ti identically named fields between structures.
323- How to create a indeA on .iews?
/7)- Fe can creat the inde$ on iews li!e this.
go to the abap dictonary transaction code is 8&11 and select
the radiobutton type as iew and select the particular iew
type and creat the inde$ for that table based on the primary
!ey alue.
8o mandatory !ey is important role in the while creating the
inde$ based on the iews.
Inde$* is a sap proide mechani)am to retrie the records
fastly from the database based on the primary !ey alue of
the table.
323- #hat is binar! search? where it is used?
/7)- If the data in the Internal table is huge and
you are trying to read the data from the Internal table
then it is recommend to use binary search.
0+
&?4,39&.
'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 errors
4. runtime errors G. declaration errors 6. terminating errors
H. sucessful errors >. warning errors
32- what is long teAt?
/7)- 4 long te$t is nothing but a te$t is assinged with the
standard te$t which is assioated with the te$t elements.
#his is defined by the transaction code is 8010.
synta$* selection-screen begin of bloc! bl1 with frame title
te$t-001. 6If u double clic! on the te$t will go open the
one 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 will
create the one customer deelopment names space and what are
all the ob@ects are created these are put into the that
deelopment class. if u want to change the ob@ects we can
easily change the ob@ects.
<ut where as in Y#,3 deelopment ob@ects are cannot
transportable from one system to another system. <ecause of
the this is system
we can use se>0 and se03 transactions to change the
deelopment 7lass.
32>- 'ifference between $ccurs00occurs10 and occurs100?
/7)- #he differneses are gien below.
1. occurs 0*
6It means it will create the default rows for the
internal table depend on the reSuirement)
2. 0ccurs 10.
6It means it will create the 11 rows for the internal table)
3.0ccurs 100.
6It means it will create the 101 rows for the internal table)
<ut where as in defauty the system is create the >B< si)e of
the memory space for the internal table.
32?- what is /)/4 methodolog!? How man! phases are there? what is
the percentage of each phase?
/7)-
1.3'0U&7#..3'&34'4#I05
2.<=8I5&&8..<9=&3'I5#
3.'&49IP4#I05
4..I549..3'&34'4#I05
G.10..9IJ&..45:..8=330'#
321- hoe can we write the include programs in reports?
/7)- I7C5+'( K'$'$- C5IC% $7 2HI) /7' #3I2( *$+3 C$'(-
330- how to retrie.e the field label of data element in
reports-Enot in al.)-
00
/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 report8
in 49J..
.or classical report in 49J..
#ype-pools * slis.
:4#4 * it".cat type slis"#"fieldcat"4l
wa"fcat type slis"fieldcat"4l.
:ata * itab type standard table of 680me 8tructure)
wa li!e line ot itab.
8tart-of-selection.
8elect.....
after readig data from database....
we use ., '&=8&"49J".I&9:74#4901",&'1&
4fter that Fe display the 0utput
Fe use ., * '&=8&"49J"1'I:":I8394; 6 for 1rid .ormat)
0'
'&=8&"49J"9I8#":I8394;6for list format)
VVVVV
V(----I5#&'47I#J& 49JVVVVVVV
Fe ta!e two Internal tables ...
:ata * itab type standard table of ty"marc 6#ype structure)
itab1 type standard table of ty"mara6#;3& structure)
data * it"fcat type slis"t"fieldcat"al+
t"&ent type slis"t"eent+
t"listheader type slis"t"listheader.
we use ., * '&=8&"49J"1&#"&J&5#
#his is function ,odule is used to catch the &J&5#s li!e
#03-0.-341& and &5:-0.-341&+ =8&'"70,,45:....etc
.or interactie 'eport*
we will gie form li!e
.orm =ser"7ommand =sing ucomm li!e 8y-ucomm
selfld type 89I8"8&9.I&9:+
V( weEll call this 8ubroutine in the ., 1'I: :I8394;..
case ucomm.
when E(I71E. 2 this is .unction7ode which catchs when
user do some actions.
'&4: #4<9& Itab I5#0 F4"tab I5:&? '8"8&9.I&9:-#4<I5:&?.
perform buildcatlog.
perform :ata'etrieal.l
3erform 9istdisplay.
3erfrom :ispaly.
endcase.
#%I8 I8 %0F F& :0 I5#&'47#IJ& 49J...
I #%I5B #%I8 FII9 = I5 :0I51 79488I749 45: I5#&'47#IJ&
49J..
332- 1- How can we create 4+)H 6otton in presentation la!er-
2-How can we print the record-
3-If database has nor records H if we write Mfor all
entriesM in select statement then what will be happen-
0/
/7)- 1.create the pushbutton in 3resentation serer by using the
synta$ is gien below.
for creating the pushbutton*
selection-screen pushbutton 10606) Ename of pushbuttonE
user-command cli1.
#his is initili)ed into the Initiali)ation eent in the
classical 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 is
empty then it will retrie the data from the destination
table based on the condition.
333- can on!one tell me 0 how man! data classes and siIe
categories are there ?
/7)- Its totally three classes are there. these are gien below.
data classes*
1.43390 * ,aster data 6its fi$ed it cannot be changed)
2.43391* #ransactonal data 6changed rarely in the business)
3.43392* organi)ational data.6dialy changes the data in the
<usiness)
334- how man! records are updated from a flatfile to sap database
in one shot?
/7)- 499 the records present in the flat file are updated to 843
:atabase in one shot+ it intents that we do not hae to
e$ecute it repetedly to upload the record set. 8o ans is
4ll the records present in the flat file.
33- !ou ha.e own g table H Bna1 table how to attach the search
help for g table as well as Bna table?if u press f4 on
selection u should displa! onl! primar! Be! field of Bna1
as well as g table fields
/7)- ;ou can do this by creating two elementary search helps and
including these elementary search helps in the collectie
search help for that field.
9etEs say we hae a P-#able as P&,390;&&1 with !ey field
&,35=, and Fe hae standard table B541 with !ey field
B=55'.
Fe want a search help with data of &,35=, and B=55'. .or
this we create two elementary search helps for &,35=, and
B=55' and include them in the collectie search help and
assign this to the field in the )table. 4lso we can create
a elementary search help for the )table and display it with
the !ey field of the B541 table.
33"- 1-If a table is full! buffered?can we fire single select?
2-'iff between submit progam name and submit program name
and return? main criteria for using loop at read table?
/7)- 4nswer 1. .ull table buffering *- here entire database
table buffered to application serer.
8o further access to same table can be access from
06
application serer so+ which interm reduces database
traffic.
.ullbuffering can only applies to tables which hae less
data and rarely changed.
&$-tcodes+ company master data li!e #100+ etc
%ere 8elect 8ingle cannot be used.
4nswer 2. #he 8=<,I# statement accesses an e$ecutable
program. 4nd e$ecutes the report program called thru 8ubmit.
#he addition 45: '&#='5 starts the e$ecutable program in a
new internal session. #he session for the calling program
is retained. 0nce program access is completed+ program
e$ecution for the calling program continues after the
8=<,I# statement.
33>- without using matchcode 0help .iew 0checB table 0 domain how
to create the search help an!bod! Bnow this answar plI post
imdtl!
/7)- 8teps for 7reating 8earching %elp
8creen 1.
8&11. 7hoose 'adio <utton Z8earch %elp[.
&nter the name of search help starting with y/)
7lic! 7reate.
8creen 2.
Frite 8hort :escription.
#4< :efination
&nter 8election ,ethod Z#4<9& 54,&[.
&nter :ialog #ype [:isplay alues immediately[
&nter 8earch %elp 3arameters .ields to which search
help is to be attached.
7hec! Imp and e$p <o$
9pos and spos.
8creen 1.
8&11. 7hoose 'adio <utton Z:atabase table[.
&nter the name of table to which the search help is to be
attached. 7lic! 7hange.
8creen 4.
7hec! the fields in the table to which the search help is
to be attached.6#hey should be
the same as defined in the
8creen 2 8earch %elp 3arameters .ields)
7lic! the 8earch help button .
87'&&5 3.
&nter the search help name
7lic! 1enerate purposal
7lic! 7opy.
8creen 4.
7lic! on =tilities on ,&5= <4'
7hoose #able maintenance generator
8creen G.
&nter 4uthori)ation 1roup Z(57([
&nter .unction 1roup
7hoose maintenance type
,aintenance screen 50.
7hoose create.
8ae and 4ctiate
02
8creen 4.
8ae and 4ctiate.
33?- H$# ,/7* ('I2$3) /3( 2H(3( I7 )/4 /6/4- #H/2 /3( 2H(* /7'
2H(3( +)()-
/7)- In 843 4<43+ 3&ditors are using
4<43 &ditor-8&3>+
which is used for deeloping 4<43 programs.
8cript &ditor- 8&H1+
which is used for 8cript 7ontrol commands+#e$t elements.
8creen &ditor-8&G1+
Fhich is used to deelop 34I and 3<0 eents in ,odulepool
331- #h! long time reOuired to cop! the file than delete the
same file-
/7)- 703;* It copy the content of a file from one place to
another.so+it reSuire long time.
:&9&#&* It wonEt delete the entaire content intead it
delete the address of the file.so+it reSuire less time than
copy.
340- how to download sap )mart form in teAt format?
/7)- it con be saed as a 3:. file using otf function module..
341- how to upload logo in the smart forms?
/7)- use #-code 8&H> to upload logo.
7lic! on 1)from graphics
2)stored on document serer
3)1'43%I78 general graphics
4)<,43 bitmap images
then clic! on import tab which is there on tool bar 1st
button.
342- what is the use of MsplitM in 6'C? Is it related to some
tab adNustment to the flat file during 6'C?
/7)- spilt is a !eyword which can split data based on seperation
in inter face programming++++++++++
e$ampleR
1 in+in+in tab $+y+) tab 11+12+13.........this is flat
file+......
split it"itab-ban!s at E+E in to table ban!s+
split it"itab-ban!l at E+E in to table ban!l+
split it"itab-ban!n at E+E in to table ban!n.......
,+,. #hich is the e.ent trigger last?
/7)- we generally use end of selection for display of report. 8o
its a gud practice to put the write statements in end of
selection. Fhen the control comes to the first write
statement in end of selection and if this write statement
is a alid one then immediately the eent triggered is top-
of-page. In this top-of-page eent we generally write the
headings. 8o after printing the headings the control comes
bac! to end of selection and prints the corresponding data.
4fter this if the report has footer lines resered in end
of page eent then this will be triggered. 8o we can say
that end of page can be the last eent which is triggered
if the data is filled upto resered lines.
08
,++. #hat is the ,, :low with 2ransaction Codes?
/7)- ,, flow is gien below.
1.3urchase 'eSustion 6,&G1)
2.'eSuest for Nutataion 6,&41)
3.Nutation from differnt endors 6,&4H)
4.price comparsion 6,&4I)
G.purchase order send to endors 6,&22)
6.goods reciept 6,I10)
H.logistic inoice erification. 6,I'0)
,+0. what is macro?
/7)-,/C3$ I) 7+,6(3 $: I7)23+C2I$7-H(3( (/CH 2I,( #H(7 *$+ C/5 ,/C3$
2H( )(2 $: I7)23+C2I$7 #I55 6( I7)(32(' I7 2H/2 5$C/2I$7-I2 3(L+I3( ,$3(
,(,$3* 2H/7 :+72I$7
3(4$32 demo&mod&tech&macros-
'/2/9 result 2*4( i0
n1 2*4( i F/5+( 0
n2 2*4( i F/5+( "-
'(:I7( operation-
result D H1 H2 H3-
output H1 H2 H3 result-
(7'@$:@'(:I7I2I$7-
'(:I7( output-
write9 / M2he result of H1 H2 H3 isM0 H4-
(7'@$:@'(:I7I2I$7-
operation 4 R 3-
operation 2 JJ >-
operation n2 @ n1-
TA!s pro8'+es tAe *ollo&!nB o'tp't:
2he result of 4 R 3 is >
2he result of 2 JJ > is 12?
2he result of 72 @ 71 is 1
In tA!s e<ample, tAe t&o ma+ros operation an8 output are 8e*!ne8. output !s neste8
!n operation. operation !s +alle8 tAree t!mes &!tA 8!**erent parameters. Note Ao& tAe
pla+eAol8ers H1,H2,... are repla+e8 !n tAe ma+ros.
346. what is ad.antages and disad.antages in call b! .alue and
call b! reference?
/7)- In call by reference the the ob@ect will get change.
In calle by alue it wonEt.
call by reference passes the address of the argument into
the reSuired subroutine+ thenh when it is altered in the
subroutine+ its altered alue will oerwrite the original
argument alue.
call by alue only passes the alue to the subroutine6i.e.
the subfunction defined)and this does not oerwrite the
argument alue.
/7
EXAMPLE: PERFORM <SBROTINE! SIN" #AABB$$%&!$ALL B' VALE.
PERFORM <SBROTINE !SIN" VAR1(VAR2&!$ALL B' REFEREN$E
347. how to added data in list boA?
/7)- F& 745 4:: :4#4 I5 9I8# <0? <; =8I51 .=7#I05 ,0:=9&
J',"8&#"J49=&
"!-E4-OOL: (&#.
DA"A: NA#E "!-E (&#9ID3
LI" "!-E (&#9(AL)E3
(AL)E LI1E LINE OF LI".
-A&A#E"E&: -9-A&#B17C A LI"$O= (II$LE LENG"% 17.
A" ELEC"ION4C&EEN O)"-)".
NA#E > <-9-A&#<.
(AL)E41E! > <1<.
(AL)E4"E=" > <LINE 1<.
A--END (AL)E "O LI".
(AL)E41E! > <*<.
(AL)E4"E=" > <LINE *<.
A--END (AL)E "O LI".
CALL F)NC"ION <(&#9E"9(AL)E<
E=-O&"ING
ID > NA#E
(AL)E > LI".
"A&"4OF4ELEC"ION.
.&I"E: H <-A&A#E"E&:<3 -9-A&#.
348. how to transport reOuest gi.e step/producer of transport
reOuest gi.e step?
/7)- go to se>0 clic! pac!age-go to program6or its depends upon
u what u transport reSuest)D
fallow these path
right clic! on program--more function--write transport
entry clic!
pop up window open
create reSuest
pop up window open select reSuest tas! -- clic!
reSuest will be cteated note reSuest no.
sae
bac! se>0
clic! on transport6truc! symbol)
now go to se01
clic! on reSuest type
clic! display
341- how to identif! all the 6'C 4rograms running in Client )/4
(n.ironment?
/7)- ),3"-
30- what is the table name of stocB of material?
/7)- ,4': ,aterial stoc!
,<&F ,aterial stoc! with aluation
31- t!pes of smartforms?
windows in smartforms?
/7)-
/1
32- C/7 + 2(55 ,( /223I6+2() $: 6$2H '$,/I7 /7' '/2/(5(,72
)C3((7?
/7)- first of all gie the attributes of the domain
attributes of domain*
table
type
si)e
length.
attributes of data element
data element is nothing but technical fields of table
field.it is a field in data base.
353. #H/2 I) 4(:$3,/7C( 2+7I7<?
/7)-
34- ,, :low H )' :low?
/7)- ,, flow*
purchase reSustion ,&G1
reSuest for Suatation ,&41
Suatation from differnt endors ,&4H
price comparision ,&4I
purchase order send to endors ,&22
goods reciepts ,I10
logistic inoice erification ,I'0
8: flow
&nSuirey J411
Nutataion J421
sales order processing J401
deliery J.01
billing J901
34- #hen we append a record to a sorted internel table how it
is appended?
/7)- If an internal table is defined 8orted+ then dont een
thin! about 4ppending. 4lways use I58&'#. 4ppend will only
append data after last record in internal table. I58&'#
will find the inde$ and insert the record. e.g. itab
contains data li!e 4+ :+ .+ U+ B etc..now i want to add <
to it.. I58&'# will update internal table li!e 4+ <+ :+
etc...If used 433&5:+ program will abend.
355. which one is efficient in following command to cop! data
from one itab1to another itab2 - both itab table has same
structure-
1- mo.e itab1 to itab2
2-mo.e corresponding field of itab1 to itab2
3- itab2ST D itab2ST
4-appends line of itab1 to itab2--
/7)- #o moe all entries from one internal table to another
which has the same structure use the following statement*
I#4<2CD K I#4<1CD.
356. how man! structures are in sap 3/3E/6/4)?
/7)- deep structure.
/*
nested structure
simple structure
357. how to write code al. with interacti.e?when i clicBed
1field i will generated [email protected] report0is it possible in
al.?
/7)-
<uilding Interactie 49J list
using E'&=8&"49J"9I8#":I8394;E.
<y :0:0
#his program displays the 3urchase 0rder header details on
the basic
list and on double-clic!ing any of the record on the basic
list+
the item-leel information is displayed on the secondary
list.
'&30'# P3='7%48&"0':&'.
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
V #;3&-30098 :&794'4#I05
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
#;3&-30098*
89I8.
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
V :4#4 :&794'4#I058
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
:4#4*
F"&<&95 #;3& &BB0-&<&95+
F"3'01 #;3& 8;-'&3I:+
#".I&9:74# #;3& 89I8"#".I&9:74#"49J+
.8".I&9:74# 9IB& 9I5& 0. #".I&9:74#+
#"&J&5#74# #;3& 89I8"#"&J&5#+
F"&J&5#74# 9IB& 9I5& 0. #"&J&5#74#.
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
V 8&9&7#-03#I058 :&794'4#I05
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
8&9&7#-03#I058*
8"&<&95 .0' F"&<&95.
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
V I5#&'549 #4<9& 45: .I&9:-8#'I51 :&794'4#I058
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
:4#4*
#"&BB0 9IB&
8#45:4': #4<9&
0. &BB0+
/,
.8"&BB0 9IB& 9I5& 0. #"&BB0.
:4#4*
#"&B30 9IB&
8#45:4': #4<9&
0. &B30+
.8"&B30 9IB& 9I5& 0. #"&B30.
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
V 8#4'#-0.-8&9&7#I05
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VVVVVVVVVVV
8#4'#-0.-8&9&7#I05.
8&9&7# V
.'0, &BB0
I5#0 #4<9& #"&BB0
F%&'& &<&95 I5 8"&<&95.
F"3'01 K 8;-'&3I:.
7499 .=57#I05 E'&=8&"49J"9I8#":I8394;E
&?30'#I51
I"7499<47B"3'01'4, K F"3'01
I"7499<47B"=8&'"70,,45: K E3I7BE
I"8#'=7#='&"54,& K E&BB0E
#4<9&8
#"0=##4< K #"&BB0
&?7&3#I058
3'01'4,"&''0' K 1
0#%&'8 K 2
.
I. 8;-8=<'7 A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
V FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
V(----------------------------------------------------------
----------V
V( .orm pic!
V(----------------------------------------------------------
----------V
V ---=70,, te$t
V ---8&9.I&9: te$t
V-----------------------------------------------------------
----------V
.0', 3I7B =8I51 70,,45: 9IB& 8;-=70,,
8&9.I&9: #;3& 89I8"8&9.I&9:.
'&4: #4<9& #"&BB0 I5#0 .8"&BB0 I5:&? 8&9.I&9:-#4<I5:&?.
748& 70,,45:.
F%&5 E(I71E.
8&9&7# V
.'0, &B30
I5#0 #4<9& #"&B30
F%&'& &<&95 &N .8"&BB0-&<&95.
/+
F"3'01 K 8;-'&3I:.
7499 .=57#I05 E'&=8&"49J".I&9:74#4901",&'1&E
&?30'#I51
I"8#'=7#='&"54,& K E&B30E
7%451I51
7#".I&9:74# K #".I&9:74#
&?7&3#I058
I57058I8#&5#"I5#&'.47& K 1
3'01'4,"&''0' K 2
0#%&'8 K 3
.
I. 8;-8=<'7 A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
V FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
:&9&#& #".I&9:74# F%&'& .I&9:54,& &N E&<&95E.
:&9&#& #".I&9:74# F%&'& .I&9:54,& &N E<=B'8E.
:&9&#& #".I&9:74# F%&'& .I&9:54,& &N E910'#E.
:&9&#& #".I&9:74# F%&'& .I&9:54,& &N EF&'B8E.
7499 .=57#I05 E'&=8&"49J"9I8#":I8394;E
&?30'#I51
I"7499<47B"3'01'4, K F"3'01
I#".I&9:74# K #".I&9:74#
I#"&J&5#8 K #"&J&5#74#
#4<9&8
#"0=##4< K #"&B30
&?7&3#I058
3'01'4,"&''0' K 1
0#%&'8 K 2
.
I. 8;-8=<'7 A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
V FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
&5:748&. 2 748& 70,,45:
&5:.0',. 2 .0', 3I7B
.0', #"&J&5#74#.
F"&J&5#74#-54,& K E#03"0."341&E.
F"&J&5#74#-.0', K E#03E.
433&5: F"&J&5#74# #0 #"&J&5#74#.
&5:.0',.
.0', #03.
'&4: #4<9& #"&B30 I5#0 .8"&B30 I5:&? 1.
F'I#&*/ E3urchase :ocument 5umberE6001)+30 .8"&B30-&<&95+
/ E7ompany 7odeE6002)+ 30 .8"&B30-<=B'8+
/ E3lantE6003)+ 30 .8"&B30-F&'B8+
/ E8torage 9ocationE6004)+30 .8"&B30-910'#.
&5:.0',.
/0
359. which of the command flushes the database buffer?
a) Ufree b) Utab-
/7)- Y#4< resets the #4<9& buffers of the application serer
36). what are use of oB&code in bdc?
/7) #he 0B"70:& field stores the function code in your program.
It is always the last field in the field list of a screen.
;ou need to assign a name to this field in the 8creen
3ainter. #raditionally+ this field is always called
20B"70:&2. %oweer+ you can call it anything you li!e. 0nce
you hae assigned a name to the 0B"70:& field+ you need to
declare a field with the same name in your module poo
361. in select &upto 7 3$#) I: 7D0 2H(7@@@@@@@@@@@@@@@@@@are rows
are selected?
/7)- 4ll rows will be selected
362. what is the structure of itab of screen?
/7)- 54,&+1'0=31+1'0=32+1'0=33+1'0=34
'&N=I'&:+I53=#+0=#3=#+I5#&58I.I&:+I5JI8I<9&
9&51#%+47#IJ& are the components in screen
you can declare internal table with scrren structure in itab
:4#4* <&1I5 0. it"screen 077='8 0.
include structure screen.
:4#4* &5: 0. it"screen.
it"screen-actie K 0
append screen.
#his is how you can use the components in the itab screen.
363. what is the purpose of 3'6,$I7' 34$<3/,?
/ns- '<:,0I5: is used to update the status of 0utbound I:oc from
03 to 12.
03- Idoc pasted to communication layer
12- data passed to port 0B
364. what is the difference detween ('I /7' /5(?
/ns- &:I*
edi is electronic data interchange is e$change the data by
electronically from one system to the another system that
is weather is document or anything.e$*if you send the
purchase or der from the 6sender) system that means outbound
system that is recieed to sales order to the inbound
system6'ecieer)
so that means that document is changed by electronically
from the outbound system to the inbound system.
49&*
4pplication lin! enabling it proides the lin! between the
two systems that is the sap or non-sap or third party
systems within the distributed systems only. e$* if u send
the purchase order from the outbound system the inbound
system also reciees the same purchase order . that means
//
there is no change. so changes not possible in 49&.
365. what is process code?
/ns- which code is used for read the data from ci6communication
idoc) 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 6structured types)
8tructured types describe the structure and functions of any
structured data ob@ects+ that is of data structures with
components of any type.
4 component can be a field with an elementary type or can
itself be a structure. 4 table can also be used as a
component in a structure.
4 database table always has a structure and is therefore
implicitly a structured type. %oweer+ the fields of a
database table can only hae an elementary type.
#able types
#able types describe the structure and functions of internal
tables in the 4<43 program. #heir rows can hae any row
type. #able types with elementary row type therefore can be
defined @ust the same as multi-dimensional table types
6table types with a table type as row type) or table types
using structures with table-li!e components.
In a simple words+
8tructure is @ust a flat structure but #able type is an
internal table.
8ample code how to use them to create internal table*
V 7reate Internal table from a structure*
:4#4* I#":4#4 #;3& 8#45:4'# #4<9& 0. 8tructure.
V 7reate Internal table from a table type*
:4#4* I#":4#4 #;3& table"type.
367. can we insert two records in internal table?
if !es gi.e code-
/7)- 0fcourse we can insert two receods to an internal table.
%ere is a sample code.
VInternal table declaration.
:ata* ftab li!e scarr occurs 0.
:ata* begin of itab+
carrid li!e scarr-carrid+
carrname li!e scarr-carrname+
currcode li!e scarr-currcode+
end if itab.
itab-carrid K <<.
itab-carrname K <ritish airways.
4ppend itab to ftab.
clear itab.
itab-carrid K 44.
itab-carrname K 4merican airlines.
4ppend itab to ftab.
clear itab.
by using append we can insert multiple records to an
/6
internal table.
368. what is the e.ent while entering data in screen to get
neAt field?
/7)- start-of-selection
3"1- difference b/w classical report and intracti.e report?
/7)-
3>0- what is diffrence between table control and al. grid in
dialog programming in abap?
/7)- 4l 1rid control is adanced for #able control.
table control means we hae to use in :ialg 3rograming <ut
grid control is haing features li!e 49J 3rograming.
371. what is difference betwen t!pe and liBe statement?
/7)-
3>2-)martform 9 how to print a smartform with portrait st!le and
landscape st!le at the same time?
/7)- :ouble clic! on page and go to 0=#3=# 03#I058 tab.
4nd choose the radio button for the landscape and portrait
style.
<ut you done only one 8tyle in one time.
373. / report has statements liBe9
top@of@page-
write 9/-
(nd@of@page-
write9/-
6ut the end@of@page is not displa!ed ?please .erif!?
ANS. in top-of-page no need to resere space for header in
apage.
in case of end-of-page u need to resere some space for
footer in the report program by using line-count 2062).
in that 2 lines of space is resered for footer then only
it display the footer in those 2 lines in out put.
3>4- How to debug an Idoc at runtime?
458.I:ocs are processed by a function module+ which are mapped
against in table &:I.7#. Fhen you process an I:oc with <:>H
you can hae a brea!point in the function and it will stop.
.or outbound processing it depends on which program is
sending the I:oc. .or transactional data li!e purchase
orders+ the I:oc is created ia '8548#00 which in turn calls
a function module assigned to the processing code 6<:41).
375. what class is used to displa! the /5F grid control?
/7)- =se the 7lass 79"1=I"49J"1'I: #o display the 49J grid
control and call ,ethod 8&#"#4<9&".0'".I'8#":I8394;.
376. parter profiles are stored in which table?
/7)- &:331 &:312 &:313 &:321
3>>- what is the use of C2+&4/3/,) when we worBing with 6'C?
/7)- actually 7#="34'4,8 I8 #%& 8#'=7#='&+
7#="34'4,8 .I&9:8 4'&*
:I8394; ,0:&.
=3:4#& ,0:&.F%I9& F& F&'& &?&7=#I51 #%& 7499 #'4587#I05 <:7 3'01'4,
/2
#%&8& #F0 .I&9:8 F& 5&&: #0 =8& .0' I53=# 34'4,&#'8.
3>?- what is the standard program to checB the consistenc! of the
partner profiles?
/7)- #o chec! the consistency of partner profiles+ we can
e$ecute the program '8&7%B0H. ;ou can do this ia
transaction 8&3>.
3>1- what is the field to be used in field catalog of an /5F
report to hide the rele.ant column in the list?
/7)- .ield E50"0=#E
3?0- what the tcode to checB the consistenc! of worB flow for /5(
/('I in a inbound error processing?
/7)- 4le system proides a tool to test the consistency inbound
parameter for error handling
by using this we can test all the process codes or one
process code at a time.
out put is color coded report thsi displays possible cause
of errors
for process codes use '<:,0I57 or '<:,0I5..
<y using this u can find the lin! between process code and
function module+ ob@ect type for message idocs +ob@ect type
for message idoc pac!et si)e and tas! for error handling
3?0- to eAplicititl! intialiIe the selection screen for each call
!ou must !ou the e.ent &&&&&&&&&&&&&&&&?
/7)- initiali)ation eent
3?1- tcode to find applicatin ser.er directories?
/7)- 4911
3?2- what is the standard program to checB the consistenc! of
partner profiles?
/7)- '8&7%B0H
3?3- what is the flag?
/7)- flag is a ariable which contains only two alue li!e 6 0
or 1) or 6 true or false ).
3?4- how to debug a popup window?
/7)- 7reate a small te$t file6notepad) on your local computer
with the following content
C.=57#I05D
7ommandK/%
#itleK:ebugger
#ypeK8ystem7ommand
8tart :ebugging+ wheneer you want to debug a popup ta!e
this file and drop it oer your popup.
3?- what is the difference between functional spec and
technical spec?
/7)- .unctional 8pecs+ #hese are generally gien by the 7lient
as per their business flow and their products list /
reSuirement list..
#echnical 8pecs+ #hese are generally analysed and created
by 0ffshore team during the 'eSuirement gathering+ this
will be generated based on the .unctional specs which was
/8
gien by the client...
3?"- #hat is the reason0 a 6'C program is worBing in M/M mode
but not in M7M mode ?
/7)- 4*499 87'&&5 ,0:& =8&.=999 #0
:I8394; 499 87'&&58 4# '=5 #I,&
5 * 50 87'&&5 ,0:& 50 87'&&5 4'& 4J49I4<9&
I 8=11&8# #0 10 ,08#9; #0 499 87'&&5 ,0:& 48 I# %&938 #0
1IJ& =8 4 I5.0 F%&'& #%& '&70': =3904:I51 I8 .4I9&:.
387. what is 2ransport 3eOuest? wh! it is needed for us?
/7)- #ransport reSuest is a reSuest which is used to transport
the ob@ect from testing to the production seer.
&ach and eery tas! will be stored in the transport reSuest
388. #hat t!pe of transport reOuests?
/7)- #ransport 'eSuests are 4 types.
1) 7ustomi)ing reSuests *
7hanges to 7ustomi)ing settings are recorded in
7ustomi)ing reSuests.
2) For!bench reSuests *
For!bench reSuests record changes made to 4<43 For!bench
ob@ects.
3) #ransport of 7opies *
#ransports of copies allow you to transport 6sub-)ob@ects
in an ob@ect list into any other 843 8ystem you want.
4) 'elocations*
389. /fter sending the dataEan! t!pe) from )(7'(3 to 3(C(IF(3 can
we send the same data to )(7'(3 b! using /5(?
ANS. ;&8 we can send the data &ither from receier to sender and
ice ersa. <ecause already we hae partner profile in both systems and we
distributed that by using 7,: #? <:64.
310- in /5F reports how double clicB e.ent worBs?
/7)- #he eent which is used is E(I71E . when eer a double clic! eent is
wor!ed the aboe is used. apart from =8&'70,,45:.
311- where u can find out the checB table?
/7)- goto 8&11- - gie table name --clic! on entry help push
button -- u can iew a new column in the table iRe 7%&7B
#4<9& where the chec! table name is defined
312- How to create our own data t!pes in a 3eport??
/7)- using synta$ 2#;3&82 we can create our own data types.
for e$*-types * name61G) type c.
types * name1 type name.
313- Can we use same 'omain for more than 'ata element?
/7) yes we can use same domain for different data elements+
data element gies documentation iRe f1 help for a field
and domain describes the si)e and type of a field +so
there can be many fields haing different f1 help + but
same si)e and type.
field1"\- data element1 """"\
field2"\" data element 2 """"\"""""domain
\ \
67
field3"\" data element 3 """"\
314- hat are the Voins used for internal 2able?
/7)- If you want to retry the data from more then one table
connected with common !ey + we will go for @oins 6Inner
@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*<egin of itab occurs 0+
,4#5' #;3& ,4#5'+ 2.'0, ,4'4 #4<9&
&'8:4 #;3& &'8:4+ 2.'0, ,4'4 #4<9&
,4B#? #;3& ,4B#?+ 2.'0, ,4B# #4<9&
end of itab.
2. write select statment.
select a]matnr
a]ersda
b]ma!t$
from ma!t inner @oin mara
on a]matnr K b]matnr
into table itab where a]matnr in s"matnr.
31- How to search a Internal 2able :ields?
/7)- 80'# itab by <I54'; 8&4'7%
9003 at itab.
write*...
&5:9003.
31"- while running bdc call transaction method for user defined
table0 all the records are sa.ed eAcept the last record-
whats the problem? can an!bod! clarif! me?
/7)-
31>- (Aplain the )mart:orm with an (Aample?
/7)-
31?- How to )plit one deli.er! into man! E )tep b! )tep)?
/7)- when orderd Sty A deliered ( the remaining Sty has
delierd some other time+there may be the possibilities to
split.so once again it effects from pic!ing+pac!ing ( deliery
with different document numbers poooled to reach the
desired deliery.
311- #hat is user specific parameter?
/7)- #he alues in 834/134 parameters are user-specific. 4<43
programs can access the parameters using the 8&# 34'4,&#&'
and 1&# 34'4,&#&' statements.
400- )creen wise process for creating sales order Ouotation
through transaction code F/21 /7' #hat are the mandator! fields to be filled
in 2ransaction F/21 for MCreation of sales order LuotationM-
/7)- Fe need to set @ob processing as <y using
8et the session as foreground Uob scheduling.
and !eep the 8ession as #'=& or E$E.
,atnr field 6material no)
61
Fer! field6plant) and some of fields used as mandatory
401- when u create an indeA in 'ata 'ictionar!--how do we call it
in a program or report--?
/7)- if we want to get the records ery fast by using it is
possible by using stmt called '&4:.....inde$ Aid$no- statement
in program or report
8uppose you hae created a secondary inde$ for a field
&,354, in the table P:&#4I98.
#hen you can use the statement
select V from P:&#4I98 where &,354, K E???E.
402- what is the difference between at line selection and at
line selection on field-
/7)- 1)at line selection* it is used to capture all the field
alues
2)at line selection on filed* it is used to capture only
particular field alue.
403- how to upload open purchase order through 6'C?
/7)- by using some of function,odules li!e
in both 48+38 we hae to create internal table
1)=3-904: 2):0F5-904: these are used if the data is in 3resentation
8erer
3)'&4:-:4#48&# 4)#'458.&' these are used if the data is in 4pplication
8erer
60r)
<y using ,anualprogramming
li!e <:7:4#4 structure
there we hae fields li!e program+dynpro+dynbegin+fname+fal
404- how man! no of buttons we can create on /pllication tool 6ar?
/7)- > button ( 6 menu
40- I ha.e two selection screens0 i ga.e .alues in first
selection screen but i dinMt gi.e an! .alues in second
screen- will it displa! or not plI tell me?
/7)- It depends on your code.
If you hae enterd some alues in frst screen and used the
leae to list processing statement then it will display
alues of the first screen else if you directly called the
second screen then it might not display any alues.
40"- #hat is the significance of at line@selection e.ent?
/7)- at line-selection is an eent which is
trigerred when eer u double clic! a record line in the
primary list.... or single clic! onthe record if u using
%0#830# command....
so when this eent is triggered it will fetch that rowEs
information in the system ariable 8;"9I8&9...as it is
displayed on the screen....
so again u will hae to use the offsets to fetch that
information only which u want....
or instead of this... use %I:& command ... to fetch those
fields only which u want.... simple
buddy.... hope u hae got it....
mainly this eent is used wheneer we r using lists...
one list under the other
6*
40>- how to transfor the data from flat file to bdc
plI send the steps as well as eAample
/7)- 1.=8I51 1=I"=3904: =3904:&: :4#4 .'0, .94#.I9& #0 I5#&'549
#4<9&.
2.4339; 4 ,433I51 901I7 =8I51 J4'I0=8 ,&#%0:8 I.&
8&88I05+7499 #'45847#II05 &#7 I.& F& 7499&: #'458.&' #%&
:4#4.
3.=3:4#& #%& :4#4<48&.
408. #H/2 I) ,(/7 6* C%010 F/01 /7' F'01 I7 6'C 43$<3/,()
/7)- its an customer master + endor master+ and sales order
t.codes in <:7 to gie the input field screen
409. what is difference between parameter H select@option?
/7)- select-option* is used for the wheneer create the
select-options the system creaat the one internal table same
ariable name. that table name is called selection table.
the main purpose of the internal table is used to stored the
selection te$t.but at the same time the system create the
8ign +0ption+9ow+%igh implicitly.
it will accept the alue ranges from the selection screen.
means lower range and higher range alue.
parameters* is used for the it will accept the alue from
the user.the system doesnot create the internal table
implicitly. it will create the e$plicitly.
41). how to debug bacBground Nobs?
/7)- In 8,3H* 8elect the @ob+ type U:<1 in the 0B-code and press
enter. #his can be used for both completed @obs and @obs to
be processed 6@ust ma!e sure you hae enough time to debug
before the @ob actually starts). <rea!points set in the @ob
flow wor!s. #his method has been successfully used in '/3
4.67.
411. how can !ou call a function module in smart form--??
/7)- when u right clic! the new node
create--flowlogic--programlines.
then a window opens for program lines..
there in the left side u can find the icons..
chec!+pretty printer and a statement struct...
clic!ing his statement struct icon u can call funtion module...
412. How to call / report from other report widout using include
program--??
/7)- one command is using for calling other report.
1.report Ereport nameE mode display.
2.using submit
submit E)satE ia selection-screen and return.
413. what are the roles and responsibilities of a technical
consultant will be assigned in idoc de.elopment in real time?
in case of
a)I'$C (C2(7)I$7
b)sending 23/7)/C2I$7/5 I'$C
c)CH/7<( 4$I72(3)
6,
/7)- 1)I:07 &$tension is nothing but &$tending the &$isting I:07 as
an &nhancement
2)#ransactional I:07 is means that sending the I:07 from place
to an another by using ., called I5<0=5:-I:07"3'07&88
3)7hange pointers are menat for 4ctiate the I:07 by using #?
7ode <:61
414- I ha.e a table with 400 recs- among some are duplicate records-
how can I remo.e the duplicate records from the table-
/7)- 8ort internal table according to field which is haing
repeated alues. 4nd the use the statement 2:&9&#& 4:U47&5#
:=39I74#&8 .'0, Ainternaltable- 70,34'I51 Athe field with
which u sorted the internal table-.
41- wahts is the diff between the transaction---
F'01 and C'01???
/7)- <oth are used for 7ustomer creation but in J:01 we dont
specify company code details whereas in ?:01 we hae to.
41"-I H/F( 3(L+I3(,(72 5I%( 2HI)0 I H/F( 2#$ I72(37/5 26/5( 5I%(
I2/6 /7' I2/61 I7 I2/6 I H/F( 0 3(C$3')0 I7 I2/61 100
3(C$3') /3( 2H(3(- #H(7 (C(C+2( 2HI) L+()2I$7 #H/2 #I55 6(
2H( $+24+2 /T0 6T100 CT10? /7' H$# 2$ V$I7 2#$ I72(37/5
2/65() #H/2 I) 2H( )*72/C :$3 2H/2?
AN. = canEt simply display the alues of two tables itab and
itab1 without lin!ing/merging it.
1.9in!ing*
If itab ( itab1 reSuires only one loop then either itab or
itab1 should be read and append to itfinal.
2.,erging*
If itab ( itab1 reSuires two separate loops+then u need to
merge those two internal table.
I. u want to merge it+u need to create itfinal or itab2 or
whatelse u wish+which should be declared by the fields of
both itab and itab1.
<ut while merging internal tables+those tables should hae
atleast one lin!ing fields.
417. what is the remote s!stem in ale whether it is sender /
recei.er?
/7)- remote system is receier system
418. 'ifference between select and select single statement?
/7)- select statement e$tracts all the records from the table of
database whereas select single will e$tract only a single
record.
419. what is a 2(C2 2able ?
/7)- #able 4 is a te$t table of table < if the !ey of 4
comprises the !ey of < and an additional language !ey field
6field of data type 9451). #able 4 may therefore contain
e$planatory te$t in seeral languages for each !ey entry of
<.
42). what are steps of smart form-
6+
ANS. there are fie steps in while creating the smartforms.
1.create the new smartform
2.defining the looping process for the internal table
3.define the data into the form.
4.call the smartform function module from the normal abap
program in se3>.
G.process the internal table.
421. #H/2 I) 'I::(3(7C( 6(2#((7 6/2CH I74+2 ,(H2$' /7' 'I3(C2
I74+2
/7)- :irect input method <atch Input ,ethod
1) Fe cannot send the fields \ 1) Fe can send fields as per
according to our reSuirement\ reSuirement.
\
2) alidations are done based \ 2) alidations are done based
on pre-defined function \ on applications.
modules
422. #h! can we get the :unction module when we acti.ate the
)martform ?
/7)- we get a function module bEco) function module is globally
created and we can access it through any client .#herefore +
we can say that smartform is client independent.
423. #H/2 I) 2H( 4+34$)( $: )45I2 C$,,/7'?
/7)- 8plit 7ommand 8plit word in two patrts
424. what is field string ?
H where we are using field strings?
/7)- .ield strings are a special form of dynamic string+ which
hae all the capabilities of a dynamic string+ but may also
represent a defined part of a random file buffer or a
defined part of a dynamic string.
.ield strings must always be declared using 90749.#hey may
be used in the same manner as a dynamic string ariable+ or
they can be bound to a file buffer for an open random-
access file or a dynamic string using a corresponding .I&9:
statement. &ach field string occupies si$teen bytes of
memory+ and reSuires slightly more general oerhead than a
regular dynamic string ariable
#he #4<9&8 statement automatically defines a field string .
they are mainly used in screen painter.
425. how to transfer two idoc simeltaniousl!0
/7)- select the option collect idoc instead of tranfer
immediately. then schedule the transfer of idocs at periodicity
426. what is the difference b/w dri.er program H print program?
/7)- drier program internally created.
print program we hae to create
60
427. how to call the function module generated in smartform for
printing the form ?
/7)- in smart forms the function module will be generated
automatically by the system when actiate the smart form and
proides a name for function module as name. you can call
that function module in the print program using pattern 6
ctrl Q f6).
428. what is the print program for smartforms -pls gi.e me one
eAample -
/7)- the smart form print programm is the one where the ma@ority
of data e$traction occurs. typically+one smart form print
program should be associated with one type of form. for
e$ample the smart form purchase order has a corresponding
smart form purchase order print program tat only handles
data e$traction for tat form.this one-one relation ship
improes the transparency for the user between what is
being performed in the form ersus the print program
always remember tat customer specific customio)ation must
be performed in the smart form print form and not in the
smart form print programme.
#he ma@or benfit of smart form print solutions oer sap
scripts tat if the layout or order of information changes
in the smart form print form+you do not need to alter the
print programme.the lay out of the data on the form is
controlled only in the smart form print form.
429. i want to Bnow abt- I'$Cs and /5( liBe whatMs the role of
messege t!pe in I'$Cs and how things goes on in bacBground
i Bnow i sound absurd but as i m not clear abt-
/7)- ,essage #ype for an Idoc is used to indentify the contents
of the Idoc or a breif conte$t under which the I:07 has to
be sent.
8uppose you hae an I:07 to be sent to your endor which
has purchase details .
= also want to send the same data to JendorEs 3lant as an
ac!nowl!edge to the receipt of material.
8ending the same idoc with same message type to both of
them 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
'&4:"#&?#. If u want read a standard te$t created by the
so10 6li!e the te$ts for smartfoms) transaction use
6/
'&4:"8#:#&?# instead.
432-transaction code for assingning the function module to the
process code?
/7)- F&416for out bound side)
F&426 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.it
willnot be possible.strucure itself has many records and we
can assign forien !ey records to the structures.
434- how to fill the select options from an internal table
d!namicall! ie can i use the loop in the initialiIation
/7)- #4<9&8 * mara.
:4#4 * <&1I5 0. itab 077='8 0+
matnr 9IB& mara-matnr+
&5: 0. itab.
8&9&7#-03#I058* s"matnr .0' mara-matnr 50 I5#&'J498.
I5I#I49IP4#I05.
79&4' * itab+
s"matnr.
'&.'&8% * itab+
s"matnr.
8&9&7# matnr
I5#0 #4<9& itab
.'0, mara
F%&'& meins &N E78E.
V fill select option.
9003 4# itab.
s"matnr-low K itab-matnr.
s"matnr-sign K EIE.
s"matnr-option K E&NE.
433&5: s"matnr.
&5:9003.
43- how to print amount in words in al. ??
will the function module spell&amount worB ??
/7)- the function module spell"amount will wor! but there is
some limitation to it as well.
for eg* if amount is E6000E it will read as si$ thousand.
if amont is E60H>E+it will read as si$ thousand
seenty-eight.
but for 6000.H>+it will read as si$ hundred
thousand seenty-eight.
;ou can try out other combination as well.
43"- can we debug the smartform if !es how can we debug?
/7)- 1.10#0 #-code 8,4'#.0',-- gie the smartform name-- press .>
2.4fter e$ecuting function module will generate.open
function module in display mode.
66
3.* press source code tab of the function module. In the
source code there is a perform ^190<49"I5I#. In this
perform all the code of initiali)ation and program lines is
display as perform. %ere you can easily find your table and
ariable by find command and set session brea! point on it.
43>- 1-6/4I
2-6/'I
3-+)(3(CI2)-
4-/5(0I'$C)03(4$320)/4)C3I42)0),/32:$3,)-
/nd their uses0what is it process in realtime-
/7)- I:078 -:4#4 74''I&8 </5 '/3 45: '/3 #0 505 843
49&- i5#&'147& </5 8;8#&,8
'&30'# - '&#'IJ& :4#4 .'0, :4#4<48& 45: :I8394; I#. I# 745
<& =8&: .0' :4#4 4549;8I8.
843 87'I3#8- =8&: .0' 7'&4#I51 849&8 0':&+ 3='7%48& 0':&'+
I# I8 =8&.=9 .0' <=8I5&88 70,,=5I74#I05.
8,4'#.0',8-=8&: .0' <=8I5&88 70,,=5I74#I05+ I# is client
independebt.multiple forms can be created+ web based.create
colorfull manner.
<43I- I8 =8&: .0' :4#4 ,I1'4#I05 </5 8;8.
43?- H$# ,/7* #/*) 2$ '(:I7( I72(37/5 2/65()-
/7)- there r so many ways to define internal table
1. data* begin of itab occurs 100+
matnr li!e mara-matnr+
mtart li!e mara-mtart+
end of itab.
2.data* begin of itab.
include mara.
data* end of itab.
3. data* begin of itab.
matnr li!e mara-matnr+
mtart li!e mara-mtart+
end of itab.
data* @tab type standard table itab+
gtab type itab.
4. data* itab li!e standard table of mara.
data* @tab li!e table itab.
G. data* itab li!e table of mara with header line.
431- what is data structure and data table
/7)- data sturcture*
data structure is nothing but its create only at runtime.
it doesnot allocate the memory. and also it contains no
data. because of its only structure.no memory is allocated
for the sturcture.
data table*its nothing but sap predefined the table.
its allocated the memory at the runtime.while u defining
the data table u can assign the table type +length.
these all tables are stored into the database.
62
440- can u send the results from report to sap memor!?
/7)- yes ofcourse we can send through 8&# 34'4,&#&'.
7%&7B #%I8 0=#......
8&# 34'4,&#&' I: pid .I&9: f.
&ffect
Frites the contents of the field f to the global 843 memory
under the !ey pid . If the !ey already contains a alue+ it
is oerwritten.
#he !ey pid must consist of three characters. ;ou can find
a list of the !eys 6parameters) used in the 843 system
description or in the 4<43/4 :eelopment For!bench.
5otes
#he global 843 memory remains aailable to the user during
the entire terminal session. #his means that set alues are
retained when you leae a program.
;ou should not use the 843 memory for temporary storage of
alues because other modes use the same global memory.
If you need a new !ey 6parameter)+ you can create this in
the 4<43/4 :eelopment For!bench.
&?4,39&*
:4#4* '&3I:6>) J49=& E'.87%=01E.
8&# 34'4,&#&' I: E'I:E .I&9: '&3I:.
8ets the program name+ e.g. for transfer to another
program.
5otes
'untime errors
8&#"34'4,&#&'"I:"#00"9051 * Bey longer than 3 characters.
8&#"34'4,&#&'"I:"F'051"#;3& * Bey neither type 7 nor type
5.
8&#"34'4,&#&'"J49=&"#00"9051 * Jalue longer than 2G0
7haracters
441- what is meant b! filtration in al.? how to do it?
/7)- in output of al list we can remoe some field rows this
is filtration.
-in the output one pushbutton is their for filter . if u
press that u will get one screen it will as! wt fields u
need to hide.
442- what is the button to change the .ariant in al.?
/7)- It depend when these 2specific circumstances2 are occurringO
<efore displaying the 49J+ then force the alue of the
ariant used in set"table"for"first"display+
7499 ,&#%0: 1'I:1--8&#"#4<9&".0'".I'8#":I8394;
&?30'#I51
I"8#'=7#='&"54,& K E8.9I1%#E
I8"J4'I45# K 18"ariant
I"84J& K ?"84J&
7%451I51
I#"0=##4< K 1#"8.9I1%#.
68
If you want to simulate multiple 2default ariant2 you
should 2mislead2 the 49J by changing the report name used
for storing ariant 6I8"J4'I45#-'&30'#) <ut in this case
you will no longuer see eery ariant when in the 49J+ only
those of the 2report name2 passed when setting for first
display.
443- how to field properties are set with JJJJ as a password-
/7)-
at election-screen output .
loop at screen.
screen-inisible K 1 .
modify screen.
endloop .
444- in start of selection if we perform .alidation 0what happens?
/7)-
44- what is the diff b/e function module al. and oop al.-
/7)- #he function module 49J uses ., to trigger display and
sorting appending thin! for al report+
where as ,ethods are used in the 003s concept fo the 49J.
the other difference is the user has more fle$ablity fi he
uses the 0038 49J than the ., 49J.
44"- can u add a new .iew to the eAisting .iew?
/7)- no . iew is using created one or more tables.
actually iew is used for read only purpose.we cannot
manipulate the e$isting tables or system defined tables.
iews created on transaparent tables only.
44>- how to call the function module generated in smartform for
printing the form ?
/7)- in smart forms the function module will be generated
automatically by the system when actiate the smart form and
proides a name for function module as name. you can call
that function module in the print program using pattern 6
ctrl Q f6).
44?- what is the print program for smartforms -pls gi.e me one eAample -
/7)- the smart form print programm is the one where the ma@ority
of data e$traction occurs. typically+one smart form print
program should be associated with one type of form. for
e$ample the smart form purchase order has a corresponding
smart form purchase order print program tat only handles
data e$traction for tat form.this one-one relation ship
improes the transparency for the user between what is
being performed in the form ersus the print program
always remember tat customer specific customio)ation must
be performed in the smart form print form and not in the
smart form print programme.
#he ma@or benfit of smart form print solutions oer sap
scripts tat if the layout or order of information changes
in the smart form print form+you do not need to alter the
print programme.the lay out of the data on the form is
27
controlled only in the smart form print form.
441- at the checBing of s!@subrc after call transaction stmt0if
it is Iero what is the meaning of that of s!n and as!nch
updates 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 is
successful+irrespectie of situations if sy-subrc returns 0
its success message.
40- can u create internal table d!namicall! ? how?
/7)-
=se this method.
call method cl"al"table"create K-create"dynamic"table
and assign this to a field symbol.
41- what r the main e.ents that r used in al.?
/7)- #03"0."9I8#
&5:"0."9I8#
&5:"0."341&
#03"0."341&
#03"0."70J&'341&
&5:"0."70J&'341&
42- if u write a write statement after end of selection 0will
that be triggered?
/7)- Fithout 8top statement also it will trigger.
&nd-of-selection normally triggers when all the records
hae 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 the
error logs in session method.
records are not updated until to rectify the errors. if any
error record is that is not updated into the database..
to correct the error record then u can process again then
is stored into the data base.
44- can u sa.e internal table in sap memor! from abap memor!?
/7)- If you want sae I#4< in sap memory then you hae to use
I,30'# nad &?30'# statements
#he followin e$apmles will e$plain how it will wor!s
%ere i created two report progrmas
1KK- P8%45"&?30'#"I#4< ---- #0 &?30'# #%& I#4< I5#0 843
,&,0';
2KK- P8%45"I,30'#"I#4< ---- #0 I,30'# #%& I#4< .'0, 843
,&,0';
---------------------------------------------
'&30'# P8%45"&?30'#"I#4<
:4#4 #&?#1610) J49=& E&$portingE.
:4#4 I#4< 9IB& 8<00B 077='8 10 FI#% %&4:&' 9I5&.
21
:0 G #I,&8.
I#4<-<00BI: K 100 Q 8;-I5:&?.
433&5: I#4<.
&5::0.
&?30'# #&?#1 #&?#2 .'0, E9iteralE #0 ,&,0'; I: Ete$tE.
&?30'# I#4< #0 ,&,0'; I: EtableE.
--------------------------------------------------------
KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
--------------------------------------------------------
'&30'# P8%45"I,30'#"I#4<.
:4#4* #&?#1610)+
#&?#3 9IB& #&?#1 J49=& EInitialE.
:4#4 U#4< 9IB& 8<00B 077='8 10 FI#% %&4:&' 9I5&.
8=<,I# P8%45"&?30'#"I#4< 45: '&#='5.
I,30'# #&?#3 .'0, ,&,0'; I: Ete$tE.
F'I#&* / 8;-8=<'7+ #&?#3.
I,30'# #&?#2 #0 #&?#1 .'0, ,&,0'; I: Ete$tE.
F'I#&* / 8;-8=<'7+ #&?#1.
I,30'# I#4< #0 U#4< .'0, ,&,0'; I: EtableE.
9003 4# U#4<.
F'I#& / U#4<-<00BI:.
&5:9003.
4- iam ha.ing 3 internal table how can i pass data to the 4th
internal table
/7)- you hae 3 internal tables u want to populate these 3
internal tables data to 4th internal table ..right
7hec! out this eg code *
suppose we thin! u hae 3 Internal tables i.e.+
t"marc+t"mara+t"ma!t
and 4th internal table is itabCfinal interanl tableD
8tart-of-selection.
8elect matnr wer!s lorm from marc
Into table t"marc
Fhere matnr K s"matnr
4nd wer!s K p"wer!s.
If t"marc is not initial.
9oop at t"marc .

'ead t"marc into itab with !ey matnr K t"marc-matnr.
8elect matnr ,brsh ,eins ma!tl from mara
Into table t"mara
.or all entries in t"marc
Fhere matnr K t"marc-matnr.
8elect matnr ma!t$ spras from ma!t
Into table t"ma!t
.or all entries in t"marc
Fhere matnr K t"marc-matnr.
,oe *
2*
#"mara-mbrsh K itab-mbrsh.
#"mara-meins K itab-meins.
#"mara-ma!tl K itab-ma!tl.
#"ma!t-ma!t$ K itab-ma!t$.
#"ma!t-spras K itab-spras.
&ndloop.
&lse .
Frite * / Z5o data is found in the first internal
table #"marc[.
&ndif.
4"- what is the difference between message t!pe and basic t!pe?
/7)- ,&8841& #;3& I8 #%& ,&8841& F%I7% I8 #'458.&''&: I5 <&#&&5
#%& <=8I5&88 34'#5&'8.
<48I7 #;3& I8 #%& 705#4I5&' 0. #%& ,&8841&.
4>- How can I pass )(5(C2@$42I$7) to function module generated
b! ),/32:$3,?
/7)- decalre ur select options there n call that generated ., in
ur drier program n pass the parameter
4?- How to transfer a smartform from 'e.elopment to Lualit!
)er.er?
/7)- assign smartform into a transport reSuest and release it
from deelopment seer and import it in Suality using 8,#8
transaction
41- How to debug a smartform otherthan putting breaB@point in
initialiIatin section?
/7)- &$ecute the smartform+ u can see a function module /000012.
7lic! on 10#0 on the menu bar. 7lic! on ,ain program. ;ou
canm see the includes. clic! on the last include i.e .01.
and !eep the brea!-point68hiftQ7ontrolQ12) at ur desired
point.
4"0- how we can taBe a file from 4resentation ser.er to
/pplication ser.er?
/7)- #o upload a file from presentation serer to application
serer we hae to do the following *
1. upload the file from presentation serer in to an
internal table using gui"upload.
2.open dataset
3.loop the internal table
4.use transfer statement to write into application serer
4"1- which of the following is more efficient when we are
retrie.ing data from more tables-
select statement using innerNoins or select statement using
for all entries?
/7)- .or Bey .ield Inner Uoin is most appropriate if all !eys
are matched. .or e$ample* &BB0-&B30 based on &<&95. It
reduces the networ! traffic for selecting data from both
the tables.
4"2- what are the loop e.ents and what is the difference between
2hem
2,
/7)- 4# .I'8# - trigered when the loop e$ectutes for the 1st time
4# 5&F Afield- - trigered when the a new alue is to the
field.
4# &5: 0. Afield- -trigered when the last occurance of the
alue for the Afield-.
4# 948# - trigered at last of the loop.
05 7%451& 0. - some what similiar to 4# 5&F.
4"3- what is the difference between function modules and
)ubroutines?
/7)- funtion modules subroutines
1.they can be tested by itself 1.they cannot .
2.they can be remote enabled 2.they cannot .
3.they can handle e$ceptions 3.0nly a few can handle.
4.they hae to be maintained in 4.It is not necessary.
a function group.
4"4- how to design checBboA on the o/p of the list 0not on the
selection screen-
/7)- data* begin of i"marc occurs 0+
matnr li!e mara-matnr+
werls li!e marc-wer!s+
pstat li!e marc-wer!s+
c1+
end of i"marc.
................
................
................
loop at i"marc.
write*/ i"marc-c1 as chec! bo$+ ........
endloop.
4"- the control commands in the report program are
atfirst0atnew0atlast0atend of and what is the difference
between them?
/7)- 4t first
this eent is trigerred when it encounter the first record
4t new
#his eent is triggered wheneer the alue of thge field
specified as part of at a new eent changes
4t end of
this eent is triggered at the end of current field alue
which is specified as part at end of eent
4t last
this eent is trigerred when it encounter the last record
4""- how to creat a table with out primar! Be!?
/ns- 4 table can be created without using the primary !ey.
first understand why we use primary !ey on a table*-
1.in order to aoid inserting of duplicate alues in a table+we use
primary !ey+we can create a table with different alues.
2.in order to establish the relation with other table by the use of primary
!ey in parent table and foreign !ey in childEs...without establishing the
relation with any other table also +we can create a table without haing any
primary !ey
2+
4">- How to handle (rrors in :unction ,odules?
/7)- #o handle errors in function modules we hae to use the
e$ceptions attribute. Fhen the function module is called we
hae to handle is by '4I8I51 the e$ceptions.
4"?- how can u write in single program call transaction and
session method logic?
/7)- It is possible to use * call transaction + and session
method in the same program.
.irst + try posting using call transaction+
if sy-subrc is ne 0.
sae bdctab.
open a <:7 session.
insert data.
and close session.
endif.
4"?- sa! in selection screeen Eie is in select@options) i ha.e
selected record range from 1000 to 2000 but in the final
displa! list i sholud not get 1200 to 1300 records it
should be hide how is it posible
/7)- clic! on the arrow tab beside the outer range and gie the
range in e$cluding the range it will apper on red colour 9&:
in such range will be e$clde from ur selection range.
4"1- in the final displa! list how can i change rows to columns
and .ice .ersa
/7)- #his is possible using dynamic internal table.
:eclaration
:4#4 * I.74#"#4< #;3& 9J7"#".74#+
.74#"#4< #;3& 9J7"8".74#.
:4#4 * #9I58 #;3& I.
.I&9:-8;,<098 * A9I8#- #;3& #4<9&+ A9"9I5&- #;3& 45;.
.I&9:-8;,<098 * A.J49- #;3& 45;+ A.30J- #;3& 45;+
A#.J49- #;3& 45;.
:4#4 * I:4#4 #;3& '&. #0 :4#4+
5&F"9I5& #;3& '&. #0 :4#4.
9003 4# 49J".9:74#"# I5#0 49J".9:74#.
,0J&-70''&8305:I51 49J".9:74# #0 .74#"#4<.
433&5: .74#"#4< #0 I.74#"#4<.
&5:9003.
4fter creating normal al field catalogue we can add rows
info as column....
:&9&#& 4:U47&5# :=39I74#&8 .'0, I.74#"#4< 70,34'I51
.I&9:54,&.
80'# I.74#"#4< <; 709"308 487&5:I51. 2.I&9:54,&
7499 ,&#%0: 79"49J"#4<9&"7'&4#&K-7'&4#&":;54,I7"#4<9&
&?30'#I51
I#".I&9:74#4901 K I.74#"#4<
I,30'#I51
&3"#4<9& K I:4#4.
488I15 I:4#4--V #0 A9I8#-.
7'&4#& :4#4 5&F"9I5& 9IB& 9I5& 0. A9I8#-.
488I15 5&F"9I5&--V #0 A9"9I5&-.
20
4>0- how man! t!pes of idocMc?
/7)- there are 2 types of idocs
1. <asic idoc
2. &$tended idoc
<asic idoc
one controll record
one data record
one or many status record
&$tended Idoc
0ne controll record
one or many data records
one or many status records.
4>1- how to stretch the report siIe in standard tool bar-
/7)- in al. reports how i insert logo
into al. gridEif it is tcode MoaerM )?tell me procedure0
in the same report how insert bacBground logo tell me the
procedure please?
/7)- to show 9010 in 49J grid with header details+
in '&=8&"49J"1'I:":I8394;+
I"7499<47B"%#,9"#03"0."341& K E#03"0."341&E
VVVVVat the end of main programVVVVVVV
form #03"0."341&.
VVVVVVVVVV:eclarationVVVVVVVVVVVVV
data * glistheader type slis"t"listheader+
llistheader type slis"listheader.
VVVVVV3opulate header dataVVVVVVVVVVVV
clear llistheader.
llistheader-typ K E%E.
llistheader-info K E#his is 1rid #itleE.
append llistheader to glistheader.
7499 .=57#I05 E'&=8&"49J"70,,&5#4';"F'I#&E
&?30'#I51
it"list"commentary K glistheader
I"9010 K E&5U0;"843"9010E
V I"&5:"0."9I8#"1'I: K
.
endform.
4>2- I am tr!ing to automate a manual processing of i'$Cs in
6'?>- I used the following code to pass idoc@id to global
.ariable M'C7M and then sBip the first screen of 6'?> to go
to processing directl!- /fter running this code
)(2 4/3/,(2(3 I' M'C7M :I(5' itabhdr@idoc&id-
C/55 23/7)/C2I$7 M6'?>M /7' )%I4 :I3)2 )C3((7-
it taBes me to the first screen because it cannot recogniIe
m! idoc@id- How I can pass idoc@id to global?
I ha.e used the abo.e code to goto F/02 with F6(57 and it
worBed perfectl!-
/7)- #his is because <:>H is a report. #ry n use 8ubmit '<:,0500
with selection-table Aseltab-. fill seltab with your I:07
2/
I:.
4>3- what is meant b! idoc filtering?
/7)- I :oc filtering is nothing but wipout unwnted idocEs that
ar not reSuired to receingpartner.
9et us suppose some message type iam sending from my
central datbase seer to G noEs application seers let it
ta!e as some plants in my company code .
#he master idoc will contains the data pertaining to the
fie plants.
in thia case for plant 5o1 date is not reSiured pertaining
to all the remaining plants i.e 2 3 4 G.
in this case while creting the distribution model whe hae
to mention the filter !eyEs
#hen when eer the master I:07 passe through 49& serice
layer it will chec!Rs for filter !eyE alues s for a
receier and it will wash outEs the all the idocEs
otherthan the alues and cretes the communication I:07.
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)- 49& configuration *
1oto 849& #-code then
1) :esign 9ogical8ystem and go bac! to I,1 initial 8creen
and 2) 4ssign 9ogical 8ystem to the client.
3)then 1oto 8,GI to create '.7 :estinatio for the 9ogical
8ystem 6i.e.receier system.).
4) then 1oto F&21 #-code for 3ort 7reation in F&20 select
#ranscational3ort and create your 0wn 3ort.
G) 1oto <:64 #-code for :istribution ,odel
here we create ,odel iew and specifies the what !ind of
,essage is distributed between them .
6)weEll sae and goto enironment in the menu bar..
H) goto we20 #-code for 3artner 3rofile ..create the
3artner file ..and gie inbound and outbound messagetypes.
#hese r the steps for 49& 7onfiguration.
8uppose If u 8pecify ,atmas as ,essage type ...got <:10 and
sent the material .
4>- if u taBe one worst program how can u bebugg in application
ser.er H database ser.er?
/7)- by maintaning brea! points in the program 6ie for the
statements which you want to debugg)
4>"- how can u write in single program call transaction and
session method logic?
if u write logic in call transaction 0is there an! errors ?
how can u see in session ?
/7)- ;ou can set radio button in select options
call transation
call session method
if call transaction K E?E.
call transaction.
else
call session method.
endif.
26
4>>- How Calculate 2$2/5)0)+62$2/5) in /5F 3eporting?
/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#".I549E.
wa"sort-subtot K E?E.
append wa"sort to it"sort.
4>?- If suppose 2here are 10 records in flat file then how man!
times 6'C&open&group0 6'C&I7)(320 6'C&C5$)(&group eAecuted?
/7)- open group once+insert 10 times +close group once
4>1- Can 2op@of@page trigger with F5I7(-?
/7)- one thing remember top of page will be
triged only after write statement only if a report is
haing no write statement no top of page will be triged)
#03 0. 341& is triggered with
write or
s!ip or
uline or
not with line.
4?0- what is meant b! maintenance allowedEif it can pro.ide
authoriIation0 what is authoriIation)
/7)- #able maintenenece will gie authorisation to add or all the
enetries into any database table .
authorisation is nothing but it is to gie authorisation to
particular user for a transaction.
4?1- wh! u can callEr using) ssf&function&module&name in smartforms?
/7)- <y using 2ssf"function"module"name 2 the user can obtain
the function mudule generated by the 8martform. #he input
parameter is the 8,4'#.0', name the output parameter is the
function module generated .It has to be type '83>9".54,.
4fter getting the output parameter . 7499 .=57#I056output
parameter name).
4 function module is generated wheneer a 8mart .orm is
actiated. #his 8mart .orm could be called from the drier
program by calling the function module generated in the
system directly.
<ut this is not an efficient way of calling 8mart .orm for
the following reason*
Fheneer a 8mart .orm is generated+ a function module is
generated and the naming conention for that 8mart .orm is
done internally by using 5umber range ob@ect or something
similar. 9et us consider the function module name
as /1<7:F</8.000003GI. #he function module for the ne$t new
22
and actiated 8mart .orm would be /1<7:F</8.00000360+ one
more than the preious one.
8o when this 8mart .orm is transported from the deelopment
to Nuality or 3roduction system+ a new function module name
is generated according to the number series aailable in
that system. If the aboe program is transported to either
Suality or production system+ the program might go for a
dump as the function module is not aailable in that
system+ because the number series generated in the for
e$ample in deelopment system will be different from that
of the Suality system . #o handle this situation+ we use
the function module 88.".=57#I05",0:=9&"54,& to get the
name of the function module for a 8mart .orm dynamically.
If the form is not actie+ the function module
88.".=57#I05",0:=9&"54,& raises the e$ception 50".0',.
4?2- how to transfer smartforms?
/7)- by transport reSuest
but remember funtion modules of smart forms not
transfort.they hae to generate in taget system.
name of sf may change on transport
4?3- if taBe one table with maA no of records0in that i transfer
onl! three records to Oualit! r production r an!where how it
is possible?
/7)- by using #4<I5:&?
4?4- if idoc generated successfull! where it can be stored i Bnow
database)?
/7)- &:I:4 - :ata 'ecords are 8tored in this :ata <ase #able.
&:I:8 - 8tatus records are 8tored in this :< #able.
&:I:7 - 7ontrol 'ecords are 8tored in this :< #able
4?- how to process the idoc?
/7)- idoc can be processed by using processing codes
transaction codes for processing codes*
we41 for out bound process codes
we42 for in bound process codes
4?"- how can i fetch the records of 3 tables with a single select
Ouer!0without using Noin-
/7)- using nested select statement we can fectch the data from 3
table.
li!e
select f1 f2 f3 from table1 into table wa"t1
slect l1 l2 l3 from table2 into table wa"t2
select e1 e2 e3 from table3 into table wa"t2
endselect.
endselect.
endselect.
4?>- could !ou tell me the difference between an I72(3:/C( /7'
C$7F(3)I$7?
/7)- both methods belongs to <:7 . Interface means transfering
data between two systems. 705J&'8I05 one time data transfer.
28
4??- difference between at new and on change of
pl 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+ do
and enddo+ or while and endwhile+ as well as inside get eents.
2. 4 single on change of can be triggered by a change within
one or more fields named after of and separated by or. #hese
fields can be elementary fields or field strings. If you are
within 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 left
of the control leel does not trigger a control brea!.
4.Fhen used within a loop+ fields to the right still contain
their original aluesR they are not changed to contain )eros
or 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 numeric
fields e$cept the one6s) named after of.
>.4ny alues changed within on change of remain changed
after endon. #he contents of the header line are not
restored as they are for at and endat
4?1- I want to gi.e a input/output field on list0 where can i
define it-
/7)- when you are writing that field.
e$* write*/ wa"fname input/output.
410- 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 that
field *.
&$* code *
parameters * p"matnr li!e marc-matnr modif id 81.
4t 8election-8creen 0utput.
loop at screen.
if screen-group1 K E81E.

screen-input K E0E.

modify screen.
endif.
endloop.
411- If s1 and s2 are different structures how will u transfer
/7)- moe corresponding s1 to s2
412- I ha.e two structures s1 and s2 ha.e same struture of
fi.e fields each how can u transfer data from s1 to s2
/7)- s2 K s1.
or
moe s1 to s2.6because both hae same structure so+ we
donEt need moe corresponding)
413- In data element how man! domains were defined
/7)- one domain
87
414- How can !ou call a subroutine which is located in program /
from program 6?
/7)- <; =8I51 2I579=:&2 3'01'4,8 F& 745 7499 4 8=<'0=#I5& .'0, 05& 3'01'4, #0
450#%&'+2I579=:&2 I8 4 &?#&'549 8=<'0=#I5& 0<JI0=89;.....
41- #hat is the use of e.ent /2 )(5(C2I$7@)C3((7 $7 :I(5'?
/7)- Fe can gie .4 help to selection field or restrict the .4
help for specific alues.
4# 8&9&7#I05-87'&&5 05 J49=&-'&N=&8# .0' so"apl)-low.
8&9&7# wer!s arbpl !te$t I5#0 #4<9& it"apl) .'0, m"crama
79I&5# 83&7I.I&:
F%&'& mandt K sy-
mandt
45: wer!s
K E4000E.
7499 .=57#I05 E.4I."I5#"#4<9&"J49=&"'&N=&8#E
&?30'#I51
retfield K c"apl)
dynpprog K sy-repid
dynpnr K sy-dynnr
dynprofield K c"so"apl)"low
alue"org K E8E
#4<9&8
alue"tab K it"apl)
V .I&9:"#4< K
V '&#='5"#4< K
V :;53.9:",433I51 K
&?7&3#I058
parameter"error K 1
no"alues"found K 2
0#%&'8 K 3
I. sy-subrc A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150 5ote --Jalidation is not
possible with 4# 8&9&7#I05-87'&&5
05 .I&9:+ <ecause it comes before entering the alue in
selection screen.
4# 8&9&7#I05-87'&&5 eent comes in picture after entering
alue in selection screen+ so alidation is possible only
here.
41"- #hat is the maAimum .alue for 5ine@)iIe in the 3eport?
/7)- #he ma$imum width of a list is 1023 characters.
;ou should !eep lists to the minimum possible si)e to
improe useability
and performance6recommendation* 9I5&-8IP& A 132).
.or ery wide lists 69I5&-8IP& - 2GG)+ you should consult
the notes for using 9I5&-8IP& greater than 2GG.
41>- how to debug a screen without using
/h0breaB@point0debuging0stop-
/7)- Fite this code in a notepad
C.=57#I05D
command K /%
#itleK:ebugge' #ypeK8ystemcommand
sae to your local 37. after e$ecution of the t-code drage
81
and drop the notepad file on the screen debugging will start.
41?- in which method i can upload data to two transactions?
and how?
/7)- =sing session method you can upload data for 2 or more
transactions.#he procedure is
1)open the session using ., * <:7"03&5"1'0=3
2)Insert the transaction using <:7"I58&'#
repeat the second step for as many tcodes as you need @ust
by calling the ., * <:7"I58&'#
3)&nd the session using ., * <:7"7908&"1'0=3
411- can we write at@line@selection and at@user@command at a time
in same program-
/7)- ;&8 <0# #%& &J&5#8 4'& #'I11&'&: I5 #%& 84,& 3'01'4,. 4#
9I5& 8&9&7#I05 &J&5# 8&9&7# #%& 7=''&5# '0F F%I7% I8 8#0'&:
I5 8;-98I5:. I. #%& =8&' :0=<9& 79I7B 05 #%& 9I5& #%& 4#
=8&' 70,,45: #'I1&'8. #%I8 705#4I58 #%& .=57#I05 70:& 0.
#%& .I&9:.50F ;0= 745 7499 9I8# 87'&5 #%&'& 4.#&'. 80 I#8
,45:4#0'; <0#% #%& &J&5#8 8%0=9: #'I11&' I5 05& 3'01'4,.
00- Can we use more than two field in )(5(C2@$42I$7? :or eAample
7ormall! we get two field which is from and to fields0 but i
want to get more .alues----
/7)- if ;ou want to assign alues in select-options write the
code in the initli)ation eent.
you can include more than one alues in inclusie option
proided by select-options.
or use 'anges where you can specify range of alues in
selec-options.
01- Can we call one programEnot include) from another program?
/7)- <y using 8=<,I# 8tatement.
8=<,I# Arep"name- =8I51 8&9&7#I05-87'&&5 scr
8=<,I# Arep"name-
JI4 8&9&7#I05-87'&&5
=8I51 8&9&7#I05-8&# EJ4'I45#1E
=8I51 8&9&7#I05-8&#8 0. 3'01'4, Arep"name-
45: '&#='5.
02- what is difference between occurs1 and occurs2?
/7)- if its occurs 1 then only one record will be copied to the
internal table among the total number of entries selected
as the selection is restricted by the internation table.
if its occurs 2 then only 2 lines would be displayed or
fetched to the internal table.
if you !now the number of lines then you can specify that
in 077='8 statemnt that would ta!e that much of space but
if not sure then its better to ta!e 077='8 0.
03- If we will displa! the data b! writing write statement on
start of selection then what is the need of end@of@
selection in classical report
8*
/7)- #his eent is useful if ur report is using a 9ogical
:atabase. #he eent &nd-of-selection is triggered once
9ogical database has finished reading all the data.
4nd one more thing if u hae coded a 8#03 statement in
ur report+ if some condition inside the loop fails 8#03
statement is e$ecuted ( control will be transfered to the
&nd-of-selection......
04- #hat is read with binar! search? I ha.e initialiIation write ?a?
2op@of@page write ?b? what is the output for this? If I don?t ha.e start of
selection 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 point
means? How to transfer std teAt from production to Oualit!?
/7)- <I54'; 8&4'7% :IJI:&8 #%& &5#I'& 8&9&7#I05 3'07&88 I5#0
#F0 34'#8 80 I#8 %&93 .0' 3&'.0',457& #=5I51.
2) I 1=&88 059; EbE F0=9: <& 3'I5#&:.
3) 50 I#8 50# ,45:4#0'; #0 7499 #%& 8#4'# 0. 8&9&7#I05
&J&5#.
4) b; '=55I51 #%& #4<9& ,4I5#&5457& 1&5&'4#0' #%&5 ;0= 745
,4I5#4I5 #%& #4<9& #%'0=1% 8,30 :I'&7#9;.
G) ;&8 I. I#8 4 %=1& #4<9& 45: #%& J49=&8 4'& '4'&9;
7%451&:.
6) #%'0=1% 7499 .=57#I05 48 <43I I8 4 .=57#I05 ,0:=9&.
>)I5 #%& 8#4#=8 <4' FI#% 4 7090=' ;&990F
I) I 1=&88 4 303 =3 87'&&5 0' #%& 8#4=8 <4'.
10) I. ;0= :&.I5& 4 .I&9: 54,& I5 4 F4#7% 30I5# 45: ;0= '=5
;0= 3'01'4,+ I. #%& J49=& I5 #%4# 34'#I7=94' .I&9: 7%451&8
#%&5 #%& 3'01'4, %4=9# #%&'&. I#8 J&'; ,=7% =8&.=99 .0'
:&<='1I51.
11) #%& 83009 705#4I58 499 #%& 3'I5#I51 '&N=&8#. I# I8 4
F0'B 3'07&88 I5 #%& 4339I74#I05 8&'J&'. ;0= 745 8&& I# I5
834: #-70:&.
12) 50 I :05# B50F.
13) #%'0=1% '&#='5 70:& #%4# I# &?30'# 4.#&' '=55I51.
14) '4I8& 4 '&N=&8# #%'0=1% 8010 #%&5 #%'0=1% 8#,8
#'45830'#.
0- How do !ou do 6'C field Falidtaions ? can an! one help
with s!ntaA?
/7)- <:7 .ield Jalidations are :one by the system while
processing the :ata through 8creens by e$ecuting 8creen
.low 9ogic.
0"- s!@field for internal table process?
/7)- 8;-#4<I?. I8 =8&: #0 3'07&88 #%& :4#4 I5 I5#&'549 #4<9&.
0>- which is not a table?
/7)- 8tructure is not table.
because it creates For!4rea and <ody is same acts as
%eader.and it is temp memory location
8,
0?- cardinalit! 19" wat .iew?
/7)- :atabase iew or maintainence iew..
01- how to send output of program .ia email?
/ns- '&30'# P8&5: .
#4<9&8* B541.
V data for send function
:4#4 :07":4#4 9IB& 80:077%1I1.
:4#4 0<U&7#"I: 9IB& 800:B.
:4#4 0<U705# 9IB& 809I 077='8 10 FI#% %&4:&' 9I5&.
:4#4 '&7&IJ&' 9IB& 80,9'&7I1 077='8 1 FI#% %&4:&' 9I5&.
8&9&7# V .'0, B541 F%&'& 45'&: 9IB& E7^E.
F'I#&*/ B541-B=55'+ B541-45'&:.
V send data internal table
70574#&54#& B541-B=55' B541-45'&:
I5#0 0<U705#-9I5& 8&34'4#&: <;
8347&.
433&5: 0<U705#.
&5:8&9&7#.
V insert receier 6sap name)
'&.'&8% '&7&IJ&'.
79&4' '&7&IJ&'.
,0J&* 8;-=54,& #0 '&7&IJ&'-'&7&IJ&'+
E?E #0 '&7&IJ&'-&?3'&88+
E<E #0 '&7&IJ&'-'&7"#;3&.
433&5: '&7&IJ&'.
V insert mail description
F'I#& E8ending a mail through abapE
#0 :07":4#4-0<U":&87'.
7499 .=57#I05 E80"5&F":07=,&5#"8&5:"43I1E
&?30'#I51
:07=,&5#":4#4 K :07":4#4
I,30'#I51
5&F"0<U&7#"I: K 0<U&7#"I:
#4<9&8
0<U&7#"705#&5# K 0<U705#
'&7&IJ&'8 K '&7&IJ&'
&?7&3#I058
#00",45;"'&7&IJ&'8 K 1
:07=,&5#"50#"8&5# K 2
:07=,&5#"#;3&"50#"&?I8# K 3
03&'4#I05"50"4=#%0'IP4#I05 K 4
34'4,&#&'"&''0' K G
?"&''0' K 6
&5N=&=&"&''0' K H
0#%&'8 K >.
8+
01- final entr! 6'C table?
/ns- <:7"7='80'. can be the final entry of the <:7 table.
4ctually it depends on the transaction you are processing.
#he .inal entry in <:7 #able is 8ae
for that <:7"7='80' alue is E/11E.
10- three Nobs are there if one fails wat happens?
/7)- roll bac! and start all oer again
11- wat does 6'C3(CCC contains?
/7)- this is a 843 :efined Include 3rogram used in <:7.
It 7ontains
1) 8ubroutines to 3opulate the :ata to <:7:4#4 Internal
#able
2) 8ubroutines to 0pen+ Insert and 7lose #he 8ession.
3) 8ubroutines to 7all the 7all #ransaction.
12- one time loading 10000 records?
/7)- ;0= 745 904: =3#0 6G000 :4#4 4# 05& #I,& 70P #%& &?7&99
8%&&# 705#4I58 #%4# ,=7% 0. :4#4.
13- which is a statement used to write a record to a file in
/6/4?
/7)- :4#4* ,&88660)+
.54,&610) J49=& E/tmpE.
03&5 :4#48&# .54,& .0' 0=#3=# ,&8841& ,&88.
8&9&7# V .'0, #4<1.
&5:8&9&7#.
14- wat is a field s!mbol?
/7)- .ield symbol is a pointer dynamically assigned to a field.
4fter assignment we can use the same field-symbol in our
program in place of actual field name.
=se .I&9:-8;,<09 statement to define a field symbol (
use 488I15 to assign a field to it.
#he .I&9: 8;,<09 name must begin ( end with angular
brac!ets.
&$*- .I&9:-8;,<098 Af-.
488I15 f1 #0 Af-.
Fhere .1 is a field defined in the program.
1- does select single J-- / select J -- affect performance ? how?
/7)- select single V ---- retriees all the records in that
particular row defined by our selection citeria.
select V ---- retriees all records from all the coloumns of
the table i.e.+ the entire table.
so the time consumed in retrieing all this information is
ery high atleast in terms of programming and so it
significantly affects the performance.
80
1"- will where conditions in a sOl Ouer! help impro.e performance?
/7)- If a table has an inde$ for a !ey in the order
f1+f2+f3 then from the point of iew of performance
the where clause should specify the fields in the
same order
select ..
from ...
where f1 K "f1 and f2 K "f2 and f3 K "f3.
5ote that the ,45:# is implicitly compared first in the
order+ and if using 79I&5# 83&7I.I&: Sueries+ ensure that
,45:# precedes the list.
1>- will sorted internal tables help in performance?
/7)- ;es definitly it increases the performance. Fhen eer
binary se1I.arch is used+ sort the internal table.
1?- will Noin conditions in sOl Oueries affect perfomance? how?
/7)- #%4# &5#I'&9; :&3&5:8 05 #%& 7'I#&'I4 ;0= %4J& =8&:. I. #%&
F%&'& 705:I#I05 %4J& 499 #%& 3'I,4'; B&; .I&9: #%&5 #%&
3&'.0',457& FI99 5&J&' <& 890F. I#8 059; 4:JI8I<9& 50# #0
%4J& ,0'& #%45 G #4<9&8 I5 #%& U0I5 0' &98& #%& 3&'.0',457&
FI99 <& 890F.
11- what is the role of eAtended s!ntaA checB in performance tuning?
/7)- for e$tended synta$ chec!+ we used tr.code 89I5.
the main purpose is if we declare somany unnecessry
ariables in our program +then easyly we can find it
through 89I5.different ares are aailale li!e
chec! load tables+set/get parameter+pac!age chec!+field
attributes+screen constincy etc.
go through slin .
20- what is the role of )20 in performance tuning?
/7)- 8N9 trace
it tells how much microsecond does it is ta!ing to e$ecute
the program
21- what is the role of secondar! indeA in performance?
/7)- If you cannot use the primary inde$ to determine the result
set because+ for e$ample+ none of the fields primary inde$
occur in the F%&'& or %4JI51 clause+ the system searches
through the entire table 6full table scan). .or this case+
you can create secondary inde$es+ which can restrict the
number of table entries searched to form the result set.
;ou should only create secondary inde$es+ for database
tables from which you mainly read+ since inde$es hae to be
updated each time the database table is changed. secondary
inde$es should contain columns that you use freSuently in a
selection+ and that are as highly selectie as possible to
improe performance..
21- #hat are steps !ou follow to impro.e the performance of a
report ?
/7)-
8/
21- #hat is performance tuning?
/7)- increasing effeciency of programs thru optimi)ed coding
eg * select ... table itab...
instead of
loop at itab
select +...into itab..
endloop
3erformance tunning.
#here are arious steps to increase the performance of 4<43
report.
V should not use V in the select Suery +instead use the
appropriate field names.
V In the occurs clause aoid using 0 instead use the number.
V try to use moe-corresponding .
V use the aggregate statement.
22- difference betn top@of@page and top@of@page during at@
line@selection? in an interacti.e report0 after going to th
list0 can !ou come bacB to 2nd list? how?
/7)- #op-of-page eent trigger when eer new page start or
when eer write statement trigger in the start-of-selection.
#op-of-page during line selection triggers when eer
secondary list displays.
<y using .unction Bey .3 we can come bac! to Ght list to
2nd list . CorD
at line-selection.
if sy-lsind K G.
sy-lsind K 2.
endif.
write * / E8econdary 9ist*E sy-lsind .
= can also use 4# 3._.
4nd the rest remains same.
G23. what are /5F reports? how the! are different from normal
reports? what are the main e.ents that are used in an /5F
report? what is the use of )5I) t!pe pool in al. reports?
/7)- 49J means 4<43 9ist Jiewer.49J is aailable in two modes*
list and grid. 9ist mode is good old list processing with
standard functionnalities+ and grid mode is using a new 07?
ob@ect displaying grids.
introduce a type group with type-pool.
maintain a type group ia abap dictionary.
for simple al*
slis"al"fieldcatalog * populate the fieldcatalog
slis"layout"al * it is for layout
slis"al"eents * it is for internal tables eents
24- how to create a button in selection screen? how to add a gui
status in a selection screen?
/7)- #;3&-30098 icon.
#4<9&8 sscrfields. 2 screen fields
:4#4 funct$t #;3& smp"dynt$t.
86
and in selection-screen
8&9&7#I05-87'&&5* .=57#I05 B&; 1+
.=57#I05 B&; 2.
4# 8&9&7#I05-87'&&5.
748& sscrfields-ucomm.
F%&5 E.701E.
endcase.
#his will gie you the ida how we can add a button in the
4pplicationtool bar .
2- can !ou create a table with out a data element? can !ou
create a field with out a data element?
/7)- ;es+ Fe can create using buit-in type button on fiedls tab of
table creation. and it is not recommanded cos table to table
relation is not possible using the direct data type...
2"- <i.e few names of cluster tables in sap? <i.e few names of
pooled tables in sap? gi.e few names of transparent tables?
/7)- cluster tables*
,%5: :unning :ata
,,I,"3'&: ,,-I, #emporary :ata
8.%0# 843find* 4ctie 8tructures
<8&1 4ccounting :ocument 8egment
<8&: <ill of &$change .ields :ocument 8egment
<8&7 0ne-#ime 4ccount :ata :ocument 8egment
<8&8 :ocument 7ontrol :ata
<8&# #a$ :ata :ocument 8egment
<88&1 4ccounting :ocument 8egment
transparent tables*
mara-material master table
!na1 - customer master
lfa1 - endor master
8B41- 1/9 4ccount ,aster
,8&1 -:ocument 8egment- ,aterial
pooled tables*
#040+ #0404
2>- what will happen if !ou donMt gi.e occurs clause while
creating an internal table?
/7)- occurs 0 is used for mem allocation. I beliee it means
>!b.
4s per new ersion of sap+occurs sud be aoided as its a
obsolute statement.
:ata t"mara type standard table of mara.
or
types * begin of ty"mara+
matnr type mara-matnr+
m!art type mara-m!art+
end of ty"mara.
:ata t"mara type standard table of ty"mara.
82
2?- what does it mean occurs 0 while creating an internal table?
/7)- occurs 0 means a internal table will be allocated >!b of
memory initially.if it needs more then again > !b of is
allocated to it
21- when do !ou need to create an internal table with header
line ?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 all
the fields from predefined table or e$histing table.. ery
comple$ 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 header
line..performance wise with out header line is better.
30- what is a binar! search ? and how it is useful in a sorted
internal table?
/7)- #he solution proided by 8iddhart is though correct+ I
would li!e to pro@ect the solution in a much detailed with
e$ample.
<inary 8earch <asic rule - 8ort the data in 4scending order.
8uppose we hae random numbers ranging from 1 to 10000 and
we are searching for 421I. If the data is unorgani)ed and
random....a seSuential search would be time consuming.
%ence once the data is sorted in 4scending order. <inary
search would reduce the 900B=3 time.
In the .I'8# 3488 <I54'; search would split the range of 1 -
10000 in to two halfs 6i.e 1 - 4III ( G000 - 10000) and
compares the 421I which happens to fall in the first half.
In the ne$t pass again two halfs are made and compared.
#his way <I54'; 8&4'7% wor!s by diiding either data into
two halfs.
.or internal table......or for anything else....this is it
31- when !ou are using 2 internal table in program0 !ou ha.e
decided to use for all entries statement to retrie.e data
but unfortunatel! there are no records in the first internal
table- #hat will be the result? E2nd internal table contains
records)-
/7)- #he drier Internal table 0r .irst internal #able ,ust hae
records in it + if u use .or 4ll &ntries . If the .irst
Internal table is initial 6means no records in it) then the
.or 4ll entries will fetch all the records from the :<
table + which can be real perfromance Issue.
so before ma!ing a E.or all entries2 for a table ma!e a
chec! that its not empty.
eg. code *
88
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 4ll entries
statements. If there r more than 1000 records select for
all entries is used.
3erformance o .or 4ll &ntries is better to use...when
we are using more than 0ne table
33- can !ou create an internal table d!namicall!?Eat run time)
/7)- Internal tables can be created dynamically using
ob@ect oriented abap.che! out the method
79"49J"#4<9&"7'&4#&K-7'&4#&":;54,I7"#4<9&
34- In the function module for reading teAt from the )-$ header what
needs to be specified?
/7)- =sing 2'ead"#e$t2 .unctional ,odule we can read the 8.0 %eader
#e$t+<efore that we hae find the 0b@ect name and Id+#hat can
be acheied by using 8&HG68ap 8cripts 8etting).8elect ob@ect
name and IdEs option and 7lic! on display+#hen
.rom the application #oolbar clic! on .ind type 8ales
order+select the sale order header from that list.note down
the ob@ect name and id.......
&$ecute the 'ead"te$t .rom 8&3H.
3roide the 8ales 0rder 5o+0b@ect name and Id number.
&$ecute we can get the 8.0 header te$t from here.
3- differences between e.ents?
/7)- &ents are #wo types
1)9ist eents =esdt to disolay the outputlist.
&$*&nd-of-3age+#op-of-page
2)selection &ents*used to selecting the data from database
for alidation and retrial.
&$*4t selction-screen+&nd-of-selection etc..
3"- #hat is the difference between macro and subroutine?
/7)- 1.macro doesnEt hae any return statement...but a subroutine
can hae ..
2.e$ecution time needed for a macro is much lesser than
subroutine
3.memory reSuirement for a macro is generally heigher..
4.subroutine can be classified as stated in 3reious
answers..but no such classification is aailable with macro
although macro can hae different types of nested form
G.generally no of instructions in macro are smaller than subroutine
177
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 and
independent data?
/7)- 7lient dependent or independent transfer reSuirements
include client specific or cross client ob@ects in the
change reSuests. For!bench ob@ects li!e 843scripts are
client specific+ some entries in customi)ing are client
independent. If you display the ob@ect list for one change
reSuest+ and then for each ob@ect the ob@ect attributes+ you
will find the flag client specific. If one ob@ect in the
tas! list has this flag on+ then that transport will be
client dependent.
3?- #hat is )mart :orms?
/7)- 8mart .orms allows you to create forms using a graphical
design tool with robust functionality+ color+ and more.
4dditionally+ all new forms deeloped at 843 will be created
with the new 8mart .orm solution.
31- #hat is C2) and what do !ou Bnow about it?
/7)- #he 7hange and #ransport 8ystem 67#8) is a tool that helps
you to organi)e deelopment pro@ects in the 4<43 For!bench
and in 7ustomi)ing+ and then transport the changes between
the 843 8ystems and clients in your system landscape. #his
documentation proides you with an oeriew of how to manage
changes with the 7#8 and essential information on setting up
your system and client landscape and deciding on a transport
strategy. 'ead and follow this documentation when planning
your deelopment pro@ect.
40- #hat is /5F programming in /6/4? #hen is this grid used in
/6/4?4/3/,(2(3) $: <3I' 'I)45/*?
/7)- 49J is 4pplication 9ist iewer. 8ap proides a set of 49J
64<43 9I8# JI&F&') function modules which can be put into
use to embellish the output of a report. #his set of 49J
functions is used to enhance the readability and
functionality of any report output. 7ases arise in sap when
the output of a report contains columns e$tending more than
2GG characters in length. In such cases+ this set of 49J
functions can help choose selected columns and arrange the
different columns from a report output and also sae
different ariants for report display. #his is a ery
efficient tool for dynamically sorting and arranging the
columns from a report output. #he report output can contain
up to I0 columns in the display with the wide array of
display options.
41- #hat are internal tables?
/7)- intermediate tables are called internal tables which e$ists
only during the runtime of program. two types of internal
tables are there+
1) internal table with header line
2) internal table without header line
42- #hat are the functional modules used in seOuence in 6'C?
171
/7)- #hese are the 3 functional modules which are used in a
seSuence to perform a data transfer successfully using <:7
programming* <:7"03&5"1'0=3 - 3arameters li!e 5ame of the
client+ sessions and user name are specified in this
functional modules. <:7"I58&'# - It is used to insert the
data for one transaction into a session. <:7"7908&"1'0=3 -
#his is used to close the batch input session.
43- #hat is an /6/4/4 Luer!?
/7)- 4<43/4 Nuery is a powerful tool to generate simple reports
without any coding. 4<43/4 Nuery can generate the following
3 simple reports*
<asic 9ist* It is the simple reports.
8tatistics* 'eports with statistical functions li!e 4erage+
3ercentages.
'an!ed 9ists* .or analytical reports. - .or creating a
4<43/4 Nuery+ programmer has to create user group and a
functional group. .unctional group can be created using with
or without logical database table. .inally+ assign user
group to functional group. .inally+ create a Suery on the
functional group generated.
44- 'ifference between transparent tables and pooled tables ?
/7)- #ransparent tables* #ransparent tables in the dictionary has
a one-to-one relation with the table in database. Its
structure corresponds to single database field. #able in the
database has the same name as in the dictionary. #ransparent
table holds application data.
3ooled tables* 3ooled tables in the dictionary has a
many-to-one relation with the table in database. #able in
the database has the different name as in the dictionary.
3ooled table are stored in table pool at the database leel.
4- #hat are indeAes?
/7)- 4n inde$ helps to speed up selection from the database. 4n
inde$ is a sorted copy of selected database table fields.
#he primary inde$ is always automatically created in an
4<43-based 843 system. It consists of the primary !ey
fields of the database table. #his means+ for each
combination of the inde$ fields e$ists a ma$imum of one
record in the table. #his !ind of inde$ is called a =5IN=&
inde$.
If the primary inde$ cannot be used to determine selection
result+ 6for e$ample+ the F%&'& condition does not contain
any primary inde$ fields)+ the system searches the whole
table. #o preent this+ and determine the selection result
by searching through a restricted number of database
records+ you can create a secondary inde$.
%oweer+ you should not define an inde$ for all possible
fields in the F%&'& condition.
17*
7reating a secondary inde$ *
;ou can use the transaction 4<43 :ictionary 7hange (_>GI4R
Inde$es... (_>GI4R 7reate to create an inde$. #o ma!e the inde$
uniSue+ select =5IN=&. #o specify the fields that will
comprise the inde$+ choose 27hoose fields2. #hen sae and
actiate the inde$.
0ptimal number of inde$es for a table *
;ou should not create more than fie inde$es for any one
table because*
Fheneer you change table fields that occur in the inde$+
the inde$ itself is also updated.
#he amount of data increases.
#he optimi)er has too many chances to ma!e mista!es by
using 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)- 4 relationship which can be defined between tables and must
be e$plicitly defined at field leel. .oreign !eys are used
to ensure the consistency of data. :ata entered should be
chec!ed against e$isting data to ensure that there are now
contradiction. Fhile defining foreign !ey relationship
cardinality has to be specified. 7ardinality mentions how
many dependent records or how referenced records are possible.
4>- difference between cluster and pooled tables?
/7)- pooled tables* these r small small tables haing 100
records in each of themWbut+ these tables were used for
storing the system dataWin these tables there will be no
!eysWthese tables r haing many - to - one relationshipW
these tables r haing different names which doesnt match
with database tables.
cluster tables* these r ery large tables so many records
in each of themWbut+ these tables were used for storing the
system dataWin these tables atleast one primary !ey will be
present to find the recordWthese tables r haing many - to -
one relationshipW
these tables were used by basis people to calculate the
system performanceW
G4>. what is the s!ntaA for eliminating duplicate .alues in
internal table-
/7)- .irst sort the internaltable using
8ynta$*
8ort i#ab using Afield-name- 4scending/decending
#hen =se the :elete ad@acent :uplicate statement
:elete ad@acent duplicate entries from Ai#ab- Ccomparing
A.1-A.2-....D
17,
41- what is the 2code to send customer master data to another
s!stem-
/7)- 8&5: ,4#&'I49 ,48#&'* <:10
1&# ,4#&'I49 ,48#&'* <:11
8&5: 7=8#0,&' ,48#&'* <:12
1&# 7=8#0,&' ,48#&'* <:13
8&5: J&5:0' ,48#&'* <:14
1&# J&5:0' ,48#&'* <:1G
0- #ill the .iews get effected when updating the database?
/7)- ;es. 8ince iews do not e$ist in physical memory but are
only the logical representation of the physical tables.
Nueries made on these iews @ust fetch data from the
database tables.
7hanges made in these tables will definitely affect the
results the Jiew[s generate.
1- what is checB statement
/7)- If you use the 7%&7B Ae$pr- statement within an eent bloc!
but not within a loop+ and the condition Ae$pr- is not
fulfilled+ the system e$its the processing bloc!
immediately.
Ae$pr- can be any logical e$pression or the name of a
selection table. If you specify a selection table and the
contents of the corresponding table wor! are do not fulfill
the condition in the selection table+ it is the same as a
false logical e$pression.
If you use the 7%&7B Ae$pr- statement within an eent bloc!
but not within a loop+ and the condition Ae$pr- is not
fulfilled+ the system e$its the processing bloc!
immediately.
If the 7%&7B statement occurs in a loop using :0+ F%I9&+ or
9003+ it is the loop that terminates+ not the processing
bloc!.
4 subroutine normally ends at the &5:.0', statement.
%oweer+ you can terminate them earlier by using the &?I#
or 7%&7B statement.
In loop structures li!e
:0 ... &5::0
F%I9& ... &5:F%I9&
9003 ... &5:9003
8&9&7# ... &5:8&9&7#
7%&7B with a negatie outcome terminates the current loop
pass and goes bac! to the beginning of the loop to start
the ne$t pass+ if there is one.
In structures li!e
.0', ... &5:.0',
.=57#I05 ... &5:.=57#I05
,0:=9& ... &5:,0:=9&
17+
4#
2- what do u mean b! one to one relationship in the database of
transparent and man! to one relation in pooled table could
/7)- 4ctually+ 843 itself defines some pre-defined tables. 4ll
these table details will be maintained in :ata :ictionary.
.or transparent table it is always one to one relation. It
means+ there e$ist only one table in the :< for an table in
:ata :ictionary.
.or 3ooled table it is always many to one relation. It
means+ there e$ist only one table in the :< for more than
two table in :ata :ictionary. 3hysically one table e$ists in
:atabase leel+ howeer the tables in :ata :ictionary are
act as iews. #his concept is implement only to use by 843
itself. In general+ we dont ma!e use of this concept. #his
concept meant of better performance of the 843 application.
3- what are logical and ph!sical databases?
/7)- 901I749 :4#4<48&*
KKKKKKKKKKKKKKKKK
#o read data from a database tables we use logical database.
4 logical database proides read-only access to a group of
related tables to an 4<43/4 program.
4dantages* i)chec! functions which chec! that user input is
complete+ correct+and plausible. ii),eaningful data
selection. iii)central authori)ation chec!s for database
accesses. i)good read access performance while retaining
the hierarchical data iew determined by the application
logic. dis adantages* i)If you donot specify a logical
database in the program attributes+the 1&# eents neer
occur. ii)#here is no &5:1&# command+so the code bloc!
associated with an eent ends with the ne$t eent statement
6such as another 1&# or an &5:-0.-8&9&7#I05).
9ogical databases are special 4<43 programs that retriee
data and ma!e it aailable to application programs. #he most
common use of logical databases is still to read data from
database tables by lin!ing them to e$ecutable 4<43 programs.
9ogical databases contain 0pen 8N9 statements that
read data from the database. ;ou do not therefore need to
use 8N9 in your own programs. #he logical database reads the
program+ stores them in the program if necessary+ and then
passes them line by line to the application program or the
function module 9:<"3'07&88 using an interface wor! area.
4 logical database proides a particular iew of
database tables in the '/3 8ystem. It is always worth using
logical databases if the structure of the data that you want
to read corresponds to a iew aailable through a logical
database.
#he data structure in a logical database is
hierarchical. ,any tables in the '/3 8ystem are lin!ed to
each other using foreign !ey relationships. 8ome of these
dependencies form tree-li!e hierarchical structures. 9ogical
databases read data from database tables that are part of
these structures.
170
3hysical :atabase is actual :atabase.
4- what are con.ersion routines?
/7)- conersion routines are used to conert the fields either
from display format to 843 internal format or from 843
internal format to display format.
.or this the following routines are used.
7onersion"e$it"$$$$$"input - display format to 843
internal format.
7onersion"e$it"$$$$$"output - 843 internal format to
display format.
we hae to create the conersion routines while creating
domains.
- difference between structure and append structure?
/7)- structure *
&ither a structured type in the 4<43 :ictionary or a name
for a structured data ob@ect in an 4<43 program. ;ou can
access whole structures or merely by component. In 4<43+
structures that contain only character-type+ flat
components can also be treated as elementary data ob@ects
in 4<43
4ppend 8tructure *
8tructure in the 4<43 :ictionary that is appended to
another structure or a database table so as to add further
components. 8tandard structures and database tables
deliered by 843 can be enhanced by means of append
structures in customer systems.
"- in session method s!@subrc is not returned whereas in call
transaction method s!@subrc is returned - what does it mean?
/7)- In both the case we can use 28;"8=<'72. It is system
defined ob@ect. 28;"8=<'72 is mainly used in <:7 7all
#ransaction and <:7 8ession. #he 28;"8=<'72 ob@ect is used
whether the records are 8uccessfully Inserted or not+ for
that we can use 28;"8=<'72.
I. 8;"8=<'7K0 ---8uccessfully Insert/=pdated the records in
table.
I. 8;"8=<'7K4 ----5ot Inseterd.=pdated the records in table.
In call transaction return the 28;"8=<'72+because records
are dump at a time. but where as 8ession not return.why+
because if any error occurs in the program it will not open
the first. i.e 6<:7"03&5"1'0=3) so that it canEt be read
the data from the table.
#he main thing is initially it canEt be open the table.
>- In select@options0 how to get the default .alues as current
month first date and last date b! default?
(g9 1/10/200" and 31/10/200"
/7)- :4#4 * l"last"day"of"month #;3& sy-datum+
l"datum"low #;3& sy-datum.
17/
8&9&7#-03#I058 * s"data .0' sy-datum.
I5I#I49IP4#I05.
s"data-sign K EIE.
s"data-option K E<#E.
s"data-low K sy-datum.
l"datum"low K sy-datum.
'&3947& 8&7#I05 0..8&# 6 9&51#% 2 0. l"datum"low FI#% E01E.
if sy-subrc eS 0.
s"data-low K l"datum"low.
endif.
7499 .=57#I05 E948#":4;"0.",05#%8E
&?30'#I51
day"in K sy-datum
I,30'#I51
last"day"of"month K l"last"day"of"month
&?7&3#I058
day"in"no"date K 1
0#%&'8 K 2.
I. sy-subrc A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
V FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&98&.
s"data-high K l"last"day"of"month.
&5:I..
433&5: s"data.
?- 'o !ou use select statement in loop end loop0 how will be
the performance? 2o impro.e the performance?
/7)- inside loop use read statement.
select f1 f2 f36!ey fields) from db into
i5tertab
for all entries in itab
where condition.
sort intertab by f1.
loop at itab.
read intertab with !ey f1 K itab-f1
binary search.
&ndloop.
1- #hat are the output t!pe and 2codes?
/7)- In short * outtype type means type of output..&$
print+fa$+email+edi+ale..etc
#his come into picture in 8apscript...and Idoc also ..
'8nast is the program used to precess all type of
output..and I beliee the tcode for this program is <:1G.
"0- /mong G,o.eG and G,o.e CorrespondingG0 which is efficient one?
/7)- moe statement is more effienet than moe-corresponding.
In case of dialog programming moe/moecorresponding stsmt
are used to put internal table wor!area data into screen fields.
176
data* begin of itab occurs 0+
lifnr li!e lfa1-lifnr+
name1 li!e lfa1-name1+
ort01 li!e lfa1-ort01+
end of itab.6here lfa1 is :<table name)
*
*
V in case of moecorresponding
,oe-7orresponding itab to lfa1.
6here*lfa1 is screen fields name).
V in case of ,0J& stmt.
,oe itab-lifnr to lfa1-lifnr.
,oe itab-name1 to lfa1-name1.
,oe itab-ort01 to lfa1-ort01.
,oecorresponding *
If :<table haing 1000 fields and you are using
moecorresponding+ then system has to chec! all the field in
table to moe.
"1- #hat is pf@status?
/7)- 3f status is used in interactie report for enhancing the
functionality. If we go to se41+ we can get menus+ items and
different function !eys+ which we are using for secondary
list in interactie report.
"2- #hat are )tandard 2eAts?
/7)- Its a sapscript component ...
#code to define stand te$t is *so10.
1.9angauge specific..
2.Include )"8tandard"te$t ob@ect id EsdsE lang EdfE.6 this
type of statement is used in sapscript to include standard
te$t )"standard"te$t.)
3. we can call the standard te$t in se3> program
also ...using read "form fucntion module..
"3- #hat is the table0 which contain the details of all the name
of the programs and forms?
/7)- #543' this table contains all print programs and forms.
"4- #hat are the difference between Interacti.e and 'rill 'own
3eports?
/7)- 4<43/4 proides some interactie eents on lists such as 4#
9I5&-8&9&7#I05 6double clic!) or 4# =8&'-70,,45: 6pressing a
button). ;ou can use these eents to moe through layers of
information about indiidual items in a list.
:rill down report is nothing but interactie
report...drilldown means aboe paragraph only.
"- How did !ou handle errors in Call 2ransaction?
/7)- Fe can create a internal table li!e EbsgmcgcollE. 4ll the
messages will go to internal table. Fe can get errors in
172
this internal table.
<elow messages are go to internal table. when you run the
call transaction.
- ,essage type
- ,essage id
- ,essage 5umber
- Jariable1
- Jariable2
- Jariable3
""- How to transfer the obNects? Ha.e !ou transferred an! obNects?
/7)- i beliee its related to transportation of ob@ect from one
serer to other..
de to testing or from testing to prod...
#code is s0I..
store uEr changes in a transport reSuest ...
4fter ma!ing changes release the tas! and transprt reSuest
and create a proposal from se0I.
">- #hat is runtime anal!sis? Ha.e !ou used this?
/7) ItEs chec!s program e$ecution time in microseconds. Fhen you
go to se30. if you gie desired program name in performance
file. It will ta!e you to below screen. ;ou can get how much
past is your program.
"?- #hat is the ad.antage of structures? How do !ou use them in
the /6/4 programs?
/7)- you can ma!e the structure as a separate table by referring
an internal table for that structure+ we can add fields
from arious transparent tables+hence we can use it for
arious purposes.
"1- /n /6/4 program creates a batch input session- #e need to
submit the program and the batch session in bacB ground- How
to do it?
/7)- go to 8,36 and create bac!ground @ob by giing @ob name+ @ob
class and @ob steps 6U0< 87%&:=9I51)
>0- what is the diffrence between :ield )tring H normal #orB
area?
/7)- .ield string is nothing but structure or record.
Fe create them manually. we can access them in different
programs.
For! area is automatically created in memory when we
actiate those field strings. they r limited to program.
>1- In :unction module )/4 pro.ieds 2wo )tandard (Aception0
gi.e name of that two eAceptions
/7)- in the function moudle two standard e$ception are
1.communication"failure
178
2.system"failure
>2- when we use the )(5(C2 statement along with :$3 /55
(723I() then what t!pe of .alidations we ha.e do before
eAecuting this statement
/7)- chec! 3rimary 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 not
good to use.
>3- #hat are /+2H$3I2* $6V(C2) ?
/7)- 4uthori)ation 0b@ects+
1) 3rotects actions and access data
2) 4llows arious users to perform arious comple$ chec!s
with arous conditions.
3) 7onditions are descibed in 4uthori)ation .ields which
are specified 10 at the ma$.
>4- what is the use of free and refresh?
/7)- 'efresh * 'efresh clears the data+ at the same time it
releases dynamically allocated memory. 3redefined memory
not released.
.ree * .ree clears the data+ at the same time releases
both predefined and dynamically allocated memory. internal
table structure will not aailable any more.
>- #hat is the difference between Collect statement and /ppend
)tatement?
/7)- 4ppend adds the record at the end of internal table.
7ollect sums up the numeric fields of the records whose
primary !eys are eSual and adds it as a single record i.e
#o fill an itab with lines which hae uniSue standard !eys
we use collect statement.If an entry with the same !ey
already e$ists+the collect statement does not append a new
line as append statement but adds the contents of the
numeric fields in the wor! area to the contents of the
numeric fields in the e$isting entry.
>"- #hat are client dependent obNects in /6/4 or sap?
/7)- 7lient :ependent ob@ects r those ob@ects whose records
entered in one client for a client dependent table the same
record is not isible for in any other client .
eg* 843 8cript + te$t element+ and some ::I7 ob@ects
7lient :ependent 0b@ect are those ob@ects whose
.unctionality is restricted to a particular client.
>>- How do !ou get output from I'$C?
/7)- .unction moudles or processing routines are alloted
dynamically based on message type andn I:70 type. Fe use
117
these function modules to process I:07 segments to get data
and moe this segment data into internal tables.
>?- (Aplain about roll area 0 'ispatcher0 /6/4@4rocessor?
/7)- 4pplication serer contains :ispather.
:ispatcher contains Sueue file and wor!processors.
Fhen we e$ecute ob@ect+ the reSuest goes to dispatcher and
dispatcher sends it to Sueue file. after that dispatcher
allocates the reSuest to aailable wor! proecessor to
process the reSuest.
#he wor! processor contains screen processor+ abap
processor and flow logic.
4<43 processor process the abap code.
.or each reSuest in wor!processor contains user conte$t and
roll area.
'oll area contains program name+ ariables+ memory area+
dyanmic ariables+ etc.
>1- #hat is the main point while using control breaB in
internal table ?
/7)- .ield for which we are using the control brea! should be
the first field of the internal table.
Internal table should be sorted on the field for which we
are going to use the control brea! statment.
?0- what is the code for basic list to 2ndr! list?
/7)- %i first retrie the data for basic list6from B541) after
that write the fallowing code.
4# 9I5&-8&9&7#I05.
748& 8;-98I5:.
F%&5 Z1[.
8&9&7# B=55'
J<&95
&':4#
&'54,
5&#F'
.'0, J<4B I5#0 #4<9& #"J<4B F%&'& B=55' K
F"B541-B=55'.
80'# #"J<4B <; J<&95.
5&F-341& 9I5&-70=5# 8;-8'0F8.
9003 4# #"J<4B I5#0 F"J<4B.
F'I#&*/10 8;-J9I5&+ F"J<4B-J<&95 +
3G 8;-J9I5&+ F"J<4B-&':4#+
GG 8;-J9I5&+ F"J<4B-&'54,+
6H 8;-J9I5&+ F"J<4B-5&#F'+ I0 8;-J9I5& .
%I:& F"J<4B-J<&95.
F'I#&*/10 8;-=9I5&6>1).
?1- suppose !ou are using session method for 1000 records and
there is error in 400 and 00 records-how man! records will
111
be updated to the database?
/7)- 'emaining II> records will be updated to :< and the 2 error
records will be placed in session log for further
correction. If you correct those 2 records and run the
session again+ the 2 records will also be updated to :<.

?2- :unction ,odule for smart forms?
/7)- use E88.".=57#I05",0:=9&"54,&E in this u can pass ur
smartform in report
?3- How to get the no of records using select statement?
/7)- data* wa"t001 type t001+
t"t001 type table of t001.
select V into table t"t001 from t001.
loop at t"t001 into wa"t001.
write* no.of records sy-tabi$.
endloop.
?3- #hat are the pre reOuisites for :or all (ntries?
/7)- .0' 499 &5#'I&8 is used to replace nested select loops by
operations on internal tables.
#hings to be considerd when wor!ing with Efor all entriesE*
1),a!e sure that the select contains atleast the primary !ey
fields
2)I. 50# AI#4<- I8 I5I#I49. is a mandatory chec! before .0'
499 &5#'I&8.
?4- what are the 4re reOuisites for binar! search?
/7)- #he pre-reSuest for binary search is you hae to do 80'# the internal
table. #hen use binary search for the internal table. otherwise performance
issue for the internal table.
?- what are the diff page formats a.ailable in ),/32:$3,) ?
/7)- 3age formats in 8martforms * 9andscape and 3ortrait.
?"- what is meant b! serialiIation ?
/7)- 8eriali)ation plays an important role in distributing
interdependent ob@ects+ especially when master data is being
distributed. I:ocs can be created+ sent and posted in a
specified order by distributing message types serially.
#hus &rrors can then be aoided when processing inbound I:ocs.
#ypes of 8eriali)ation*
Interdependent messages can be serially distributed in the
following ways*
` 8eriali)ation by 0b@ect #ype
` 8eriali)ation by ,essage #ype
` 8eriali)ation at I:oc 9eel 65ot for I:ocs generated
?"- what data t!pes allows length specification ?
/7)- #he 4<43 types 7 - character+ 5 -numeric and ? -he$adecimal
needs length specification.
11*
If you do not declare a length when you define a data
ob@ect+ the system assigns the default length of 1.
?>- 2here is a file in application ser.er- How can !ou upload it
and 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.1oto 8,3G+ select the session and press .2 to monitor the
processing details.
?1- #hat are the steps need to setup before creating an I'oc?
/7)- 7ommunication 8ettings*
1) 7reate and 4ssining 9ogical 8ystems -- 849&
2) ,aintain '.7 destination -- 8,GI
3) ,aintain #'.7 3ort -- F&21
6 4boe configuration reSuired irrespectie of sending or
receiing an I:07).
,andatory 0utbound 7onfiguration*
,atain :istibution ,odel -- <:64
,aintain 3artner 3rofile -- F&20
10- How to put checBboA against a row in /5F displa!?
/7)- 79&4' s"layout.
s"layout-bo$"fieldname K E.941E.
s"layout-bo$"tabname K EI5##4<E.
:4#4 * <&1I5 0. inttab 077='8 0+
flag61)+
...
end of inttab.
11- #hat is parameter id? #here !ou can find parameter id for a
field?
/7)- 3arameter id contains uniSue id for 834/134 3arameters.
#o find parameter id * 1o to the field in transcation 3ress
.1 in technical info u will get parameter id for that field
12- #hat are the de.elopments !ou ha.e done with data dictionar!?
/7)- In addition to aboe.
Jalue #able
7hec! #able
11,
3rimary Bey
.orign Bey
4ppend 8tructure
etc..
these are also part of the data dictionary which an 4<43er
do.
13- 2here are 4 internal tables containing data- How to put it
into a final table?
/7)- u hae to do by loop the internal table which haing more records
compare to other internal table. #hen read the other internal table by using
read statement.4fter that moe the records into final internal table.
14- How do !ou create secondar! indeA- 'o !ou ha.e access to
create secondar! indeA?
/7)- 7reating 8econdary Inde$es
3rocedure
In the maintenance screen of the table+ choose Inde$es.
If inde$es already e$ist on the table+ a list of these inde$es is displayed.
7hoose .
In the ne$t dialog bo$+ enter the inde$ I: and choose
#he maintenance screen for inde$es appears.
&nter an e$planatory te$t in the field 8hort te$t.
;ou can then use the short te$t to find the inde$ at a later time+ for
e$ample with the '/3 'epository Information 8ystem.
8elect the table fields to be included in the inde$ using the input help for
the .ield name column.
#he order of the fields in the inde$ is ery important. 8ee Fhat to Beep in
,ind for 8econdary Inde$es.
If the alues in the inde$ fields already uniSuely identify each record of
the table+ select =niSue inde$.
4 uniSue inde$ is always created in the database at actiation because it
also has a functional meaning 6preents double entries of the inde$ fields).
If it is not a uniSue inde$+ leae 5on-uniSue inde$ selected.
In this case you can use the radio buttons to define whether the inde$ should
be created for all database systems+ for selected database systems or not at
all in the database.
8elect for selected database systems if the inde$ should only be created for
selected database systems.
7lic! on the arrow behind the radio buttons. 4 dialog bo$ appears in which
you can define up to 4 database systems with the input help. 8elect 8election
list if the inde$ should only be created on the gien database systems.
8elect &$clusion list if the inde$ should not be created on the gien
database systems. 7hoose .
7hoose .
'esult
#he secondary inde$ is automatically created in the database during
actiation if the corresponding table was already created there and inde$
creation was not e$cluded for the database system.
11+
;ou can find information about the actiation flow in the actiation log+
which you can call with =tilities a 4ctiation log. If errors occurred when
actiating the inde$+ the actiation log is automatically displayed.
1- #hich function module !ou will use to attach a search help
to a field in )election screen?
/7)- '&30'# )"test11 .
34'4,&#&'8*
p"carrid62).
:4#4* table1 9IB&
ddshretal
077='8 0 FI#% %&4:&' 9I5&.
4# 8&9&7#I05-87'&&5 05 J49=&-'&N=&8# .0' p"carrid.
7499 .=57#I05 E.4I.".I&9:"J49=&"'&N=&8#E
&?30'#I51
tabname K EscarrE
fieldname K EcarridE
V 8&4'7%%&93 K E E
V 8%9334'4, K E E
V :;533'01 K E E
V :;535' K E E
V :;53'0.I&9: K Ep"carridE
V 8#&39 K 0
V J49=& K E E
V ,=9#I39&"7%0I7& K E E
V :I8394; K E E
V 8=33'&88"'&70':9I8# K E E
V 7499<47B"3'01'4, K E E
V 7499<47B".0', K E E
V 8&9&7#I05"87'&&5 K E E
#4<9&8
return"tab K table1
&?7&3#I058
field"not"found K 1
no"help"for"field K 2
inconsistent"help K 3
no"alues"found K 4
0#%&'8 K G
.
I. sy-subrc 0.
,&8841& I: sy-msgid #;3& sy-msgty 5=,<&' sy-msgno
FI#% sy-msg1 sy-msg2 sy-msg3 sy-msg4.
&5:I..
p"carrid K table1-fieldal.
8#4'#-0.-8&9&7#I05.
F'I#&* p"carrid.
1"- (.ents in 3eporting- #hich e.ents we can ignore while coding-
/7)- we can ignore 8tart of selection+should not be preceeded by
any &ent.
1>- +nder which e.ent we can maBe a filed disappear on selection
screen-
/7)- =nder 4# 8&9&7#I05-87'&&5 0=#3=#.
loop at screen.
if screen-name K E3",4#5'E.
screen-actie K E0E.
modify screen.
110
&5:I..
endloop.
1>- How man! records a 3ead statement will retrie.e?
/7)- 4ctually read statement for fetching only single record from
internal table+if you are declaring 6 with !ey+inde$) with
read statement +then you can focus the e$act
record+otherwise it will ta!e the 1st inde$ record by default.
if you want more than a record+using loop statement+you can
get it.
1?- n an internal table !ou want to modif! content of a
particular field in a row- How to do it?
/7)- .irst apply EloopE or EreadE on the table to fetch that row
into the wor! area. oerwrite the field alue by passing
the data u want to modify with. .inally use the statement
gien below.
If changing 1 or 2 fields+ <etter use
,odify itab from wa inde$ sy-tabi$ transporting EfieldnameE.
If changing more fields
,odify itab from wa inde$ sy-tabi$.
,0:I.; AInternal #able- transporting A.I&9: 6in I5#&'549 #4<9&)-
11- #hat are the things !ou did in /5F grid displa!?
/7)- goto 8&3>
1)create a internal table with the structure field"catalog
2)call the ., 'euse-al-grid-display
3)specify the import and e$port parameters in .,
4) &$ecute6.>)
"00- How do !ou generate interacti.e lists in /5F?
/7)- in ., reuse"al"grid"display
pass the alue to the foll. parameters+
callbac!"program K sy-repid.
callbac!"usercommand K interactielist.
then create a subroutine li!e
form interactielist using r"ucomm li!e sy-ucomm
using rfield li!e rs"selfield
set parameter id id1 field r"field.
.........
endform.
"01- #hat is field catalog?
/7)- .ield catalog comes in 49J. #hrough .ield catalog+ u can
tell 49J as to which fields hae to be displayed in the
list and at what position they hae to be....
"02- #hat is 7/)2 2able0 what it will consists?
/7)- E548#E is a transaparant table.It is the table for ,essage
status.It consists of applicationof message conditions+
message type+ message language etc.
"03- how to transport abap worBbench obNects
11/
/7)- 8&0I transaction is for wor!bench transport reSuest wherein
the deelopers can trac! their changes or modifications to
the wor!bench ob@ects .
"04- loop times-
s!@tabiA0s!@indeA-
endloop-
what is the output?
/7)- <y looping G times6if the internal table has G records)+
sy-tabi$ will be G and sy-inde$ K 0.
sy-inde$ will wor! only in do and while loops+ where as
sy-tabi$ will wor! only in loop..endloop and also sy-tabi$
will be changed if we append the records into the internal
table using append statement.
"0- what is Composite Be! in table creation? what is the use?
/7)- 4 composite !ey consists of two or more columns+ designated together as
a tableEs primary !ey. ,ultiple-column primary !eys can be defined only as
table-leel constraints*
4 composite !ey has more than one attribute 6field).
=sed in database management systems as a !ey which has two or more fields in
the columns in the table+ or in a file.
"0>- 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 response
time is in linear relationship with number of table entries.
#hese tables are useful when user wants to address
indiidual table entries using the inde$.
2.8orted Internal #ables* #hese tables also hae an inde$
and the !ey. <ut+ the response time is in logarithmic
relationship with number of table entries+ since it uses
binary search algorithm instead of linear search. #hese
tables are useful when user wants the table to be sorted
while additional entries hae to be added.
3.%ashed Internal #ables* #hese tables hae no inde$+ but
hae the !ey. #he response time is constant irrespectie of
number of table entries+ since it uses a %ash algorithm.
#hese tables are useful when user wants to access the
entries with !ey only.
"0?- which table contains the details of all #codesO
/7)- #8#7 ---- table for #codes
#8#7#---- table for #codes with te$t
"01- 4re programs client dependentO
/7)- 50+ #%& 3'01'4,8 4'& 79I&5# I5:&3&5:&5# <&74=8&+ 48 #%I8
80.#F4'& I8 394#.0', I5:&3&5:&5# 80 45; 79I&5# 745 =8& 45;
3'01'4, .'0, 45;F%&'&.
"10- what is the functionality of 'untime 4nalysisO
/7)- It is a tool used for optimising your programs. 1enerally
used for performance of programs. 'untime analysis shows
you how long it ta!es to process 4<43 code+ from single
statements to a complete transaction. #-code 8&30.
116
"11- what is the difference between .0' 499 &5#'I&8 and 8&9&7# V
.'0, O
ANS. .or all entries is used to @oin the one or more tables based on
condition.8elect V from is used to fetch the data from db
table+but donEt use select V from due to performance standards. #he
code 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 as
the seSuence of fields in internal table.
than!s+i hpoe this is corrct...........
612. when you are using 2 internal table in program+ you hae
decided to use for all entries statement to retriee data
but unfortunately there are no records in the first internal
table. Fhat will be the resultO 62nd internal table contains
records).
/7)-
"13- %ow to populate signature in smartformsOwhere can we upload
the signatureOis der any tcode for itO
/nswer
I58&'#---1'43%I78----graphics means it ta!es <,3 so here u
hae to add ur <,3 file.
digital 8ignature * upload this digital 8ignature image to 843 .
u hae to two ways to upload image into 843.
1.'8#?9:,7 * which conerts #I.. file to 8tandard te$t.
2.8&H> * which ta!e <,3 file into 843 and u can directly
call this <,3 in 8martforms.
614. i want to populate 10 fields in smartforms..uptil Ith it is
ta!ing but 10th one is not populatingOwhat might be the
reasonO
458. ,ain window may not hae enogh space...
615. I8 :0,4I5 I8 '&=84<9& O I8 :0,4I5 I8 79I&5# :&3&5:&5# 0'
79I&5# I5:&3&5:&5#..
458. ;es+ :omain is reusable. ItEs not client dependent
112
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 whole
no. 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)-
:4#4* 4:610) #;3& 7+ 2 before :ecimal
<:610) #;3& 7. 2 4fter :ecimal
839I# J49=& 4# E.E I5#0 <: 4:.
I. 4:Q061) 1& G.
<: K <: Q 1.
&98&.
<: K <:.
&5:I..
617. F%4# I8 70,308I#& B&;OO
/7)- 4 table can hae one or more primary !ey columns. &?* ,4'7
6It contains both material number and plant as primary !ey)
and Fhen you hae such a table which define more than one
column as your primary !ey+ then it is called a composite
primary !ey.
"1?- what is the use append structureOO in data dictionary
/7)- In 4ppend structure means you hae add fields into standard
tables or other database tables..
e$*

1. first customi)e that &$isting database+
2. added some field to e$iting database. using append
structure.
"11- what is the use of loc! ob@ectOO
/7)- 9oc! ob@ects are use in 843 to aoid the inconsistancy at
the time of data is being insert/change into database.
843 3roide three type of 9oc! ob@ects.
- 'ead 9oc!68hared 9oc!ed)
protects read access to an ob@ect. #he read loc! allows
other transactions read access but not write access to
the loc!ed area of the table
- Frite 9oc!6e$clusie loc!)
protects write access to an ob@ect. #he write loc! allows
other transactions neither read nor write access to
the loc!ed area of the table.
118
- &nhanced write loc! 6e$clusie loc! without cumulating)
wor!s li!e a write loc! e$cept that the enhanced write loc!
also protects from further accesses from the
same transaction.
;ou can create a loc! on a ob@ect of 843 thorugh
transaction 8&11 and enter any meaningful name start with
&P &$ample &P#&8#"907B.
=se* you can see in almost all transaction when you are
open an ob@ect in 7hange mode 843 could not allow to any
other user to open the same ob@ect in change mode.
&$ample* in %' when we are enter a personal number in
master data maintainance screen 843 canEt allow to any
other user to use same personal number for changes.
#echnicaly*
Fhen you create a loc! ob@ect 8ystem automatically creat
two function module.
1. &5N=&=&"A9oc!ob@ect name-. to insert the ob@ect in a
Sueue.
2. :&N=&=&"A9oc!ob@ect name-. #o remoe the ob@ect is being
Sueued through aboe .,.
;ou hae to use these function module in your program
62). 1)%ow many
layou types we hae in smartforms ( difference between them..O
2)how to do pagebrea!s in 8,4'#.0',8..O
3):o we deelope 8martform from scratch or do we use
standard smartforms in real time..O
AN. 1)layout type is one which we can modified the e$isting
one or deeloped the new one from scratch.
2)in smartforms we will do the page brea!s using of the
command.
3) in real time it will depends on the reSuirement if
client if the standard aailable we will continue with
standard it is not aailable we will deelope form scratch.
"21- Fhat is a difference between - '&#='5+ &?I#+ 7%&7B+ 8#03 (
'&U&7# - #o leae the processing bloc!s
ANS. 8#03* #his terminates the bloc! and e$ecutes end-of selection.
&?I#* It terminates the loop processing and process the ne$t
statements.
7%&7B* It ealuates the subseSuent logical e$pression if it
is true the processing continue with the ne$t statement.
705#I5=& terminates the current loop pass+ returns the
processing to the beginning of the loop and starts the ne$t
1*7
loop pass+
'&U&7#* it terminates the current eent+ een from loops or
subroutines.
"22- %ow to reprocess the failed I:07O
%ow wil u !now idoc is failedOFhat are tcodesO
/7)- by using we1I we can reprocess idocs . through we02 we
can !now idoc failed .
"23- Fhat is the difference between 4t first and 0n change
control command.
/7)- 4t fist * It 7ompare 3reious 'ecord. but it only use with
in loop.
0n change * It compare with au$iliary memory.but it can use
out side loop.
"24- If we put #op of 3age in between 8tart-of-selection and
&nd-of-selection and what happenes
/7). 5othing will happenW
the run time system pic!s up the eents always in its pre-
defined order.eentough you code any eent in any order
always right eent is pic!ed and processed.
"2- we can write the select Suery or any code after the end of
8election. F%4# %433&5&:O
/7)-
"2"- how do you send the <:7:4#4 table in a 7all #ransaction
statement
/7)- 7499 #'45847#I05 Atcode-
=8I51 Abdc"tab-
,0:& Amode-
=3:4#& Aupdate-
Atcode- * #ransaction code
Abdc"tab- * Internal table of structure <:7:4#4.
Amode- * :isplay mode*
"2>- if i remoe the select stmt from start-of-selection and put
the select stmt in end-of-selection it is triggering then
what is the use of start-of-selectionO
/7)- 4ctually 8tart-of-selection is a default eent thatEs been
triggered while e$ecuting a 4<43 'eport or 3rogram. %ere if
youEe used Initiali)ation eent or 4# 8election 8creen
eent+ then you need to mention the 8tart-of-8election eent
e$plicitly. #he use of 8tart-of-8election is to fetch the
data from the database.
"2?- %ow do u do performance analysis means and what is the
diffrence between e$tended synta$ chec! and code inspector
and how do use them to test the performance of the any abap
program O
1*1
/7) &$tended synta$ chec!+ensures the remoal of mista!es we
oerloo! while coding.
adantages*
obsolete stmts.
autori)ation chec!s
problematic stmts.
7ode inspector is a tool that gies 3&'.0&,457& 0. 3'01'4,.
syntactical chec!
security chec!
performance chec!
search func.
"21- Is there any other way to create data elements apart from
se11 tocde as we dont use the se11 in real time generally
/7)- ya we can create data element through se>0.
se>0.
select dictionary
then select data type.
here u can create data element.
In real time we cant use se11+ se3> etc. 8o we can do
eerything in se>0.
"30- what are the ariants in al reports O
and what is the use of reuse"al"ariants"get O
and what is the purpose of i"sae parmaetr in the
resue"a"grid-display funmoduleO
what is the purpose of reuse "a"default"arinat"get O
/7)- Jariants in 4<43 are li!e any other ariants that we use in
4<43. It helps us get a default alue on our screen fields.
In short+ it wor!s li!e saing your pwds on your mail accounts.
#he reuse"al"default"ariant"get helps you to gie a
default alue6 had you mentioned in the program ) to your
screen field. #his default ariant is generally stored in
the struc 78"J4'I45# of your program.
i"sae in reuse"al"grid"display * 4s mentioned aboe
cs"ariant from the reuse"al"default"ariant"get is passed
to your functional module ia i"sae..
If i"sae K EE ariants cannot be saed.
i"sae K ? std sae mode.
;ou also hae modes li!e = and 4.
"31- %ow we will handle the 3age <rea!ing in 8mart .ormO
/7)- Fe can do page-brea! forcibly in smart-forms using
command node. and also eery node has general properties
tab. on that tab we hae to chec! the chec! bo$ Epagebrea!E.
1**
"32- Suerry is as follows %ow to trigger
the page brea! in smartforms forcibly O and how to trigger
the page brea! in the scripts forcibly O means for eery 10
records i hae to trigger the page brea! O and in smart form
also O
/7)- in 8,4'#.0',8.
as of me we hae to use EcommandE from
create--------flowlogic-----------command.
but dont write command node in main window
by using this u can do page brea!.
in 84387'I3#8 u hae to use ., Econtorl"formE
7499 .=57#I05 E705#'09".0',E
&?30'#I51
command K new-page
V &?7&3#I058
V =503&5&: K 1
V =58#4'#&: K 2
V 0#%&'8 K 3
.
I. sy-subrc A- 0.
V ,&8841& I: 8;-,81I: #;3& 8;-,81#; 5=,<&' 8;-,8150
V FI#% 8;-,81J1 8;-,81J2 8;-,81J3 8;-,81J4.
&5:I..
"33- what e$act functionality of the &5:-0.-8&9&7#I05 eentO
and in a report im using the &5:-0.-341& and
&5:-0.-8&9&7#I05 eents which one will triggers firstO
/7)- &5:-0.-8&9&7#I05 is the last of the eents called by the runtime
enironment to occur. It is triggered after all of the data from the
logical database+ and before the list process is started.&5:-0.-
8&9&7#I05 occurs only once and its a 'untime eent.
&5:-0.-341& is an 0utput &ent used for page footers.
#his eent is triggered when the system encounters insufficient space
on the current output page.
#he 9I5&-70=5# statement within the '&30'# statement specifies the
si)e of the page area.
If a 9I5&-70=5# is not e$plicitly coded+ the &5:-0.-341& eent bloc!
will not be processed.
"34- how can i transport a idoc from deelopment system to
production systemO in idoc we are doing bd64 for
distribution model iew is it mandatory for idocO and is it
possible without creating a distribution model iew we can
1*,
generate a idocO
/7)- In 8,GI 9goical 8ytems area we will hae to define the
8ource and #arget client. #hen partner profile has to be
created to transport the :eelopment to 3roduction 8ystem.
ItEs possible to generate an I:oc with out creating a
distribution model.
"3- Fhat are Jiews+ how they were useful. #ypes of Jiews
/7)- Jiews are basically a @oin of two or more underlying
database tables. 7ertain tables are logically related and
ma!e sense and more meaning when iewed lin!ed together.
Instead os ma!ing these @oins at runtime and increasing
oerheads+ iews when e$isting can proide information
readily such as in 8earch %elps in data entry screens.
4nother e$ample is when there is a table with many fields
and it does not ma!e a lot of sense to see all of them
together eerytime+ it is better we pro@ect only certain
columns that we want to see.
#here are four types of iews*
a) :atabase Jiew 61enerally used a a read only iew)
b) ,aintenance Jiew 6=sed as a means to maintain the
underlying tables participating in the iew)
c) 3ro@ection Jiew 68ingle table iew)
d) %elp Jiew 6used in Esearch helpsE got by pressing .4)
"3"- :ifference between ,aintanance iew+ %elp iew+ :ata <ase
Jiew and 3ro@ection JiewO
/7)- ,aintenance Jiew* 7reated by @oining two or more related 6by
foreign !ey) tables. Uoin conditions are always using the
foreign !ey. :ata can be changed+ iewed and created using
such maintenance iews. #his type of iew implements outer
@oin 6where those records that do not hae a corresponding
entry in some of the tables participating in the iew also
show up) against database iews that implement inner @oins
6where the user sees only records which hae a corresponding
entry in all tables participating in the iew).
In tcode 8&G4+ generate table iew+ and select iew type as
Emaintenance iewE. ,ore information is aailable in
manuals/boo!s on how to create a one step and two step
maintenance iew.
4 database iew can be '&4: only 6formed by @oining two or
more tables) and of course+ if the appropriate option is
selected while creating it+ it could write into the
underlying table also. If a database iew inoles more than
one table+ then it can only be a '&4: 059; iew.
1*+
3ro@ection Jiew is formed out of e$actly only one table and
it is a pro@ection iew 6selectie columns are displayed
from the table).
%elp iews also implement an outer @oin in the tables
participating in the iew. #ypically these are used when one
creates a .4 help in a field of a data entry screen. 4
database iew could also be lin!ed to a search help but must
be aoided because database iews use an inner @oin and
therefore some records may get hidden and may not therefore
really %&93.
"3>- %ow to get the table name from a fieldO
/7)- we can find the table for a specific field from table ::039 which
will contain all table names for corresponding fields.
"3?- tell me ddic ob@ects
/7)- tables+ structures+iews+data elements+domains+loc!
ob@ects+search helps etc
"31- how we lin! two fields by using foregin !eys
between two tables in sap abapO
/7)- 1o to 8e11+ 1ie your table name clic! display.
;ou will find attributes tab+ deliary and maintance tab+
fields+ entryhelp/chec! tab and currency/Suantity filed tab.
In that select entryhelp/chec! tab.
clic! foregin !ey chec! bo$ for which field you to define
foregin !ey relatiobship.
"40- how to maintain the Suantity field in bdc
/7)- .J49 is the Suantity field of an internal has a structure of
<:7:4#4.
It is reference field to bdc"field subroutine.
fnam and fal are its reference fields.
"41- Fhat is the difference between 8earch help and ,atch code O
ANS. 8earch %elp*
is used to retriee the possible alues for the
database field from the database. by pressing the function
!ey .4 .
,atch code*
is used to retriee the search paths for the
database field.
8earch %elp - use 7hec! table concept
match code - uses the alue table cocept
1*0
"42- Fhat is the 8: .low in 843.7an you e$plain with #ransaction
codes...
/7)- &nSuiry J411
Nuatation 421
8ales 0rder J401
:eliery J.01
<illing J901
"43- FhatEs the use of 4# 3. eentO
/7)- Fhen the user chooses a function code 3.Ann- 6Ann- can be
between 01 and 24)+ the system always triggers the 4#
3.Ann- eent. In the standard list status+ the function
!eys .Ann- that are not resered for predefined system
functions all hae the function code 3.Ann- as long as a
corresponding eent bloc! is defined in the program.
4# 3.Ann-.
Astatements-.
#hese eent bloc!s are e$ecuted when the user chooses the
corresponding function !ey. #he position of the cursor in
the list is irreleant.
If you use these eent bloc!s at all+ it should only be for
temporary test ersions. In production programs+ you should
only use 4# =8&'-70,,45: with a dialog status of your own
to assign function codes to function !eys. Fhen you use
your own interfaces+ the system displays a function te$t
e$plaining what the function does. #his does not happen
when you use 4# 3.Ann- eent bloc!s.
"44- why cluster tables are not bufferedO
458. 7luster tables is acombination of less no. of large tables.
%igly updated tables cannot be buffered+hence cluster
tables cannot be buffered.
"4- 7an we create a search help for a particular user O if
yes..%ow O
458. It is not possible for user.
"4"- difference between at selection-screen and at
selection-screen outputO
/7) 4t selection screen is used to alidate input..
at selection screen on output is used to set screen attributes
4# 8&9&7#I05"87'&&5 0=#3=#
9003 4# 87'&&5.
if JI&F K E?E 2 Jiew radio button selects
I. 87'&&5-54,& K E3'1E.
1*/
screen-I53=# K 0.
modify screen.
&5:I..
I. 87'&&5-54,& K E3'2E.
screen-I53=# K 0.
modify screen.
&5:I..
&5:9003.
4# 8&9&7#I05-87'&&5.
Val....1 Jariant chec!
V 0nce the user has entered ariant+ chec! about its e$istence
3&'.0', 7%&7B"3J4'. 2=sing ., '&=8&"49J"J4'I45#"&?I8#&57&
Val....2 8d do not e$ists
8&9&7# 8I519& J<&95 I5#0 F4"%&4:&'-J<&95 .'0, J<4B F%&'& J<&95 I5
8"J<&95.
I. 8;-8=<'7 0.
,&8841& &010 FI#% #&?#-010.
&5:I..
Val.....3 :ate of creation chec!
9003 4# 8":07.
I. 8":07-90F - 8;-:4#=, 0' 8":07-%I1% - 8;-:4#=,.
,&8841& &011 FI#% #&?#-011.
&5:I..
&5:9003.
VJ49....4
if 3":0F5 K E?E 45: 3"34#% is initial.
,&8841& &011 FI#% #&?#-011.
endif.
if 3":F"'3 K E?E 45: 3"path is initial.
,&8841& &011 FI#% #&?#-011.
endif.
"4>- can we transport te$t elements and te$t symblos in reports
from delopment to SualityOis it necessaryO
/7)- once we created te$t element or te$t symbols..we must
assign te$t element to transport reSuest through program
'8#?#'45.
"4?- what is the use of system field E8;-9007EO when will we use
itO 3l) answer me its urgentWWW
/7)- It might be sy-loopc+ as you might be ware that all the
system fields are found in structure call 8;8#.
5umber of lines currently displayed in a table control.It
7an be used to determine the step loop bloc!s in the screen
and for scrolling functionality.
"41- %ow to put page-brea!s in smartformsO
1*6
/7)-in smartfoms under loop statement in data tab select eent
on sort end chec!bo$ .then one eent on sort end node will
be displayes @ust right clic! on this node ( select
command option . then in command select go to new page
chec!bo$ ( gie new page name .
"0- Fhat is collect statementOe$plain with e$ampleO
/7)- if an entry with the same !ey already e$ists+ the 7099&7#
statement does not append a new line+ but adds the contents of
the numeric fields in the wor! area to the contents of the
numeric fields in the e$isting entry.
"1- Is der any other criteria for using .or 4ll &ntries e$cept
if not itab is initialO
/7)- In case of .0' 499 entries+
1. ,oe the contents of the internal table to a local
internal table.
2. 8ort the local internal table with the !ey you are going
to use.
3. :elete ad@acent duplicates in the local internal table
with the same !ey you hae used for sorting.
4. .inally+ before the select Suery chec! if the local
internal table is not initial.
"2- F%; F& 5&&: #0 7'&4#& 4 30'# I5 49& I:078O
/7)- port number is used to communicate the sender and
receier +it is used to carry the data from sender to
receier system+one receier can hae more port numbers+it
is the way of path.we can create a port number in we21 t-
code
"3- :ifference between 8;-73'01 and 8;-'&3I:O
/7)- 8;-73'01 * 4<43 program+ caller in e$ternal procedures
8;-'&3I: * 5ame of the 'eport program
"4- %ow to debug smartformsO
/7)-
">- If i double clic! on any sales order no it sud ta!e me to
the transaction howO
/7)- =se 4# =8&'-70,,45:.
748& 8;-=70,,.
F%&5 E805oE.
1&# 7='80' .I&9: .54, J49=& .J49.
8&# 34'4,&#&' I: EJ<&E .I&9: J<&95.
7499 #' J401 45: 8BI3 .I'8# 87'&&5.
"?- %ow to write file to application sererO
what is file handlingO
1*2
/7)- 4<43 contains three statements for wor!ing with files*
03&5 :4#48&# for opening files
7908& :4#48&# for closing files
:&9&#& :4#48&# for deleting files
'ead dataset Afile- for output.
loop at itab into wa.
transfer wa into Afile-.
endloop.
close dataset Afile-.
"1- I want to disable a field in selection screen so that it
does not appear while displaying.%ow can i do thatOwat wud
be the codeO
/7)- 34'4,&#&'8* 9I.5' li!e 9.41-9I.5' ,0:I. I: E4<7E.
4# 8&9&7#I05-87'&&5 0=#3=#.
9003 4# 87'&&5.
I. 87'&&5-1'0=3"54,& K E4<4E.
87'&&5-I53=# K 0.
,0:I.; 87'&&5.
&5:I..
&5:9003.
""0- In Interactie 'eport * %ow to come from 8econdary 9ist 10
to secondary list 4O what is the 3rogram codeO
/7)- from list inde$ 10 to come bc! to list inde$ 4 we can use the
code as follows.....put some function code button on application or
menu tool bar then code as below
case E.570:&E.
when 79I7B
7%&7B 98I5: K 10.
98I5: K 4.
endcse.
""1- I hae 2 radio buttons with 2 fields each on selection
screen.,y reSuirement is li!e if clic! on 1st radio button
the second radio button field should be disabled and and
ice ersa.%ow can i do thatO
/7)- 4# 8&9&7#I05-87'&&5 0=#3=#.
9003 4# 87'&&5
I. '1 &N E?E 45: 87'&&5-1'0=3 &N E82E.
87'&&5-I53=# K 0.
,0:I.; 87'&&5.
&5:I..
I. '2 &N E?E 45: 87'&&-1'0=3 &N E81E.
87'&&5-I53=# K 0.
,0:I.; 87'&&5.
&5:I..
&5:9003
1*8
""2- Fhat will happen if i dont use initiali)ation and start of
selction eent in reportO
/7)- 5othing will happen system ta!es by default those eents..
""3- Fhat are the different 0B 7odes that can be used in batch
input processingO
/7)- /n T terminates current batch input transaction and mar!s as
incorrect.
/bdel T delete current batch input transaction from session
/bend T terminate batch input processing and mar! session
as incorrect
/bda T change display mode to process the session on screen
instead of displaying only errors
/bde T change display mode to display only errors instead of
processing the session on the screen
""4- what is the difference between se16 and se1H OOO
458. #he difference between se16 and se1H is
1. se16 icons will be aailable application. by pressing
left corner Icon6fH) #4<9& 705#&5#8. it will display pop up
window in that win we can choose the reSuired fields.
2. se1H no icons will be aailable after giing the table
name we hae to press enter. then another screen will come
we hae to gie ? below 6output) for the fields to be
displayed. #hen we hae to e$ecute it will display those fields.
""- what are nodes in smart formsO
/7)- #here are diff nodes ailable in 8. li!e*
-window
-1raphic
-4ddress
-#e$t
-#able
-#emplate
-.low9ogic
-.older+ etc..
"""- Fhat are the e$act seSuences in which the reporting eents
trigger.I mean starting from 1st to last.4nd how many times
we can use 4t-8election screen or 8tart-of-selection in a
reportOO
/7)- Initiali)ation * triggered when the report is loaded in
memory+ which is generally used for declerations.
4t selection-screen output * triggered when the selection
screen is loaded in memory before being displayed which is
used for scresn leel alidations
4t selection-screen / Afield- * before leaing the
1,7
selection screen+ which is used for field leel alidations.
start-of-selection * the first eent for displaying the
report.
end-of-selection * after the start-of-selection is
completed.
top-of-page * eery time a new page is started in the list.
end-of-page * eery time the list data reaches the footer
region of the page.
top of page during line selection * top of page eent for
secondary list.
at line-selection * eey time user dbl-clic!s6.2) on the
list data.
"">- i hae 4 primary !eys and i want to use only one primary !ey
for select single.Fhat changes will occur in the systemOcan
i use itO
/7)- In select single+ you hae to mention all the !ey fields in
where condition. 0nly in 8elect upto n rows there is no
need to specify all the !ey fields
""?- Fhy is bdc "cursor and 1&#"7ursor usedO
ANS. <:7:4#4-.54, KE<:7"7='80'E.
<:7:4#4-.J49 KEfield$E.
#hen &nter alue for the corresponding field.
&g *
3&'.0', bdc"field =8I51 E<:7"7='80'E
E78B8P-B08#9E.
3&'.0', bdc"field =8I51 E78B8P-B08#9E
record-!ostl. 2alue
""1- what will happen if you dont gie any alue in parameter and
select options in reportOOwill it fetch any alueO
/nswer
I. you not specify any alue in prameter then select Suery
will fetch only those records where condition alue is
space or )ero.
If you not specifed any alue in select-options+ select
Suery will fetch all records.
">0- Is der any any alternatie 8tatement instead of %I:& which u
can use in reportsO
/7)- 1. %ide.
2. E(ic1E which is used with sel"field by declaring li!e sy-ucomm.
">1- Fhat is the use of 4# 8election 8creen output when we hae
4t selection screenO7an u e$plainO
/7)- 4# 8&9&7#I05-87'&&5.
1,1
#he eent 4# 8&9&7#I05-87'&&5 is the basic form of a whole
series of eents that occur while the selection screen is
be.ing processed.
#he standard selection screen in an e$ecutable program or
in the logical database lin!ed to it is automatically
called between the I5I#I49IP4#I05 and 8#4'#-0.-8&9&7#I05
eents. Fhen you call the selection screen+ and when users
interact with it+ the 4<43 runtime enironment generates
selection screen eents+ which occur between I5I#I49IP4#I05
and 8#4'#-0.-8&9&7#I05.
4# 8&9&7#I05-87'&&5 0=#3=#
eent is triggered. #his eent bloc! allows you to modify
the selection screen directly before it is displayed.
">2- Fhat is the difference between 0pen8N9 and 5atie 8SlO
/7)- 03&5 8N9
0pen 8N9 allows you to access all database tables !nown to
the 843 system+ regardless of the database manufacturer.
8ometimes+ howeer+ we may want to use database-specific
8N9 statements called 5atie 8N9 in the 4<43/4 program.
5atie 8N9
5atie 8N9 allows you to use database-specific 8N9
statements in an 4<43 program. #his means that you can use
database tables that are not administered by the 4<43
:ictionary+ and therefore integrate data that is not part
of the '/3 8ystem.
">3- what is difference between brea! and watch point
/7)- <'&4B 30I5#

#he <'&4B 30I5# is a debugging aid. Fhen we run a program
normally+ it is interrupted at the statement+ and the
system automatically starts the debugger+ allowing you to
display the contents of any fields in the program and chec!
how the program continues. If the program is running in the
bac!ground or in an update tas!+ the system generates a
system log message.
F4#7% 30I5#

Indicator in a program that tells the 4<43 runtime
processor to interrupt the program at a particular point.
">4- Fhat is a #e$t #ableO
1,*
/7)- 4<43 programmers are often suppose to sae language
depended data within 4<43 applications. 0ne of the possible
way how to store such a data is to create a te$t table for
transparent table in 4<43 dictationary tool 6#4 code* 8&11).
">- Fhat is the difference between 4t 5ew and 0n change 0f
inside a loopOOI want inside a loop difference not basic
differenceOO
ANS. 1.at new is always followed by single field.
eg* 4# 5&F ,4#5'.
if any changes in matnr occurs at new eent triggers.
at this case right side fields of matnr appears li!e
this.right side character fields appears li!e VVVV (
numeric field become null in wor! area.
2.on change of follows by single or more fields.
eg* 05 7%451& 0. ,4#5' 0' 94<8# 0' F&'B8.
here any change in any field on change of eent
triggers.here we can see all fields in wor! area.
">"- Fith the use of secondary inde$ we can ma!e a program run
faster but we are adised not to use secondary inde$ why is
that soOO
/7)- <Eco) secondary inde$ is @ust li!e a copy of data base
table reduced to specific fields.8o+insertion and updation
in database become slow after creation of secondary inde$
where as read from table become fast.
#his is bEco) additional inde$es can also place a load on
the system since they must be ad@usted each time the table
contents change. &ach additional inde$ therefore slows down
the insertion of records in the table
">>- If i hae loc!ed a program using 9oc!ing and iam in
bangalore.%ow can i gie authori)ation to other user to use
my program who is another place say 3uneOis it possibleO
/7)- f you wish to 9oc! or =n9oc! a program &ditor 9oc! it can
be done by the program gien below. #he 843 8ystem #able
#':I' has a field called &:#? which is basically the &:I#0'
loc! filed. &dit 9oc! facility is gien in the 3'01'4,
4##'I<=#&8. #he &:I#0' 907B is a chec! bo$ gien in the
3'01'4, 4##'I<=#&8. If this field is 8&# then the program
gets loc!ed and if this is =nchec!ed the the program is
unloc!ed.
If the &:I#0' loc! is 05 then only the programEs author
user who has created the program can edit it. 3lease find
the program below.
'&30'# P&?"907B=5907B&: .
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VV
1,,
V
V
V &ditor
9oc! V
V
V
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
VV
V #able :eclaration
#4<9&8* #':I'. 28ystem table #':I'
V3arameters-------------------------------------------------
-V
3arameter* 3"3'01 9IB& #':I'-54,&+
3"&:I#0' 9IB& #':I'-&:#?.
V 8elect the entered 3rogram
8&9&7# 8I519& V .'0, #':I' F%&'& 54,& K 3"3'01.
V 8et/'emoe the loc!
#':I'-&:#? K 3"&:I#0'.
,0:I.; #':I'.
I. 8;-8=<'7 &N 0.
F'I#&* / E&ditor 9oc! update 8uccessful E+ #':I'-54,&.
I. #':I'-&:#? K E?E.
F'I#&* E 9oc!E.
&98&.
F'I#&* E =n9oc!E.
&5:I..
&98&.
F'I#&* / E&ditor 9oc! update =nsuccessful E+ #':I'-54,&.
&5:I..
">?- <y using which single table i can get all the detail from
sale order to billing not used ba!+ bap+ br! ( brp.
/7)- bfa
">1- how we can moddify a internal table without using modify
statement
/7)-
how can you e$pect the system to modify an interanl table
without we write a code which is gien by the 4<43 Bey
words.
please use modify statement.
and i thin! een if you use field symbols then also the .8
will not modify your internal table.
may subroutines if you pass the alue by reference and the
form gets e$ecuted till the end + you may modify the alues.
hope this will sere your purpose.
1,+
and then also if ur rigid to use modify statement then
=se .ield 8ymbols
8omething li!e this
:4#4 * itab #;3& #4<9& 0. string+
wa #;3& string.

.I&9:-8;,<098 * Awa- #;3& string.

wa K E4<7E.
433&5: wa #0 itab.
wa K E4<7E.
433&5: wa #0 itab.
wa K E4<7E.
433&5: wa #0 itab.

9003 4# itab 488I15I51 Awa-.

Awa- K E:&.E.

&5:9003.
"?0- what is the diffrence between inner and outer @oin
/7)- difference between inner @oin and outer @oin is*
inner @oin means it selects same data only in both the
tables
outer @oin means first it selects same data and second it
selects different data from the both tables.
0uter Uoin*
#here are three types of outer @oins namely*
--9eft 0uter Uoin---.or retreiing all the columns from the
first table irrespectie of the column match.
--'ight 0uter Uoin---.or retreiing all the columns from
the second table irrespectie of the column match
--.ull 0uter Uoin---.or retreiing all the columns from
both the tables irrespectie of column match.
"?1- in interactie reports i can use hide field for secondary list
out put in 49Js for secondary list as a out put which field r
u usingOin interictie list ican use %I:& in 49Js which field
r u usingO
/7)- I5 49Js we hae to add the record user"command and form
name6&?*8=<1)in I#"&J&5#8 of '&=8&"49J"1'I:":I8394;. 4s we
are passing the user"command eent+.., automatically calls
the subroutine with the two parameters*8;-=70,, 45:
89I8"8&9.I&9:.
we hae to write form definition in our program li!e below*
1,0
form sub3 using sy-ucomm li!e sy-ucomm
field type slis"selfield.
4s slis"field is a structure+ it contains the whole
information about the field we hae selected li!e field-inde$+
field-fieldname+field-fieldalue............
6>2. 45; one can tell me what is basic diff b/w !eywords
8#03+705#I5=&+7%&7B+&?I#+ 4#-&?I#70,,45:O
458. stop * #he statement 8#03 is only to be used in e$ecutable
programs and in the following eent bloc!s*
4# 8&9&7#I05-87'&&5 6without additions)
8#4'#-0.-8&9&7#I05
1&#
;ou leae these eent bloc!s ia 8#03+ and the runtime
enironment triggers the eent &5:-0.-8&9&7#I05.
705#I5=& * #he 705#I5=& statement can only be used in
loops. If it is used+ the current loop pass is ended
immediately and the program flow is continued with the ne$t
loop pass.
7%&7B * If the statement 7%&7B is e$ecuted in a loop and
log"e$p is incorrect+ the statement 7%&7B immediately
terminates the current loop pass and the program continues
with the ne$t loop pass. .or log"e$p+ you can specify any
logical e$pression.
5ote
0utside a loop+ the statement 7%&7B e$its the current
processing bloc!
&?I# R If the &?I# statement is listed within a loop+ it
leaes the loop by ending the current loop process. 3rogram
e$ecution is continued after the closing statement in the
loop.
5ote
0utside of a loop+ the &?I# statement leaes the current
processing bloc!.
4# &?I#-70,,45: * it is used in module pool programming to
leae the screen without entering madatory fields.it is the
1st module in pai.
6>3. he material no+and sales orde
numberOin which table conpany masterdata will storeO
458. for 8ales 0rder * Jba! and bap
for ,aterial* m!pf+ mseg
1,/
"?4- how can u highlight perticular row in report programmingO
/7)- <y using hotspot..
eg.
%otspot on.
Aur field-
%otspot off.
5ow to perform action after selection use *
4t 9ine 8election.
if sy-lsind K 1 A to trac! current page number-
///write ur code
endif.
"?- please any one can tell me modifytable !eyword used in ::I7O
what is a basic diffrence between modify table and update !ey
wordO
/7)- <oth modifies ::I7 table but the :ifference btwn modify
table and update table is *
8uppose u write modify A::I7 #able - from Awor! area-
then it will modify the row with same primary !ey alue as
that of wor! area. <ut if it donot find any row then it will
50# insert the wor! area row in ::I7 table+
whereas+
update statement will insert a new row at last in ::I7 #able.
"?"- In select-options+how to ma!e high as madatory.....Oif we use
obligatory weEll get the low as madatory by defaultO
/7)- ;es+;ou are right.If we write statement as *
8elect-options * beln for br!-beln obligatory.
then low alue gets mandatory.
Fe hae to write as *
8elect-options * beln for br!-beln.
5ow beln field is not mandatory.
5ow we hae to e$plicitly write code for ma!ing high alue
mandatory in 4# 8&9&7#I05-87'&&5 eent.
4t selection-screen.
loop at beln where high is initial.
endloop.
I. 8;-8=<'7 ne 0.
,&8841& E%I1% J49=& 745 50# <& <945BE #;3& E&E.
&5:I..
"?>- %ow to write message without using message class in reportO
%ow to go to edit mode in classical display report+ means
that how to edit one of the column after displaying
classical report+ not in 49J.
1,6
/7)- Fe can display the fields on the report in edit mode using
I53=# !eyword...
write*/ E<uddulaE I53=#.
In the report this field will be displayed in the edit
mode...
"??- Fhat eent is trigger wen screen is displayedO<efore
displaying Initaili)ation and 3ressing enter 4t selection-
8creen..............<ut at the selection displayed and we are
entering alues naa that timeO
/7)- 904:-0.-3'01'4, *
KKKKKKKKKKKKKKKKK
#he 3urpose of the load-of-program is to load the program
into system memory so that the program can be e$ecuted.
I5I#I9IP4#I05*
KKKKKKKKKKKKKKK
#his triggers when the program is loaded into memory to
initili)e the alues.
K- Fhen you e$ecute program load-of-program must be
triggered and initili)ation eent e$ist in the program then
it triggers ne$t.
6>I. Fhen we copy any :rier 3rogram from 5ace............when we
copy into )prog+when we actiate how it was lin!ing to that
particular std layout............what happening to the
preious drier progO
458. In #he 547& transaction you hae to proide )program name
and standard .orm. 8ystem will ta!e care of lin!ing the form
to the )program.
<ut Fe should not modify a :rier 3rogram. Instead of
modifying :rier program+ =sing e$ternal subroutines we can
write code for the print program without modifying tha
standard :rier 3rogram.
Incase if you want to modify the standard drier program you
can copy the program and you can modify it. 4fter changing
the :rier program configurations has to maintained in 547&
transaction and proide modified changed program in the 547&
for the standard .orm. <ut it is not recommended to change
print program.
"11- 7ontrol <rea! 8t........i hae written 4t new for customer and
in the loop customer came in the 3rd record....weather itEll
trigger in the 1st record of the loop or 3rd record O
/7)- the first and second records are empty and the third records
onwards the customer there+ if so means initially itEll trigger for
the null alue.. so we hae to consider there is no null record+ and
we hae to sort the internal table before the loop. its an manditory
things while we using the brea! statement we hae to sort them.
1,2
"12- Fhat is the purpose of bufferingO %ow many types of bufferingO
/7)- #able buffering is used to increase performance when reading data
from database table. :ata from a buffered table is read from a local
buffer on the application serer thus reducing database access.
#here are three different types of table buffering that can be used in
843*
.ull <uffering * 4ll 'ecords of the table are loaded into the buffer
when a record in the table is accessed.
1eneric <uffering* 4ll 'ecords with the same !ey fields are loaded
into the buffer when a record in the table is accessed.
8ingle 'ecord <uffering* #he specific record that was accessed is
loaded into the buffer.
"13- Faht is 2'&4: #4<9&2 commandOO Fhats the use of itOO
Fhats the synta$ of the sameO
/7)-
80'# it"tab2 <; fname1 fname2.
9003 4# it"itab1 into wa"itab1.
'&4: #4<9& it"tab2 into wa"itab2
F%&'& fname1 K wa"itab1-fname1
fname2 K wa"itab1-fname2
<I54'; 8&4'7%.
I. 8;"8=<'7 K 0.
:o the processing.
&5:I..
&5:9003.
&en if you read the table with I5:&? you can sort the table
depending on what result you are e$pecting from that read+
means+ the order and the priority of the alue of the
particular fields e$pected from that '&4: statement.
"14- Fhat is the difference between data base ob@ects and runtime
ob@ectsO
/7)- :atabase ob@ects are permanently stored in the database and
e$ist een after the e$ecution of program. Fhereas+ run time
data ob@ects are the ariables+ tables+ constants that e$ist
only during the e$ecution of the program. #hey allocate
memory only for the run time. #he memory is released after that.
"1- 2Fhat is 548# #able+ what it will consistsO2
E548#E is a transaparant table.It is the table for ,essage
status.It consists of applicationof message conditions+
message type+ message language etc.
"1"- what is the procedure for direct I/3 methodO
/7)- In case of direct input method alidations will be done
1,8
based on pre-defined function modules.
3'&-:&.I5&: :I'&7# I53=# 3'01'4,8*
1.',:4#I5:*:irect input program on material master
application
2.'.<I:&00*:irect input program on customer master
application
3.'.<IB'00*:irect input program on endor master
application.
procedure for direct I/3 method on ,4#&'I49 4339I74#I05
-------------------------------------------------------
',:4#1&5 is the program to download data from material
master application to flat file.
1.go with se3>.
2.proide name*',:4#1&5
3.3'&88 .>.
4.let us proide which material no data we want to download
e$*62>6go for any e$isting)
G.select option
select write file to presentation serer i.e ws"download
e$ecutes
6.proide file name as for e$.c*Xla!shmi.t$t
H.press f>.
>.go with se3>
I.proide program name*',:4#I5:
10.press f>
11.select option *using physical filename
12.proide filename*c*Xla!shmi.t$t
13.proide option loc! mode*&
& indicates unloc!ing automatically
14.press f>.
system will proide material no implicitly.
"1>- what is :elieryO In which tables deliery data will be
storedO
/7)- 9IB3-:eliery %eader :ata
9I38 - :eliery item document
"1?- %ow many Interactie lists can you create in 0ne 'eportO
/7)- #he actual answer is 1 basic list and 20 secondary list. ;ou
can say this as 21. after you clic! on the 21st list the
program will moe into short dump as there is no further
list aailable thereafter.
"11- %ow can you see the errors displayed in I:07O
/7)- to rectify the erros in we1I.
>00- %ow you will catch errors in call transactionO
/7)- Fe will catch errors in the call transcation e$plicitly by
using 8tructure <:7,817099.
and .=57I#50 ,0:=9& EF'I#&".0',4#E.
&$*
1+7
:ata * bdc"msg type table of bdcmsgcoll with header line+
bdc"tab type table of bdcdata with header line.
7499 #'45847#I05 E,,01E using <dc"tab mode 5
updte 8
messages into bdc"msg.
if sy-subrc K 0.
perform &rror.
clear bdc"msg.
refresh bdc"msg.
endif.
'ead table bdc"msg with !ey msgtype K E&E.
if sy-subrc K 0.
call function E.0',4#",&8841&E.
...
>01- :ifference <etween 4#3. and 4# user commandO
/7)- at pfAnn- will be triggered when a function !ey was
pressed in any list.
at user command will b triggered when a button or any
element containing function code was clic!ed.
>02- what will happen in Initiali)ation eentO
/7)- the inilia)ation eent is used to fill the default the
alues into the selection screen before the display the
screen program for first time in the e$ecute it. this
eent is used to fill the default alues into the selection
screen. wheneer u e$ecute the program these alues are
displayed on the screen.
>03- %ow do you define an internal using typesO
/7)- Fe can define internal tables in different ways. 0ne way is
by using types.
e$*
:4#4* I#4< #;3& 8#45:4': #4<9& 0. B541.
Instead of standard table + we can use hashed table+ sorted
table also.
>04- what is the purpose of #;3&8 !eywordO
/7)- what is 4pplication sererO
3art of the application layer of an 4<43-based 843 8ystem.
If the system is distributed to seeral application
serers+ these are usually installed on different computers
whose operating systems do not need to be identical.
%oweer+ seeral application serers of one or more 4<43-
based 843 8ystems may run on one computer.
4pplication serers communicate with the presentation
layer+ the database layer+ and with each other ia the
1+1
message serer. #he most important components of an
application serer are its wor! processes+ the number and
type of which are determined when the 4<43-based 843 8ystem
is started. 4n 4<43 program is e$ecuted by a suitable
application serer wor! process. #he storage areas of an
application serer+ which can be accessed in the 4<43
programs+ are the shared memory+ the 843 memory+ the 4<43
memory and the roll area in the internal session.
>0- what is the use of .0' 499 &5#'I&8 in an internal tableO
/7)- 4:J45#41&. I. #%&'& 4'& ,0'& #%45 05& #4<9& 45: #%&'& &?I8# 4
'&94#I058%I3 <&#F&&5 #%&, <=# #%& .I&9: I5 F%I7% #%&
'&94#I05 I8 ,4:& I8 50# 4 3'I,4'; B&; I5 05& 0. #%& #4<9&
#%&5 F& =8&: .0' 499 &5#'I&8 .
I# '&:=7&8 '&:=457; 0. :4#4
'&70':8 8%0F8 7058I8#&57; .
I# <&##&' #0 =8&: .0' 499 &5#'I&8 I58#&: 0. 5&8#&: 8&9&7#.
:I84:J4#41&8.
I. 05& 0. #%& #4<9& I8 &,3#; 45: F& 4'& 433&5:I51 05& #4<9&
FI#% 0#%&' <; =8I51 .0' 499 &5#'I&8 #%&5 #%& '&70':8 #0 50#
J&'I.; I#8&9..
>0"- what are UoinsO %ow many types are thereO
/7)- I. F& F45# #0 1&# #%& :4#4 .'0, 80,& #4<9&8 F%I7% %48 80,&
'&94#I058 <&#F&&5 #%08& #%&5 F& =8& U0I58 #0 1&# #%& :4#4
<; =8I51 #%08& 3'I,4'; B&;8.
#%&'& 4'& 2 #;3&8 0. U0I58+ I55&' 45: 0=#&' U0I58.
I55&' I8 =8&: #0 1&# #%& :4#4 F%&'& #%& #4<9&8 4'& I5 84,&
:4#4<48& 45: 0=#&' U0I5 I. #%&; 4'& I5 0#%&'.
>0>- 45 I5#&'549 #4<9& I8 4 #4<9& F%I7% %48 4 8#'=7#='& 48 0. 4
:I7#I054'; #4<9& 0' 48 4 8#'=7#='& 0. 0=' 0F5 #;3&.
#%& ,4I5 :I..&'&57& I8 #%4# #%& I5#&'549 #4<9& I8 4
#&,30'4'; #4<9& I5 F%I7% #%& :4#4 70,&8 0=# 0. I# F%&5
#%&'& I8 4 %&4:&' 9I5& I. 50# F& %4J& #0 7'&4#& 4 .I&9:
8#'I51.
>0?- &$plain 8: and ,, .lowO
458.,, flow*
purchase 'eSuestion 6,&G1)
'eSuest for Nuatation 6,&41)
Nuatation from different endors 6,&4H)
price comparision 6,&4I)
purchase order send to endors 6,&22)
1+*
goods reciepts 6,I10)
logistic inoice erification 6,I'0)
>01- 3arameters used in .unctionsO
/7)- import+ e$port+ changing+ tables+ e$ception
>10- 7ommonly used tables in ,, and 8:O
/7)- 7ommonly used tables in ,,
,4'4+,4B#+,JB&
7ommonly used tables in 8:+
J<'B+J<'3+J<4B+J<34+J<43+9IB3+9I38
>11- 8ystem fields in Interactie reportsO
/7)- sy-cpage+sy-cucol+sy-curow+sy-lilli+sy-lisel+sy-listi+sy-
lsind+sy-pf!ey+sy-staro+sy-staco+sy-ucomm
>12- what is the difference between upload and F8-=ploadO
/7)- =pload is function used to write data from a file in the
presentation serer to internal table.here you get a dialog-
bo$ to enter the path of the file name.
Fs"upload also perfoms the same function + but without
screen. here you do not get a dialog-bo$+ rather you need
to type the path of the file name.
>13-- Fhat is ,acroO
/7)- macro is a set of predefined statement.
when this command is interpretted in the report+the
predefined set of statements will be substiuted and will be
e$eccuted .
>14- Fhat are the select-option fieldsO
/7)- 8elect-options can be used if you want to gie =pper limit
and 9ower limit alues for e$ample :ate range.
1.4lso if u want to @ust use it li!e range u can use 5o-
:isplay
2.If #o field is not reSuired u can use option 5o-
&$tension / 5o-interals.
3. but u canEt use radiobuttons / chec!bo$ with this option.
>1- %ow to insert data in ternal tableO
/7)- #here are 2 ways of populating an internal table
1. .rom :atabase #able
2. .rom For! 4rea of the same line type
1. 8&9&7# Afield 1-+ Afield 2-+ ... Afield n-
.'0, Adb table- I5#0 table Ainternal table-
F%&'& Acondition6s)-
2. I58&'# Awor!area- I5#0 Ainternal table- I5:&? Aposition-
to-insert-
1+,
0' you can use append to insert ... 433&5: Awor!area- #0 Ainternal table-
>1"-1ie the synta$ of Inner+outer UoinO2
/7)- inner @oin *
select 3]Afieldname- d]Afieldname- into corresponding
fields of table Ainternaltable- from 6 Atable- as p inner
@oin Atable- as d on A@oin condition- and Acond-.
outer @oin*
select 3]Afieldname- d]Afieldname- into corresponding
fields of table Ainternaltable- from 6 Atable- as p left
outer @oin Atable- as d on A@oin condition- and Acond-.
>1>- what are the 3erformance technic you usedO
/7)- 8#0G - 8N9 #'47&' FI99 #&899 =8 4<0=# #%& 8&9&7# N=&';.
89I5* &?#&5:&: 70:I51 7%&7B.
8&30* '=5#I&, 4549;8I8
>1?- what is 7ross 4pplicationsO
/7)- 499 #%& 49& 45: I:07 4'& B50F5 48 7'08 4339I74#I05.
I5#&'47#I05 FI#% 0=# F0'9: 0#%&' #%45 843 I8 B50F5 4 7'088
4339I74#I05.
'.7 &54<9&: .=57#I05 ,0:=9&.
<43I.
=8&'&?I#.
49&.
I:07.
>11- Fhat are the things you did in 49J grid displayO
/7)- goto 8&3>
1)create a internal table with the structure field"catalog
2)call the ., 'euse-al-grid-display
3)specify the import and e$port parameters in .,
4) &$ecute6.>)
>20- %ow do you generate interactie lists in 49JO
/7)- in ., reuse"al"grid"display
pass the alue to the foll. parameters+
callbac!"program K sy-repid.
callbac!"usercommand K interactielist.
then create a subroutine li!e
form interactielist using r"ucomm li!e sy-ucomm
using rfield li!e rs"selfield
set parameter id id1 field r"field.
.........
endform.
1++
>21- Fhat is field catalogO
/7)- .ield catalog comes in 49J. #hrough .ield catalog+ u can
tell 49J as to which fields hae to be displayed in the
list and at what position they hae to be....
>22- Fhat are the ., you used in 8ession methodO
/7)- bdc"open"group*
this function module is used to open the session.
parameters related to this function module are
client*sy-mandt
uname*sy-uname
holddate*sy-datum
group* Agroupname-
!eep* E?E / E E.
2)bdc"insert*this function module is used to insert the
alues to the session
parameters related to bdc"insert are
tcode* mention the transaction code
dynprotab* mention the internal table haing structure li!e

bdcdata.
3)bdc"close"group*
when eer u open the session it is must to close
the session
>23- Fe hae 100 records in table how to fetch 10 th recordO
/7)-u 745 8&9&7# =8I51 #%& 8&9&7# 8#4#&,&5# I58I:& #%& 9003
=I851 #%& I5:&?. 4980 I57&48& #%& I5:&? <; 05& 48 9003
I57'&48&8...
%0F&J&' I# I8 50# 4:JI8I<9& #0 F'I#& 8&9&7# I58I:& 9003 48
I# 4..&7#8 3&'.0',457&.
>24- %ow to create hashed tablesOand its purpose
/7)- %ashed #able*
;ou can imagine a hashed table as a set+ whose elements you
can address using their uniSue !ey. =nli!e standard and
sorted tables+ you cannot access hash tables using an inde$.
4ll entries in the table must hae a uniSue !ey.%ashed table
is useful when your hae to wor! with ery big internal
table and to read it with 2'&4: #4<9& FI#% B&; ...2 .
1+0
8ample code for %ashed table 7reation *
types*
begin of typ"pernr+
pernr li!e pa0001-pernr+
ename li!e pa0001-ename+
end of typ"pernr.
data*
ls"pernr type typ"pernr+
lt"pernr type hashed table of typ"pernr with uniSue !ey
pernr.
...
select pernr ename into table lt"pernr from pa0001.
...
loop at itab.
read table lt"pernr with table !ey pernr K itab-pernr
into ls"pernr.
write* ls"pernr-ename+ itab-data.
endloop.
>2- Fhat is the difference between data base ob@ects and runtime
ob@ectsO
/7)- :atabase ob@ects are permanently stored in the database and
e$ist een after the e$ecution of program. Fhereas+ run time
data ob@ects are the ariables+ tables+ constants that e$ist
only during the e$ecution of the program. #hey allocate
memory only for the run time. #he memory is released after that.
>2"- Is der any other way or tcode to process the session e$cept
8,3GO
/7)- call E<:7"8#4'#"1'0=3E id E1'0=3E field mtab-groupid
id EN=I:E field mtab-Sid
id E:I8394;E field amodus
id E901E field lmodus
id E&?3&'#E field d0300-e$pert
id E:;8IP&E field ldefsi)e
id E&''0'.0'7&&5:E field d0300-errfend
id E8I,=<4#7%E field opt"simubatch.
>2>- Faht is 2'&4: #4<9&2 commandOO Fhats the use of itOO
Fhats the synta$ of the sameO
/7)- <elow gien are 2 types of synta$es for '&4: statement
which are used in common.
1)'ead table itab into wa with !ey fname1 K fname2.
fname1 is the field defined in internal table EitabE
and wor! area EwaE.
fname2 is the field defined in the table corresponding to
which the read statement is used.
1+/
6or)
2)'ead table itab into wa with inde$ inde$"no.
V %ere itab and wa should hae the same structure.
>2?- Fhat is the purpose of bufferingO %ow many types of bufferingO
/7)- #able buffering is used to increase performance when reading data
from database table. :ata from a buffered table is read from a local
buffer on the application serer thus reducing database access.
#here are three different types of table buffering that can be used in
843*
.ull <uffering * 4ll 'ecords of the table are loaded into the buffer
when a record in the table is accessed.
1eneric <uffering* 4ll 'ecords with the same !ey fields are loaded
into the buffer when a record in the table is accessed.
8ingle 'ecord <uffering* #he specific record that was accessed is
loaded into the buffer.
>21-Fhat is :iff b/w <asic type and ,essage typeO
/7)- Idoc #ype 6 <asic #ype) defines the structure and format of
the data being e$changed.
,essage type represents a specific type of document
transimitted between two partners.
#o ma!e it clear...
7onsider an e$ample in which an I:oc type represents all
possible6all segments) information about employee. 0ne
message type is employee salary6some segements) and other
message type &mployee leaes information 6some segements).
#he difference between the message types is segments used..
>30- 7an search help be assigned to more than one tableO 7an
matchcodes be assigned to more than one tableO
/7)- 8earch help canEt be assigned to #able+ itEs to the field
of table of sel-screen.
#ypes of search help -
&lementary
7ollectie 6,ultiple &lemetary)
2H/7% *$+ J 45) 3(/' I2 2$ C5(/3
1+6
/6/4 I72(3FI(#


1+2

You might also like