0% found this document useful (0 votes)
3K views90 pages

ABAP Questions

This document contains 53 multiple choice questions about ABAP programming. The questions cover topics such as data types, internal tables, SELECT statements, events, screen programming, and more. The correct answers are indicated by letters A through D following each question.

Uploaded by

Sasindran S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views90 pages

ABAP Questions

This document contains 53 multiple choice questions about ABAP programming. The questions cover topics such as data types, internal tables, SELECT statements, events, screen programming, and more. The correct answers are indicated by letters A through D following each question.

Uploaded by

Sasindran S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 90

ABAP Questions

1. If a table does not have MANDT as part of the primary key, it is ____.
A: A structure B: Invalid C: Client-independent D: Not mandatory

2. In regard to CALL, which of the following is NOT a valid statement?


A: CALL FUNCTION B: CALL SCREEN C: CALL TRANSACTION D: CALL PROGRAM

3. Name the type of ABAP Dictionary table that has these characteristics:
Same number of fields as the database table
Same name as database table
Maps 1:1 to database table
A: Pooled B: Cluster C: Transparent D: View

4. An event starts with an event keyword and ends with:


A: Program execution. B: END-OF-EVENT. C: Another event keyword.
D: END-EVENT.

5. What is the system field for the current date?


A: SY-DATUM B: SY-DATE C: SY-DATID D: SY-SDATE

6. The following code indicates:


SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab
WHERE fld1 IN sfld1.

A: Add rows to the existing rows of itab.


B: Add rows to itab after first deleting any existing rows of itab.
C: Select rows from tab1 for matching itab entries.
D: Nothing, this is a syntax error.

7. You may change the following data object as shown below so that it equals 3.14.
CONSTANTS: PI type P decimals 2 value '3.1'.
PI = '3.14'.
A: True B: False

8. The SAP service that ensures data integrity by handling locking is called:
A: Update B: Dialog C: Enqueue/Dequeue D: Spool

9. Which of these sentences most accurately describes the GET VBAK LATE. event?
A: This event is processed before the second time the GET VBAK event is processed.
B: This event is processed after all occurrences of the GET VBAK event are completed.
C: This event will only be processed after the user has selected a basic list row.
D: This event is only processed if no records are selected from table VBAK.

10. Which of the following is not a true statement in regard to a hashed internal table type?
A: Its key must always be UNIQUE.
B: May only be accessed by its key.
C: Response time for accessing a row depends on the number of entries in the table.
D: Declared using internal table type HASHED TABLE.

11. TO include database-specific SQL statements within an ABAP program, code them between:
A: NATIVE SQL_ENDNATIVE. B: DB SQL_ENDDB.
C: SELECT_ENDSELECT. D: EXEC SQL_ENDEXEC.
12. To measure how long a block of code runs, use the ABAP statement:
A: GET TIME. B: SET TIME FIELD. C: GET RUN TIME FIELD.
D: SET CURSOR FIELD.

13. When a secondary list is being processed, the data of the basic list is available by default.
A: True B: False

14. Given:
DATA: BEGIN OF itab OCCURS 10,
qty type I,
END OF itab.

DO 25 TIMES. itab-qty = sy-index. APPEND itab. ENDDO.

LOOP AT itab WHERE qty > 10.


WRITE: /1 itab-qty.
ENDLOOP.

This will result in:


A: Output of only those itab rows with a qty field less than 10
B: Output of the first 10 itab rows with a qty field greater than 10
C: A syntax error
D: None of the above

15. After a DESCRIBE TABLE statement SY-TFILL will contain


A: The number of rows in the internal table.
B: The current OCCURS value.
C: Zero, if the table contains one or more rows.
D: The length of the internal table row structure.

16. You may declare your own internal table type using the TYPES keyword.
A: True B: False

17. After adding rows to an internal table with COLLECT, you should avoid adding more rows with APPEND.
A: True B: False

18. Which of the following is not a component of control break processing when looping at an internal table?
A: AT START OF B: AT FIRST C: AT LAST D: AT NEW

19. A dictionary table is made available for use within an ABAP program via the TABLES statement.
A: True B: False

20. Which of the following would be best for hiding further selection criteria until a function is chosen?
A: AT NEW SELECTION-SCREEN
B: SELECTION-SCREEN AT LINE-SELECTION
C: SUBMIT SELECTION-SCREEN
D: CALL SELECTION-SCREEN

21. What must you code in the flow logic to prevent a module from being called unless a field contains a non-initial
value (as determined by its data type)?
A: ON INPUT B: CHAIN C: FIELD D: ON REQUEST

22. The AT USER-COMMAND event is triggered by functions defined in the ____.


A: screen painter B: ABAP report C: menu painter status
D: ABAP Dictionary
23. In regard to a function group, which of the following is NOT a true statement?
A: Combines similar function modules.
B: Shares global data with all its function modules.
C: Exists within the ABAP workbench as an include program.
D: Shares subroutines with all its function modules.

24. In regard to SET PF-STATUS, you can deactivate unwanted function codes by using ____.
A: EXCLUDING B: IMMEDIATELY C: WITHOUT D: HIDE

25. In regard to data transported in PAI when the FIELD statement is used, which of the following is NOT a true
statement?
A: Fields in PBO are transported directly from PAI.
B: Fields with identical names are transported to the ABAP side.
C: Fields not defined in FIELD statements are transported first.
D: Fields that are defined in FIELD statements are transported when their corresponding module is called.

26. The order in which an event appears in the ABAP code determines when the event is processed.
A: True B: False

27. A field declared as type T has the following internal representation:


A: SSMMHH B: HHMMSS C: MMHHSS D: HHSSMM

28. Which of the following is NOT a component of the default standard ABAP report header?
A: Date and Time B: List title C: Page number D: Underline

29. Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is
processed when the button is clicked?
A: AT USER-COMMAND. B: AT PFn. C: AT SELECTION-SCREEN.
D: END-OF-SELECTION.

30. In regard to field selection, what option of the SELECT statement is required?
A: FOR ALL ENTRIES B: WHERE C: INTO D: MOVE-CORRESPONDING

31. The following program outputs what?


report zjgtest1

write: /1 'Ready_'.

PARAMETER: test.

INITIALIZATION.
write: /1 'Set_'.

START-OF-SELECTION.
write: /1 'GO!!'.

A: Set_ GO!! (each on its own line)


B: Set_ Ready_ GO!! (all on their own lines)
C: Ready_ GO!! (each on its own line)
D: Ready_ Set_ GO!! (all on their own lines)

32. To declare a selection criterion that does not appear on the selection screen, use:
A: NO-DISPLAY B: INVISIBLE C: MODIF ID D: OBLIGATORY

33. An internal table that is nested within another internal table should not contain a header line.
A: True B: False

34. What is output by the following code?

DATA: BEGIN OF itab OCCURS 0, letter type c, END OF itab.

itab-letter = 'A'. APPEND itab. itab-letter = 'B'. APPEND itab.


itab-letter = 'C'. APPEND itab. itab-letter = 'D'. APPEND itab.

LOOP AT itab.
SY-TABIX = 2.
WRITE itab-letter.
EXIT.
ENDLOOP.

A: A
B: A B C D
C: B
D: B C D

35. To select all database entries for a certain WHERE clause into an internal table in one step, use
A: SELECT_INTO TABLE itab_
B: SELECT_INTO itab_
C: SELECT_APPENDING itab
D: SELECT_itab_

36. After a successful SELECT statement, what does SY-SUBRC equal?

A: 0 B: 4 C: 8 D: Null

37. This selection screen syntax forces the user to input a value:
A: REQUIRED-ENTRY
B: OBLIGATORY
C: DEFAULT
D: SELECTION-SCREEN EXCLUDE

38. If the following code results in a syntax error, the remedy is:
DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1
WITH HEADER LINE.

itab-field1 = 'Company'. itab-field2 = '1234'. INSERT TABLE itab.


itab-field1 = 'Bank'. itab-field2 = 'ABC'. INSERT TABLE itab.

SORT itab.

LOOP AT itab.
write: /1 itab-field1, itab-field2.
ENDLOOP.

A: There is no syntax error here


B: Remove the SORT statement
C: Change INSERT to APPEND
D: Add a WHERE clause to the loop

39. If this code results in an error, the remedy is:


SELECT fld1 fld2 FROM tab1 WHERE fld3 = pfld3.
WRITE: /1 tab1-fld1, tab1-fld2.
ENDSELECT.

A: Add a SY-SUBRC check.


B: Change the WHERE clause to use fld1 or fld2.
C: Remove the /1 from the WRITE statement.
D: Add INTO (tab1-fld1, tab1-fld2).

40. When modifying an internal table within LOOP AT itab. _ ENDLOOP. you must include an index number.
A: True B: False

41. To allow the user to enter values on the screen for a list field, use:
A: OPEN LINE.
B: SET CURSOR FIELD.
C: WRITE fld AS INPUT FIELD.
D: FORMAT INPUT ON.

42. Before a function module may be tested, it must first be:


A: Linked B: Authorized C: Released D: Active

43. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the
data declaration for the field?
A: PBO module include program
B: TOP include program
C: PAI module include program
D: Subroutine include program

44. If a table contains many duplicate values for a field, minimize the number of records returned by using this
SELECT statement addition.
A: MIN B: ORDER BY C: DISTINCT D: DELETE

45. The system internal table used for dynamic screen modification is named:
A: ITAB B: SCREEN C: MODTAB D: SMOD

46. Within the source code of a function module, errors are handled via the keyword:
A: EXCEPTION B: RAISE C: STOP D: ABEND

47. Which system field contains the contents of a selected line?


A: SY-CUCOL B: SY-LILLI C: SY-CUROW D: SY-LISEL

48. The following statement writes what type of data object?

WRITE: /1 'Total Amount:'.

A: Text literal B: Text variable C: In-code comment D: Text integer

49. For the code below, second_field is of what data type?

DATA: first_field type P, second_field like first_field.

A: P
B: C
C: N
D: D
50. Which of the following describes the internal representation of a type D data object?
A: DDMMYYYY
B: YYYYDDMM
C: MMDDYYYY
D: YYYYMMDD

51. A BDC program is used for all of the following except:

A: Downloading data to a local file


B: Data interfaces between SAP and external systems
C: Initial data transfer
D: Entering a large amount of data

52. In regard to PERFORM, which of the following is NOT a true statement?

A: May be used within a subroutine.


B: Requires actual parameters.
C: Recursive calls are allowed in ABAP.
D: Can call a subroutine in another program.

53. What is the transaction code for the ABAP Editor?

A: SE11
B: SE38
C: SE36
D: SE16

54. In regard to HIDE, which of the following is NOT a true statement?

A: Saves the contents of variables in relation to a list line's row number.


B: The hidden variables must be output on a list line.
C: The HIDE area is retrieved when using the READ LINE statement.
D: The HIDE area is retrieved when an interactive event is triggered.

55. Database locks are sufficient in a multi-user environment.

A: True
B: False

56. The complete technical definition of a table field is determined by the field's:

A: Domain
B: Field name
C: Data type
D: Data element

57. In regard to LEAVE, which of the following is NOT a true statement?

A: May be used to return immediately to a calling program.


B: May be used to stop the current loop pass and get the next.
C: May be used to start a new transaction.
D: May be used to go to the next screen.

58. The following code indicates:

SELECT fld6 fld3 fld2 fld1 FROM tab1 INTO CORRESPONDING FIELDS OF TABLE itab
WHERE fld3 = pfld3.

A: The order of the fields in itab does not matter.


B: Fill the header line of itab, but not the body.
C: Table itab can only contain fields also in table tab1.
D: None of the above.

59. The ABAP statement below indicates that the program should continue with the next line of code if the internal
table itab:

CHECK NOT itab[] IS INITIAL.

A: Contains no rows
B: Contains at least one row
C: Has a header line
D: Has an empty header line

60. What will be output by the following code?

DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab.

itab-fval = 1. APPEND itab.


itab-fval = 2. APPEND itab.

FREE itab.
WRITE: /1 itab-fval.

A: 2
B: 0
C: blank
D: 1

61. To allow the user to enter a range of values on a selection screen, use the ABAP keyword:

A: DATA.
B: RANGES.
C: PARAMETERS.
D: SELECT-OPTIONS.

62. If an internal table is declared without a header line, what else must you declare to work with the table's rows?

A: Another internal table with a header line.


B: A work area with the same structure as the internal table.
C: An internal table type using the TYPES statement.
D: A PARAMETER.
63. Assuming an internal table contains 2000 entries, how many entries will it have after the following line of code is
executed?

DELETE itab FROM 1500 TO 1700.

A: This is a syntax error.


B: 1801
C: 1800
D: 1799

64. To remove lines from a database table, use ____.

A: UPDATE
B: MODIFY
C: ERASE
D: DELETE

65. All of the following may be performed using SET CURSOR except:

A: Move the cursor to a specific field on a list.


B: Move the cursor to a specific list line.
C: Move the cursor to a specific pushbutton, activating that function.
D: Move the cursor to a specific row and column on a list.

66. When is it optional to pass an actual parameter to a required formal parameter of a function module?

A: The actual parameter is type C.


B: The formal parameter contains a default value.
C: The formal parameter's \"Reference\" attribute is turned on.
D: It is never optional.

67. Coding two INITIALIZATION events will cause a syntax error.

A: True
B: False

68. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good method for improving
performance.

A: True
B: False

69. To save information on a list line for use after the line is selected, use this keyword.

A: APPEND
B: EXPORT
C: WRITE
D: HIDE
70. To bypass automatic field input checks, include this in PAI.

A: AT EXIT-COMMAND
B: ON INPUT
C: ON REQUEST
D: LEAVE TO SCREEN 0.

71. Within a function module's source code, if the MESSAGE_RAISING statement is executed, all of the following
system fields are filled automatically except:

A: SY-MSGTY
B: SY-MSGNO
C: SY-MSGV1
D: SY-MSGWA

72. The following code indicates:

REPORT ZLISTTST.
START-OF-SELECTION.
WRITE: text-001.
FORMAT HOTSPOT ON.
WRITE: text-002.
FORMAT HOTSPOT OFF.
AT LINE-SELECTION.
WRITE / text-003.

A: Text-002 may not be selected.


B: The value of text-002 is stored in a special memory area.
C: Text-002 may be clicked once to trigger the output of text-003.
D: None of the above.

73. The ____ type of ABAP Dictionary view consists of one or more transparent tables and may be accessed by an
ABAP program using Open SQL.

A: Database view
B: Projection view
C: Help view
D: Entity view

74. A concrete field is associated with a field-symbol via ABAP keyword

A: MOVE
B: WRITE
C: ASSIGN
D: VALUE

75. The output for the following code will be:

report zabaprg.
DATA: char_field type C.
char_field = 'ABAP data'.

WRITE char_field.

A: ABAP data
B: A
C: Nothing, there is a syntax error
D: None of the above

76. Page footers are coded in the event:

A: TOP-OF-PAGE.
B: END-OF-SELECTION.
C: NEW-PAGE.
D: END-OF-PAGE.

77. The event AT SELECTION-SCREEN OUTPUT. occurs before the selection screen is displayed and is the best
event for assigning default values to selection criteria.

A: True
B: False

78. The TABLES statement declares a data object.

A: True
B: False

79. Assuming tab1-fld7 is not a key field, how can you prevent reading all the table rows?

SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4, fld5, fld6)
WHERE fld7 = pfld7.
WRITE: /1 fld4, fld5, fld6.
ENDSELECT.

A: Take fld7 out of the WHERE clause.


B: Create an index in the ABAP Dictionary for tab1-fld7.
C: Use INTO TABLE instead of just INTO.
D: Take the WRITE statement out of the SELECT_ENDSELECT.

80. Which of the following is NOT a required attribute when creating an ABAP program?

A: Application
B: Title
C: Status
D: Type

81. When creating a transparent table in the ABAP Dictionary, which step automatically creates the table in the
underlying database?

A: Adding technical settings to the table


B: Checking the table syntax
C: Saving the table
D: Activating the table

82. Within the ABAP program attributes, Type = 1 represents:

A: INCLUDE program
B: Online program
C: Module pool
D: Function group
E: Subroutine pool

83. If this code results in an error, the remedy is:

SELECT fld1 SUM( fld1 ) FROM tab1 INTO_

A: Remove the spaces from SUM( fld1 ).


B: Move SUM( fld1 ) before fld1.
C: Add GROUP BY f1.
D: Change to SUM( DISTINCT f1 ).

84. Which keyword adds rows to an internal table while accumulating numeric values?

A: INSERT
B: APPEND
C: COLLECT
D: GROUP

85. Assuming itab has a header line, what will be output by the following code?

READ TABLE itab INDEX 3 TRANSPORTING field1.


WRITE: /1 itab-field1, itab-field2.

A: The contents of the third row's itab-field1.


B: The contents of the third row's itab-field1 and itab-field2.
C: The contents of the third row's itab-field2.
D: Nothing.

86. The following code indicates:

SELECTION-SCREEN BEGIN OF BLOCK B1.


PARAMETERS: myparam(10) type C,
Myparam2(10) type N,
SELECTION-SCREEN END OF BLOCK.

A: Draw a box around myparam and myparam2 on the selection screen.


B: Allow myparam and myparam2 to be ready for input during an error dialog.
C: Do not display myparam and myparam2 on the selection screen.
D: Display myparam and myparam2 only if both fields have default values.
87. Which statement will sort the data of an internal table with fields FRUIT, QTY, and PRICE so that it appears as
follows?

FRUIT QTY PRICE

Apples 12 22.50
Apples 9 18.25
Oranges 15 17.35
Bananas 20 10.20
Bananas 15 6.89
Bananas 5 2.75

A: SORT itab DESCENDING BY QTY PRICE.


B: SORT itab BY PRICE FRUIT.
C: SORT itab.
D: SORT itab BY PRICE DESCENDING.

88. Which keyword adds a line anywhere within an internal table?

A: APPEND
B: MODIFY
C: ADD
D: INSERT

89. To read a single line of an internal table, use the following:

A: LOOP AT itab. _ ENDLOOP.


B: READ itab.
C: SELECT SINGLE * FROM itab.
D: READ TABLE itab.

90. Which Open SQL statement should not be used with cluster databases?

A: UPDATE
B: MODIFY
C: DELETE
D: INSERT

91. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the
data declaration for the field?

A: PBO module include program


B: TOP include program
C: PAI module include program
D: Subroutine include program

92. This flow logic statement is used to make multiple fields open for input after an error or warning message.

A: GROUP
B: FIELD-GROUP
C: CHAIN
D: LOOP AT SCREEN

93. Given:

PERFORM subroutine USING var.

The var field is known as what type of parameter?

A: Formal
B: Actual
C: Static
D: Value

94. Full Buffering would be appropriate for


A. Transaction Tables
B. Small Static tables
C. Internal Tables
D. Tables with generic Keys

95 What is the basic object of data Dictionary


A. Domains
B. Documentation
C. Data Models
D. Dynpro

96 Search help cannot be attach to:


A. Domain
B. field of a table
C. check table
D. Type

97 Sub query usually are more efficient because:


A. data is filtered in the database
B. data is filtered on the network
C. data is filtered in the sapgui
D. data is filtered at the application server

98. It is better to buffer a table when


A. When a table is read infrequently
B. When a table is linked to check tables
C. When a table is read frequently and the data seldom changes
D. When a single record is to be picked up

99. In Inner and outter join


A. buffers are always used
B. Choice of buffer can be made to use
C. buffers are always bypassed
D. None of above
100. What is invalid attribute of a domain
A. Type
B. Fixed values
C. Length
D. Header

101. Data element is an example of


A. Physical Definition
B. Business Object
C. Semantic Domain
D. Technical Domain

102. What is true


A. A view contains data
B. Views can be buffered
C. Views can not be buffered
D. None of above

103. Command flushes the database buffers


A. $TAB
B. $RESET
C. $INIT
D. $FREE

104. How many lists can exist in parallel in an interactive reporting?


A. An Interactive report can have 1 basic list and up to 20 Secondary lists.
B. An Interactive report can have 1 basic list and up to 19 Secondary lists.
C. An Interactive report can have 1 basic list and up to 19 Secondary lists.
D. An Interactive report can have 1 basic list and up to 21 Secondary lists.

105. What are the check tables and value tables? (Multiple Answer)
A. Check table will be at field level checking.
B. Value table will be at domain level checking
C Value table will be at field level checking
D. Check table will be at domain level checking.

106.What are presentation and application servers in SAP? (Multiple Answer)


A. Application server is actually a program named Sapgui.exe. It is usually installed On a user’s
workstation.
B. Application server is a set of executables that collectively interpret the ABAP/4 Programs and
manage the input & output for them.
C. Presentation server is actually a program named Sapgui.exe. It is usually installed On a user’s
workstation.
D. Presentation server is a set of executables that collectively interpret the ABAP/4 Programs and
manage the input & output for them.
107.What is the difference between Synchronous and Asynchronous updates? (Multiple Answer)
A. In synchronous processing, the program waits: control returns to the program only when the
task has been completed.
B. In asynchronous processing, the program does not wait: the system returns control after merely
logging the request for execution.
C. In asynchronous processing, the program waits: control returns to the program only when the task has
been completed.
D. In synchronous processing, the program does not wait: the system returns control after merely
logging the request for execution.

108.What are the main events an interactive report have? (Multiple Answer)
A. Top-of-page during line selection.
B. At line-selection.
C. At user-command.
D. AT New

109.How many types of tables exist in data dictionary? (Multiple Answer)


A. Transparent tables
B. Internal Table
C. Pool tables
D. Hash Table
E. Cluster tables
F. Master Data Table

110. What is the difference between UPLOAD and WS_UPLOAD? (Multiple Answer)
A. WS_UPLOAD - File transfer with dialog from presentation server file to internal table. Data which is
available in a file on the presentation server is transferred in an internal table. ASCII & Binary files can
be transferred.
B. UPLOAD - To read data from the presentation server into an internal table without a user dialog, use
the function module WS_UPLOAD. The most important parameters are listed below.
C. UPLOAD - File transfer with dialog from presentation server file to internal table. Data which
is available in a file on the presentation server is transferred in an internal table. ASCII & Binary
files can be transferred.
D.WS_UPLOAD - To read data from the presentation server into an internal table without a user
dialog, use the function module WS_UPLOAD. The most important parameters are listed below.

111.Is Session Method, Asynchronous or Synchronous?


A. Asynchronous
B. Synchronous
C. Synchronous and Asynchronous
D. None of above

112. What are the differences between SAP memory and ABAP memory? (Multiple Answer)
A. SAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data within
this area is retained within a sequence of program calls, allowing you to pass data between programs that
call one another. It is also possible to pass data between sessions using SAP Memory.
B. ABAP Memory is a memory area to which all sessions within a SAPgui have access. You can use
SAP memory either to pass data from one program to another within a session (as with ABAP memory)
or to pass data from one session to another.
C.ABAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data
within this area is retained within a sequence of program calls, allowing you to pass data between
programs that call one another. It is also possible to pass data between sessions using SAP
Memory.
D.SAP Memory is a memory area to which all sessions within a SAPgui have access. You can use
SAP memory either to pass data from one program to another within a session (as with ABAP
memory) or to pass data from one session to another.

113. Which data type cannot be used to define parameters.


A. Type N
B. Type C
C. Type F
D. Type P

114. What are the 2 boxes in your system for coding for Abap and their logins?

Development System & IDES/Sandbox

115. If I get a problem on a report in Production server how can I modify the report.

If the problem in production server we have to alter the program in Developemnt Client and transport it
to QA client Test it throughly and then Transport it to Production.

116. Tell me about Tokens.

Tokens are Issues sent by the Client to us.

117. How to Fix the bugs and where you will do those things.

It Actuall Depends what kind of bugs they asked about:


If it is a problem in Program, then we alter them in the SE38 (Develpment) and transport it after testing
to Prd Server.

118. What is a sandboxes.

SAND BOX is nothing but a test client other than Develpment Client or QA.

119. How to conncet the from ur office to clinet in US.

It will be configured by the BASIS guys..


In the sap logon pad they will enter the application server id and Routing String and the SERver type in
the Sytem Number....
with that we will connect

120. Tell me about VPN and the connections.

Its a another way to connect to other PC. its a 3rd party utility....

121. How to login ur system.

Thru SAP Logon enter the client number ,user id & password.

122. What is the purpose of SE14.

Database Utility to perform table maintenance such as deleting the table or adjusting the table when
there is a structure change.

123. What is the purpose of SM30.

SM30 is a table Maintanance for the Ztable Created by us.

124. In Data dictionary in the table creation,What is the purpose of Technical settings.

To identify the Size of the Table Created and to Set whether buffering needs to be done for the table or
not.

125. What is the purpose of buffering in technical settings and for what type of tables are using
buffering.

It will reduce the Network tarffic but disadvantage is it will not update the Server back immediately.

126. In reporting tell me all the events in a sequentail order.

- Initialization.
- At Selection-Screen
- Start-of-Selection.
- Top-of-Page.
- At Pfn.
- End-of-Page.
- End-of-Selection.

127. One of my users has access to SE38 transaction, and so he can run the program developed by
you. You have attached this report/transactional program to a particular Z* transaction. To
restrict the users to Execute this program, what you do it from programming side?

Check for Authorization object S_TCODE with value "Z----" in initialization event.
(Code:
Authority-check object 'S_TCODE'
id 'TCD' field 'ZBC_REQ'.)

128. When we create a customer the information is updated in structure RF02D and Some tables
like KNA1 are updated. How can we find the tables for master data transactions?

Go to ABAP Workbench -> Overview -> application hierarchy - SAP -> (or SE81 transaction code)
follow the customizing based tree for your application. Double click on a lowest level to get for the
correct marked development class. Then, here you can find all the tables, views, logical databases etc..,

129. Within the TOP-OF-PAGE event the following code represents:

write: /1 text-001.

A: A selection text.
B: A basic list row.
C: A page footer
D: A page header

130. Given the two ABAP Dictioary tables below, the Customer number field in table one must
contain
a value from table two. The Customer number field is known as a ____.

Table one:
Customer number (Primary key)
Company code (Primary key)
Other data

Table two:
Customer number (Primary key)
Customer name
Other data

A: Secondary index
B: Matchcode object
C: Validation field
D: Foreign key

131. The structure of a table has been changed in the ABAP/4 Dictionary.
Which of the following adjustments in the relevant database table is correct, if you want to retain
the previous data?
A. Delete and recreate the database table.
B. Change the database directory (ALTER TABLE) where the structure change with ALTER
TABLE is supported by the database.
C. Convert the table.

132. Must Exits be predefined by SAP programmers?

A. No
B. Yes

133. What is the difference between external & internal subroutine?

1. Internal subroutines in the sense ..subroutines which are defined and used in a same
program...external in the sense if you create a sub routine in one program and you're calling this
subroutine in another program ..then this is external subroutine.

2. The name itself implies the internal subroutines defined by form /perform.. can be called within the
same prog in which they were declared.....external subroutines can be called outside the program.......

134. Why do we use ALV?

1. ALV gives many advantages than a list like sorting summing getting graphics like that stuff.

2. SAP LIST VIEWER is ALV . its main advantage is by using ALV technique we can find totals
,subtotals ,sort in any order etc there itself in the list output of course we need to write all those
functionalities while using ALV...also many functional modules are defined under ALV concept...

135. Why do we use GET CURSOR and what is it?

1. While generating a interactive report we will use get cursor..use is to get the value of the fiel under
the cursor..

2. GETCURSOR is used to trace the position of the cursor in the list ..


suppose we want to double click on any filled in the list and want to trace data using that field we use
getcursor .....

136.Both the events AT SELECTION-SCREEN and AT USER-COMMAND are processed after


user input. Then what is the difference between these and when we should use what?

1. At selection screen is used to validate the fields in a selection screen...and at user command is used to
modify the screen in a selection screen and in genarating secondary lists..

2. AT SELECTION-SCREEN is used where you have a seperate selection screen using select-options
or parameters where as AT USER-COMMAND is used where no selection screen exists....at.user-
command is mainly used while setting pf-status which means creating our own menu with function
codes etc...
137. BDC_INSERT is used to

Insert rows in BDC.

138. What is the structure of the BDC table?

The BDCDATA consists of the following fields:


§ PROGRAM [CHAR 40] - Online program name.
§ DYNPRO [NUMC 4] - Screen number.
§ DYNBEGIN [CHAR 1] - Flag to indicate the start of a new screen.
§ FNAM [CHAR 132] - Field name of a screen field to be filled with data.
§ FVAL [CHAR 132] - The actual value to be filled into the specified screen field.

139. What is the difference between BDC_OKCODE and BDC_CURSOR?

BDC_OKCODE: is used for storing commands during the recording. like '/00' is the command for
'ENTER' Key.
BDC_CURSOR: contains the cursor position. it contians the field in which cursor will be.

Example code:
perform bdc_field using 'BDC_CURSOR'
'PROJ-PSPID'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.

140. What are the 3 methods that we use in sequence in a Batch input session method ?

1) BDC_OPEN_GROUP for opening the Batch Input Session


2) BDC_INSERT for inserting the transactional data into SAP
3) BDC_CLOSE_GROUP for closing the Batch Input Session

141. What is your approach for writing a BDC program?

Identify the Tcode and do the recording in SHDB to populate the BDCDATA.

Once the recording is done , one can Transfer it to the Batch input program.
In the batch Input program , The transactional data is read from the file to an internal table.

Then one can loop over the transactional data in the internal table and start uploading the data in SAP
either by CALL TRANSACTION method or by creating sessions through the batch input program.

142. What is the transaction for Recording BDC ?

The Tcode is SHDB.

143. How do you read files from the Application server ?

You can use the commands:


OPEN DATASET ---> opens the file(dataset) either in read /write mode.
READ DATASET ---> Read the file
CLOSE DATASET ---> Close the dataset once the date has been read .

144. How do you read files from the presentation server ?


You can use the Function Modules :
GUI_UPLOAD --> To read data from file into an internal table
GUI_DOWNLOAD --> To write data from internal table to a file on presentation server

145. Difference between SAP transaction and database transaction

SAP corresponds to single database

146. Can a transparent table exist in data dictionary but not in the database physically?
a) YES
b) NO

147. Fields in database can be changed .


TRUE

148. In regard to CALL, which of the following is NOT a valid statement?

A: CALL FUNCTION
B: CALL SCREEN
C: CALL TRANSACTION
D: CALL PROGRAM

149. Valid Joins on ABAP :

 Equi Join
 Inner Join
 Outer Join
 Self Join
 All

150. To measure how long a block of code runs, use the ABAP statement:
A: GET TIME .
B: SET TIME FIELD .
C: GET RUN TIME FIELD

151. Choose most appropriate option


SELECTION-SCREEN BEGIN OF BLOCK ABC FRAME__________ .
SELECTION SCREEN BEGIN OF SCREEN ABC WINDOW .
SELECTION SCREEN BEGIN OF SCREEN ABC .
ALL OF ABOVE

152. Difference between select single * and select * upto 1 row

SELECT SINGLE returns the first matching row for the given condition and it may not be
unique, if there are more matching rows for the given condition.

SELECT ... UP TO 1 ROWS retrieves all the matching records and applies aggregation and ordering
and returns the first record.

Inorder to check for the existence of a record then it is better to use SELECT SINGLE than using
SELECT ... UP TO 1 ROWS since it uses low memory and has better performance."
According to SAP Performance course the SELECT UP TO 1 ROWS is faster than SELECT SINGLE
because you are not using all the primary key fields.

153.

Edit_mask is To apply the report output formatting options same as in the WRITE statement in report
writing.
DATA TIME TYPE T VALUE '093017'.
WRITE (8) TIME USING EDIT MASK '__:__:__'. "Output: 09:30:17

In this example, the internal length (of type T) is six characters, while the output length is eight.

154.ABAP programmer can create a table with fields not referring to data elements?
TRUE
155. BDC Transaction Vs Session

Call transaction:

1.Synchronous Processing.
2.Synchronous and Asynchronous database updates.
3.Transfer of data for individual transaction,
4.Not suited for bulk transfer.
5.No automatic errror handling.

Session:

1.Asynchronous Processing.
2.Synchronous database updates.
3.Transfer of data for multiple transactions.
4.Best suited for bulk transfer.
5.Automatic errror handling.
6.SAP's standard approach for data transfer

156. You may change the following data object as shown below so that it equals 3.14.
CONSTANTS: PI type P decimals 2 value '3.1'.
PI = '3.14'.

A: True
B: False

157. TO include database-specific SQL statements within an ABAP program, code them between:
A: NATIVE SQL_ENDNATIVE.
B: DB SQL_ENDDB.
C: SELECT_ENDSELECT.
D: EXEC SQL_ENDEXEC.

158. Which fetaure of SQL is not in Open SQL.

 Buffering can't be done.


 Open SQL is not portable.
 It is compatible to all databases

159. The following code indicates:


SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab
WHERE fld1 IN sfld1.

A: Add rows to the existing rows of itab.


B: Add rows to itab after first deleting any existing rows of itab.
C: Select rows from tab1 for matching itab entries.
D: Nothing, this is a syntax error.
160. After a DESCRIBE TABLE statement SY-TFILL will contain

A: The number of rows in the internal table.


B: The current OCCURS value.
C: Zero, if the table contains one or more rows.
D: The length of the internal table row structure.

170. What is the system field for the current date?


A: SY-DATUM
B: SY-DATE
C: SY-DATID
D: SY-SDATE

171.A BDC program is used for all of the following except:

A: Downloading data to a local file


B: Data interfaces between SAP and external systems
C: Initial data transfer
D: Entering a large amount of data

172. After adding rows to an internal table with COLLECT, you should avoid adding more rows
with APPEND.
A: True
B: False

173. Which statement is NOT TRUE about Transparent Table :


 Transparent table correspond to single database table.
 Transparent table and database table have same name,same fields.
 Transparent table and database table have different name,different fields

174. Which is Interactive report event


 TOP OF PAGE
 SET PF
 AT LINE SELECTION

175. ABAP programmers can create their own data types?


a) TRUE b) FALSE

176. Which of the following is NOT a required attribute when creating an ABAP program?

A: Application
B: Title
C: Status
D: Type
177. TCode for SQL Trace? ST05 or DB05

178. Table T000 stores what? Client master data

179, Which of the sentences below is false?

a. ABAP is 3G language
b. ABAP is procedural
c. ABAP is built on OO concepts
d. ABAP is event driven language

180. Local time of the presentation server is stored in which system variable?

SY-TIMELO
Note: Application Server’s time is stored in SY-UZEIT

181. Syntax for Native SQL

Exec…End Exec

182. TCode for Data Model? SD11

183. How to catch an exception?

Catch…EndCatch

184. For what purpose HIDE is used for?

HIDE keyword is used to store the selected data (record) in the backend. This is used in the “Interactive List”.

185. How to fetch data from a specific client?

Using the addition “CLIENT SPECIFIED <client number>” in the Select query.

186. Conversion Exits are attached at what level?

At the Domain level

187. TCode for Spool viewer and Spool Administration?

SP01 and SPAD respectively

188. Which of the following can not be created using SE11?

a. Views
b. Type Pools
c. Lock Objects
d. Search Help
e. ALL

189. Authority check is performed by ABAP using:

a. Authority-Check
b. Authority_Check_Dataset
c. System does it automatically
d. None

190 Selection screen is? An interface between program and user

191. Which clause is used for Search help? MATCHCODE OBJECT

192. Which statement is true?

a. Primary index contains all the primary fields


b. Secondary index can contain non primary fields

193. What happens in the event AT SELECTION-SCREEN? Validations

194. How many types of Messages are there?

6= A, X, E, W, I and S

195. Relationship between Domain and Data elements.

a. One domain can correspond to many Data Elements


b. One Data Element can have only ONE domain

196. Which statement triggers TOP-OF-PAGE event?

Both WRITE and SKIP statements

197. Which Search Help has highest precedence? Search Help attached at Field Level

198. ABAP Programs are –

a. Client dependent
b. Client independent

Table data are –

c. Client dependent
d. Client independent
199. Difference between APPEND and COLLECT keywords?

Append: Always adds a row


Collect: may or may not add a row

200. Which FM is used to transfer the data from the Presentation Server to Application Server?

GUI_UPLOAD

201. Instruction to write data to a file on application server? TRANSFER

202. How can you view the short dump (run time errors)? Using TCode ST22

203. How can standard internal tables be accessed?

a. Sequentially
b. Directly

204. Which system variable to get the Page Number in a list? SY-PAGNO

205. <> means what? NOT EQUAL TO

206. What creates data objects?

a. Data
b. Parameters
c. Constants
d. ALL of the above

207. TCode for processing queue files?

SM35 (Queue file => BDC Session => BDC Group => Batch Input Session)

208. Where ABAP processor does resides? Application Server

209. What will be the output?

a. Initialization. Write: / ‘A’.


b. Top-Of-Page. Write: / ‘B’.
c. Start-Of-Selection. Write: / ‘C’.

Ans: B, C. (A will not be output!)

210. What is meant by SAP R/3?


SAP R/3 is Real time 3 tier architecture.

211. Text elements are language dependent. True or False? True.

212. NUMC is not a numeric data type. True or False? True.

213. What is the order of preference for F4 Help (also called as Search Help)?

Search help order: Field level -> Data Element level -> Domain level

214. What are LPOS and SPOS in F4 Help?

LPOS determines which column comes in the final hit list in which order (left to right) and SPOS is used for
restricting screen (row-wise, from top to bottom)

215. TCode for Layout set? SE71

216. Other names for layout set? Form Painter, SAP Script Painter or even SE71

217. TCode for Menu Painter? SE41

218. TCode for Screen Painter? SE51

219.Table containing standard texts? TTDTG

220. Difference between printer modes (Simplex, Duplex and Tumbled Duplex).

221. Program to load images into SAP system for usage in SAP Scripts? RSTXLDMC.

222. Command used to print several lines in same page (that is, same paragraph)?

PROTECT…ENDPROTECT

223.There cannot be more than one Main window in a page. True or False?

False

224. Which of the following can be included in the flow logic of a screen?

a. PBO
b. PAI
c. POV
d. POH

Ans: All of the above.

225. TCode for Output Type Configuration (also known as Output Determination Configuration)?
NACE

226. Superscripts and Subscripts are used in?

Character formats.

227. Mandatory basic settings for a SAP Script?

First Page and Default Paragraph

228. Which data type cannot be used for parameter declaration?

a. D
b. N
c. C
d. F

Ans: F

229. Which variable is used to store the number of loop counter for looping over the table control?

SY-LOOPL

230.Forms can have only one main window between different pages. True or False?
False

231. SAP Scripts are used to - Print form data

232. TCode to define Barcode?

SE73 (also known as SAP Font Maintenance)

233.Sub-screens do not have their own GUI Status. True or False? True

234 TCode for searching BAPI? BAPI (TCode itself is BAPI)

235.TCode for Workbench Organizer? SE09

236. How to exit the List Processing?

By using the syntax LEAVE LIST PROCESSING

Note: It is notLEAVE TO LIST PROCESSING


237. Different types of traces available.

SQL, RFC, Buffer and Enqueue Trace

238. Program to process BDC Sessions in background? RSBDCSUB

239. Select All Entries is used for? to avoid too much use of select statement in loop.

240. Invalid Data type? HEX

250. TABLE FOR TRANSACTION codes- TSTC

251. What is the name of the system variable that stores content of entire
line where double click has occurred.
sy-lisel

252. Exit statement


exits the current loop

253. An ABP report is selecting data from MARA and storing in GT_MARA.
GT_MARA is being read with key MATNR in the loop of another internal table.The best performance
of read statement is achieved by declaring GT_MARA as:
hash table

254. A table T000 contains: client data

255. conversion exit of a data variable is attached to: domain

256. what are diff data we store in SAP system?


a. Master data
b.Transaction data
c.Customizing data
d.System data
e.All of the above

256. Transaction variants are: For customizing the transaction

257. ABAP is ---fourth---- generation language

258. Find the wrong stmt


A field of a structure can be made a foreign key

259. The value 03 in the ACTVT field of an authority check stmt would authorise user to ----------the
object: Display

260 Which instr is used to move contents of an internal table to a file on the application server
TRANSFER
261. How can you supress default title of a list
no std page heading

262. Time as per the user time zone is stored in the system variable
sy-timlo

263. the trans code for sql trace is


ST05

264. HIDE command in report is used to:


retain content of field with output line

265. there is an internal table with fields A,B,C in that sequence. The statement
AT NEW B wud be triggered on
Change in A

266. The trans code to view a data model is


SD11

267. Programs are


a. Client independent

268. If the type specification is missing the field is of type


character

269. What are the most important precaution one should take for using the "FOR ALL ENTRIES"
command
Ans :Before the select ,check if the internal table used in "FOR ALL ENTRIES " clause is not empty

270. What is true about extract sets/fields groups


They store data in compressed forms

271. In SAP R/3 which one of these allocates the resources in application layer.
Dispatcher

272. Which of the foll is/are client dependent


Layout forms

273. Find the odd man out:


Each session has its own ABAP memory area

274. Syntax for Native SQL


Exec…End Exec

275. Authority check is performed by ABAP using:


Authority-Check
276. Selection screen is?
An interface between program and user

277. Which FM is used to transfer the data from the Presentation Server to Application Server?
GUI_UPLOAD

278. TCode SQL Trace? ST05

279. Table T000 stores wht? CLient Data

280. Which of the following is available in abap.


TAN LOG ANTILOG EXP MOD
ans MOD

281. Find the odd-man out


ABAP Memory can be used to share data between different sessions in different R/3 Systems.
ABAP Memory can be used to share data between diff sessions on same system.
SAP memory get and send data from selection screens fields.
ANS Its the 4th option. Cant remember the option, the above 3 options r wrong, so select the other
option.

282. Selection screen comes after Initialization?


YEs

283. PARAMETERS <p>.....LOWERCASE..... What will P be input as?


Uppercase
Lowercase
As it is
ANS: converts to lowercase.

284. What is the sys var for:

Date Sy-Datum

Time Sy-UZEIT

Username Sy-UNAME

285. Which statement triggers TOP OF PAGE event? WRITE

286. Which event occurs first? INITIALIZATION

287. What happens after AT SELECTIONSCREEN: VALIDATIONS


288. TABLE FOR TRANSACTION codes: TSTC

289. loop
tablename-fldname='Accenture'
Append table
Endloop

ANS: Infinite loop.

290. Which event is triggered when 'At Line-Selection'


ANS 'PICK'

291: Progs are


client indepENDENT
client dep
Both

292: For structures like tables must have primary key?


TRUE

293. Where can we see the o/p of the background processes? SP01

294. RS-SET-SELECTIONSCREEN-STATUS
it sets the screen's status.

295. Instruction to transfer the data from the presentation Server to Application Server
GUI_Upload

296. Instruction to transfer the data from the Application Server to presentation Server
GUI_Download

297. Which Of the following is client dependent? Layout Forms

298. Wht is the keyword used in the PARAMETERS


Values
Value
Default
ANS DEFAULT

299. This data type has a default length of one and a blank default value.

A: I
B: N
C: C
D: D

Ans:C (char has default value as blank and N has default value of 1)

300. A DATA statement may appear only at the top of a program, before START-OF-
SELECTION.

A: True
B: False

301. If a field, NAME1, is declared as a global data object, what will be output by the
following code?

Report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.

name1 = 'Customer name'.


CLEAR name1.
performwrite_name.

FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.

A: Customer name
B: ABAP programmer
C: Material number
D: None of the above

Ans:C

302. All of these allow you to step through the flow of a program line-by-line except:

A: Enter /h then execute


B: Execute in debug mode
C: Enter /i then execute
D: Set a breakpoint

Ans: C

303. Which of the following may NOT be modified using the ABAP Dictionary
transaction?

A: Type groups
B: Search help
C: Lock objects
D: Function groups

304. In a line of code, text-100, is an example of which type of text element?

A: Text symbol

B: Selection text

C: Text title
D: Text identifier

305. The editor function that formats and indents the lines of code automatically is called
____.

A: Auto align
B: Pretty printer
C: Generate version
D: Syntax check

Ans:B

306. A DO loop increments the system field ____.

A: SY-LOOPI
B: SY-TABIX
C: SY-LSIND
D: SY-INDEX

Ans: D

307.The event that is processed after all data has been read but before the list is displayed
is:

A: END-OF-PAGE.
B: START-OF-SELECTION.
C: END-OF-SELECTION.
D: AT LINE-SELECTION.

Ans:AC

308. The field declared below is of what data type?

DATA: new_fld(25).
A: P
B: N
C: I
D: C

Ans: D

309. In regard to the INITIALIZATION event, which of the following is NOT a true
statement?

A: Executed before the selection screen is displayed.


B: You should use SET PF-STATUS here.
C: You can assign different values to PARAMETERS and SELECT-OPTIONS here.
D: Executed one time when you start the report.

Ans: B

310. The event AT SELECTION-SCREEN OUTPUT. occurs before the selection screen
is displayed and is the best event for assigning default values to selection criteria.

A: True
B: False

311. The business (non-technical) definition of a table field is determined by the field's
____.

A: domain
B: field name
C: data type
D: data element

312.In regard to the three-tier client/server architecture, which of the following is a true
statement?

A: The presentation server processes the SAP program logic.


B: An application server is responsible for updating database tables.
C: Typically, there is a one-to-one ratio of database servers to presentation servers.
D: The application server layer is the level between a presentation server and a
database server.

Ans: D, b

313. What will be output by the code below?

DATA: alph type I value 3.


write: alph.

WHILE alph> 2.
write: alph.
alph = alph - 1.
ENDWHILE.

A: 3
B: 3 2
C: 3 3 2
D: 3 3

Ans: D

314. To allow the user to enter a single value on a selection screen, use the ABAP
keyword ____.

A: SELECT-OPTIONS.
B: PARAMETERS.
C: RANGES.
D: DATA.

Ans: B

315. What will be output by the following code?

DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab.

itab-fval = 1. APPEND itab.


itab-fval = 2. APPEND itab.

REFRESH itab.
WRITE: /1 itab-fval.

A: 1
B: 2
C: blank
D: 0

Ans: B

316. You can define your own key fields when declaring an internal table.

A: True
B: Falses
Ans: A

317. When modifying an internal table within LOOP AT itab. _ ENDLOOP.you must
include an index number.

A: True
B: False

Ans :a

318. If itab contains 20 rows, what will SY-TABIX equal when the program reaches the
WRITE statement below?

SY-TABIX = 10.

LOOP AT itab.
count_field = count_field + 1.
ENDLOOP.

WRITE: /1 count_field.

A: 0
B: 10
C: 20
D: 30

Ans: b (Loop at reset the value of SY-TABIX to what it was before entering loop)

319.
Given:
SELECT SINGLE vbeln FROM VBAK INTO vbak-vbeln
WHERE mandt = sy-mandt
AND vbeln = pvbeln.
IF SY-SUBRC = 0.
WRITE: /1 vbak-vbeln.
ENDIF.

If VBAK is a client-dependent table, what will be the result?

A: Output of vbak-vbeln if the record is found.


B: Output of vbak-vbeln if the record is not found.
C: No output if the record is found.
D: Nothing, there is a syntax error.
Ans D
320. To select one record for a matching primary key, use ____.

A: SELECT
B: SELECT INTO
C: SELECT SINGLE
D: SELECT ENTRY
Ans: C

321. In regard to MOVE-CORRESPONDING, which of the following is NOT a true


statement?

A: Moves the values of components with identical names.


B: Fields without a match are unchanged.
C: Corresponds to one or more MOVE statements.
D: Moves the values of components according to their location.

Ans: A D

322.All of the following are valid Open SQL statements except:

A: OPEN DATASET.
B: CLOSE CURSOR.
C: DELETE.
D: COMMIT WORK.

323. To read an exact row number of an internal table, use this parameter of the READ
TABLE statement.

A: INDEX
B: TABIX
C: ROW
D: WHERE

Ans: B A

324. To remove lines from a database table, use ____.

A: UPDATE
B: MODIFY
C: ERASE
D: DELETE

Ans: D

325. Which table type would be most appropriate for accessing table rows using an index.
A: Hashed table
B: Standard table
C: Sorted table
D: None of these may be accessed using an index.

Ans: C

326. The following code indicates:

SELECTION-SCREEN BEGIN OF BLOCK B1.


PARAMETERS: myparam(10) type C,
Myparam2(10) type N,
SELECTION-SCREEN END OF BLOCK.

A: Draw a box around myparam and myparam2 on the selection screen.


B: Allow myparam and myparam2 to be ready for input during an error dialog.
C: Do not display myparam and myparam2 on the selection screen.
D: Display myparam and myparam2 only if both fields have default values.

Ans: A

327. If this code results in an error, the remedy is:

SELECT fld1 SUM( fld1 ) FROM tab1 INTO_

A: Remove the spaces from SUM( fld1 ).


B: Move SUM( fld1 ) before fld1.
C: Add GROUP BY f1.
D: Change to SUM( DISTINCT f1 ).

328. Given:

IF MY_IND = 'X'.
COMMIT WORK.
ELSE.
ROLLBACK WORK.
ENDIF.

If my_ind is initial, this will result in:


A: Changes are written to the database.
B: Changes are undone without writing them to the database.
C: A database error.
D: An abend.

329. When writing a SELECT statement, you should place as much load as possible on
the database server and minimize the load on the application server.
A: True
B: False

Ans: B

330. To allow the user to enter values on the screen for a list field, use:

A: OPEN LINE.
B: SET CURSOR FIELD.
C: WRITE fld AS INPUT FIELD.
D: FORMAT INPUT ON.
Ans :D

331. In regard to subroutines and function modules, to ensure that an actual parameter is
the same type as its corresponding formal parameter, you should ____.

A: code a SY-SUBRC check


B: specify a reference field
C: verify the types yourself when coding
D: use the DESCRIBE FIELD statement

332. In the following code, what does function FC12 do?

AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'FC11'.
SCROLL LIST LEFT BY 20 PLACES.
WHEN 'FC12'.
SCROLL LIST FORWARD.
ENDCASE.

A: Shifts the list rows up.


B: Moves the cursor.
C: Scrolls the list to the right.
D: Performs a page up.
Ans c d

333. What must you code in the flow logic to prevent a module from being called unless
a field contains a non-initial value (as determined by its data type)?

A: ON INPUT
B: CHAIN
C: FIELD
D: ON REQUEST
Ans: A
334. Which of the following is not a component of dialog programming environment?

A: Transaction code
B: Screen
C: ABAP module pool
D: Background job

335. To modify several fields in a screen without referencing each individual field name:

A: Access the SPA/GPA parameter for each of the fields.


B: Assign the fields to a single ABAP Dictionary structure.
C: Group the fields in a CHAIN.
D: Identify the fields via their group name.
Ans:C

336. To allow the user to execute a specific function, write code within the event ____.

A: START-OF-SELECTION.
B: AT LINE-SELECTION.
C: INITIALIZATION.
D: None of the above

Ans:A

337. Page headers for a secondary list should be coded in which event?

A: TOP-OF-PAGE.
B: START-OF-SELECTION.
C: TOP-OF-PAGE DURING LINE-SELECTION.
D: AT USER-COMMAND.

Ans: C

338. Given:

PERFORM subroutine USING var.

The var field is known as what type of parameter?

A: Formal
B: Actual
C: Static
D: Value

Ans:B
339. In regard to Runtime Analysis, which of the following is NOT a true statement?

A: System-level performance problems are identified.


B: Helps you analyze the performance of any program created within the ABAP Workbench. *
C: Helps identify potentially inefficient database accesses.
D: Measurement results are saved in performance data files.

340. The following code indicates:

CALL SCREEN 300.

A: Start the PAI processing of screen 300.


B: Jump to screen 300 without coming back.
C: Temporarily branch to screen 300. *
D: Exit screen 300.

Ans:C

341. When making a function module call, pass internal tables via the parameter ____.

A: EXPORTING
B: IMPORTING
C: USING
D: TABLES

342. To prevent duplicate accesses to a master data field:

A: Create an index on the master data field.


B: Remove nested SELECT statements.
C: Use SELECT SINGLE.
D: Buffer the data in an internal table.

Ans: AC

343. The following code indicates:

SELECT fld1 FROM tab1 INTO TABLE itab


UP TO 100 ROWS
WHERE fld7 = pfld7.

A: Itab will contain 100 rows.

B: Only the first 100 records of tab1 are read.


C: If itab has less than 100 rows before the SELECT, SY-SUBRC will be set to 4.
D: None of the above.
Ans: b

343.To place a checkbox on a list, use

A: WRITE CHECKBOX.
B: FORMAT CHECKBOX ON.
C: WRITE fld AS CHECKBOX.
D: MODIFY LINE WITH CHECKBOX.

Ans:c

344.The following code indicates:

CALL SCREEN 9000 STARTING AT 10 5 ENDING AT 60 20

A: Screen 9000 is called with the cursor at coordinates (10,5)(60,20).


B: Screen 9000 must be of type "Modal dialog box."
C: Display screen 9000 in a full window.
D: Screen 9000 may only contain an ABAP list.

Ans:A

345. Given:

PERFORM my_sub USING fld1 fld2.


FORM my_sub using value(fld1) fld2.
ENDFORM.

The parameter fld1 is passed by:

A: Value
B: Reference
C: Value and result
D: None of the above

346. In the flow logic, what must you code in both PBO and PAI when you have

included a table control in your screen?

A: CHAIN_ENDCHAIN
B: AT EXIT-COMMAND
C: LOOP_ENDLOOP
D: SET PF-STATUS
347. Within the source code of a function module, errors are handled via the keyword:

A: EXCEPTION
B: RAISE
C: STOP
D: ABEND

Ans:B

348. Which of these is NOT a valid type of function module?

A: Normal
B: Update
C: RFC
D: Dialog
Ans:D

58. To call a local subroutine named calculate answer, use this line of code:

A: PERFORM calculate answer.


B: CALL calculate answer.
C: USING calculate answer.
D: SUB calculate answer.

Ans:A

59. All of the following may be performed using SET CURSOR except:

A: Move the cursor to a specific field on a list.


B: Move the cursor to a specific list line.
C: Move the cursor to a specific pushbutton, activating that function.
D: Move the cursor to a specific row and column on a list.

60. The table control attribute <ctrl>-LINES indicates the total number of lines in the
internal table.

A: True
B: False
Ans A

62. A select statement has built-in authorization checks.

A: True
B: False
Ans:B

63. In regard to the DESCRIBE LIST statement, which of the following is a true
statement?

A: Retrieves the ABAP report name.


B: Retrieves the number of list lines and pages.
C: Retrieves the window title.
D: None of the above.

64. By definition, what fields make up the standard internal table key?

A: All the table's fields.


B: All the non-numeric fields.
C: All the numeric fields.
D: The first field.

65. To be able to modify a group of fields on the selection screen with a single
statement, use:

A: AS CHECKBOX
B: SELECTION-SCREEN BEGIN OF LINE
C: MEMORY ID
D: MODIF ID

66. To both add or change lines of a database table, use ____.

A: INSERT
B: UPDATE
C: APPEND
D: MODIFY

Ans:D

67. To select one record for a matching primary key, use ____.

A: SELECT
B: SELECT INTO
C: SELECT SINGLE
D: SELECT ENTRY

Ans:C
68. After adding rows to an internal table with COLLECT, you should avoid adding
More rows with APPEND.

A: True
B: False

Ans:A

69. What addition to the READ TABLE statement must be used when reading a hashed
or sorted internal table to ensure that a binary search will be used?

A: WITH KEY
B: WITH TABLE KEY
C: SEARCH TYPE
D: WHERE
Ans A(for hashed or sorted we use with table key and for transparent table we use with key)

70. If this code results in an error, the remedy is

SELECT * FROM tab1 WHERE fld3 = pfld3.


WRITE: /1 tab1-fld1, tab1-fld2.
ENDSELECT.

A: Add a SY-SUBRC check.


B: Change the * to fld1 fld2.
C: Add INTO (tab1-fld1, tab1-fld2).
D: There is no error.

Ans: C (there is no into statement so wrong syntax)

71. To summarize the contents of several matching lines into a single line, use this
SELECT statement clause.

A: INTO
B: WHERE
C: FROM
D: GROUP BY

Ans:D

72. What is output by the following code?

DATA: BEGIN OF itab OCCURS 0,


letter type c,
END OF itab.
itab-letter = 'A'. APPEND itab.
itab-letter = 'B'. APPEND itab.
itab-letter = 'C'. APPEND itab.
itab-letter = 'D'. APPEND itab.

LOOP AT itab.
SY-TABIX = 2.
WRITE itab-letter.
EXIT.
ENDLOOP.

A: A
B: ABCD
C: B
D: BCD

Ans: a

73. This selection screen syntax forces the user to input a value:

A: REQUIRED-ENTRY
B: OBLIGATORY
C: DEFAULT
D: SELECTION-SCREEN EXCLUDE

74. To create a list of the top 25 customers, you should use

A: DELETE ADJACENT DUPLICATES


B: READ TABLE itab INDEX 25
C: LOOP AT itab FROM 25
D: APPEND SORTED BY

Ans:D

75. The following code indicates:

DATA: itab1 LIKE struc1 OCCURS 0 WITH HEADER LINE,


itab2 LIKE struc1 OCCURS 0 WITH HEADER LINE.

itab1[] = itab2[].

A: Set the type of itab1 to the type of itab2.


B: Move the header line of itab2 to itab1.
C: Move all the rows of itab2 to itab1.
D: Move the last row of itab2 to itab1.

77. In regard to Native SQL, which of the following is NOT a true statement?

A: A CONNECT to the database is done automatically.


B: You must specify the SAP client.
C: The tables that you address do not have to exist in the ABAP Dictionary.
D: Will run under different database systems.

Ans:D

78. To change one or more lines of a database table, use ____.

A: UPDATE
B: INSERT
C: INTO
D: MOD

Ans:A

79. Which is the correct sequence of events?

A: AT SELECTION-SCREEN, TOP-OF-PAGE, INITIALIZATION


B: START-OF-SELECTION, AT USER-COMMAND, GET dbtab
C: INITIALIZATION, END-OF-SELECTION, AT LINE-SELECTION
D: GET dbtab, GET dbtab LATE, START-OF-SELECTION

Ans:C

80. Which of the following is NOT a numeric data type?

A: I
B: N
C: P
D: F

Ans: B

81. Which of these sentences most accurately describes the two-level domain concept?

A: Two different Domains may use the same Data element.


B: A single field may use two different Domains.
C: Two different Data elements may use the same Domain.
D: A single field may use two different Data elements.

Ans:C

82. Which of the following is NOT a required attribute when creating an ABAP
program?

A: Application
B: Title
C: Status
D: Type

Ans: a

83. Page headers for a basic list can be coded in the event:

A: NEW-PAGE.
B: AT LINE-SELECTION.
C: INITIALIZATION.
D: TOP-OF-PAGE.

Ans:D

85. The complete technical definition of a table field is determined by the field's:

A: Domain
B: Field name
C: Data type
D: Data element

86. Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a
list report, what event is processed when the button is clicked?

A: AT USER-COMMAND.
B: AT PFn.
C: AT SELECTION-SCREEN.
D: END-OF-SELECTION.

Ans:A

87. The major difference between DO and WHILE is:


A: WHILE requires a logical expression.
B: You cannot use the CONTINUE statement with WHILE.
C: A WHILE loop may not be nested within another WHILE loop.
D: Endless loops are not possible with WHILE.

Ans:A

88. You can change the length of a data object of type I by adding ( ) after the field
name in the data declaration, as in the following statement:

DATA: counter(3) type I.

A: True
B: False

Ans:A

89. Which of the following is not a valid ABAP relational operator?

A: CP
B: NC
C: O
D: NS
Ans: C

90. A concrete field is associated with a field-symbol via ABAP keyword

A: MOVE
B: WRITE
C: ASSIGN
D: VALUE

91. The following event may be explicitly coded, but it is also implied.

A: END-OF-SELECTION.
B: START-OF-SELECTION.
C: AT LINE-SELECTION.
D: AT SELECTION-SCREEN.

Ans:A

92. Which of the following describes the internal representation of a type D data object?

A: DDMMYYYY
B: YYYYDDMM
C: MMDDYYYY
D: YYYYMMDD

Ans:D

93. What is the transaction code for the ABAP Editor?

A: SE11
B: SE38
C: SE36
D: SE16

Ans:B

94. Given:
REPORT ZINTERAC.
WRITE 'First List'.
AT PF5.
WRITE: 'Second List'.

After running the report, how would the user receive the output, "Second List?"

A: No further action is required


B: Double-click the "First List" row
C: Press the keyboard function key F5
D: This is not possible for the given code
Ans:C

95.To branch from dialog processing to list processing, use:

A: LEAVE TO SCREEN 0.
B: LEAVE TO LIST-PROCESSING.
C: CALL SCREEN.
D: LEAVE LIST-PROCESSING.

96. In regard to SET PF-STATUS, you can deactivate unwanted function codes by
using ____.

A: EXCLUDING
B: IMMEDIATELY
C: WITHOUT
D: HIDE

97. Function module source code may have its own local data.

A: True
B: False
Ans:A

98. The ABAP statement you will typically use in a 'CANCEL' function is:

A: CALL SCREEN 0.
B: COMMIT WORK.
C: ROLLBACK WORK.
D: UPDATE.

Ans:C

99. After double-clicking a line on a basic list, what will the system field SY-LSIND
equal?

A: 0
B: 2
C: 1
D: The value is unchanged.
Ans C

100. The following code indicates:

REPORT ZLISTTST.
START-OF-SELECTION.
WRITE: text-001.
FORMAT HOTSPOT ON.
WRITE: text-002.
FORMAT HOTSPOT OFF.
AT LINE-SELECTION.
WRITE / text-003.

A: Text-002 may not be selected.


B: The value of text-002 is stored in a special memory area.
C: Text-002 may be clicked once to trigger the output of text-003.
D: None of the above.

Ans:C

101. All of the following are considered to be valid ABAP modularization techniques
except:

A: Subroutine
B: External subroutine
C: Field-group
D: Function module
Ans:C

102. In an R/3 environment, where is the work of a dialog program performed?

A: On the application server using a dialog work process service.


B: On the presentation server using a dialog work process service.
C: On the database server using a dialog work process service.
D: None of the above.

Ans: BA

103. Which of the following is NOT one of the types of internal tables in ABAP?

A: Standard
B: Sorted
C: Hashed
D: Unique

Ans:D

104. In regard to a subquery, which of the following is a true statement?

A: SELECT SINGLE may be used.


B: UPDATE may not use a subquery.
C: Allows you to program a second SELECT as part of the WHERE clause.
D: The outer SELECT is processed first.
Ans:C

105. In regard to internal tables, which of the following is NOT a true statement?

A: May be used to buffer data in memory.


B: Data values are retained when the program is finished.
C: Typically used for storing data from one or more database tables.
D: Consists of rows with the identical structure.

Ans:

106. To code a horizontal line on a selection screen, use SELECTION-SCREEN:

A: COMMENT
B: HLINE
C: ULINE
D: SKIP

Ans:C
107. To select all database entries for a certain WHERE clause into an internal table in one step, use

A: SELECT_INTO TABLE itab_


B: SELECT_INTO itab_
C: SELECT_APPENDING itab
D: SELECT_itab_

Ans:A

108. To code a blank line on a selection screen, use SELECTION-SCREEN:

A: COMMENT
B: EXCLUDE
C: ULINE
D: SKIP

Ans: D

109. To limit the number of records selected from the database, use ____.

A: WHERE
B: WHEN
C: IF
D: CASE

Ans:A
110. To limit your SELECT statement to user-entered SELECT-OPTIONS, use ____.

A: IN
B: EQ
C: NE
D: BT

Ans:A

111. ------

112. The CASE statement may not contain a logical expression, as in

CASE my_fld> 3.

A: True
B: False

Ans:B
113. The ____ type of ABAP Dictionary view consists of one or more transparent tables
and may be accessed by an ABAP program using Open SQL.

A: Database view
B: Projection view
C: Help view
D: Entity view

Ans: B A

114. Name the type of ABAP Dictionary table that has these characteristics:

Same number of fields as the database table


Same name as database table
Maps 1:1 to database table

A: Pooled
B: Cluster
C: Transparent
D: View

Ans:C

115. Page headers for a secondary/details list can be coded in the event:

A: GET.
B: INITIALIZATION.
C: TOP-OF-PAGE DURING LINE-SELECTION.
D: NEW-PAGE.

Ans:C

116. Page footers are coded in the event:

A: TOP-OF-PAGE.
B: END-OF-SELECTION.
C: NEW-PAGE.
D: END-OF-PAGE.

Ans:D

117. This data type has a default length of eight and a default value = '00000000'.

A: P
B: D
C: N
D: C

Ans: B

118. Which of these sentences most accurately describes the GET VBAK LATE.event?

A: This event is processed before the second time the GET VBAK event is
processed.
B: This event is processed after all occurrences of the GET VBAK event are
completed.
C: This event will only be processed after the user has selected a basic list row.
D: This event is only processed if no records are selected from table VBAK.

Ans:B

119. Given:

DO.
Write: /1 'E equals MC squared.'.
ENDDO.

This will result in ____.

A: output of 'E equals MC squared.' on a new line one time


B: an endless loop that results in an abend error
C: output of 'E equals MC squared.' on a new line many times
D: a loop that will end when the user presses ESC
Ans.B

120. The following code indicates

write: /5 'I Love ABAP'.

A: Output 'I Lov' on the current line


B: Output 'I Love ABAP' starting at column 5 on the current line
C: Output 'I Lov' on a new line
D: Output 'I Love ABAP' starting at column 5 on a new line
Ans: D

121. Which of the following is NOT a component of the default standard ABAP report
header?

A: Date and Time


B: List title
C: Page number
D: Underline

Ans: A

122. This data type has a default length of one and a default value = '0'.

A: P
B: C
C: N
D: I

Ans: C

123. A BDC program is used for all of the following except:

A: Downloading data to a local file


B: Data interfaces between SAP and external systems
C: Initial data transfer
D: Entering a large amount of data

124. In regard to CALL, which of the following is NOT a valid statement?

A: CALL FUNCTION
B: CALL SCREEN
C: CALL TRANSACTION
D: CALL PROGRAM

Ans: D

125. The output for the following code will be

reportzabaprg.
DATA: my_field type I value 99.

my_field = my_field + 1.
clearmy_field.

WRITE: 'The value is', my_field left-justified.

A: The value is 99
B: The value is 100
C: The value is 0
D: None of the above

Ans: C
126. CONSTANTS: var_one (3) type C value 'DOG'.

IF var_one = 'dog'.
WRITE: /1 'Bark!'.
ELSE.
WRITE: /1 'Meow!'.
ENDIF.

WRITE: var_one.

This will result in the output:

A: Bark! DOG
B: DOG
C: Meow! DOG
D: None of the above

Ans: C

127. Dialog programs must be executed via a transaction code.

A: True
B: False

128. Within an interactive list event, you can override the value of SY-LSIND.

A: True
B: False

129. To indicate that your new function module is ready to be freely used by anyone,
you should:

A: Activate it.
B: Release it.
C: Add documentation.
D: Send out an e-mail.

Ans: A

130. To set up a screen field to allow default values to be stored across user sessions:

A: Turn on the field attribute flag for SPA/GPA.


B: Enter a value in the search-help field attribute.
C: Set the field to display only.
D: Use the identical names concept.
131. All of the following are true statements regarding SET TITLEBAR except:

A: Sets the title of the output list window.


B: A title is active for all screens until another SET TITLEBAR statement occurs.
C: Changes the report's title attribute.
D: A title is defined for a single program.

132. Which of the following is NOT included in the Performance Trace tool for
analyzing database accesses within a program?

A: SQL Trace Analysis


B: Runtime Trace Analysis
C: Enqueue Trace Analysis
D: RFC Trace Analysis

133. Which system field contains the contents of a selected line?

A: SY-CUCOL
B: SY-LILLI
C: SY-CUROW
D: SY-LISEL

Ans: D

134. To include a field on your screen that is not in the ABAP Dictionary, which
include program should contain the data declaration for the field?

A: PBO module include program


B: TOP include program
C: PAI module include program
D: Subroutine include program

135. To exchange data between reports without an external subroutine call, you may
use:

A: IMPORT_MEMORY data_object MEMORY ID 'ID'.


B: READ_DATA data_object.
C: EXPORT data_object TO MEMORY ID 'ID'.
D: SAVE data_object MEMORY ID 'ID'.

136. Function module source code may not call a subroutine.

A: True
B: False
Ans: B

137. All of the following will delete all rows of an internal table with a header line
except:

A: CLEAR itab.
B: REFRESH itab.
C: CLEAR itab[].
D: FREE itab.

Ans:A

138. After a DESCRIBE TABLE statement SY-TFILL will contain

A: The number of rows in the internal table.


B: The current OCCURS value.
C: Zero, if the table contains one or more rows.
D: The length of the internal table row structure.

Ans:A

139. To allow the user to enter a range of values on a selection screen, use the ABAP
keyword:

A: DATA.
B: RANGES.
C: PARAMETERS.
D: SELECT-OPTIONS

Ans: B D

140. An internal table that is nested within another internal table should not contain a
header line.

A: True
B: False

Ans:A

141. If the following code results in a syntax error, the remedy is:

DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1
WITH HEADER LINE.

itab-field1 = 'Company'. itab-field2 = '1234'. INSERT TABLE itab.


itab-field1 = 'Bank'. itab-field2 = 'ABC'. INSERT TABLE itab.
SORT itab.

LOOP AT itab.
write: /1 itab-field1, itab-field2.
ENDLOOP.

A: There is no syntax error here


B: Remove the SORT statement
C: Change INSERT to APPEND
D: Add a WHERE clause to the loop

Ans:C

142. In regard to the OCCURS parameter, which of the following is a true statement?

A: Determines the maximum number of rows when using APPEND itab


SORTED BY.
B: Sets the upper limit for adding rows with APPEND itab.
C: Allocates memory in blocks of 800 Bytes.
D: None of the above

Ans:A

143. To get the number of rows in an internal table, use the ABAP statement:

A: READ TABLE itab INDEX nlines.


B: DESCRIBE TABLE itab LINES nlines.
C: COUNT TABLE itab LINES INTO nlines.
D: COLLECT itab LINES nlines.

144. Which of the following is NOT a true statement in regard to a sorted internal table
type?

A: May only be accessed by its key.


B: Its key may be UNIQUE or NON-UNIQUE.
C: Entries are sorted according to its key when added.
D: A binary search is used when accessing rows by its key.

Ans: C A

145. To ensure that you select data directly from the database, use ____.

A: CLIENT-SPECIFIED
B: BYPASSING BUFFER
C: ORDER BY
D: GROUP BY

146. If this code results in an error, the remedy is:

SELECT fld1 fld2 FROM tab1 WHERE fld3 = pfld3.


WRITE: /1 tab1-fld1, tab1-fld2.
ENDSELECT.

A: Add a SY-SUBRC check.


B: Change the WHERE clause to use fld1 or fld2.
C: Remove the /1 from the WRITE statement.
D: Add INTO (tab1-fld1, tab1-fld2).

Ans:D

147. Given:
SELECT-OPTIONS: s_opt FOR kna1-kunnr NO-EXTENSION.

The user may enter only a:

A: From value
B: To value
C: Single range
D: Exclusion range

148. Which of the following is not a standard pre-defined data type?

A: D
B: O
C: F
D: X
E: T

Ans: B

149. Which of the following would be stored in a table as master data?

A: Customer name and address


B: Sales order items
C: Accounting invoice header
D: Vendor credit memo

Ans: A
150. The following statement will result in a syntax error.

DATA: price(3) type p decimals 2 value '100.23'.

A: True
B: False

Ans: B

151. What standard data type is the following user-defined type?

TYPES: user_type.

A: N
B: C
C: I
D: Undefined

Ans: B

152. Which of the following is NOT a character data type?

A: F
B: D
C: T
D: X

Ans: A

153. The transport route of an ABAP workbench object is determined by the object's:

A: Client designation
B: Program type
C: Development class
D: Naming convention

154. The SAP service that ensures data integrity by handling locking is called:

A: Update
B: Dialog
C: Enqueue/Dequeue
D: Spool

155. In regard to the AT USER-COMMAND event, which of the following is NOT a


true statement?

A: The standard system function 'BACK' is processed here.


B: Executed when a function key is pressed.
C: SY-UCOMM contains the current function code.
D: Function codes from your own menu painter status are processed here.

156. The order in which an event appears in the ABAP code determines when the event
is processed.

A: True
B: False

Ans: B

157. In regard to the START-OF-SELECTION event, which of the following is a true


statement?

A: Executed before the selection screen is displayed.


B: This is the only event in which a SELECT statement may be coded.
C: Executed when the user double-clicks a list row.
D: Automatically started by the REPORT statement.

Ans:D

158. In regard to a screen's flow logic, which of the following in not a true statement?

A: Contains PBO and PAI module statements.


B: Uses the same syntax as the ABAP modules.
C: Determines the processing sequence of ABAP logic for a screen.
D: Controls what happens before a screen is output and what happens after user input.
Ans B

159. In regard to performance, which of the following is a true statement?

A: WHILE is faster than DO.


B: Nested selects are efficient.
C: CHECK is very inefficient.
D: NE in a WHERE clause is better than EQ.

Ans: A

160. This flow logic statement is used to make multiple fields open for input after an
Error or warning message.
A: GROUP
B: FIELD-GROUP
C: CHAIN
D: LOOP AT SCREEN
Ans C

161. Errors to be handled by the calling program are defined in a function module's
____.

A: exceptions interface
B: source code
C: exporting interface
D: main program

Ans :A

162. In regard to a function group, which of the following is NOT a true statement?

A: Combines similar function modules.


B: Shares global data with all its function modules.
C: Exists within the ABAP workbench as an include program.
D: Shares subroutines with all its function modules.

Ans: C

163. All of the following pertain to interactive reporting in ABAP except:

A: Call transactions and other programs from a list.


B: Secondary list shows detail data.
C: Good for processing lists in background.
D: AT USER-COMMAND

Ans:C

164. A template that groups up to ten fields for testing access privileges is known as
____.

A: Authorization
B: Authorization object
C: User profile
D: Authority profile
Ans: B

165. To allow a basic list line to branch to a different SAP transaction use:

A: LEAVE TRANSACTION
B: SUBMIT TRANSACTION
C: EXECUTE TRANSACTION
D: CALL TRANSACTION

166. If a table contains many duplicate values for a field, minimize the number of
records returned by using this SELECT statement addition.

A: MIN
B: ORDER BY
C: DISTINCT
D: DELETE

Ans:C

167. To select data from more than one table, you may use all of the following except:

A: INNER JOIN.
B: LEFT OUTER JOIN.
C: A database view.
D: None of the above

Ans:D

168. Assuming itab has a header line, what will be output by the following code?

READ TABLE itab INDEX 3 TRANSPORTING field1.


WRITE: /1 itab-field1, itab-field2.

A: The contents of the third row's itab-field1.


B: The contents of the third row's itab-field1 and itab-field2.
C: The contents of the third row's itab-field2.
D: Nothing.

169. The following code indicates:

READ TABLE itab WITH KEY field1 = sy-langu


field2 = counter.

A: Read table itab row-by-row until finding an entry other than field1 = sy-langu and
field2 = counter.
B: Read the row with an index number equal to the value stored in counter.
C: Read the internal table using the binary search method to find field1 = sy-langu and
field2 = counter.
D: Read the first row found in itab that has field1 = sy-langu and field2 = counter.

170. Predefined selection criteria values assigned to a report are called:

A: Variants.
B: Matchcodes.
C: Search-helps.
D: Screen-batches.

171. Which of the following will NOT add rows to an internal table?

A: INSERT
B: APPEND
C: COLLECT
D: MODIFY

Ans:D

172. The following code indicates:

INITIALIZATION.
concatenate 'IEQ' sy-uname into surname.

A: The field surname will be output in the page header.


B: SELECT-OPTION surname will contain the user name in its from value at
runtime.
C: The user name is set equal to the value contained in field surname.
D: A default value of 'IEQ' is assigned to the PARAMETER surname.
Ans:B

173. The SAP service that handles system output is called:

A: Update
B: Batch
C: Enqueue/Dequeue
D: Spool

Ans: D

174. Data types contain data values and data objects describe the data.
A: True
B: False

175. An event starts with an event keyword and ends with:

A: Program execution.
B: END-OF-EVENT.
C: Another event keyword.
D: END-EVENT.

176. An ABAP data type may be declared with reference to the SAP data type P.

A: True
B: False

177. Pressing the enter key in PC mode while entering code in the ABAP editor will do
all of the following except:

A: Insert a blank line after the current line


B: Insert a blank line before the current line
C: Select the beginning of a block of lines
D: Split the current line at the cursor position

178. Data types may be defined in the ABAP dictionary.

A: True
B: False

Ans: A

179. To trigger an interactive event from within an ABAP program without user
interaction, use the statement:

A: SET USER-COMMAND
B: SET PF-STATUS
C: CALL FUNCTION
D: AT USER-COMMAND

180. What value must ch_field contain so that "Nice job!" will be output?

Write: /1 'Nice'.
CHECK ch_field NE 'X'.
Write: 'job!'.
A: 'X'
B: Anything other than 'X'
C: "Nice job!" will not be output by this code
D: None of the above

181. To view the contents of an ABAP Dictionary table, use transaction ____.

A: SE16
B: SE10
C: SE36
D: SE37

182. To write a custom text on the selection screen use SELECTION-SCREEN:

A: SKIP.
B: COMMENT.
C: TEXT.
D: FIELD.

Ans:B

183. You may declare your own internal table type using the TYPES keyword.

A: True
B: False

Ans:B

184. To make a selection criterion case-sensitive, use:

A: ACCEPTING CASE
B: LOWER CASE
C: UPPER CASE
D: CASE

185. Instead of using OCCURS 50, you could use:

A: ROWS 50
B: INDEX 50
C: DEFAULT 50
D: INITIAL SIZE 50

Ans: D

186. ABAP Open SQL enables you to access all tables within the SAP system,
regardless of the database system installed.

A: True
B: False
Ans:A

187. The following code reorders the rows so that:

DATA: itab LIKE kna1 OCCURS 0 WITH HEADER LINE.

itab-name1 = 'Smith'. itab-ort01 = 'Miami'. APPEND itab.

itab-name1 = 'Jones'. itab-ort01 = 'Chicago'. APPEND itab.

itab-name1 = 'Brown'. itab-ort01 = 'New York'. APPEND itab.

SORT itab BY name1 ort01.

A: Smith appears before Jones


B: Jones appears before Brown
C: Brown appears before Jones
D: Miami appears before New York

Ans: C

188. Which Open SQL statement should not be used with cluster databases?

A: UPDATE
B: MODIFY
C: DELETE
D: INSERT

Ans: D

189. You should never nest SELECT statements because this results in a syntax error.

A: True
B: False

Ans:B

190. To properly tune the following code, you should:

SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4, fld5, fld6)
WHERE fld7 = pfld7.
CHECK tab1-fld9 = pfld9.
WRITE: /1 fld4, fld5, fld6.
ENDSELECT.

A: Add a SY-SUBRC check after ENDSELECT.


B: Remove the INTO clause of the SELECT statement.
C: Take the WRITE statement out of the SELECT_ENDSELECT.
D: Move the CHECK statement into the WHERE clause.

191. To declare a table control in the module pool, use:

A: CONTROLS ctrl_name TYPE TABLE CONTROL.


B: TYPES ctrl_name TABLEVIEW.
C: DATA ctrl_name TYPE TABLE CONTROL.
D: CONTROLS ctrl_name TYPE TABLEVIEW USING SCREEN 100.
Ans : D

192. The ABAP keyword for adding authorizations to a program is ____.

A: AUTH-CHECK
B: AUTHORITY-CHECK
C: AUTHORIZATION-CHECK
D: AUTHORITY-OBJECT

Ans:B

193. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good method for
improving performance.

A: True
B: False

Ans:B

194. To prevent certain users from using a transaction code, you can do all of the
following except:

A: Remove the transaction code from the user profile.


B: Hide the menu path from the user.
C: Add an authorization object to the transaction definition.
D: Code your own ABAP authorization check in the program associated with the
transaction.

Ans:B
195. In regard to data transported in PAI when the FIELD statement is used, which of
the following is NOT a true statement?

A: Fields in PBO are transported directly from PAI.


B: Fields with identical names are transported to the ABAP side.
C: Fields not defined in FIELD statements are transported first.
D: Fields that are defined in FIELD statements are transported when their
corresponding module is called.

196. The following code indicates:

SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab


WHERE fld1 IN sfld1.

A: Add rows to the existing rows of itab.


B: Add rows to itab after first deleting any existing rows of itab.
C: Select rows from tab1 for matching itab entries.
D: Nothing, this is a syntax error.

Ans:A

197. The control block ON CHANGE OF fld1_ENDON may be used between


SELECT_ENDSELECT.

A: True
B: False

Ans:A

198. The following statement writes what type of data object?

WRITE: /1 'Total Amount:'.

A: Text literal
B: Text variable
C: In-code comment
D: Text integer

199. In order to change the data contents of an ABAP Dictionary table via standard
functions you must first:
A: Enter delivery class = A
B: Turn on the Tab.Maint.Allowed flag
C: Enter data class = USER
D: Use a size category of 1

200. The following code will output:

write: /1 'Start'.

PERFORM write_next.

write: 'End'.

FORM write_next.
write: 'next'.
EXIT.
write: 'more'.
ENDFORM.

A: Start next
B: Start next more
C: Start next End
D: Start more End

Ans:c

201. This event retrieves data from a logical database.

A: READ
B: SELECT
C: GET
D: AT USER-COMMAND

Ans:C

202. Which statement does not contain a syntax error?

A: DATA invoice_number(10) type N default '1234567890'.


B: TYPES cust_type like kna1 occurs 0.
C: CONSTANTS apple(10) type c value 'Apple', orange(10) type c value 'Orange'.
D: DATA data_obj type p decimals 2 value 234.98.

Ans: B

203. An administrative unit in which SAP services are started and stopped at the same
time is called:

A: Message server
B: Instance
C: Gateway
D: Profile

204. ABAP Open SQL contains both Data Definition Language (DDL) statements and
Data Controlling Language (DCL) statements.

A: True
B: False

205. Which keyword adds a line anywhere within an internal table?

A: APPEND
B: MODIFY
C: ADD
D: INSERT

Ans:D

206. To total the numeric fields at a control break, use:

A: ADD.
B: SUM.
C: COUNT.
D: TOT.

207. To select unique values of a field, use ____.

A: INTO TABLE
B: UP TO 1 ROWS
C: DISTINCT
D: ORDER BY

Ans:C

208. After a successful SELECT statement, what does SY-SUBRC equal?

A: 0
B: 4
C: 8
D: Null
Ans: A

209. Which dialog programming section is used to initialize a screen's field values?

A: PBO
B: PAI
C: INITIALIZATION
D: None of the above
Ans A

210. Which dialog programming section is used to handle user functions?

A: PBO
B: PAI
C: INITIALIZATION
D: None of the above
Ans B

211. In regard to a dialog step, which of the following is NOT a true statement?

A: Begins at start of PAI of the current screen.


B: Ends at end of PBO of the next screen.
C: Ends when the next screen is displayed.
D: Begins when the next screen is displayed
Ans D

212. SET SCREEN 200. LEAVE SCREEN.

A: Come back to the calling screen from screen 200.


B: Exit screen 200.
C: Branch back to the previous screen.
D: Branch to screen 200 without coming back.

213. SELECT fld1 fld2 fld3 FROM tab1 INTO (itab-fld4, itab-fld5, itab-fld6)
WHERE fld7 = pfld7.
APPEND itab.
ENDSELECT.

Which of the following is a good performance tuning technique?

A: Change the SELECT statement to use INTO TABLE itab.


B: Add MOVE statements to fill the header line of itab.
C: Remove the internal table itab from the SELECT statement.
D: This code is optimized; no change is required.

214. From program zprog1, to call a subroutine named sub_name in program zprog2,
code the following:

A: CALL zprog2(sub_name).
B: PERFORM sub_name(zprog2).
C: PERFORM (sub_name)zprog2.
D: INCLUDE zprog2(sub_name).

215. All of the following are true in regard to a parameter passed by reference, except:

A: A pointer to the memory location of the parameter's value is passed.


B: Changing the formal parameter immediately changes the passed parameter.
C: Besides USING, no additional syntax is required.
D: New memory is allocated for the parameter's value.

Ans:D

216. If an internal table is declared without a header line, what else must you declare to
work with the table's rows?

A: Another internal table with a header line.


B: A work area with the same structure as the internal table.
C: An internal table type using the TYPES statement.
D: A PARAMETER.

Ans:B

217. When coding AT FIRST fld1. _ ENDAT.within an internal table loop, you should
avoid using:

A: SORT itab by fld1.


B: LOOP AT itab WHERE fld1 = pfld.
C: SUM.
D: WRITE itab-fld1.
Ans B

218. To grant a set of access privileges to a user ____.

A: enter the authorization profile name in the user master record


B: assign the user to the authority object's list of allowed users
C: include the user name in the ABAP authorization check
D: none of the above

Ans:A
219. Which statement correctly declares a field-symbol?
A: FIELD-SYMBOLS fs.
B: FIELD-SYMBOLS <fs>.
C: FIELD-SYMBOLS [fs].
D: FIELD-SYMBOLS (FS).

Ans:B

220. This event occurs before a selection screen is displayed and may be used to assign
default values.

A: INITIALIZATION.
B: TOP-OF-PAGE.
C: START-OF-SELECTION.
D: GET.

Ans:A

221. In regard to PERFORM, which of the following is NOT a true statement?

A: May be used within a subroutine.


B: Requires actual parameters.
C: Recursive calls are allowed in ABAP.
D: Can call a subroutine in another program.

Ans:B

222. You declare a local data object that retains its value across multiple subroutine
calls using the keyword

A: DATA
B: TYPES
C: PARAMETERS
D: STATICS

Ans:D

223. When creating a transparent table in the ABAP Dictionary, which step
automatically creates the table in the underlying database?

A: Adding technical settings to the table


B: Checking the table syntax
C: Saving the table
D: Activating the table

Ans:D
224. If you forget the syntax of an ABAP keyword, how can you get help on that
keyword?

A: Double-click the keyword


B: Click once on the keyword and press the F1 key
C: Highlight the keyword and press the Enter key
D: Choose the menu path Help -> Settings

Ans:B

225. Entering transaction SE80 will take you to an interface tool for managing
application development objects. This tool is called the ____.

A: ABAP editor
B: ABAP workbench
C: Object list
D: Repository browser

Ans: B

226. The declarative keyword for defining your own data types in an ABAP program is
____.

A: DATA
B: TYPE-GROUPS
C: TYPES
D: DATA-TYPE

Ans:C

227. To output a control break grand total for an entire internal table, use:

A: AT LAST
B: AT NEW
C: ON CHANGE OF
D: LOOP AT itab FROM

Ans:A

228. Internal tables passed with TABLES are passed by:

A: Value
B: Value and result
C: Changing
D: Reference
Ans: D

229. SELECT fld1 FROM tab1 INTO fld4


WHERE fld7 = pfld7.
tot = tot + fld4.
ENDSELECT.

A good performance tuning technique would be to change the SELECT statement to use:

A: GROUP-BY.
B: SUM.
C: TOT.
D: MAX.

230. Database locks are sufficient in a multi-user environment.

A: True
B: False

231. Which keyword changes any line within an internal table?

A: INSERT
B: APPEND
C: ALTER
D: MODIFY

Ans: D

232. To get the average value of a database table field as you select it, use ____.

A: GET AVERAGE
B: SELECT AVERAGE
C: SELECT AVG
D: COMPUTE AVG

Ans:

233. In regard to a dynamic WHERE clause, which of the following is not a true
statement?

A: Include an internal table in parentheses without blanks.


B: The IN operator may be used with the dynamic values internal table.
C: The dynamic internal table may have two or more fields.
D: The dynamic internal table may be empty.
Ans C

234. In regard to a subquery, which of the following is a true statement?

A: SELECT SINGLE may be used.


B: UPDATE may not use a subquery.
C: Allows you to program a second SELECT as part of the WHERE clause.
D: The outer SELECT is processed first.

Ans: C
235. What is the transaction code for the ABAP Dictionary?

A: SE10
B: SE38
C: SE11
D: SE37

Ans:C

236. The TABLES statement declares a data object.

A: True
B: False

Ans:A

237. Given this code:

AT LINE-SELECTION.
Write: /1 'Thanks!'.

What will trigger the output of the word "Thanks!"?

A: Executing the ABAP report


B: Double-clicking a list row
C: Clicking once on a list row and pressing Enter
D: None of the above

Ans:B

238. --------

239. Before a function module may be tested, it must first be:

A: Linked
B: Authorized
C: Released
D: Active
Ans: D

240. All of the following pertain to a subroutine's local data object except:

A: Declared inside of the subroutine.


B: Available only within the subroutine.
C: Must follow the same declaration syntax as Global data.
D: Value is known to all subroutines

Ans: D

241. After coding an authorization check, what else should you code to handle a failed
check?

A: WRITE 'You are not authorized'.


B: IF SY-SUBRC NE 0. EXIT.ENDIF.
C: Nothing; the program stops automatically.
D: CHECK AUTHORITY-OBJECT

Ans:B

242. In regard to HIDE, which of the following is NOT a true statement?

A: Saves the contents of variables in relation to a list line's row number.


B: The hidden variables must be output on a list line.
C: The HIDE area is retrieved when using the READ LINE statement.
D: The HIDE area is retrieved when an interactive event is triggered.

Ans:A

243. If you want to use a SPA/GPA parameter value as a default value for a selection
screen field, use:

A: MATCHCODE OBJECT
B: MODIF ID
C: DEFAULT
D: MEMORY ID

244. To assign an initial value, include this option of the PARAMETERS statement:

A: FIRST
B: INITIALIZATION
C: VALUE
D: DEFAULT

Ans: D

245. To delete duplicate lines from an internal table use the ABAP statement:

A: SORT itab WITH UNIQUE ROWS.


B: REMOVE DUPLICATES FROM itab.
C: DELETE itab.
D: DELETE ADJACENT DUPLICATES FROM itab

Ans: D

246. At runtime Native SQL is converted to ABAP Open SQL.

A: True
B: False

Ans: B

247. What will be output by the following code?

DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab.


itab-fval = 1. APPEND itab.
itab-fval = 2. APPEND itab.

FREE itab.
WRITE: /1 itab-fval.

A: 2
B: 0
C: blank
D: 1

Ans: 2

248. Given this code, what will be the resulting output?

reportzabaprg.
DATA: address(45) type C value '1600 Penn Ave.',
street like address.

address = '100 Washington Place'.


WRITE: /1 'He lives at', street.
A: He lives at 100 Washington Place
B: He lives at
C: He lives at 1600 Penn Ave.
D: He lives at 100 Washington Place, 1600 Penn Ave.
E: None of the above

Ans: B

249. For a table field that you create, you may create your own Data Element, but you
must use an existing Domain.

A: True
B: False

Ans: B

Q1>What is the sys var for:

Date Sy-Datum

Time Sy-UZEIT

Username Sy-UNAME

time ( with time zone) -- sy-timelo

Q2>Which statement triggers TOP OF PAGE event?


WRITE , SKIP

Q3>Which event occurs first?


INITIALIZATION

Q4>What happens after AT SELECTIONSCREEN


VALIDATIONS

Q5> TABLE FOR TRANSACTION codes


TSTC

Q6> Domain and data elements


one domain can have many Data Elements.
One Data Element can have ONE domain.

Q7> which has highest precendence


SEARCH HELP AT SCREEN.

Q8> Default Pass by value in?


RFC

Q9><> means?
Not equal to

Q10> Invalid Data type?


HEX

Q11> loop
tablename-fldname='Accenture'
Append table
Endloop
ans --> Infinite loop.

Q12>Which event is triggered when 'At Line-Selection'


'PICK' , when there is a double click.

Q13>Progs are
clientindep
clientdep

ans --> client independent

Q14> Default mode for file to open ---


Input mode

Q15>Wht cannot b created from se11 ABAP Data dic


Function Pools(Fuction groups)

Q16>What is created by the following statement:


R_MANTR for MARA-MANTR

ans -- An internal table with the fields sign,options,low,high

Q17> what occurs in next screen?


Information

Q18> Do....Endo which var?


Sy-index

Q19>For structures like tables must have primary key?


False
Q20>wht does Append and collect do?
Append: Adds a row; collect: may or may not add a row.

Q21> Where can we see the o/p of the background processes?


SP01

Q22> RS-SET-SELECTIONSCREEN-STATUS
it sets the GUI screen's status.

Q23> Instruction to transfer the data from the presentation Server to


Application Server

GUI_Upload

Instruction to transfer the data from the Application Server to


presentation Server
GUI_Download
Q24> Instruction to writefm internal table to file on application
server.
Transfer.

Q25>How can u view the short dump(run time errors)?


st22

Q26> If the value is 03 in the ACTVT table then wht will the user b
allowed to do?
Display

Q27>Which Of the following is client dependent?


LAyout Forms

Q28>ans --> Change In B (fr the ques AT NEW B)

Q29> Select All Entries is used for?


To avoid too much use of select statement in loop.

Q 30>Wht is the keyword used in the PARAMETERS


A)Values
B)Value
C)Default

ANS ---- C.

Q31> How can internal tables be accessed?


Sequentially
directly
ans-- both

Q32> Transaction Code for SQL TRACE - ST05.

Q33> Transaction Code for data model -- SD11.

Q34> T000 --- client DATA.

Q35> for writting Native SQL command in SQL --- EXEC and ENDEXEC

Q36> there was a question on AUTHORITY CHECK SYNTAX


FOR FILE ITS AUTHORITY_CHECK_DATASET.
FOR USER ITS AUTHORITY-CHECK.

Q37> Question on Catch and ENd catch something -- for handling run time
errors.

Q38> Transaction variants are ...... for customizing customer


transaction.

Q39) LOck Object -- ansCannot be edited.

Q40) which allocates resources to app server -- dispatcher


Q41) TOP-OF-PAGE DUring Line selection -- stores secondary table
header

Q42) find wrong option -- ans a field of structure can be made as a


foreign key

Q43) find odd one out -- ans -each sap has it's own ABAP memory

Q44) join statement cannot be applied on what table --- cluster table

Q45)stop statement --- takes cntrl to end of selectioin event.

Q46) /h -- debugging command.

.Q47) search help -- Matchcode object

Q48) for getting the client specific data -- use clause CLIENT
SPECIFIED.

Q49) Q7> which has highest precendence


SEARCH HELP AT SCREEN.

Q50) How do u define selection screen of a prog -- interface btw user &
program

Q51) Conversion exit data variable can be attached to -- Domain ( nt


sure)

Q52) BEST PERFORMANCE BY READ STATEMENT CAN BE THROUGH --- HASHED TABLE

Q53) EXIT -- takes u out of current loop.

Q54) precautions while UsingFOr all Entries --- internal table should
have the data.

Q55) primary index is based on primary key field of table


secondary index is created on non-primary field of a table
ans-- both are true.

Q56) to suppress the default title --- NOn-standard header

Q57) Hide option --- retain values.

Q58) paramater ..lower case

ans -- case sensitivity will be there

Q59) system var for time with time zone -- sy-timelo

You might also like