P. 1
BASIC ABAP Certification Questions.pdf

BASIC ABAP Certification Questions.pdf

|Views: 9|Likes:
Published by Tanmaya Kumar Sahu
BASIC ABAP CERTIFICATION QUSTION
BASIC ABAP CERTIFICATION QUSTION

More info:

Categories:Book Excerpts
Published by: Tanmaya Kumar Sahu on Oct 15, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/15/2013

pdf

text

original

Interested in ABAP Video Training?

Click here for a free Video

SAP Certified Development Associate ABAP with SAP NetWeaver 7.0 Exam Questions
These questions are similiar to the ones asked in the actual Test. How should I know? I know, because although I got my ABAP Certification five years back, I have re-certified with the latest version of the Associate Certification test. Before you start here are some Key features of the ABAP Associate Certification Exam - The exam is Computer based and you have three Hours to answer 80 Questions. - The Questions are (mostly) multiple choice type and there is NO penalty for an incorrect answer. - Some of the Questions have more than one correct answers. You must get ALL the options correct for you to be awarded points. - The Official Pass percentage is 65% (But this can vary). You will be told the exact passing percentage before your begin your test.

Sample Questions
Q1.There are various possibilities of creating/changing an ABAP programme. Some of these are: A. Opening programs in the Object Navigator B. Using the ABAP Editor C. Using EEWB D. Using Forward Navigation Answer: A, B, D

To start the ABAP Editor to create or change ABAP programs, the R/3 system offers three possibilities: • Opening Programs in the Object Navigator The Object Navigator of the ABAP Workbench (Transaction SE80) offers a hierarchical overview of all R/3 Repository objects, ordered by package, user name of the programmer, object types, and so on. By selecting a program, the Object Navigator supplies direct access to all components of a program, such as main program, includes, classes, or global data. By selecting a program object in the Object Navigator and calling a maintenance transaction, you directly open the appropriate tool for this object, in this case the ABAP Editor. This way is appropriate for all ABAP programs, as the Object Navigator gives you a constant overview of all components of a program. In particular, screens and user interfaces are displayed. • Using the ABAP Editor To open ABAP programs directly from the tool ABAP Editor, select the menu path Tools --> ABAP Workbench --> Overview --> Development --> ABAP Editor from the SAP menu of SAP Easy Access (or start Transaction SE38). If you want to change a program using this method, you must already know its name and environment. This procedure is only suited for maintaining or creating relatively simple or short programs, which have few or no additional components. • Using Forward Navigation In any of the tools in the ABAP Workbench, you can open a different Repository object by positioning the cursor on it and double-clicking. The system automatically opens the object using the correct tool. This also applies to editing ABAP programs.

Z==FIRSTABAPPROGRAM E. Which of the following are ways to process large volumes of data in ABAP? A. ABAP Dictionary B. Which of the following are acceptable names of an ABAP program? A.). ä. you can define types either as Dictionary objects or in type groups. é. In the ABAP Dictionary.Forward navigation by double-click can be used at any point where the names of ABAP programs appear in the ABAP Workbench. B The following graphic shows where you can define data types in ABAP: This differentiates between • Predefined ABAP types that are built into the kernel. Database Storage Answer: A. apostrophe (‘). space ( ). ß. percentage signs (%). but can be defined in their own right. ø.). Data types in ABAP are not just attributes of fields. In IMG Answer: A. asterisk (*). and so on). • Data types in the ABAP Dictionary that are available to all programs in the entire system. equals sign (=). E The name of an ABAP program can be between 1 and 30 characters long. comma (. accented characters or German umlauts (à. Q2. Q4. In programs C. YMYFIRSTABAPPROGRAM C. ZQSDABAP B. THISISMYFIRSTABAPPROGRAMME Answer: A. Internal Tables B. Q3. The following symbols and signs must not be used in program names: Period (. parentheses (). B . Extracts C. or underscores (_). inverted commas ("). Where in ABAP can you define data types? A. Z”MyFirst ABAP PROGRAM D. B. • Local data types that you can define in ABAP programs.

Instead. Lock objects allow you to set an SAP lock for an entire application object. These locks are known as SAP locks. unlimited. Answer: A. Q5. or entries from more than one database table that are linked using foreign key relationships. When you create a lock object. . Before you can set an SAP lock in an ABAP program. There are three types of locks in the system. but you can determine it dynamically during the flow of the program. SAP ERP System contains a lock mechanism. you can store records of different length and structure one after the other. Extracts Since internal tables have fixed line structures. in principle. logical and exclusive D. The SAP lock concept is based on lock objects B. You can use control level processing with extracts just as you can with internal tables. Which of the following are functionalities of SAP Locks? A. fully independent of database locks. The data type is also an attribute of an existing data object. shared. An application object consists of one or more entries in a database table. This fact reduces the maintenance effort considerably. that allows you to set a lock that spans several dialog steps. Since they are dynamic data objects. You need not create an individual dataset for each different structure you want to store. the system partly compresses extract datasets when storing them. either in a program or centrally in the ABAP Dictionary. In addition. as long as there is enough space in the filesystem. you must first create a lock object in the ABAP Dictionary. However. Like all elements in the ABAP type concept.There are two ways of processing large quantities of data in ABAP . Extracts larger than 500KB are stored in operating system files. An extract is a sequential dataset in the memory area of the program. You can then set and release SAP locks in your ABAP program by calling these function modules in a CALL FUNCTION statement. the system automatically generates two function modules with the names ENQUEUE_<lock object name> and DEQUEUE_<lock object name> . An extract dataset consists of a sequence of records of a pre-defined structure. You may only create one extract in any ABAP program. D The SAP lock concept is based on lock objects. A particularly important use for internal tables is for storing and formatting data from a database table within a program. A lock object definition contains the database tables and their key fields on the basis of which you want to set a lock. you can use extract datasets for this purpose. They are also a good way of including very complicated data structures in an ABAP program. C. The index or key access permitted with internal tables is not allowed. You can only address the entries in the dataset within a special loop. internal tables can exist both as data types and as data objects A data type is the abstract description of an internal table. The size of an extract dataset is. B. that you use to create a concrete data object. This reduces the storage space required. they are not suited to handle data sets with varying structures. Internal tables Internal tables provide a means of taking data from a fixed structure and storing it in working memory in ABAP. and each line has the same structure. The practical size of an extract is up to 2GB.either using internal tables or extract datasets. The data is stored line by line in memory. The internal administration for extract datasets is optimized so that it is quicker to use an extract for control level processing than an internal table. the structure need not be identical for all records. In contrast to internal tables. you must first create a lock object in the ABAP Dictionary. they save the programmer the task of dynamic memory management in his or her programs. you need not specify the structure of an extract dataset at the beginning of the program. You should use internal tables whenever you want to process a dataset with a fixed structure within a program. Before you can set an SAP lock in an ABAP program. In one extract dataset. internal tables fulfill the function of arrays. the system automatically creates two function modules. In ABAP. When you create a lock object.

False Answer: A From Release 6. ABAP used only character sets that were based on single-byte codes – such as ASCII and EBCDIC – or double-byte codes. They prevent other programs from setting an exclusive lock (write lock) to change the object. Update with immediate start B. start. Q7. you must flag it in the Function Builder. • Exclusive lock Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. such as SJIS and BIG5. . • Update with delayed start Set this option for low priority ("V2") functions that run in their own update transactions. Update with Delayed start Answer: A. No other program can then set either a shared lock or an exclusive lock for the same application object. These functions can be restarted by the update task in case of errors.10.Lock Types There are two types of lock in the R/3 System: • Shared lock Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. set the Process Type attribute to one of the following values: • Update with immediate start Set this option for high priority ("V1") functions that run in a shared (SAP LUW). Prior to Release 6. you can set the Process Type attribute to one of the following values: A. • Update w. prevent other programs from setting further read locks. It does not. however.10. If you use these statements in a program that is designed to exploit the Unicode capabilities of the runtime environment. as its name suggests. no restart Set this option for high priority ("V1") functions that run in a shared (SAP LUW). True B. D To be able to call a function module in an update work process. ABAP supports multi-byte coding for characters in Unicode. When you create the function module. they must be checked and changed if necessary. An exclusive lock. Update without immediate start C. These functions can be restarted by the update task in case of errors. From Release 6.10. These functions may not be restarted by the update task. This switch to Unicode affects all statements where an explicit or implicit assumption is made about the internal length of a character. When you create a function module. Q6. Updated with Manual start D. locks an application object for exclusive use by the program that sets it. ABAP supports multi-byte coding for characters in Unicode. A. imm.

Each ABAP program consists of self-contained processing blocks. They can be processed sequentially or in parallel. Each ABAP program has a program type. processors are started in the runtime environment that call a series of processing blocks (event blocks) in a predefined sequence. or from outside an ABAP program C. You can develop programs in a non-Unicode system (NUS) and then import them into a Unicode system (US). B The following gives an overview of the ABAP program types: Type 1 You can start a type 1 program by entering its program name. A processing block can be called either from outside the ABAP program. They can be called from within a program. This is why executable programs are also known as reports. at least one of its processing blocks must be started from outside the program itself. which may occur in any order in the source code. it can be called either by the ABAP runtime environment or another ABAP program. Type M C. When a processing block is called from outside the program. or from a processing block within the same ABAP program (see also Structure of ABAP Programs). Processing blocks are sections of programs. Answer: B. Which of the statements about processing blocks are True? A. which determines whether and how a program can be run. To start an ABAP program. which may occur in any order in the source code. Type F D.Once a Unicode-enabled program has been changed accordingly. Processing blocks are sections of programs. For this reason. To start an ABAP program. made up of structure blocks. it behaves in the same way in both Unicode and non-Unicode systems. The following sections describe the conversions that are necessary: Q8. Some ABAP programs can be run by a user by entering the program name or a transaction code. . at least one of its processing blocks must be started from outside the program itself. C Processing Blocks are processed sequentially. These programs are of type? A. B. Type 1 B. The sequence is oriented towards reporting tasks. Type K Answer: A. When you start a type 1 program. made up of structure blocks. Q9. Each ABAP program consists of self-contained processing blocks. They are processed sequentially. they are also known as executable programs.

" CATCH block (exception handler) . which consists of the screen itself and its flow logic. Try block B. and are included in other programs. Since type M programs contain mostly dialog modules. A logical database contains subroutines that are called by an invisible system program in a prescribed sequence for type 1 programs. Type J Type J programs are not executable. They are container programs for global interfaces. Subroutines are a type of procedure. they contain processing blocks or other source code that can only be used by an application program that is already running. If an exception occurs in the TRY block or in a procedure called up here.. cx_. refer to Logical Databases.. This statement block is processed sequentially. Since type M programs contain mainly function modules. they are known as module pools. Screen flow logic can call special processing blocks (dialog modules) in the corresponding ABAP program. When you call a subroutine from an ABAP program.. Function modules are a type of procedure. and are known as class definitions. Type M Type M programs can only be started using a transaction code... Classes belong to ABAP Objects and are described in more detail in that section. .. A transaction code starts a screen. .. and are known as interface definitions. Type I Type I programs cannot be run directly. For further information.. .. TRY Block The TRY block contains the application coding whose exceptions are to be handled.... . When you call a function module from an ABAP program. Q10. You can start logical databases together with reports.. the entire main program is loaded into the internal session of the current program. They serve as a container for function modules.. Delete block D. " CATCH block (exception handler) CATCH cx_. It can contain further control structures and calls of procedures or other ABAP programs. .. Programs that Cannot Be Run Directly These programs cannot be started directly by a user. . Erase block Answer: A. the entire main program is loaded into the internal session of the current program.. They are described in more detail in a later section. Type S Type S programs are not executable. they are known as function groups. They are container programs for subroutines that should only be called externally. Class-based exceptions are handled in a control structure that has the following elements: A. they are known as subroutine pools. Type F Type F programs are not executable. and contain no callable processing blocks. They are described in more detail in the Procedures section.. " CLEANUP block (cleanup context) ENDTRY... the system starts by searching for a CATCH statement of the same TRY-ENDTRY structure. Instead. They are used exclusively for modularizing ABAP source code. Since type S programs contain mainly subroutines. The subroutines make certain reporting functions reusable. . Type K Type K programs are not executable. They are container programs for global classes.A special type of type 1 program is a logical database.. cx_. B Class-based exceptions are handled in the following control structure: TRY. Catch block C. CLEANUP.. " TRY block (application coding) CATCH cx_..

program execution is continued directly after ENDTRY after the block has been completed. For example. but the TRY-ENDTRY structure is contained in a procedure. have to be released. it searches for a handler in the enclosing TRY-ENDTRY structures from the inside out (as mentioned above). This defines an exception handler for all the specified exception classes and their subordinate classes. CLEANUP Block If the system does not find a handler for an exception in a TRY-ENDTRY structure. No subsequent exception handlers are considered. The nesting of TRY-ENDTRY blocks and the possible propagation of exceptions may mean that several CLEANUP blocks are executed before an exception is actually handled. INTO ref. Loops through datasets from database tables using the SELECT statement. If the system has not found a handler for an exception.. Loops through internal tables and extract datasets using the LOOP statement. to which an external handler no longer has access. cleanup work can be executed for the context of the TRY block. dialog modules). Conditional loops using the WHILE statement. In a loop. Precisely one CLEANUP block can be defined in each TRY-ENDTRY structure. Loops through internal tables using the LOOP statement D. Exceptions cannot be propagated in any processing blocks without a local data area (event blocks. the block is executed before the TRY-ENDTRY structure is exited. a statement block is executed several times in succession. Some of the different kinds of loops in ABAP are: A. The first exception handler whose CATCH statement contains the corresponding exception class or one of its superclasses is executed. but the exception is handled in an enclosing TRY-ENDTRY structure or is propagated to a caller. After an exception occurs. the system searches through the listed exception handlers in the specified order. For this reason. A TRY-ENDTRY structure can contain several exception handlers. objects often have to be brought into a consistent state or external resources. The syntax for introducing an exception handler is: CATCH cx_. If no exceptions occur in the TRY block. In the CLEANUP block. Unconditional loops using the DO statement B. The system may call this handler. CATCH Block A catch block contains the exception handler that is executed when a particular exception has occurred in the TRY block of the same TRY-ENDTRY structure. C The different types of loop statements are: • • • • Unconditional loops using the DO statement. it tries to propagate the exception to a procedure caller. it tries to propagate the exception to the caller.. .. A runtime error occurs immediately if the handler is missing. Q11. cx_. Unconditional loops using the WHILE statement Answer: A. The system then continues program execution directly after ENDTRY. If the system does not find a handler here.. Any number of exception classes can be specified after CATCH. the order of the different exception handlers within a TRY-ENDTRY structure must be based on the inheritance hierarchy of the specified exception classes. If the system does not find a handler. B. Conditional loops using the WHILE statement C.It then searches from the inside out for a CATCH statement in any enclosing TRY-ENDTRY structures that handle the event.

The system field SY-INDEX contains the number of loop passes.Unconditional Loops To process a statement block several times unconditionally. You must ensure that there are not more loop passes than fields in the sequence. in the second loop pass. including the current loop pass.0 Questions. event block. The termination statements that apply only to the loop in which they occur are CONTINUE. they only apply to the execution of the loop itself. <f 1 > and <f 2 > are the first two fields of a sequence of fields the same distance apart in memory and with the same type and length. You can use the VARYING addition more than once in a DO statement. CONTINUE. Outside of a loop. The STOP and REJECT statements belong to the latter group. <Statement block> ENDDO. The statement block between WHILE and ENDWHILE is repeated as long as the condition is true or until a termination statement such as EXIT or STOP occurs. If <n> is 0 or negative. on the other hand.those that only apply to the loop. If you do not use the TIMES option. are contextsensitive. the statement block is repeated until it reaches a termination statement such as EXIT or STOP (see below). There are two categories of termination statement . and EXIT. and those that apply to the entire processing block in which the loop occurs. You can assign new values to a variable <f> in each loop pass by using the VARYING option.ABAP with SAP NetWeaver 7. Conditional Loops To repeat a statement block for as long as a certain condition is true. the value of the current field <f i > is also changed. More Questions? Have a look at: SAP Certified Development Associate . dialog module. If you do not specify any additions. Within a loop. <n> can be literal or a variable. and EXIT can be used in all four loop types in ABAP (DO. including the current loop pass. CHECK and EXIT. In the first loop pass. The VARY option of the WHILE statement works in the same way as the VARYING option of the DO statement (see above). <f 2 >. you must ensure that the loop contains at least one EXIT or STOP statement to avoid endless loops. LOOP. Answers & Explanations . and so on. CHECK. and so on). <condition> can be any logical expression. and SELECT). otherwise a runtime error occurs. <statement block> ENDWHILE. they terminate the entire processing block in which they occur (subroutine. use the following control structure: WHILE <condition> [VARY <f> FROM <f1> NEXT <f 2>]. use the following control structure: DO [<n> TIMES] [VARYING <f> FROM <f1> NEXT <f 2>]. <f> takes the value <f 1 >. Terminating Loops ABAP contains termination statements that allow you to terminate a loop prematurely. CHECK. The system field SY-INDEX contains the number of loop passes. You can only use the CONTINUE statement in a loop. the system does not process the loop. WHILE. Use the TIMES addition to restrict the number of loop passes to <n>. If you change the value of the field <f> within the DO loop.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->