Anda di halaman 1dari 19

1000 SAP ABAP Interview

Questions and Answers


SAP R/3 ARCHITECTURE
1. Wat !uarantees te inte!ration o" a## a$$#i%ation &odu#es'
The R/3 basis system guarantees the integration of all application modules. The R/3 basis s/w provides the run time environment for the R/3
applications ensures optimal integration, defines a stable architectural frame for system enhancements, and contains the administration tools
for the entire system.
One of the main tasks of the basis system is to guarantee the portability of the complete system.
(. Wat are te %entra# inter"a%es o" te R/3 s)ste&'
Presentation nterface.
!atabase nterface.
Operating system nterface.
3. Wi% inter"a%e %ontro#s wat is sown on te $.%.'
Presentation nterface.
*. Wi% inter"a%e %onverts SQ+ re,uire&ents in te SAP deve#o$&ent s)ste& to tose o" te data-ase'
!atabase nterface.
.. Wat is SAP dis$at%er'
"#P dispatcher is the control agent that manages the resources for the R/3 applications.
/. Wat are te "un%tions o" dis$at%er'
$%ual distribution of transaction load to the work processes.
&anagement of buffer areas in main memory.
ntegration of the presentation levels.
Organi'ation of communication activities.
0. Wat is a wor1 $ro%ess'
# work process is where individual dialog steps are actually processed and the work is done. $ach work process handles one type of re%uest.
2. 3a&e various wor1 $ro%esses o" R/3 s)ste&'
!ialog or Online (processes only one re%uest at a time).
*ackground ("tarted at a specific time)
+pdate (primary or secondary)
$n%ue (,ock mechanism).
"pool (generated online or during back ground processing for printing).
4. E5$#ain a-out te two servi%es tat are used to dea# wit %o&&uni%ation.
&essage "ervice- +sed by the application servers to e.change short internal messages, all system communications.
/ateway "ervice- $nables communication between R/3 and e.ternal applications using 0P10 protocol.
10. Wi% wor1 $ro%ess tri!!ers data-ase %an!es'
+pdate work process.
11. 6e"ine servi%e 7witin R/38'
# service is a process or group of processes that perform a specific system function and often provide an application1programming interface for
other processes to call.
1(. Wat are te ro## and $a!e areas'
Roll and page areas are "#P R/3 buffers used to store user conte.ts (process re%uests). The "#P dispatcher assigns process re%uests to work
processes as they are %ueued in the roll and page areas.
Paging area holds data from the application programs.
Roll area holds data from previous dialog steps and data that characteri'e the user.
13. Wat are te di""erent #a)ers in R/3 s)ste&'
Presentation ,ayer.
#pplication ,ayer.
!atabase ,ayer.
1*. Wat are te $ases o" -a%1!round $ro%essin!'
2ob "cheduling.
2ob Processing.
2ob Overview.
1.. Wat %o&$onents o" te R/e s)ste& initiate te start o" -a%1!round 9o-s at te s$e%i"ied ti&e'
The batch scheduler initiates the start of background 3ob. The dispatcher then sends this re%uest to an available background work process for
processing.
1/. 6e"ine Instan%e.
#n instance is an administrative unit in which components of an R/3 systems providing one or more services are grouped together. The
services offered by an instance are started and stopped at random. #ll components are parameteri'ed using a 3oint instance profile. # central
R/3 system consists of a single instance in which all1necessary "#P services are offered. $ach instance uses separate buffer areas.
10. :ro& ardware $ers$e%tive; ever) in"or&ation s)ste& %an -e divided into tree tas1 areas Presentation; A$$#i%ation +o!i% and
6ata Stora!e.
The R/3 *asis software is highly suitable for use in multi1level client/server architectures.
12. Wat are R/3 Basis %on"i!urations'
# central system with centrally installed presentation software.
Two1level client/server system with rolled out presentation software.
Two1level client/server system. Presentation and #pplication run on the same computer.
Three1level client/server system. Presentation, #pplication and database each run on separate computers.
14. Wat is a Servi%e in SAP ter&ino#o!)'
# service refers to something offered by a s/w component.
(0. Wat is Server in SAP ter&ino#o!)'
# component can consist of one process or a group and is then called the server for the respective service.
(1. Wat is a %#ient in SAP ter&ino#o!)'
# "/4 component that uses the service (offered by a s/w component) is called a 0lient. #t the same time these clients may also be servers for
other services.
((.Wat is a SAP s)ste&'
The union of all s/w components that are assigned to the same databases is called as a "#P system.
(3. Wat is te &eans o" %o&&uni%ations -etween R/3 and e5terna# a$$#i%ations'
The means of communication between R/5,R/3 and e.ternal applications is via the 0P10 handler or "#P /ateway, using the 0P10 Protocol.
(*. Wat is te $roto%o# used -) SAP <atewa) $ro%ess'
The "#P /ateway process communicates with the clients based on the T0P/P Protocol.
(.. E5$and CPI=C.
0ommon Program nterface 0ommunication.
(/. Wat is a S$oo# re,uest'
"pool re%uests are generated during dialog or background processing and placed in the spool database with information about the printer and
print format. The actual data is places in the Tem "e (Temporary "e%uential ob3ects).
(0. Wat are di""erent t)$es o" +o! re%ords'
67 and 65. 67 must be processed before 65. *ut, we can have more than one 65 logs.
(2. Wat are te t)$es o" U$date re,uests'
#n update re%uest can be divided into one primary (67) and several "econdary update components (65). Time1critical operations are placed in
67 component and those whose timing is less critical are placed in 65 components. f a 67 update fails, 65 components will not be processed.
(4. 6ia#o! wor1 $ro%esses $er"or& on#) one dia#o! ste$ and ten avai#a-#e "or te ne5t re,uest.
30. E5$#ain wat is a transa%tion in SAP ter&ino#o!).
n "#P terminology, a transaction is series of logically connected dialog steps.
31. E5$#ain ow SAP <UI and#es out$ut s%reen "or te user.
The "#P front1end s/w can either run on the same computer or on different computers provided for that purpose. +ser terminal input is
accepted by the "#P terminal program "#P /+, converted to "#P proprietary format and sent to the "#P dispatcher. The dispatcher
coordinates the information e.change between the "#P /+s and the work processes. The dispatcher first places the processing re%uest in
re%uest %ueues, which it then processes. The dispatcher dispatches the re%uests one after another, to the available work process. The actual
processing takes place in the work process. 4hen processing is complete, the result of a work process is returned via the dispatcher to the
"#P /+. The "#P /+ interprets the received data and generates the output screen for the user.
6ATA 6ICTI>3AR?
1. Wat are te #a)ers o" data des%ri$tion in R/3'
8 The e.ternal layer.
8 The #*#P/9 layer.
8 The database layer.
(. 6e"ine e5terna# #a)er'
The e.ternal layer is the plane at which the user sees and interacts with the data, that is, the data format in the user interface. This data format
is independent of the database system used.
3. 6e"ine ABAP/* #a)er'
The #*#P/9 layer describes the data formats used by the #*#P/9 processor.
*. 6e"ine 6ata-ase #a)er'
The database layer describes the data formats used in the database.
.. Wat is a 6ata C#ass'
The !ata class determines in which table space the table is stored when it is created in the database.
/. Wat is a Si@e Cate!or)'
The "i'e category describes the probable space re%uirement of the table in the database.
0. How &an) t)$es o" si@e %ate!ories and data %#asses are tere'
There are five si'e categories (:19) and 77 data classes only three of which are appropriate for application tables-
8 #PP,:1 &aster data (data fre%uently accessed but rarely updated).
8 #PP,71 Transaction data (data that is changed fre%uently).
8 #PP,51 Organi'ational data (customi'ing data that is entered when system is configured and then rarely changed).
The other two types are-
8 +"R
8 +"R7 ; ntended for customer<s own developments.
2. Wat are %ontro# ta-#es'
The values specified for the si'e category and data class are mapped to database1specific values via control tables.
4. Wat is te "un%tion o" te trans$ort s)ste& and wor1-en% or!ani@er'
The function of the transport system and the 4orkbench Organi'er is to manage any changes made to ob3ects of the #*#P/9 !evelopment
4orkbench and to transport these changes between different "#P systems.
10. Wat is a ta-#e $oo#'
# table pool (or pool) is used to combine several logical tables in the #*#P/9 !ictionary. The definition of a pool consists of at least two key
fields and a long argument field (6#R!#T#).
11. Wat are $oo#ed ta-#es'
These are logical tables, which must be assigned to a table pool when they are defined. Pooled tables can be used to store control data (such
as screen se%uences or program parameters).
1(. Wat is a ta-#e %#uster'
# table cluster combines several logical tables in the #*#P/9 !ictionary. "everal logical rows from different cluster tables are brought together
in a single physical record. The records from the cluster tables assigned to a cluster are thus stored in a single common table in the database.
13. How %an we a%%ess te %orre%tion and trans$ort s)ste&'
$ach time you create a new ob3ect or change an e.isting ob3ect in the #*#P/9 !ictionary, you branch automatically to the 4orkbenchOrgani'er
or correction and transport system.
1*. Wi% o-9e%ts are inde$endent trans$ort o-9e%ts'
!omains, !ata elements, Tables, Technical settings for tables, "econdary inde.es for transparent tables, "tructures, 6iews, &atchcode ob3ects,
&atchcode ds, ,ock ob3ects.
1.. How is %onversion o" data t)$es done -etween ABAP/* A 6B #a)er'
0onversion between #*#P/9 data types and the database layer is done within the database interface.
1/. How is %onversion o" data t)$es done -etween ABAP/* A e5terna# #eve#'
0onversion between the e.ternal layer and the #*#P/9 layer is done in the "#P dialog manager !=>P.
10. Wat are te 6ata t)$es o" te e5terna# #a)er'
#00P, 0har, 0,>T, 0+?=, 0+RR, !#T", !$"0, @,TP, >T7, >T5, >T9, ,#>/, ,0AR, ,R#4, >+&0, PR$0, B+#>, R#4, T&",
+>T,6#R0.
12. Wat are te 6ata t)$es o" te ABAP/* #a)er'
Possible #*#P/9 data types-
0- 0haracter.
!- !ate, format ====&&!!.
@- @loating1point number in !O+*,$ PR$0"O> (C bytes).
- nteger.
>- >umerical character string of arbitrary length.
P- #mount of counter field (packedD implementation depends on h/w platform).
"- Time "tamp ====&&!!AA&&"".
6- 0haracter string of variable length, length is given in the first two bytes.
E- Ae.adecimal (binary) storage.
14. How %an we set te ta-#e s$a%es and e5tent si@es'
=ou can specify the e.tent si'es and the table space (physical storage area in the database) in which a transparent table is to be stored by
setting the si'e category and data class.
(0. Wat is te "un%tion o" te %orre%tion s)ste&'
The correction system manages changes to internal system components. "uch as ob3ects of the #*#P/9 !ictionary.
(1. Wat are #o%a# o-9e%ts'
,ocal ob3ects (!ev classFT&P) are independent of correction and transport system.
((. Wat is a 6eve#o$&ent %#ass'
Related ob3ects from the #*#P/9 repository are assigned to the same development class. This enables you to correct and transport related
ob3ects as a unit.
(3. Wat is a data di%tionar)'
!ata !ictionary is a central source of data in a data management system. ts main function is to support the creation and management of data
definitions. t has details about
8 4hat data is containedG
8 4hat are the attributes of the dataG
8 4hat is the relationship e.isting between the various data elementsG
(*. Wat "un%tions does a data di%tionar) $er"or&'
n a data management system, the principal functions performed by the data dictionary are
8 &anagement of data definitions.
8 Provision of information for evaluation.
8 "upport for s/w development.
8 "upport form documentation.
8 $nsuring that the data definitions are fle.ible and up1to1date.
(.. Wat are te "eatures o" ABAP/* 6i%tionar)'
The most important features are-
8 ntegrated to a#*#P/9 !evelopment 4orkbench.
8 #ctive in the runtime environment.
(/. Wat are te uses o" te in"or&ation in te 6ata di%tionar)'
The following information is directly taken from the !ata dictionary-
8 nformation on fields displayed with @7 help.
8 Possible entries for fields displayed with @9 help.
8 &atchcode and help views search utilities.
(0. Wat are te -asi% o-9e%ts o" te data di%tionar)'
8 Tables
8 !omains
8 !ata elements
8 "tructures
8 @oreign ?eys
(2. Wat are te a!!re!ate o-9e%ts in te data di%tionar)'
8 6iews
8 &atch codes
8 ,ock ob3ects.
(4. In te ABAP/* 6i%tionar) Ta-#es %an -e de"ined inde$endent o" te under#)in! data-ase 7T/:8.
True.
30. ABAP/* 6i%tionar) %ontains te +o!i%a# de"inition o" te ta-#e.
31. A "ie#d %ontainin! %urren%) a&ounts 7data t)$e CURR8 &ust -e assi!ned to a re"eren%e ta-#e and a re"eren%e "ie#d. E5$#ain.
#s a reference table, a system containing all the valid currencies is assigned or any other table, which contains a field with the currency key
format. This field is called as reference field. The assignment of the field containing currency amounts to the reference field is made at runtime.
The value in the reference field determines the currency of the amount.
3(. A "ie#d %ontainin! ,uantit) a&ounts 7data t)$e QUA38 &ust -e assi!ned to a re"eren%e ta-#e and a re"eren%e "ie#d. E5$#ain'
#s a reference table, a system table containing all the valid %uantity units is assigned or any other table, which contains a field with the format
or %uantity units (data type +>T). This field is called as reference field.
The assignment of the field containing %uantity amounts to the reference field is made at runtime. The value in the reference field determines
the %uantity unit of the amount.
33. Wat is te si!ni"i%an%e o" Te%ni%a# settin!s 7s$e%i"ied wi#e %reatin! a ta-#e in te data di%tionar)8'
*y specifying technical settings we can control how database tables are created in the database. The technical settings allows us to
8 Optimi'e storage space re%uirements.
8 Table access behavior.
8 *uffering re%uired.
8 0hanges to entries logged.
3*. Wat is a Ta-#e attri-ute'
The table<s attributes determine who is responsible for maintaining a table and which types of access are allowed for the table. The most
important table attributes are-
8 !elivery class.
8 Table maintenance allowed.
8 #ctivation type.
3.. Wat is te si!ni"i%an%e o" 6e#iver) C#ass'
8 The delivery class controls the degree to which the "#P or the customer is responsible for table maintenance.
8 4hether "#P provides the table with or without contents.
8 !etermines the table type.
8 !etermines how the table behaves when it is first installed, at upgrade, when it is transported, and when a client copy is performed.
3/. Wat is te &a5. no. >" stru%tures tat %an -e in%#uded in a ta-#e or stru%ture.
>ine.
30. Wat are two &etods o" &odi")in! SAP standard ta-#es'
8 #ppend "tructures and
8 0ustomi'ing ncludes.
32. Wat is te di""eren%e -etween a Su-stru%ture and an A$$end Stru%ture'
8 n case of a substructure, the reference originates in the table itself, in the form of a statement includeH.
8 n case of an append structure, the table itself remains unchanged and the reference originates in the append structure.
34. To ow &an) ta-#es %an an a$$end stru%ture -e assi!ned.
One.
*0. I" a ta-#e tat is to -e e5tended %ontains a #on! "ie#d; we %annot use a$$end stru%tures w)'
,ong fields in a table must always be located in the end, as the last field of the table. f a table has an append structure the append line must
also be on the last field of the table.
*1. Can we in%#ude %usto&i@in! in%#ude or an a$$end stru%ture wit Poo#ed or C#uster ta-#es'
>o.
*(. Wat are te two wa)s "or restri%tin! te va#ue ran!e "or a do&ain'
8 *y specifying fi.ed values.
8 *y stipulating a value table.
*3. Stru%tures %an %ontain data on#) durin! te runti&e o" a $ro!ra& 7T/:8
True.
**. Wat are te a!!re!ate o-9e%ts in te 6i%tionar)'
8 6iews
8 &atch 0ode.
8 ,ock Ob3ect.
*.. Wat are -ase ta-#es o" an a!!re!ate o-9e%t'
The tables making up an aggregate ob3ect (primary and secondary) are called aggregate ob3ect.
*/. Te data o" a view is not $)si%a##) stored; -ut derived "ro& one or &ore ta-#es 7t/"8
True.
*0. Wat are te ( oter t)$es o" Biews; wi% are not a##owed in Re#ease 3.0'
8 "tructure 6iews.
8 $ntity 6iews.
*2. Wat is a Cat% Code'
&atch code is a tool to help us to search for data records in the system. &atch 0odes are an efficient and user1friendly search aid where key of
a record is unknown.
*4. Wat are te two #eve#s in de"inin! a Cat% Code'
8 &atch 0ode Ob3ect.
8 &atch 0ode d.
.0. Wat is te &a5 no o" &at% %ode IdDs tat %an -e de"ined "or one Cat% %ode o-9e%t'
# match code d is a one character ! that can be a letter or a number.
.1. Can we de"ine our own Cat% Code I6Ds "or SAP Cat%%odes'
=es, the number : to I are reserved for us to create our own &atch 0ode ds for a "#P defined &atchcode ob3ect.
.(. Wat is an U$date t)$e wit re"eren%e to a Cat% %ode I6'
f the data in one of the base tables of a matchcode ! changes, the matchcode data has to be updated. The update type stipulates when the
matchcode is to be updated and how it is to be done. The update type also specifies which method is to be used for *uilding matchcodes. =ou
must specify the update type when you define a matchcode !.
.3. Can &at%%ode o-9e%t %ontain Ids wit di""erent u$date t)$es'
=es.
.*. Wat are te u$date t)$es $ossi-#e'
The following update types are possible-
8 +pdate type #- The matchcode data is updated asynchronously to database changes.
8 +pdate type "- The matchcode data is updated synchronously to database changes.
8 +pdate type P- The matchcode data is updated by the application program.
8 +pdate type - #ccess to the matchcode data is managed using a database view.
8 +pdate type ,- #ccess to the matchcode is achieved by calling a function module.
... Wat are te two di""erent wa)s o" -ui#din! a &at% %ode o-9e%t'
# match code can be built in two different ways-
8 ,ogical structure- The matchcode data is set up temporarily at the moment when the match code is accessed. (+pdate type , k).
8 Physical "tructure- The match code data is physically stored in a separate table in the database. (+pdate type #, ", P).
./. Wat are te di""eren%es -etween a 6ata-ase inde5 and a &at% %ode'
8 &atch code can contain fields from several tables whereas an inde. can contain fields from only one table.
8 &atch code ob3ects can be built on transparent tables and pooled and cluster tables.
.0. Wat is te "un%tion o" a 6o&ain'
8 # domain describes the technical settings of a table field.
8 # domain defines a value range, which sets the permissible data values for the fields, which refers to this domain.
8 # single domain can be used as basis for any number of fields that are identical in structure.
.2. Can )ou de#ete a do&ain; wi% is -ein! used -) data e#e&ents'
>o.
.4. Wat are %onversion routines'
8 >on1standard conversions from display format to sap internal format and vice1versa are implemented with so called conversion routines.
/0. Wat is te "un%tion o" a data e#e&ent'
# data element describes the role played by a domain in a technical conte.t. # data element contains semantic information.
/1. Can a do&ain; assi!ned to a data e#e&ent -e %an!ed'
=es. 4e can do so by 3ust overwriting the entry in the field domain.
/(. Can )ou de#ete data e#e&ent; wi% is -ein! used -) ta-#e "ie#ds.
>o.
/3. Can )ou de"ine a "ie#d witout a data e#e&ent'
=es. f you want to specify no data element and therefore no domain for a field, you can enter data type and field length and a short te.t directly
in the table maintenance.
/*. Wat are nu## va#ues'
f the value of a field in a table is undefined or unknown, it is called a null value.
/.. Wat is te di""eren%e -etween a stru%ture and a ta-#e'
"tructures are constructed the almost the same way as tables, the only difference using that no database table is generated from them.
//. Wat is a view'
# view is a logical view on one or more tables. # view on one or more tables i.e., the data from a view is not actually physically stored instead
being derived from one or more tables.
/0. How &an) t)$es o" Biews are tere'
8 !atabase 6iew
8 Aelp 6iew
8 Pro3ection 6iew
8 &aintenance 6iew
/2. Wat is +o%1in!'
4hen two users simultaneously attempt to access the same data record, this is synchroni'ed by a lock mechanism.
/4. Wat is data-ase uti#it)'
!atabase utility is the interface between the #*#P/9 !ictionary and the underlying the "#P system.
00. Wat are te -asi% "un%tions o" 6ata-ase uti#it)'
The basic functions of database utility are-
8 0reate database ob3ects.
8 !elete database ob3ects.
8 #d3ust database ob3ects to changed #*#P/9 dictionary definition.
01. Wat is Re$ositor) In"o. S)ste&s'
t is a tool with which you can make data stored in the #*#P/9 !ictionary available.
C>6U+ARIEATI>3
1. 6oes ever) ABAP/* ave a &odu#ar stru%ture'
=es.
(. Wat is Codu#ari@ation and its -ene"its'
f the program contains the same or similar blocks of statements or it is re%uired to process the same function several times, we can avoid
redundancy by using modulari'ation techni%ues. *y modulari'ing the #*#P/9 programs we make them easy to read and improve their
structure. &odulari'ed programs are also easier to maintain and to update.
3. 3a&e te ABAP/* Codu#ari@ation te%ni,ues.
8 "ource code module.
8 "ubroutines.
8 @unctions.
*. How %an we %reate %a##a-#e &odu#es o" $ro!ra& %ode witin one ABAP/* $ro!ra&'
8 *y defining &acros.
8 *y creating include programs in the library.
.. C is te attri-ute t)$e o" te &odu#e $ro!ra&.
/. Is it $ossi-#e to $ass data to and "ro& in%#ude $ro!ra&s e5$#i%it#)'
>o. f it is re%uired to pass data to and from modules it is re%uired to use subroutines or function modules.
0. Wat are su-routines'
"ubroutines are program modules, which can be called from other #*#P/9 programs or within the same program.
2. Wat are te t)$es o" Su-routines'
8 nternal "ubroutines- The source code of the internal subroutines will be in the same #*#P/9 program as the calling procedure (internal call).
8 $.ternal "ubroutines- The source code of the e.ternal subroutines will be in an #*#P/9 program other than the calling procedure.
4. It is not $ossi-#e to %reate an ABAP/* $ro!ra&; wi% %ontains on#) Su-routines 7T/:8.
@alse.
10. A su-routine %an %ontain nested "or& and end"or& -#o%1s. 7T/:8
@alse.
11. 6ata %an -e $assed -etween %a##in! $ro!ra&s and te su-routines usin! Para&eters.
1(. Wat are te di""erent t)$es o" $ara&eters'
@ormal Parameters- Parameters, which are defined during the definition of subroutine with the @OR& statement.
#ctual Parameters- Parameters which are specified during the call of a subroutine with the P$R@OR& statement.
13. How %an one distin!uis -etween di""erent 1inds o" $ara&eters'
8 nput parameters are used to pass data to subroutines.
8 Output parameters are used to pass data from subroutines.
1*. Wat are te di""erent &etods o" $assin! data'
8 0alling by reference- !uring a subroutine call, only the address of the actual parameter is transferred to the formal parameters. The formal
parameter has no memory of its own, and we work with the field of the calling program within the subroutine. f we change the formal
parameter, the field contents in the calling program also changes.
8 0alling by value- !uring a subroutine call, the formal parameters are created as copies of the actual parameters. The formal parameters have
memory of their own. 0hanges to the formal parameters have no effect on the actual parameters.
8 0alling by value and result- !uring a subroutine call, the formal parameters are created as copies of the actual parameters. The formal
parameters have their own memory space. 0hanges to the formal parameters are copied to the actual parameters at the end of the subroutine.
1.. Te &etod -) wi% interna# ta-#es are $assed is B) Re"eren%e.
1/. How %an an interna# ta-#e wit Header #ine and one witout eader #ine -e distin!uised wen $assed to a su-routine'
tabJK is used in the form and endform if the internal table is passed with a header line.
10. Wat sou#d -e de%#ared e5$#i%it#) in te %orres$ondin! ABAP/* State&ents to a%%ess interna# ta-#es witout eader #ines A w)'
4ork #rea. This is re%uired as the 4ork #rea is the interface for transferring data to and from the table.
12. A su-routine %an -e ter&inated un%onditiona##) usin! EFIT. 7T/:8
True.
14. A su-routine %an -e ter&inated u$on a %ondition usin! CHECG State&ent.
(0. :un%tion Codu#es are a#so e5terna# Su-routines. 7T/:8.
True.
(1. Wat is te di""eren%e -etween te "un%tion &odu#e and a nor&a# ABAP/* su-routine'
n contrast to normal subroutines function modules have uni%uely defined interface. !eclaring data as common parts is not
possible for function modules. @unction modules are stored in a central library.
((. Wat is a "un%tion !rou$'
# function group is a collection of logically related modules that share global data with each other. #ll the modules in the
group are included in the same main program. 4hen an #*#P/9 program contains a 0#,, @+>0TO> statement, the
system loads the entire function group in with the program code at runtime. $very function module belongs to a function
group.
(3. Wat is te disadvanta!e o" a %a## -) re"eren%e'
!uring a call by reference damage or loss of data is not restricted to the subroutine, but will instantly lead to changes to the
original data ob3ects.
(*. A "un%tion &odu#e %an -e %a##ed "ro& a transa%tion s%reen outside an ABAP/* $ro!ra&. 7T/:8.
True.
(.. Wat is an u$date tas1'
t is an "#P provided procedure for updating a database.
(/. Wat a$$ens i" a "un%tion &odu#e runs in an u$date tas1'
The system performs the module processing asynchronously. nstead of carrying out the call immediately, the system waits
until the ne.t database update is triggered with the <0O&&T 4OR?< command.
(0. Te "un%tion &odu#es are %reated and stored in te :un%tion +i-rar).
(2. Wen a "un%tion &odu#e is a%tivated s)nta5 %e%1in! is $er"or&ed auto&ati%a##). 7?/38
True.
(4. Wat is te use o" te RAISI3< e5%e$tion'
The raising e.ception determines whether the calling program will handle the e.ception itself or leave the e.ception to the
system.
30. Wat is te di""eren%e -etween interna# ta-#es and e5tra%t datasets'
8 The lines of an internal table always have the same structure. *y using e.tract datasets, you can handle groups of data with
different structure and get statistical figures from the grouped data.
8 =ou have to define the structure of the internal table at the beginning. =ou need not define the structure of the e.tract
dataset.
8 n contrast to internal tables, the system partly compresses e.act datasets when storing them. This reduces the storage
space re%uired.
8 nternal tables re%uire special work area for interface whereas e.tract datasets do not need a special work area for
interface.
31. It is $ossi-#e to assi!n a #o%a# data o-9e%t de"ined in a su-routine or "un%tion &odu#e to a "ie#d !rou$. 7T/:8.
@alse.
3(. Wat is te di""eren%e -etween "ie#d=!rou$ eader and oter "ie#d !rou$s'
The header field group is a special field group for the sort criteria. The system automatically prefi.es any other field groups
with the header field group.
33. Can a "i#ed o%%ur in severa# "ie#d !rou$s.
=es. *ut it leads to unnecessary data redundancy.
3*. Wen sortin! te e5tra%t dataset te "ie#ds used as de"au#t sort 1e) #ie in te Header "ie#d !rou$.
3.. Wat does te insert state&ent in e5tra%t datasets do'
t defines the fields of a field group.
3/. Wat does te e5tra%t state&ent do in e5tra%t datasets'
The data is written to virtual memory by e.tract commands.
30. A "ie#d=!rou$s state&ent or an insert state&ent reverses stora!e s$a%e and trans"ers va#ues. 7T/:8.
@alse.
32. Wi#e usin! e5tra%t datasets it is re,uired to ave a s$e%ia# wor1area "or inter"a%e 7T/:8
@alse.
34. Te +>>P=E36+>>P on e5tra%t datasets %an -e used witout an) 1ind o" errors 7T/:8
@alse. t causes runtime errors.
*0. Te Ca5i&u& no o" 1e) "ie#ds tat %an -e used in a eader is .0.
*1. Wi#e sortin! "ie#d !rou$s we %annot use &ore tan one 1e) "ie#d 7T/:8.
@alse.
*(. Wi#e sortin!; i" te &ain stora!e avai#a-#e is not enou!; te s)ste& writes data to an e5terna# e#$ "i#e.
The "#P profile parameter, which determines this help file, is !RL"ORTT&P.
*3. Te e5tra%t state&ents in "ie#d !rou$s %an -e used -e"ore or a"ter $ro%essin! te sort state&ents. 7T/:8
@#,"$.
+><ICA+ 6ATABASE
1. Pre$aration o" te data re%ords -) te +.6.B and readin! o" te data re%ords in te a%tua# re$ort are a%%o&$#ised
wit te %o&&and $air Put and <et.
(. Te tree &ain e#e&ents o" +6B are Stru%ture; Se#e%tions; and 6ata-ase Pro!ra&.
3. In +6B wat deter&ines ierar%) o" te ta-#es'
"tructure.
*. In !enera# wat are te two wa)s in wi% one %an retrieve data "ro& ta-#es'
+sing "elect statements, !atabase Program.
.. Wit +6B one %an &odi") te $re=!enerated se#e%tion s%reen to teir needs 7T/:8.
=es.
/. +o!i%a# data-ases are $ro!ra&s tat read data "ro& 6ata-ase ta-#es 76i%tionar) Stru%tures8.
0. Te event <et +ATE $ro%ess a## ta-#es tat are ierar%i%a##) su$erior to te
. 7True/:a#se8
:a#se. It $ro%esses a## ta-#es tat are ierar%i%a##) in"erior to te
.
2. Te 6ata-ase Pro!ra& o" +6B is a %o##e%tion o" SUBR>UTI3ES; wi% se#e%ts data and $asses it to te re$ort.
4. Te #a)out o" te 6ata-ase $ro!ra& is deter&ined -) -ot Stru%ture and Se#e%tions.
10. Te order in wi% data is &ade avai#a-#e to te re$ort de$ends on Stru%ture o" te +6B.
11. A$art "ro& te stru%ture and se#e%tions o" te +6B te <ET state&ents in te re$ort deter&ines te -eavior o"
te data-ase at runti&e.
1(. 3ode at te i!est #eve# in te stru%ture is 1nown as Root.
13. Tere %an -e &ore tan one node at te i!est #eve# in te stru%ture. 7T/:8
:a#se. >ne %an de"ine on#) one node at te i!est #eve# in te stru%ture on +6B.
1*. A## nodes in te stru%ture o" +6B need not -e de"ined in te ABAP/* 6i%tionar) 7T/:8.
:a#se. >ne as to de"ine a## nodes in te 6i%tionar) or one as to se#e%t a## nodes tat are de"ined in te 6i%tionar).
1.. It is not $ossi-#e to use ABAP/* 6i%tionar) Stru%tures witout an under#)in! data-ase usin! +6B. 7T/:8
True. >ne %an use additiona##) re#ated ta-#es; a#on! wit te ta-#es de"ined in te stru%ture o" +6B.
1/. 6)na&i% se#e%tions a##ow te user to de"ine "urter se#e%tions "or data-ase a%%ess in addition to te se#e%tion
%riteria a#read) de"ined in te +6B se#e%tions.
10. Ce%1 state&ent %an -e used a#on! wit te event <ET in te re$ort "or %e%1in! te se#e%tions; wi% are not
ta-#e=s$e%i"i% va#ues.
12. In sense o" 6ata-ase Cana!e&ent S)ste& 76BCS8 +><ICA+ 6ATABASE is a data-ase Stru%ture. 7T/:8.
:a#se.
14. It is not ne%essar) to &aintain te Parent=Ci#d re#ationsi$ -etween te ta-#es in +o!i%a# 6ata-ase Stru%ture.
7T/:8
:a#se. >ne as to &aintain te Parent=Ci#d re#ationsi$.
(0. Is it $ossi-#e to e5tra%t data "ro& ta-#es witout usin! te event D<ETD in te re$ort wit an a$$ro$riate +6B.
7T/:8.
:a#se. >ne %an e5tra%t data "ro& ta-#es usin! Se#e%t state&ents in a re$ort; tou! te re$ort is avin! a +6B
attri-ute.
(1. Wat sorts o" ta-#es one %an se in desi!nin! te ierar%) o" a +6B'
Ta-#es; wi% are avin! :orei!n Ge) re#ations.
((. A re$ort $ro!ra&; wi% uses on#) SE+ECT state&ents; is %a##ed SQ+ Re$ort.
(3. >ne %annot use SE+ECT state&ents in a re$ort $ro!ra& #in1ed to a +o!i%a# 6ata-ase 7T/:8.
:a#se.
(*. Is it true tat te +o!i%a# 6ata-ase reads te data "ro& te data-ase ta-#es usin! Se#e%t State&ents 7T/:8.
?es. We are %odin! tat in 6ata-ase $art o" +6B.
(.. In a re$ort wit an +6B attri-ute; )ou do not ave to de"ine ow te in"or&ation sou#d -e retrieved "ro& te
data-ase ta-#es; -ut on#) ow te data sou#d -e re$resented on te s%reen. 7T/:8.
True.
(/. >ne %an use te event <ET in a re$ort witout +6B attri-ute. 7T/:8.
:a#se.
(0. Te #ast %ara%ter o" te +6B na&e denotes A$$#i%ation.
(2. Te stru%ture o" +o!i%a# 6ata-ases re"#e%ts te :orei!n Ge) de$enden%ies o" ierar%i%a# ta-#es in te SAP
s)ste&.
(4. It is &andator) tat "or ea% ta-#e in te +6B ierar%) tere sou#d e5ist one <ET state&ent in te re$ort. 7T/:8.
:a#se. It is not ne%essar).
30. Wat a$$ens i" a re$ort does not %ontain a <ET state&ent "or a $arti%u#ar node o" a +o!i%a# 6ata-ase.
Pro%ess wi## trans"er to te ne5t event.
31. In a +o!i%a# 6ata-ase; one %an de"ine in$ut "ie#ds on te se#e%tion s%reen wit Se#e%t=>$tions and Para&eters
state&ents.
3(. Su$$ose a #o!i%a# data-ase $ro!ra& %ontains te "o##owin! #inesH
SE+ECT=>PTI>3S C>33I6 :>R SP:+I=C>33I6.
PARACETERS CARRI6 +IGE S:+I<HT=CARRI6 :>R TAB+E S:+I<HT.
Wat wi## -e te out$ut; "or te a-ove two state&ents'
>n#) se#e%t=o$tions %onnid "or s$"#i=%arrid wi## -e dis$#a)ed on te s%reen.
33. Consider a re$ort wit :1S attri-ute; wat wi## -e te out$ut "or te "o##owin! %ode.
Weter )ou wi## !et te data "ro& s$"#i and s"#i!t or not; wit %orres$ondin! ta-#es state&ent;
<ET SP:+I.
<ET S:+I<HT.
WriteH/ s$"#i=%arrid; s$"#i=%onnid; s"#i!t="#date; s-oo1=-oo1id.
?es; )ou wi## !et te data "ro& s$"#i and s"#i!t.
3*. Consider a re$ort wit :1S attri-ute; wat wi## -e te out$ut o" te "o##owin! %ode.
Weter )ou wi## !et te data "ro& s-oo1 or not; wit %orres$ondin! ta-#es state&ent.
<ET SP:+I.
<ET S:+I<HT.
WriteH/ s$"#i=%arrid; s$"#i=%onnid; s"#i!t="#date; s-oo1=-oo1id.
?ou %annot e5tra%t data "ro& s-oo1.
3.. Identi") an) errors in te "o##owin! %ode and %orre%t te sa&e; and wat wi## -e te out$ut.
I" tere e5ists %orres$ondin! ta-#es state&ent; "or s$"#i; s"#i!t; s-oo1.
<ET SP:+I.
<ET SB>>G.
WriteH/ s$"#i=%arrid; s$"#i=%onnid; s"#i!t="#date; s-oo1=-oo1id; s-oo1=%#ass.
3o s)nta5 errors. ?ou wi## !et data "ro& a## te tree ta-#es.
3/. 6oes te "o##owin! two state&ents do te sa&e tas1'
I" so wi% one ta1es #ess ti&e and wi% one is re%o&&ended.
Se#e%t I "ro& s$"#i were s$"#i=%arrid J D+HD and s$"#i=%onnid J D*00D.
Endse#e%t.
Se#e%t I "ro& s$"#i. Ce%1H s$"#i=%arrid J D+HD and s$"#id=%onnid J D*00D.
Endse#e%t.
=?es te) wi## do te sa&e tas1. Se%ond Se#e%t state&ent ta1es #ess ti&e and is re%o&&ended.
30. I" )ou want to i&$rove te res$onse ti&e 7ti&e to a%%ess data8 +o!i%a# 6ata-ases $er&its )ou to a%ieve tis
usin! BIEWS.
32. Is tere an) u$$er #i&it 7&a58 to te $ossi-#e nu&-er o" nodes in a #o!i%a# data-ase stru%ture' I" so wat is te
#i&it'
?es; tere is an u$$er #i&it "or de"inin! nu&-er o" nodes in a +o!i%a# 6ata-ase Stru%ture.
Ca5i&u& nodes J 1(00 / #en!t were #en!t J &a5. +en!t o" na&e in te stru%ture.
34. In te stru%ture o" +o!i%a# 6ata-ase nodes at di""erent #eve#s are dis$#a)ed in te sa&e %o#u&ns. 7T/:8
I" "a#se wat t)$es o" nodes are dis$#a)ed in te sa&e %o#u&ns. I" true wat t)$e o" nodes are not dis$#a)ed in te
sa&e %o#u&ns.
:a#se. 3odes at sa&e #eve#s are dis$#a)ed in te sa&e %o#u&ns.
*0. Wat are te advanta!es o" +o!i%a# 6ata-ases'
It o""ers an eas)=to=use se#e%tion s%reens. ?ou %an &odi") te $re=!enerated se#e%tion s%reen to )our needs. It
o""ers %e%1 "un%tions to %e%1 weter user in$ut is %o&$#ete; %orre%t; and $#ausi-#e. It o""ers reasona-#e data
se#e%tions. It %ontains %entra# autori@ation %e%1s "or data -ase a%%esses. Enan%e&ents su% as i&$roved
$er"or&an%e i&&ediate#) a$$#) to a## re$ort $ro!ra&s tat use te #o!i%a# data-ase.
*1. Tou! a## te ABAP/* 6i%tionar) Stru%tures tat e5ists in te stru%ture o" te +6B; -ein! de"ined in 6ata-ase
Pro!ra&; we are de"inin! te 6i%tionar) Stru%tures in te Re$ort. Wat is te reason "or su% de%#aration'
B) de%#arin! so we are $rovidin! wor1 areas "or data $assin! -etween +o!i%a# 6ata-ase and Re$ort. In addition; te
#o!i%a# data-ase %on"i!ures te se#e%tion s%reen de$endin! on te se#e%tion o" data-ase ta-#es.
*(. Is it &andator) to de%#are a## te ta-#es in Re$ort -) te 1e) word ta-#es "or a## te ta-#es tat e5ist in te
stru%ture o" +6B; and are -ein! de"ined in te 6ata-ase $art o" +6B.
3o; It is not &andator) to de%#are a## ta-#es in re$ort.
*3. I" one wants to a%%ess data usin! +o!i%a# 6ata-ase; te use o" events is unavoida-#e. 7T/:8.
True.
REP>RT <E3ERATI>3 K :>RCATTI3<
1. Te a#i!n&ent o" a t)$e D%D "ie#d in a re$ort is #e"t A#i!ned.
(. In te state&ent WriteH/1.7108 >"a#=#i"nr. wat do te nu&-er 1. and 10 stand "or1. stand "or te o""set on te
s%reen and 10 stands "or te "ie#d #en!t dis$#a)ed.
3. S$e%i") te de"au#t a#i!n&ent "or te "o##owin! "ie#d t)$esH
D6D K +e"t; D:D=Ri!t; D3D=+e"t; DID=Ri!t; DTD=+e"t.
*. I" sLti&e as te va#ue D1(3*./D ow wou#d )ou !et an out$ut o" 1(H3*H./ wit a sin!#e DWriteHD state&ent.
WriteHsLti&e usin! edit &as1D==H==H==D.
.. In order to su$$ress te #eadin! @eroes o" a nu&-er "ie#d te 1e)words used are 3>=EER>.
/. Te tota# no o" date "or&ats tat %an -e used to dis$#a) a date durin! out$ut is CC/66/??; 66/CC/??;
66/CC/????; CC/66/????; CC66??; 66CC??; ??CC66.
0. Te U36ER Co&&and a##ows "or verti%a# a#i!n&ent o" "ie#ds one -e#ow te oter.
2. In order to %on%atenate strin!s on#) "or out$ut $ur$oses te %o&&and 3>=<AP %an -e used in %on9un%tion wit
te DWriteD state&ent.
4. Te no o" de%i&a# $#a%es "or out$ut %an -e de"ines witin a write state&ent. 7T/:8.
TRUE. WriteH/ de%i&a#s (.
10. 6ata %an -e &oved "ro& one "ie#d to anoter usin! a DWriteHD State&ent and stored in te desired "or&at. 7T/:8.
TRUE. WriteH 6ateL1 to 6ateL( "or&at 66/CC/??.
11. In te state&ent WriteH/1.7108 #"a1=#i"nr. Te va#ues 1. and 11 %an a#so -e de"ined -) varia-#es 7T/:8.
:a#se.
1(. 6i""erentiate -etween te "o##owin! two state&ents i" an).
U+I3E.
WriteH s)=u#ine.
3o=di""eren%e. E5%e$t tat u#ine is used outside te DWriteD State&ent.
13. In order to s1i$ a sin!#e #ine te nu&-er o" #ines need not -e !iven as an assi!n&ent 7T/:8
TRUE.
1*. Te MSGIP T> +I3E #ine nu&-erM is de$endent on te +I3E=C>U3T state&ent in%#uded in te re$ort state&ent o"
te $ro!ra&.
1.. In order to s1i$ %o#u&ns te %o&&and used is P>SITI>3 .
1/. In order to ave -o#d"a%ed te5t as out$ut te %o&&and used is WriteHI3TE3SI:IE6.
10. Ba%1!round and "ore!round %o#ors %an -e inter%an!ed usin! te %o&&and :or&at Inverse.
12. In order to restore te s)ste& de"au#ts "or a## %an!es &ade wit te "or&at state&ent is :or&at Reset.
14. +i1e U+I3E te state&ent B+I3E is used to insert verti%a# #ines. 7T/:8.
:a#se.
(0. Su$$ressin! te nu&-er si!ns 7N/=8 is %arried out usin! te addition 3>=SI<3S to te Write state&ent. 7T/:8.
:a#se.
(1. I" S?=UEEIT as te va#ue /H3*H*. it %an -e dis$#a)ed as 0/3**. usin! 3o Edit Cas1.
((. I" te varia-#e MTe5tM as te va#ue DABC6E:D te out$ut "or te state&ent MWriteH/Te5tN(738M wi## -e MC6EM
(3. Te "ie#ds s$e%i"ied -) se#e%t=o$tions and $ara&eters state&ent %annot -e !rou$ed to!eter in te se#e%tion
s%reen. 7T/:8.
:a#se.
(*. Wen %a##in! an e5terna# re$ort te $ara&eters or se#e%t=o$tions s$e%i"ied in te e5terna# re$ort %annot -e
%a##ed. 7T/:8
:A+SE.
(.. Se#e%tion Te5ts in te te5t e#e&ents o" te $ro!ra& e#$s in %an!in! te dis$#a)ed na&es o" varia-#es in te
$ara&eters state&ent.
(/. T)$e : datat)$e %annot -e used to de"ine $ara&eters.
(0. Roundin! o"" o" va#ues %an -e %arried out usin! te write state&ent. 7T/:8.
TRUE
(2. How wou#d )ou de"ine te e5$onents "or a t)$e D"D "ie#d'
E5$onent .
(4. How wou#d )ou "or&at te out$ut as #e"t; %entered or ri!t=9usti"ied usin! te write state&ent.
+e"t=9usti"ied; Centered; Ri!t=9usti"ied.
30. I" te sa&e "or&attin! o$tions were used "or a WRITE state&ent tat "o##ows te :>RCAT state&ent; wi%
settin!s wou#d ta1e $re%eden%e.
Te settin!s in te Write State&ent.
31. :or ea% new event; te s)ste& resets a## "or&attin! o$tions to teir de"au#t va#ues 7T/:8
TRUE.
3(. A## "or&attin! o$tions ave te de"au#t va#ue >::. 7T/:8.
TRUE.
33. How wou#d )ou set te "or&attin! o$tions stati%a##) and d)na&i%a##) witin a re$ort' Stati%a##)H :>RCAT O>3P
>::QR.
6)na&i%a##)H :>RCAT J JR.
3*. Te $a!e "ooter is de"ined usin! te state&ent E36=>:=PA<E.
3.. Te $ro%essin! -#o%1 "o##owin! E36=>:=PA<E is $ro%essed on#) i" )ou reserve #ines "or te "ooter in te +I3E=
C>U3T o$tion o" te REP>RT state&ent. 7T/:8
TRUE.
3/. To e5e%ute a $a!e -rea1 under te %ondition tat #ess tan a %ertain nu&-er o" #ines is #e"t on a $a!e is a%ieved
-) RESERBE n #ines.
30. Te RESERBE state&ent on#) ta1es e""e%t i" out$ut is written to te su-se,uent $a!e. 3o -#an1 $a!es are
%reated and it de"ines a -#o%1 o" #ines tat &ust -e out$ut as a wo#e. 7T/:8.
TRUE.
32. To set te ne5t out$ut #ine to te "irst #ine o" a -#o%1 o" #ines de"ined wit te RESERBE state&ent te state&ent
BACG is used.
34. Wat is te #i&it "or te #en!t o" a $a!e i" te $a!e #en!t is not s$e%i"ied in te re$ort state&ent.
/0;000 #ines.
*0. How wou#d )ou start te $rintin! $ro%ess "ro& witin te $ro!ra& wi#e %reatin! a #ist'
3EW=PA<E PRI3T >3.
*1. ?ou %an %an!e te widt o" $a!es witin #ist #eve#s tri!!ered -) $a!e -rea1s. 7T/:8.
:A+SE.
*(. Hots$ots are s$e%ia# areas o" an out$ut #ist used to tri!!er events. 7T/:8.
TRUE.
*3. To desi!nate "ie#ds as ots$ots at runti&e; use :>RCAT H>TSP>T J .
**. Hori@onta# #ines %reated wit U+I3E and -#an1 #ines %reated wit SGIP %an -e "or&atted as ots$ots. 7T/:8.
:A+SE.
*.. How wou#d )ou su$$ress te dis$#a) o" a $ara&eter on te se#e%tion s%reen'
Para&eters
RRR..3o=6is$#a).
*/. Can )ou assi!n a &at%%ode o-9e%t to a $ara&eter' I" so ow'
?es. PARACETERS
RR..CATCHC>6E >BSECT RR..
*0. :or ea% SE+ECT=>PTI>3S state&ent; te s)ste& %reates a se#e%tion ta-#e. 7T/:8
TRUE.
*2. To $osition a set o" $ara&eters or %o&&ents on a sin!#e #ine on te se#e%tion s%reen; )ou &ust de%#are te
e#e&ents in a -#o%1 en%#osed -)
SE+ECTI>3=SCREE3 BE<I3 >: +I3E.
RR..
SE+ECTI>3=SCREE3 E36 >: +I3E.
*4. How %an S)&-o#s or R/3 i%ons -e out$ut on te s%reen'
WRITE AS S?CB>+.
WRITE AS IC>3.
.0. In te standard settin!; )ou %annot %reate e&$t) #ines wit te WRITE state&ent a#one. 7T/:8.
TRUE.
REP>RTI3< K <E3ERA+
1. Te s)ste& "ie#d; wi% indi%ates su%%ess or "ai#ure o" a SQ+ o$eration; is S?=SUBRC.
(. Wat is te s)nta5 "or s$e%i")in! data-ase ta-#e na&e at runti&e in SE+ECT state&ent.
3ACE J DSP:+1D.
SE+ECT I :R>C 73ACE8.
RRRRRR.
RRRRRR.
E36SE+ECT.
3. How do )ou read se#e%ted #ines o" data-ase ta-#e into an interna# ta-#e in $a%1a!es o" $rede"ined si@e.
SE+ECT I :R>C I3T> TAB+E PACGA<E SIEE.
Were n is varia-#e.
*. 3a&e te WI+6CAR6 %ara%ters wi% are used "or %o&$arisons wit %ara%ter strin!s A nu&eri% strin!s. DTD
and D=D.
.. In SE+ECT state&ents %an )ou s$e%i") a varia-#e in WHERE %ondition or a $art o" te %ondition; i" so wat is te
s)nta5.
SE+ECT I :R>C
WHERE .
6. Name the ABAP/4 key words, which are used to change the contents of database table.
UPA!" or #$%&'.
(. )ow to s*ecify a client for database table *rocessing.
!AB+", ,P&+%.
,"+"-! . &/$# ,P&+% -+%"N! ,P"-%&%" 0)"/" #AN! B"!0""N 12231 AN 12241.
55..
"N,"+"-!.
6. )ow do you write a A!A ob7ect from ABAP/4 *rogram to ABAP/4 memory and restore the same from memory to
*rogram.
"8P$/! 9&/$# :9&/$# :5. !$ #"#$/' % .
!he % , which can be u* to 4; characters long, identifies the data in memory.
<. 0hat are A!A -+U,!"/,=
'ou can grou* any com*le> internal data ob7ects of an ABAP/4 *rogram together in data clusters and store them
tem*orarily in ABAP/4 memory or for longer *eriods in databases. 'ou can store data clusters in s*ecial databases
of the ABAP/4 ictionary. !hese databases are known as ABAP/4 cluster databases and ha?e a *redefined
structure. ,toring a data cluster is s*ecific to ABAP/4. Although you can also access cluster databases using ,@+
statements, only ABAP/4 statements are able to decode the structure of the stored data cluster.
32. ,tatements used to delete data ob7ects in ABAP/4 memory &/"" #"#$/' 9% :.
33. )ow will you create a file on a**lication ser?er.
$*en dataset for out*ut.
3;. ABAP/4 statement for o*ening a file on a**lication ser?er for reading $*en dataset for in*ut.
34. )ow will you transfer data into a file in a**lication ser?er=
ata fnameA62B ?alue 1m'&%+"1.
ata num ty*e i.
$*en dataset fname for out*ut.
o 32 times.
Num C Num D3.
!ransfer num to fname.
"nddo.
55.etc.
34. Name the function modules to write data from an %nternal !able to the Presentation ,er?er.
$0N+$A and 0,E$0N+$A.
3F. Name the function module that can be used to gi?e information about files on Presentation ,er?er and about its
$*erating ,ystem.
0,E@U"/'.
36. Name the ABAP/4 key word, which is used to clear the )eaderline of an %nternal !able.
-+"A/.
3(. Name the function modules to read data from Presentation ,er?er into an %nternal !able.
UP+$A and 0,EUP+$A.
36. Name the ABAP/4 keywords to initialiGe an %nternal !able with and without headerline.
/"&/",) .
3<. )ow to determine the attributes of an internal table=
",-/%B" !AB+" 9+%N", : 9$--U/, :.
;2. Name the ABAP/4 key word for searching a string in an %nternal !able.
,"A/-) &$/ .
!he different o*tions A B for the search in an internal table areH
ABB/"I%A!"
,earches tablefor a word containing the character string s*ecified in , where other characters might se*arate the
characters. !he first letter of the word and the string must be the same.
,!A/!%NJ A!
,earches table for , starting at line . Klin3L can be a ?ariable.
"N%NJ A!
,earches table for u*to line . can be a ?ariable.
AN #A/M
%f the search string is found, all the characters in the search string Aand all the characters in between when using
ABB/"I%A!"B are con?erted to u**er case.
;3. 0hat are the different attributes that can be assigned to a ?ariant=
!he different attributes that can be assigned to a ?ariant are5.
escri*tion
"nter a short, meaningful descri*tion of the ?ariant. !his may be u*to 42 characters long.
Background only
,*ecify whether you want to use the ?ariant in background *rocessing only, or in online en?ironment as well.
Protected ?ariant.
#ark the field if you want to *rotect your ?ariant against being changed by other users.
o not dis*lay ?ariant.
#ark this field if you want the ?ariant name to be dis*layed in the catalog only, but not in the &4 ?alue list.
&or the selections you co?er in a ?ariant, you can enter the following attributesH
!y*e
!he system dis*lays whether the field is a *arameter or a select o*tion.
Protected
#ark this field for each field on the selection screen you want to *rotect from being o?erwritten. Ialues that you
mark this way are dis*layed to the users, but they cannot change them, that are they are not ready to acce*t in*ut.
%n?isible
%f you mark this column, the system will not dis*lay the corres*onding field on the selection screen the user sees
when starting the re*ort *rogram.
Iariable
#ark this column if you want to set the ?alue for this field at runtime.
;;. %s it *ossible to create new dynamic *rograms during runtime of an ABAP/4 *rogram= %f so how=
!o create new dynamic *rograms during the runtime of an ABAP/4 *rogram, you must use an internal table. &or this
*ur*ose, you should create this internal table with one character ty*e column and a line width of (;. 'ou can use
any method you like from &illing %nternal !ables to write the code of your new *rogram into the internal table.
"s*ecially, you can use internal fields in which contents are de*endent on the flow of the *rogram that you use to
create a new one, to influence the coding of the new *rogram dynamically. !he following e>am*le shows how to
*roceed in *rinci*alH
A!A -$" A(;B $--U/, 32.
APP"N 1/"P$/! N'N3.1
!$ -$".
APP"N 10/%!"/O)ello, % am dynamically createdPO.1
!$ -$".
!wo lines of a ?ery sim*le *rogram are written into the internal table -$".
%n the ne>t ste* you ha?e to *ut the new module, in the abo?e e>am*le it is a re*ort, into the library. &or this
*ur*ose you can use the following statementH
,ynta>
%N,"/! /"P$/! &/$# .
!he *rogram is inserted in your *resent de?elo*ment class in the //4 /e*ository. %f a *rogram with this name does
not already e>ists, it is newly created with the following attributesH
!itleH none,
!y*eH 3 A/e*ortingB,
A**licationH , ABasisB.
'ou can s*ecify the name of the *rogram e>*licitly within single Quotation marks or you can write the name of a
character field, which contains the *rogram name. !he name of the *rogram must not necessarily be the same as
gi?en in the coding, but it is recommended to do so. is the internal table containing the source code. &or the abo?e
e>am*le you could writeH
%N,"/! /"P$/! 1N'N31 &/$# -$".
$r
A!A /"P A6B.
/"P C 1N'N31
%N,"/! /"P$/! /"P &/$# -$".
;4. ata ty*es can be elementary or structured A!/&B.
!/U".
;4. !he amount of memory associated with a data ty*e is N"/$.
;F. ata ob7ects are the *hysical units a *rogram uses at runtime. A!/&B.
!/U".
;6. !he data ob7ect does not occu*y any s*ace in memory. A!/&B
&A+,".
;(. 0hat are the three hierarchical le?els of data ty*es and ob7ects=
ProgramRinde*endent data, defined in the ABAP/4 ictionary.
%nternal data used globally in one *rogram.
ata used locally in a *rocedure Asubroutine, function moduleB
;6. )ow would you find the attributes of a data ty*e or data ob7ect=
",-/%B" &%"+ 9+"NJ!)
t)$e ta-#eview usin! s%reen .
.3. 6i""erentiate -etween stati% and d)na&i% ste$ #oo$s.
Ste$ #oo$s "a## into two %#assesH Stati% and 6)na&i%. Stati% ste$ #oo$s ave a "i5ed si@e tat %annot -e %an!ed at
runti&e. 6)na&i% ste$ #oo$s are varia-#e in si@e. I" te user re=si@es te window te s)ste& auto&ati%a##) in%reases
or de%reases te nu&-er o" ste$ #oo$ -#o%1s dis$#a)ed. In an) !iven s%reen )ou %an de"ine an) nu&-er o" stati%
ste$ #oo$s -ut on#) a sin!#e d)na&i% one.
.*. Wat are te two wa)s o" $rodu%in! a #ist witin a transa%tion'
B) su-&ittin! a se$arate re$ort.
B) usin! #eave to #ist=$ro%essin!.
... Wat is te use o" te state&ent +eave to +ist=$ro%essin!'
+eave to +ist=$ro%essin! state&ent is used to $rodu%e a #ist "ro& a &odu#e $oo#. +eave to #ist $ro%essin! state&ent
a##ows to swit% "ro& dia#o!=&ode to #ist=&ode witin a dia#o! $ro!ra&.
./. Wen wi## te %urrent s%reen $ro%essin! ter&inates'
A %urrent s%reen $ro%essin! ter&inates wen %ontro# rea%es eiter a +eave=s%reen or te end o" PAI.
.0. How is te %o&&and Su$$ress=6ia#o! use"u#'
Su$$ressin! entire s%reens is $ossi-#e usin! tis %o&&and. Tis %o&&and a##ows us to $er"or& s%reen $ro%essin!
Min te -a%1!roundM. Te s)ste& %arries out a## PB> and PAI #o!i%; -ut does not dis$#a) te s%reen to te user.
Su$$ressin! s%reens is use"u# wen we are -ran%in! to #ist=&ode "ro& a transa%tion dia#o! ste$.
.2. Wat a$$ens i" we use +eave to #ist=$ro%essin! witout usin! Su$$ress=6ia#o!'
I" we donDt use Su$$ress=6ia#o! to ne5t s%reen wi## -e dis$#a)ed -ut as e&$t); wen te user $resses E3TER; te
standard #ist out$ut is dis$#a)ed.
.4. How te transa%tion tat are $ro!ra&&ed -) te user %an -e $rote%ted'
B) i&$#e&entin! an autorit) %e%1.
/0. Wat are te &odes in wi% an) u$date tas1s wor1'
S)n%ronous and As)n%ronous.
/1. Wat is te di""eren%e -etween S)n%ronous and As)n%ronous u$dates'
A $ro!ra& as1s te s)ste& to $er"or& a %ertain tas1; and ten eiter waits or doesnDt wait "or te tas1 to "inis. In
s)n%ronous $ro%essin!; te $ro!ra& waitsH %ontro# returns to te $ro!ra& on#) wen te tas1 as -een
%o&$#eted. In as)n%ronous $ro%essin!; te $ro!ra& does not waitH te s)ste& returns %ontro# a"ter &ere#) #o!!in!
te re,uest "or e5e%ution.
/(. SAP s)ste& %on"i!uration in%#uedes 6ia#o! tas1s and U$date tas1s.
/3. 6ia#o!=tas1 u$dates are S)n%ronous u$dates.
/*. U$date Ktas1 u$dates are As)n%ronous u$dates.
/.. Wat is te di""eren%e -etween Co&&it=wor1 and Ro##-a%1=Wor1 tas1s'
Co&&it=Wor1 state&ent M$er"or&sM &an) "un%tions re#evant to s)n%roni@ed e5e%ution o" tas1s. Ro##-a%1=wor1
state&ent M%an%e#sH a## reuests re#evant to s)n%roni@ed e5e%ution o" tas1s.
//. Wat are te di""erent data-ase inte!rities'
U Se&anti% Inte!rit).
U Re#ationa# Inte!rit).
U Pri&ar) Ge) Inte!rit).
U Ba#ue Set Inte!rit).
U :orei!n Ge) inte!rit) and
U >$erationa# inte!rit).
/0. A## SAP 6ata-ases are Re#ationa# 6ata-ases.
/2. Wat is SAP #o%1in!'
It is a &e%anis& "or de"inin! and a$$#)in! #o!i%a# #o%1s to data-ase o-9e%ts.
/4. Wat does a #o%1 o-9e%t invo#ve'
Te ta-#es.
Te #o%1 ar!u&ent.
00. Wat are te di""erent 1inds o" #o%1 &odes'
Sared #o%1
E5%#usive #o%1.
E5tended e5%#usive #ist.
01. How %an a #o%1 o-9e%t -e %a##ed in te transa%tion'
B) %a##in! En,ueue and 6e,ueue in te transa%tion.
0(. Wat are te events -) wi% we %an $ro!ra& Me#$ te5tsM and dis$#a) M$ossi-#e va#ue #istsM'
=PR>CESS >3 HE+P=REQUEST 7P>H8.
=PR>CESS >3 BA+UE=REQUEST 7P>B8.
03. Wat is a &at%%ode'
A &at%%ode is an aid to "indin! re%ords stored in te s)ste& wenever an o-9e%t 1e) is re,uired in an in$ut "ie#d
-ut te user on#) 1nows oter 7non=1e)8 in"or&ation a-out te o-9e%t.
0*. In wat wa)s we %an !et te %onte5t sensitive :1 e#$ on a "ie#d'
= 6ata e#e&ent do%u&entation.
= 6ata e#e&ent additiona# te5t in s%reen $ainter.
= Usin! te $ro%ess on e#$ re,uest event.
0.. Wat is ro## area'
A ro## area %ontains te $ro!ra&Ds runti&e %onte5t. In addition to te runti&e sta%1 and oter stru%tures; a## #o%a#
varia-#es and an) data 1nown to te $ro!ra& are stored ere.
0/. How does te s)ste& and#e ro## areas "or e5terna# $ro!ra& %o&$onents'
= Transa%tions run in teir own ro## areas.
= Re$orts run in teir own ro## areas.
= 6ia#o! &odu#es run in teir own ro## areas
= :un%tion &odu#es run in te ro## area o" teir %a##ers.
00. 6oes te e5terna# $ro!ra& run in te sa&e SAP +UW as te %a##er; or in a se$arate one'
= Transa%tions run wit a se$arate SAP +UW
= Re$orts run wit a se$arate SAP +UW.
= 6ia#o! &odu#es run in te sa&e SAP +UW as te %a##er
= :un%tion &odu#es run in te sa&e SAP +UW as te %a##er.
Te on#) e5%e$tions to te a-ove ru#es are "un%tion &odu#es %a##ed wit I3 UP6ATE TASG 7B( "un%tion on#)8 or I3
BACG<R>U36 TASG 7A+E a$$#i%ations8. Tese a#wa)s run in teir own 7se$arate8 u$date transa%tions.
02. Wat are "un%tion &odu#es'
:un%tion &odu#es are !enera#=$ur$ose #i-rar) routines tat are avai#a-#e s)ste&=wide.
04. Wat are te t)$es o" $ara&eters in te "un%tion &odu#es'
In !enera#; "un%tion &odu#e %an ave "our t)$es o" $ara&etersH
= EFP>RTI3<H "or $assin! data to te %a##ed "un%tion.
= ICP>RTI3<H "or re%eivin! data returned "ro& te "un%tion &odu#e.
= TAB+ESH "or $assin! interna# ta-#es on#); -) re"eren%e 7tat is; -) address8.
= CHA3<I3<H "or $assin! $ara&eters to and "ro& te "un%tion.
20. Wat is te di""eren%e -etween +eave Transa%tion and Ca## Transa%tion'
In %ontrast to +EABE T> TRA3SACTI>3; te CA++ TRA3SACTI>3 state&ent %auses te s)ste& to start a new SAP
+UW. Tis se%ond SAP +UW runs $ara##e# to te SAP +UW "or te %a##in! transa%tion.
21. How %an we $ass se#e%tion and $ara&eter data to a re$ort'
Tere are tree o$tions "or $assin! se#e%tion and $ara&eter data to te re$ort.
= Usin! SUBCITRWITH
= Usin! a re$ort variant.
= Usin! a ran!e ta-#e.
2(. How to send a re$ort to te $rinter instead o" dis$#a)in! it on te s%reen'
We %an send a re$ort to te $rinter instead o" di$#a)in! it on te s%reen. To do tis; use te 1e)words T> SAP=
SP>>+H
SUBCIT RS:+:I36RT> SAP=SP>>+ 6ESTI3ATI>3 D+T.0D.
23. How %an we send data to e5terna# $ro!ra&s'
Usin! SPA/<PA $ara&eters7SAP &e&or)8.
Usin! EFP>RT/ICP>RT data 7ABAP/* &e&or)8
2*. Wat are SPA/<PA $ara&eters 7SAP &e&or)8
SPA/<PA $ara&eters are "ie#d va#ues saved !#o-a##) in &e&or). Tere are two wa)s to use SPA/<PA $ar&etersH
B) settin! "ie#d attri-utes in te S%reen Painter.
B) usin! te SET PARACETER or <ET PARACETER state&ents.
B6C
1. Wat is "u## "or& o" B6C Session'
Bat% 6ata Co&&uni%ation Session.
(. Wat are te ste$s in a B6C session'
Te "irst ste$ in a B6C session is to identi") te s%reens o" te transa%tion tat te $ro!ra& wi## $ro%ess. 3e5t ste$
is to write a $ro!ra& to -ui#d te B6C ta-#e tat wi## -e used to su-&it te data to SAP. Te "ina# ste$ is to su-&it
te B6C ta-#e to te s)ste& in te -at% &ode or as a sin!#e transa%tion -) te CA++ TRA3SACTI>3 %o&&and.
3. How do )ou "ind te in"or&ation on te %urrent s%reen'
Te in"or&ation on te %urrent s%reen %an -e "ound -) S?STEC STATUS %o&&and "ro& an) &enu.
*. How do )ou save data in B6C ta-#es'
Te data in B6C ta-#es is saved -) usin! te "ie#d na&e DB6CL>GC>6ED and "ie#d va#ue o" D/11D.
.. Wat is te #ast entr) in a## B6C ta-#es'
In a## B6C ta-#es te #ast entr) is to save te data -) usin! te "ie#d na&e B6CL>GC>6E and a "ie#d va#ue o" D/11D.
/. Wat is a &u#ti$#e #ine "ie#d'
A &u#ti$#e #ine "ie#d is a s$e%ia# 1ind o" "ie#d wi% a##ows te user to enter &u#ti$#e #ines o" data into it.
0. How do )ou $o$u#ate data into a &u#ti$#e #ine "ie#d'
To $o$u#ate data into a &u#ti$#e #ine "ie#d; an inde5 is added to te "ie#d na&e to indi%ate wi% #ine is to -e
$o$u#ated -) te B6C session 7+ine inde58.
2. Write te B6C ta-#e stru%ture.
B6C ta-#e stru%ture
:IE+6 T?PE 6ESCRIPTI>3
Pro!ra& CHAR 728 Pro!ra& na&e o" transa%tion.
6)nPro CHAR 7*8 S%reen nu&-er o" transa%tion.
6)nBe!in CHAR 718 Indi%ator "or new s%reen.
:na& CHAR 73.8 3a&e o" data-ase "ie#d "ro& s%reen.
:va# CHAR 7208 Ba#ue to su-&it to "ie#d.
4. 6oes te CA++ TRA3SACTI>3 &etod a##ow &u#ti$#e transa%tions to -e $ro%essed -) SAP'
3o. Te CA++ TRA3SACTI>3 &etod a##ows on#) a sin!#e transa%tion to -e $ro%essed -) SAP.
10. 6oes te B6C=I3SERT "un%tion a##ow &u#ti$#e transa%tions to -e $ro%essed -) SAP'
?es.
11. Wat is te s)nta5 "or DCA++ TRA3SACTI>3D'
CA++ TRA3SACTI>3 trans O usin! -d%ta- C>6E &ode Q.
Tree $ossi-#e entries are tere "or C>6E.
A = Sow a## s%reens.
E = Sow on#) s%reens wit errors.
3 = Sow no s%reens.

Anda mungkin juga menyukai