abap questions

67
ABAP/4 Questions & Answers 1. This data type has a default length of one and a blank default value. A: I B: N C: C D: D Ans:C 2. A DATA statement may appear only at the top of a program, before START-OF- SELECTION. A: True B: False Ans:B 3. 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. perform write_name. FORM write_name. name1 = 'Material number'. WRITE name1. ENDFORM. A: Customer name B: ABAP programmer

Upload: nilay-deshpande

Post on 14-Sep-2014

1.756 views

Category:

Documents


144 download

TRANSCRIPT

Page 1: Abap Questions

ABAP/4 Questions & Answers

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

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

Ans:C

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

A: True B: False

Ans:B

3. 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. perform write_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

4. 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

Page 2: Abap Questions

C: Enter /i then execute D: Set a breakpoint

Ans: C

5. 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

Ans:D

6. 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

Ans:A

7. 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

8. A DO loop increments the system field ____.

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

Ans: D

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

Page 3: Abap Questions

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

Ans:A C

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

DATA: new_fld(25).

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

Ans: D

11. 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

12. 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: FalseAns: B

13. 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

Page 4: Abap Questions

Ans: D

14. 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

15. 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

16. 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

17. What will be output by the following code?

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

Page 5: Abap Questions

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

REFRESH itab. WRITE: /1 itab-fval.

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

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

A: True B: FalseAns: B A

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

A: True B: FalseAns : B

20. 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: 30Ans: C

Page 6: Abap Questions

21. 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.

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

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

23. 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

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

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

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

A: INDEX B: TABIX C: ROW

Page 7: Abap Questions

D: WHERE

Ans: B A

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

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

Ans: D

27. 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

28. 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

29. 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 ).

Page 8: Abap Questions

30. 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.

31. 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

32. 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.

33. 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

34. 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.

Page 9: Abap Questions

A: Shifts the list rows up. B: Moves the cursor. C: Scrolls the list to the right. D: Performs a page up.

35. 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

36. Which of the following is not a component of dialog programming environment?

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

37. 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.

38. 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:

39. Which ABAP program attribute provides access protection?

A: Status B: Application C: Development class D: Authorization group

Ans:D

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

Page 10: Abap Questions

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

Ans: C

41. 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

42. 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.

43. 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

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

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

Page 11: Abap Questions

45. In relation to an internal table as a formal parameter, because of the STRUCTURE syntax, it is possible to:

A: Use the DESCRIBE statement within a subroutine. B: Loop through the internal table within a subroutine. C: Access the internal table fields within a subroutine. D: Add rows to the internal table within a subroutine.

46. To use a secondary table index in your SELECT statement, you should:

A: Include the index fields in the WHERE clause in the correct order B: Use the INDEX clause of the SELECT statement C: Include MANDT in the WHERE clause D: None of the above

47. 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

48. In regard to the code below, which of the following is not a true statement?

TABLES: KNA1.

GET KNA1. Write: /1 kna1-kunnr.

END-OF-SELECTION.

A: The GET event is processed while a logical database is running. B: All the fields from table KNA1 may be used in the GET event. C: You can code the GET event elsewhere in the same program. D: None of the above.

Ans: D

49. The following code indicates:

SELECT fld1 FROM tab1 INTO TABLE itab UP TO 100 ROWS WHERE fld7 = pfld7.

Page 12: Abap Questions

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: D

50. 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

51. Given:

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

All of the following are good performance tuning methods except:

A: Use SELECT fld1 fld2 fld3 FROM tab1 INTO itab_ B: Convert the nested SELECT statements to a database view C: Code your own database join. D: Use SELECT_FOR ALL ENTRIES IN itab.

52. 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

Page 13: Abap Questions

53. 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

54. If the user picks the WIND function, the following code indicates:

AT USER-COMMAND. IF SY-UCOMM = 'WIND'. WINDOW STARTING AT 7 4 ENDING AT 65 12. WRITE text-900. ENDIF.

A: Display text-900 in a dialog window. B: Display text-900 in a full screen. C: Output text-900 on row 4, starting at column 7. D: Draw a box around text-900 with coordinates (7,4) and (65,12)

55. 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

56. Within the source code of a function module, errors are handled via the keyword:

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

Ans:B

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

A: Normal

Page 14: Abap Questions

B: Update C: RFC D: DialogAns: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

61. ---------

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.

Page 15: Abap Questions

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

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

Page 16: Abap Questions

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 D

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: A B C D C: B D: B C D

Ans: C

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

Page 17: Abap Questions

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.

76. -----------

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

Page 18: Abap Questions

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:B

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:

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

A: NEW-PAGE. B: AT LINE-SELECTION.

Page 19: Abap Questions

C: INITIALIZATION. D: TOP-OF-PAGE.

Ans:D

84 -----------

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:B

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:

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

A: CP B: NC

Page 20: Abap Questions

C: O D: NSAns:

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:

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?"

Page 21: Abap Questions

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 codeAns: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.

100. The following code indicates:

Page 22: Abap Questions

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.

Page 23: Abap Questions

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:A

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

Page 24: Abap Questions

D: CASE

Ans:A110. 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 tableSame 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:

Page 25: Abap Questions

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

Page 26: Abap Questions

C: output of 'E equals MC squared.' on a new line many times D: a loop that will end when the user presses ESCAns.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 lineAns: 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

Page 27: Abap Questions

Ans: D

125. The output for the following code will be

report zabaprg.DATA: my_field type I value 99.

my_field = my_field + 1.clear my_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

Page 28: Abap Questions

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

Page 29: Abap Questions

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

Page 30: Abap Questions

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.

Page 31: Abap Questions

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

Page 32: Abap Questions

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:

Page 33: Abap Questions

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.

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

Page 34: Abap Questions

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: C

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

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: D

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

Page 35: Abap Questions

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.

Page 36: Abap Questions

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 suname.

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

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.

Page 37: Abap Questions

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 codeD: None of the above

Page 38: Abap Questions

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

A: SE16 B: SE10C: SE36D: 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: TrueB: False

Ans:A

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

A: ACCEPTING CASEB: LOWER CASEC: UPPER CASED: CASE

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

A: ROWS 50B: INDEX 50C: DEFAULT 50D: 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: TrueB: False

Ans:A

Page 39: Abap Questions

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 JonesB: Jones appears before BrownC: Brown appears before JonesD: Miami appears before New York

Ans: C

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

A: UPDATEB: MODIFYC: DELETED: INSERT

Ans:

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

A: TrueB: 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.

Page 40: Abap Questions

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.

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

A: AUTH-CHECKB: AUTHORITY-CHECKC: AUTHORIZATION-CHECKD: AUTHORITY-OBJECT

Ans:B

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

A: TrueB: 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.

Page 41: Abap Questions

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'.

Page 42: Abap Questions

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: A

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?

Page 43: Abap Questions

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

Ans:

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

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

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

Page 44: Abap Questions

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

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?

Page 45: Abap Questions

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.

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

A: enter the authorization profile name in the user master recordB: assign the user to the authority object's list of allowed usersC: include the user name in the ABAP authorization checkD: none of the above

Ans:A219. 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.

Page 46: Abap Questions

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: DATAB: TYPESC: PARAMETERSD: 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 tableB: Checking the table syntaxC: Saving the tableD: 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 keywordB: Click once on the keyword and press the F1 keyC: Highlight the keyword and press the Enter keyD: 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 editorB: ABAP workbenchC: Object listD: Repository browser

Ans: B

Page 47: Abap Questions

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

A: DATAB: TYPE-GROUPSC: TYPESD: DATA-TYPE

Ans:C

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

A: AT LASTB: AT NEW C: ON CHANGE OFD: LOOP AT itab FROM

Ans:

228. Internal tables passed with TABLES are passed by:

A: Value B: Value and result C: Changing D: ReferenceAns: 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?

Page 48: Abap Questions

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. 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: 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

Page 49: Abap Questions

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: 238. -------- 239. Before a function module may be tested, it must first be:

A: Linked B: Authorized C: Released D: ActiveAns: 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?

Page 50: Abap Questions

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:

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.

Page 51: Abap Questions

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?

report zabaprg.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

Documented by Vaibhav SharanDate : 10/08/2007.