SAP Dumps



Comments



Description

ABAP/4 Questions & Answers1. This data type has a default length of one and a blank default value. A: B: C: D: I N C D Ans:C 2. A DATA statement may appear only at the top of a program, before START-OFSELECTION. 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: B: C: D: Customer name ABAP programmer Material number 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 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: B: C: D: Type groups Search help Lock objects Function groups Ans:D 6. In a line of code, text-100, is an example of which type of text element? A: B: C: D: Text symbol Selection text Text title Text identifier Ans:A 7. The editor function that formats and indents the lines of code automatically is called ____. A: B: C: D: Auto align Pretty printer Generate version Syntax check Ans:B 8. A DO loop increments the system field ____. A: B: C: D: SY-LOOPI SY-TABIX SY-LSIND SY-INDEX Ans: D 9. The event that is processed after all data has been read but before the list is displayed is: A: B: C: D: END-OF-PAGE. START-OF-SELECTION. END-OF-SELECTION. AT LINE-SELECTION. Ans:A  C 10. The field declared below is of what data type? DATA: new_fld(25). A: B: C: D: P N I C Ans: D 11. In regard to the INITIALIZATION event, which of the following is NOT a true statement? A: B: C: D: Executed before the selection screen is displayed. You should use SET PF-STATUS here. You can assign different values to PARAMETERS and SELECT-OPTIONS here. 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: False Ans: B 13. The business (non-technical) definition of a table field is determined by the field's ____. A: B: C: D: domain field name data type data element Ans: D 14. In regard to the three-tier client/server architecture, which of the following is a true statement? A: B: C: D: The presentation server processes the SAP program logic. An application server is responsible for updating database tables. Typically, there is a one-to-one ratio of database servers to presentation servers. 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: B: C: D: 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. 3 3 2 3 3 2 3 3 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 18. You can define your own key fields when declaring an internal table. A: True B: False Ans: A 19. When modifying an internal table within LOOP AT itab. _ ENDLOOP. you must include an index number. A: True B: False Ans : 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: 30 Ans: C Fields without a match are unchanged. Moves the values of components according to their location. which of the following is NOT a true statement? A: B: C: D: Moves the values of components with identical names. No output if the record is found. Output of vbak-vbeln if the record is not found. use this parameter of the READ TABLE statement. there is a syntax error. Nothing. Corresponds to one or more MOVE statements. DELETE. To read an exact row number of an internal table. ENDIF. WRITE: /1 vbak-vbeln. COMMIT WORK. 25. what will be the result? A: B: C: D: Output of vbak-vbeln if the record is found. A: SELECT B: SELECT INTO C: SELECT SINGLE D: SELECT ENTRY Ans: C 23. A: INDEX B: TABIX C: ROW . If VBAK is a client-dependent table. Ans: D 24. CLOSE CURSOR. In regard to MOVE-CORRESPONDING. IF SY-SUBRC = 0. All of the following are valid Open SQL statements except: A: B: C: D: OPEN DATASET. use ____. To select one record for a matching primary key. 22. Given: SELECT SINGLE vbeln FROM VBAK INTO vbak-vbeln WHERE mandt = sy-mandt AND vbeln = pvbeln.21. Ans: A 29. PARAMETERS: myparam(10) type C. Ans: C 28. Which table type would be most appropriate for accessing table rows using an index.D: WHERE Ans: B  A 26. SELECTION-SCREEN END OF BLOCK. A: B: C: D: Hashed table Standard table Sorted table None of these may be accessed using an index. . A: B: C: D: Draw a box around myparam and myparam2 on the selection screen. To remove lines from a database table. Move SUM( fld1 ) before fld1. Change to SUM( DISTINCT f1 ). Do not display myparam and myparam2 on the selection screen. If this code results in an error. use ____. Myparam2(10) type N. Add GROUP BY f1. the remedy is: SELECT fld1 SUM( fld1 ) FROM tab1 INTO_ A: B: C: D: Remove the spaces from SUM( fld1 ). Allow myparam and myparam2 to be ready for input during an error dialog. The following code indicates: SELECTION-SCREEN BEGIN OF BLOCK B1. Display myparam and myparam2 only if both fields have default values. A: B: C: D: UPDATE MODIFY ERASE DELETE Ans: D 27. ENDIF. ELSE. Given: IF MY_IND = 'X'. B: Changes are undone without writing them to the database. WRITE fld AS INPUT FIELD. WHEN 'FC11'. To allow the user to enter values on the screen for a list field. In the following code. WHEN 'FC12'. C: A database error. COMMIT WORK. If my_ind is initial. . D: An abend. to ensure that an actual parameter is the same type as its corresponding formal parameter. CASE SY-UCOMM. A: B: C: D: code a SY-SUBRC check specify a reference field verify the types yourself when coding use the DESCRIBE FIELD statement 34. In regard to subroutines and function modules.30. what does function FC12 do? AT USER-COMMAND. you should place as much load as possible on the database server and minimize the load on the application server. ENDCASE. this will result in: A: Changes are written to the database. SCROLL LIST FORWARD. SCROLL LIST LEFT BY 20 PLACES. SET CURSOR FIELD. FORMAT INPUT ON. A: True B: False Ans: B 32. 33. When writing a SELECT statement. 31. ROLLBACK WORK. you should ____. use: A: B: C: D: OPEN LINE. Page headers for a secondary list should be coded in which event? . Moves the cursor.A: B: C: D: Shifts the list rows up. 38. INITIALIZATION. Assign the fields to a single ABAP Dictionary structure. To allow the user to execute a specific function. 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: B: C: D: ON INPUT CHAIN FIELD ON REQUEST 36. Group the fields in a CHAIN. AT LINE-SELECTION. Which ABAP program attribute provides access protection? A: B: C: D: Status Application Development class Authorization group Ans:D 40. Scrolls the list to the right. A: B: C: D: START-OF-SELECTION. Identify the fields via their group name. None of the above Ans: 39. write code within the event ____. Performs a page up. 35. To modify several fields in a screen without referencing each individual field name: A: B: C: D: Access the SPA/GPA parameter for each of the fields. Which of the following is not a component of dialog programming environment? A: B: C: D: Transaction code Screen ABAP module pool Background job 37. Jump to screen 300 without coming back. When making a function module call. Given: PERFORM subroutine USING var. A: B: C: D: Start the PAI processing of screen 300. In regard to Runtime Analysis. * C: Helps identify potentially inefficient database accesses. pass internal tables via the parameter ____. Temporarily branch to screen 300. Ans:C 44. which of the following is NOT a true statement? A: System-level performance problems are identified. Ans: C 41. B: Helps you analyze the performance of any program created within the ABAP Workbench. A: B: C: D: EXPORTING IMPORTING USING TABLES . The var field is known as what type of parameter? A: B: C: D: Formal Actual Static Value Ans:B 42. D: Measurement results are saved in performance data files. TOP-OF-PAGE DURING LINE-SELECTION. 43.A: B: C: D: TOP-OF-PAGE. AT USER-COMMAND. * Exit screen 300. The following code indicates: CALL SCREEN 300. START-OF-SELECTION. Buffer the data in an internal table. because of the STRUCTURE syntax. None of the above. Ans: C 46. In relation to an internal table as a formal parameter. Remove nested SELECT statements. Ans: D 49. END-OF-SELECTION. All the fields from table KNA1 may be used in the GET event. To prevent duplicate accesses to a master data field: A: B: C: D: Create an index on the master data field. Access the internal table fields within a subroutine. Write: /1 kna1-kunnr. Loop through the internal table within a subroutine. GET KNA1.45. In regard to the code below. Ans: A  C 48. it is possible to: A: B: C: D: Use the DESCRIBE statement within a subroutine. You can code the GET event elsewhere in the same program. which of the following is not a true statement? TABLES: KNA1. To use a secondary table index in your SELECT statement. you should: A: B: C: D: Include the index fields in the WHERE clause in the correct order Use the INDEX clause of the SELECT statement Include MANDT in the WHERE clause None of the above 47. Add rows to the internal table within a subroutine. A: B: C: D: The GET event is processed while a logical database is running. The following code indicates: SELECT fld1 FROM tab1 INTO TABLE itab . Use SELECT SINGLE. 52. Only the first 100 records of tab1 are read. If itab has less than 100 rows before the SELECT.20). B: Screen 9000 must be of type "Modal dialog box. Given: SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4. All of the following are good performance tuning methods except: A: B: C: D: Use SELECT fld1 fld2 fld3 FROM tab1 INTO itab_ Convert the nested SELECT statements to a database view Code your own database join. SELECT fld8 FROM tab2 INTO fld9 WHERE fld10 = tab1-fld6. Use SELECT_FOR ALL ENTRIES IN itab." C: Display screen 9000 in a full window.5)(60.UP TO 100 ROWS WHERE fld7 = pfld7. None of the above. WRITE: /1 fld4. fld5. 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. A: B: C: D: Itab will contain 100 rows. ENDSELECT. ENDSELECT. SY-SUBRC will be set to 4. FORMAT CHECKBOX ON. MODIFY LINE WITH CHECKBOX. WRITE: /1 fld9. To place a checkbox on a list. use A: B: C: D: WRITE CHECKBOX. Ans: D 50. WRITE fld AS CHECKBOX. fld6. ULINE. fld6) WHERE fld7 = pfld7. fld5. Ans:C 51. . errors are handled via the keyword: A: B: C: D: EXCEPTION RAISE STOP ABEND Ans:B . IF SY-UCOMM = 'WIND'.D: Screen 9000 may only contain an ABAP list.12) 55. ENDFORM. If the user picks the WIND function. The parameter fld1 is passed by: A: B: C: D: Value Reference Value and result None of the above 54. what must you code in both PBO and PAI when you have included a table control in your screen? A: B: C: D: CHAIN_ENDCHAIN AT EXIT-COMMAND LOOP_ENDLOOP SET PF-STATUS 56.4) and (65. Within the source code of a function module. Ans:A 53. starting at column 7. ENDIF. WINDOW STARTING AT 7 4 ENDING AT 65 12. Output text-900 on row 4. In the flow logic. Draw a box around text-900 with coordinates (7. Given: PERFORM my_sub USING fld1 fld2. FORM my_sub using value(fld1) fld2. the following code indicates: AT USER-COMMAND. WRITE text-900. Display text-900 in a full screen. A: B: C: D: Display text-900 in a dialog window. Which of these is NOT a valid type of function module? A: Normal B: Update C: RFC D: Dialog Ans:D 58. --------62. SUB calculate answer. . activating that function. Move the cursor to a specific list line. 60. Retrieves the window title. which of the following is a true statement? A: B: C: D: Retrieves the ABAP report name. A select statement has built-in authorization checks. Ans:A 59. Move the cursor to a specific pushbutton.57. To call a local subroutine named calculate answer. All of the following may be performed using SET CURSOR except: A: B: C: D: Move the cursor to a specific field on a list. use this line of code: A: B: C: D: PERFORM calculate answer. CALL calculate answer. None of the above. The table control attribute <ctrl>-LINES indicates the total number of lines in the internal table. In regard to the DESCRIBE LIST statement. Retrieves the number of list lines and pages. Move the cursor to a specific row and column on a list. A: True B: False Ans:B 63. USING calculate answer. A: True B: False 61. 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 . A: True B: False Ans:A 69. 65. what fields make up the standard internal table key? A: B: C: D: All the table's fields. All the non-numeric fields. use ____.64. A: B: C: D: SELECT SELECT INTO SELECT SINGLE SELECT ENTRY Ans:C 68. A: B: C: D: INSERT UPDATE APPEND MODIFY Ans:D 67. you should avoid adding More rows with APPEND. By definition. use: A: B: C: D: AS CHECKBOX SELECTION-SCREEN BEGIN OF LINE MEMORY ID MODIF ID 66. To select one record for a matching primary key. To both add or change lines of a database table. All the numeric fields. After adding rows to an internal table with COLLECT. use ____. To be able to modify a group of fields on the selection screen with a single statement. The first field. D: WHERE 70. the remedy is SELECT * FROM tab1 WHERE fld3 = pfld3. APPEND itab. itab-letter = 'C'. APPEND itab. LOOP AT itab. If this code results in an error. Change the * to fld1 fld2. EXIT. A: B: C: D: A ABCD B BCD . use this SELECT statement clause. tab1-fld2. A: B: C: D: Add a SY-SUBRC check. ENDSELECT. itab-letter = 'D'. tab1-fld2). To summarize the contents of several matching lines into a single line. END OF itab. SY-TABIX = 2. APPEND itab. ENDLOOP. There is no error. itab-letter = 'A'. WRITE: /1 tab1-fld1. A: B: C: D: INTO WHERE FROM GROUP BY Ans:D 72. Add INTO (tab1-fld1. itab-letter = 'B'. letter type c. WRITE itab-letter. Ans: C  D 71. What is output by the following code? DATA: BEGIN OF itab OCCURS 0. APPEND itab. ----------77. use ____. This selection screen syntax forces the user to input a value: A: B: C: D: REQUIRED-ENTRY OBLIGATORY DEFAULT SELECTION-SCREEN EXCLUDE 74. To create a list of the top 25 customers. A: B: C: D: Set the type of itab1 to the type of itab2. The following code indicates: DATA: itab1 LIKE struc1 OCCURS 0 WITH HEADER LINE. Move all the rows of itab2 to itab1. itab1[] = itab2[]. Will run under different database systems. itab2 LIKE struc1 OCCURS 0 WITH HEADER LINE. A: UPDATE B: INSERT . In regard to Native SQL. You must specify the SAP client. which of the following is NOT a true statement? A: B: C: D: A CONNECT to the database is done automatically. you should use A: B: C: D: DELETE ADJACENT DUPLICATES READ TABLE itab INDEX 25 LOOP AT itab FROM 25 APPEND SORTED BY Ans:D 75. Move the last row of itab2 to itab1. To change one or more lines of a database table.Ans: A 73. 76. Move the header line of itab2 to itab1. The tables that you address do not have to exist in the ABAP Dictionary. Ans:D 78. AT LINE-SELECTION GET dbtab. Page headers for a basic list can be coded in the event: . Which of the following is NOT a numeric data type? A: B: C: D: I N P F Ans: B 81. A single field may use two different Data elements.C 83. GET dbtab INITIALIZATION. Ans:C 82. Which of these sentences most accurately describes the two-level domain concept? A: B: C: D: Two different Domains may use the same Data element. Which of the following is NOT a required attribute when creating an ABAP program? A: B: C: D: Application Title Status Type Ans: A.C: INTO D: MOD Ans:A 79. END-OF-SELECTION. AT USER-COMMAND. Which is the correct sequence of events? A: B: C: D: AT SELECTION-SCREEN. A single field may use two different Domains. INITIALIZATION START-OF-SELECTION. Two different Data elements may use the same Domain. START-OF-SELECTION Ans:B 80. GET dbtab LATE. TOP-OF-PAGE. A: True B: False Ans: 89. Ans: A 87. Endless loops are not possible with WHILE. You cannot use the CONTINUE statement with WHILE. Ans:A 88. what event is processed when the button is clicked? A: B: C: D: AT USER-COMMAND. INITIALIZATION. Which of the following is not a valid ABAP relational operator? . A WHILE loop may not be nested within another WHILE loop. The complete technical definition of a table field is determined by the field's: A: B: C: D: Domain Field name Data type Data element 86. AT PFn.A: B: C: D: NEW-PAGE. AT SELECTION-SCREEN. You can change the length of a data object of type I by adding ( ) after the field name in the data declaration. Ans:D 84 ----------85. The major difference between DO and WHILE is: A: B: C: D: WHILE requires a logical expression. END-OF-SELECTION. as in the following statement: DATA: counter(3) type I. Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report. AT LINE-SELECTION. TOP-OF-PAGE. What is the transaction code for the ABAP Editor? A: B: C: D: SE11 SE38 SE36 SE16 Ans:B 94. A: B: C: D: END-OF-SELECTION. Which of the following describes the internal representation of a type D data object? A: B: C: D: DDMMYYYY YYYYDDMM MMDDYYYY YYYYMMDD Ans:D 93. A concrete field is associated with a field-symbol via ABAP keyword A: B: C: D: MOVE WRITE ASSIGN VALUE 91. WRITE 'First List'. . Ans: B 92.A: CP B: NC C: O D: NS Ans: 90. START-OF-SELECTION. Given: REPORT ZINTERAC. The following event may be explicitly coded. WRITE: 'Second List'. AT PF5. AT SELECTION-SCREEN. AT LINE-SELECTION. but it is also implied. In regard to SET PF-STATUS. A: True B: False Ans:A 98. LEAVE TO LIST-PROCESSING. A: B: C: D: EXCLUDING IMMEDIATELY WITHOUT HIDE Ans: A 97. LEAVE LIST-PROCESSING. ROLLBACK WORK. COMMIT WORK.To branch from dialog processing to list processing. "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. Ans:C 99. UPDATE. how would the user receive the output. Function module source code may have its own local data.After running the report. you can deactivate unwanted function codes by using ____. what will the system field SY-LSIND equal? A: 0 B: 2 . use: A: B: C: D: LEAVE TO SCREEN 0. After double-clicking a line on a basic list. CALL SCREEN. 96. The ABAP statement you will typically use in a 'CANCEL' function is: A: B: C: D: CALL SCREEN 0. Ans:C 100. On the database server using a dialog work process service. Text-002 may be clicked once to trigger the output of text-003. WRITE: text-002. Which of the following is NOT one of the types of internal tables in ABAP? A: Standard B: Sorted C: Hashed . In an R/3 environment. The value of text-002 is stored in a special memory area. Ans:C 101. None of the above. START-OF-SELECTION. The following code indicates: REPORT ZLISTTST.C: 1 D: The value is unchanged. WRITE: text-001. On the presentation server using a dialog work process service. AT LINE-SELECTION. FORMAT HOTSPOT ON. FORMAT HOTSPOT OFF. All of the following are considered to be valid ABAP modularization techniques except: A: B: C: D: Subroutine External subroutine Field-group Function module Ans:C 102. where is the work of a dialog program performed? A: B: C: D: On the application server using a dialog work process service. None of the above. WRITE / text-003. Ans: A 103. A: B: C: D: Text-002 may not be selected. To code a blank line on a selection screen. Typically used for storing data from one or more database tables. use SELECTION-SCREEN: A: B: C: D: COMMENT EXCLUDE ULINE SKIP . Ans: 106. In regard to internal tables. which of the following is a true statement? A: SELECT SINGLE may be used. B: UPDATE may not use a subquery. use SELECTION-SCREEN: A: B: C: D: COMMENT HLINE ULINE SKIP Ans:C 107. C: Allows you to program a second SELECT as part of the WHERE clause. Data values are retained when the program is finished. Ans:A 105. To code a horizontal line on a selection screen. D: The outer SELECT is processed first. which of the following is NOT a true statement? A: B: C: D: May be used to buffer data in memory. In regard to a subquery.D: Unique Ans:D 104. To select all database entries for a certain WHERE clause into an internal table in one step. use A: B: C: D: SELECT_INTO TABLE itab_ SELECT_INTO itab_ SELECT_APPENDING itab SELECT_itab_ Ans:A 108. Consists of rows with the identical structure. A: B: C: D: WHERE WHEN IF CASE Ans:A 110. A: B: C: D: Database view Projection view Help view 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 . use ____.Ans: D 109. The CASE statement may not contain a logical expression. -----112. To limit your SELECT statement to user-entered SELECT-OPTIONS. use ____. The ____ type of ABAP Dictionary view consists of one or more transparent tables and may be accessed by an ABAP program using Open SQL. as in CASE my_fld > 3. A: True B: False Ans:B 113. To limit the number of records selected from the database. A: B: C: D: IN EQ NE BT Ans:A 111. INITIALIZATION. Ans:B 119. C: This event will only be processed after the user has selected a basic list row. NEW-PAGE. 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. Ans:D 117. This data type has a default length of eight and a default value = '00000000'.A: B: C: D: Pooled Cluster Transparent View Ans:C 115. END-OF-SELECTION. Given: . Page footers are coded in the event: A: B: C: D: TOP-OF-PAGE. Page headers for a secondary/details list can be coded in the event: A: B: C: D: GET. TOP-OF-PAGE DURING LINE-SELECTION. A: B: C: D: P D N C Ans: B 118. Ans:C 116. NEW-PAGE. D: This event is only processed if no records are selected from table VBAK. END-OF-PAGE. A BDC program is used for all of the following except: A: B: C: D: Downloading data to a local file Data interfaces between SAP and external systems Initial data transfer Entering a large amount of data . 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. Write: /1 'E equals MC squared. A: B: C: D: P C N I Ans: C 123.'. This data type has a default length of one and a default value = '0'.' on a new line one time B: an endless loop that results in an abend error C: output of 'E equals MC squared. The following code indicates write: /5 'I Love ABAP'.DO. ENDDO. A: output of 'E equals MC squared.B 120. This will result in ____. Which of the following is NOT a component of the default standard ABAP report header? A: B: C: D: Date and Time List title Page number Underline Ans: A 122.' on a new line many times D: a loop that will end when the user presses ESC Ans. my_field left-justified. ENDIF. DATA: my_field type I value 99. WRITE: 'The value is'. clear my_field.Ans:B 124. In regard to CALL. The output for the following code will be report zabaprg. my_field = my_field + 1. IF var_one = 'dog'. WRITE: var_one. A: B: C: D: The value is 99 The value is 100 The value is 0 None of the above Ans: C 126. WRITE: /1 'Meow!'. ELSE. CONSTANTS: var_one (3) type C value 'DOG'. WRITE: /1 'Bark!'. which of the following is NOT a valid statement? A: B: C: D: CALL FUNCTION CALL SCREEN CALL TRANSACTION CALL PROGRAM Ans: D 125. This will result in the output: A: B: C: D: Bark! DOG DOG Meow! DOG None of the above . you should: A: B: C: D: Activate it. A: True B: False 128. Use the identical names concept. Enter a value in the search-help field attribute. Within an interactive list event. you can override the value of SY-LSIND. Which of the following is NOT included in the Performance Trace tool for analyzing database accesses within a program? A: B: C: D: SQL Trace Analysis Runtime Trace Analysis Enqueue Trace Analysis RFC Trace Analysis Ans: D . A title is defined for a single program. Changes the report's title attribute. Add documentation. All of the following are true statements regarding SET TITLEBAR except: A: B: C: D: Sets the title of the output list window. Send out an e-mail. 131. Ans: B 132. Set the field to display only. A title is active for all screens until another SET TITLEBAR statement occurs. A: True B: False 129. Dialog programs must be executed via a transaction code.Ans: C 127. To indicate that your new function module is ready to be freely used by anyone. Release it. To set up a screen field to allow default values to be stored across user sessions: A: B: C: D: Turn on the field attribute flag for SPA/GPA. Ans: A 130. Counting begins at line 1. SAVE data_object MEMORY ID 'ID'.) C: SY-CUROW (This Transaction code return Vertical cursor position on the screen display of a screen. EXPORT data_object TO MEMORY ID 'ID'. CLEAR itab[]. you may use: A: B: C: D: IMPORT_MEMORY data_object MEMORY ID 'ID'. REFRESH itab. FREE itab. To include a field on your screen that is not in the ABAP Dictionary. A: True B: False Ans: B 137.) D: SY-LISEL(Content of the list line in the list buffer. Counting begins at column 2. Function module source code may not call a subroutine. which include program should contain the data declaration for the field? A: B: C: D: PBO module include program TOP include program PAI module include program Subroutine include program 135. READ_DATA data_object. on which the cursor was positioned while a list event was triggered (restricted to the first 255 lines) Ans: D 134. Counting begins at 1 and includes the page header. Which system field contains the contents of a selected line? A: SY-CUCOL (This Transaction code return Horizontal cursor position in the display on a dynpro. To exchange data between reports without an external subroutine call.) B: SY-LILLI (This Transaction code return List line for which a list event was triggered. . 136.133. All of the following will delete all rows of an internal table with a header line except: A: B: C: D: CLEAR itab. Ans:A 139. A: True B: False Ans:A 141. use the ABAP keyword: A: B: C: D: DATA. If the following code results in a syntax error. SELECT-OPTIONS Ans: BD. Zero. After a DESCRIBE TABLE statement SY-TFILL will contain A: B: C: D: The number of rows in the internal table. itab-field1 = 'Company'. A: There is no syntax error here B: Remove the SORT statement C: Change INSERT to APPEND . itab-field1 = 'Bank'. The length of the internal table row structure. write: /1 itab-field1. To allow the user to enter a range of values on a selection screen. An internal table that is nested within another internal table should not contain a header line. INSERT TABLE itab. 140. PARAMETERS.Ans:A 138. INSERT TABLE itab. SORT itab. itab-field2 = '1234'. RANGES. LOOP AT itab. if the table contains one or more rows. itab-field2. ENDLOOP. The current OCCURS value. the remedy is: DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1 WITH HEADER LINE. itab-field2 = 'ABC'. A binary search is used when accessing rows by its key. Entries are sorted according to its key when added. the remedy is: SELECT fld1 fld2 FROM tab1 WHERE fld3 = pfld3. 144. WRITE: /1 tab1-fld1. To get the number of rows in an internal table. use ____. Ans: A 145. COLLECT itab LINES nlines. ENDSELECT. C: Allocates memory in blocks of 800 Bytes. D: None of the above Ans:A 143. Which of the following is NOT a true statement in regard to a sorted internal table type? A: B: C: D: May only be accessed by its key. If this code results in an error. In regard to the OCCURS parameter. A: B: C: D: CLIENT-SPECIFIED BYPASSING BUFFER ORDER BY GROUP BY 146. . To ensure that you select data directly from the database. tab1-fld2. use the ABAP statement: A: B: C: D: READ TABLE itab INDEX nlines. DESCRIBE TABLE itab LINES nlines. 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.D: Add a WHERE clause to the loop Ans:C 142. Its key may be UNIQUE or NON-UNIQUE. COUNT TABLE itab LINES INTO nlines. 23'. The following statement will result in a syntax error. Remove the /1 from the WRITE statement. A: True B: False Ans: B . Change the WHERE clause to use fld1 or fld2. Which of the following is not a standard pre-defined data type? A: B: C: D: E: D O F X T Ans: B 149. Given: SELECT-OPTIONS: s_opt FOR kna1-kunnr NO-EXTENSION. Which of the following would be stored in a table as master data? A: B: C: D: Customer name and address Sales order items Accounting invoice header Vendor credit memo Ans: A 150. Ans:D 147. DATA: price(3) type p decimals 2 value '100. The user may enter only a: A: B: C: D: From value To value Single range Exclusion range 148. Add INTO (tab1-fld1.A: B: C: D: Add a SY-SUBRC check. tab1-fld2). Executed when a function key is pressed. A: B: C: D: N C I Undefined Ans: B 152. What standard data type is the following user-defined type? TYPES: user_type. In regard to the AT USER-COMMAND event. The SAP service that ensures data integrity by handling locking is called: A: B: C: D: Update Dialog Enqueue/Dequeue Spool Ans: C 155. The transport route of an ABAP workbench object is determined by the object's: A: B: C: D: Client designation Program type Development class Naming convention 154. SY-UCOMM contains the current function code. . Which of the following is NOT a character data type? A: B: C: D: F D T X Ans: A 153. Function codes from your own menu painter status are processed here. which of the following is NOT a true statement? A: B: C: D: The standard system function 'BACK' is processed here.151. This is the only event in which a SELECT statement may be coded. Nested selects are efficient. Uses the same syntax as the ABAP modules. Automatically started by the REPORT statement. In regard to performance. Ans:D 158. A: B: C: D: GROUP FIELD-GROUP CHAIN LOOP AT SCREEN . Determines the processing sequence of ABAP logic for a screen. CHECK is very inefficient. This flow logic statement is used to make multiple fields open for input after an Error or warning message. Executed when the user double-clicks a list row. which of the following in not a true statement? A: B: C: D: Contains PBO and PAI module statements. In regard to a screen's flow logic. Controls what happens before a screen is output and what happens after user input. which of the following is a true statement? A: B: C: D: WHILE is faster than DO. Ans: C 160. The order in which an event appears in the ABAP code determines when the event is processed.156. which of the following is a true statement? A: B: C: D: Executed before the selection screen is displayed. A: True B: False Ans: B 157. NE in a WHERE clause is better than EQ. In regard to the START-OF-SELECTION event. Ans: B 159. A: B: C: D: Authorization Authorization object User profile Authority profile Ans: B 165. AT USER-COMMAND Ans:C 164. A: B: C: D: exceptions interface source code exporting interface main program Ans :A 162. Shares subroutines with all its function modules. which of the following is NOT a true statement? A: B: C: D: Combines similar function modules.Ans:C 161. A template that groups up to ten fields for testing access privileges is known as ____. Good for processing lists in background. All of the following pertain to interactive reporting in ABAP except: A: B: C: D: Call transactions and other programs from a list. Ans: D 163. Shares global data with all its function modules. To allow a basic list line to branch to a different SAP transaction use: A: B: C: D: LEAVE TRANSACTION SUBMIT TRANSACTION EXECUTE TRANSACTION CALL TRANSACTION . Errors to be handled by the calling program are defined in a function module's ____. In regard to a function group. Exists within the ABAP workbench as an include program. Secondary list shows detail data. minimize the number of records returned by using this SELECT statement addition. The following code indicates: READ TABLE itab WITH KEY field1 = sy-langu field2 = counter. 169. what will be output by the following code? READ TABLE itab INDEX 3 TRANSPORTING field1. C: Read the internal table using the binary search method to find field1 = sy-langu and field2 = counter. A database view. The contents of the third row's itab-field1 and itab-field2. you may use all of the following except: A: B: C: D: INNER JOIN. itab-field2. A: B: C: D: The contents of the third row's itab-field1. WRITE: /1 itab-field1. Assuming itab has a header line. 170. To select data from more than one table. LEFT OUTER JOIN. Predefined selection criteria values assigned to a report are called: A: Variants. A: Read table itab row-by-row until finding an entry other than field1 = sy-langu and field2 = counter. A: B: C: D: MIN ORDER BY DISTINCT DELETE Ans:C 167. If a table contains many duplicate values for a field.166. D: Read the first row found in itab that has field1 = sy-langu and field2 = counter. . Nothing. None of the above Ans:D 168. B: Read the row with an index number equal to the value stored in counter. The contents of the third row's itab-field2. D: Screen-batches. A: True B: False 175. C: Search-helps. 171. D: A default value of 'IEQ' is assigned to the PARAMETER suname. concatenate 'IEQ' sy-uname into suname. Data types contain data values and data objects describe the data. . C: The user name is set equal to the value contained in field suname. B: END-OF-EVENT. The following code indicates: INITIALIZATION. The SAP service that handles system output is called: A: B: C: D: Update Batch Enqueue/Dequeue Spool Ans: D 174. A: The field suname will be output in the page header.B: Matchcodes. An event starts with an event keyword and ends with: A: Program execution. Which of the following will NOT add rows to an internal table? A: B: C: D: INSERT APPEND COLLECT MODIFY Ans:D 172. 173. B: SELECT-OPTION suname will contain the user name in its from value at runtime. C: Another event keyword. To view the contents of an ABAP Dictionary table. use transaction ____. CHECK ch_field NE 'X'. Pressing the enter key in PC mode while entering code in the ABAP editor will do all of the following except: A: B: C: D: Insert a blank line after the current line Insert a blank line before the current line Select the beginning of a block of lines Split the current line at the cursor position 178. use the statement: A: B: C: D: SET USER-COMMAND SET PF-STATUS CALL FUNCTION AT USER-COMMAND 180. A: True B: False Ans: A 179. To trigger an interactive event from within an ABAP program without user interaction. A: 'X' B: Anything other than 'X' C: "Nice job!" will not be output by this code D: None of the above 181. A: SE16 B: SE10 C: SE36 . Write: 'job!'. What value must ch_field contain so that "Nice job!" will be output? Write: /1 'Nice'. An ABAP data type may be declared with reference to the SAP data type P. A: True B: False 177.D: END-EVENT. 176. Data types may be defined in the ABAP dictionary. Ans:B 183. A: True B: False Ans:A 187. . use: A: ACCEPTING CASE B: LOWER CASE C: UPPER CASE D: CASE 185. regardless of the database system installed. itab-name1 = 'Smith'. C: TEXT. Instead of using OCCURS 50. ABAP Open SQL enables you to access all tables within the SAP system. APPEND itab. you could use: A: ROWS 50 B: INDEX 50 C: DEFAULT 50 D: INITIAL SIZE 50 Ans: D 186. To write a custom text on the selection screen use SELECTION-SCREEN: A: SKIP. A: True B: False Ans:A 184. You may declare your own internal table type using the TYPES keyword. itab-ort01 = 'Miami'.D: SE37 182. To make a selection criterion case-sensitive. D: FIELD. B: COMMENT. The following code reorders the rows so that: DATA: itab LIKE kna1 OCCURS 0 WITH HEADER LINE. CHECK tab1-fld9 = pfld9. WRITE: /1 fld4. A: True B: False Ans:B 190. ENDSELECT. APPEND itab. fld6) WHERE fld7 = pfld7. itab-name1 = 'Brown'.itab-name1 = 'Jones'. . To declare a table control in the module pool. itab-ort01 = 'New York'. APPEND itab. B: Remove the INTO clause of the SELECT statement. Which Open SQL statement should not be used with cluster databases? A: UPDATE B: MODIFY C: DELETE D: INSERT Ans: 189. you should: SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4. fld6. fld5. A: B: C: D: Smith appears before Jones Jones appears before Brown Brown appears before Jones Miami appears before New York Ans: C 188. fld5. A: Add a SY-SUBRC check after ENDSELECT. 191. D: Move the CHECK statement into the WHERE clause. use: A: CONTROLS ctrl_name TYPE TABLE CONTROL. C: Take the WRITE statement out of the SELECT_ENDSELECT. SORT itab BY name1 ort01. You should never nest SELECT statements because this results in a syntax error. To properly tune the following code. itab-ort01 = 'Chicago'. D: CONTROLS ctrl_name TYPE TABLEVIEW USING SCREEN 100. Add an authorization object to the transaction definition. In regard to data transported in PAI when the FIELD statement is used. Code your own ABAP authorization check in the program associated with the transaction. Fields with identical names are transported to the ABAP side. you can do all of the following except: A: B: C: D: Remove the transaction code from the user profile. Hide the menu path from the user. A: True B: False Ans:B 194. 192. 196. A: AUTH-CHECK B: AUTHORITY-CHECK C: AUTHORIZATION-CHECK D: AUTHORITY-OBJECT Ans:B 193. The following code indicates: SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab . which of the following is NOT a true statement? A: B: C: D: Fields in PBO are transported directly from PAI. C: DATA ctrl_name TYPE TABLE CONTROL. The ABAP keyword for adding authorizations to a program is ____. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good method for improving performance. Ans:B 195. Fields that are defined in FIELD statements are transported when their corresponding module is called. To prevent certain users from using a transaction code. Fields not defined in FIELD statements are transported first.B: TYPES ctrl_name TABLEVIEW. write: 'next'. . EXIT. write: 'more'. Select rows from tab1 for matching itab entries. The control block ON CHANGE OF fld1_ENDON may be used between SELECT_ENDSELECT. this is a syntax error. write: 'End'. A: B: C: D: Add rows to the existing rows of itab. FORM write_next. ENDFORM. In order to change the data contents of an ABAP Dictionary table via standard functions you must first: A: B: C: D: Enter delivery class = A Turn on the Tab.WHERE fld1 IN sfld1. The following code will output: write: /1 'Start'.Maint. A: True B: False Ans:A 198. Ans:A 197. A: B: C: D: Text literal Text variable In-code comment Text integer 199.Allowed flag Enter data class = USER Use a size category of 1 200. Add rows to itab after first deleting any existing rows of itab. PERFORM write_next. The following statement writes what type of data object? WRITE: /1 'Total Amount:'. Nothing. CONSTANTS apple(10) type c value 'Apple'. ABAP Open SQL contains both Data Definition Language (DDL) statements and Data Controlling Language (DCL) statements. DATA data_obj type p decimals 2 value 234. Which statement does not contain a syntax error? A: B: C: D: DATA invoice_number(10) type N default '1234567890'. A: B: C: D: READ SELECT GET AT USER-COMMAND Ans:C 202.98. A: True B: False 205. This event retrieves data from a logical database.A: B: C: D: Start next Start next more Start next End Start more End Ans:c 201. Which keyword adds a line anywhere within an internal table? A: B: C: D: APPEND MODIFY ADD INSERT . TYPES cust_type like kna1 occurs 0. orange(10) type c value 'Orange'. An administrative unit in which SAP services are started and stopped at the same time is called: A: B: C: D: Message server Instance Gateway Profile 204. Ans: A 203. After a successful SELECT statement. which of the following is NOT a true statement? A: Begins at start of PAI of the current screen. use: A: B: C: D: ADD. use ____. SUM. A: B: C: D: INTO TABLE UP TO 1 ROWS DISTINCT ORDER BY Ans:C 208. .Ans: 206. Which dialog programming section is used to initialize a screen's field values? A: B: C: D: PBO PAI INITIALIZATION None of the above 210. 207. In regard to a dialog step. B: Ends at end of PBO of the next screen. To select unique values of a field. To total the numeric fields at a control break. TOT. what does SY-SUBRC equal? A: B: C: D: 0 4 8 Null Ans: A 209. C: Ends when the next screen is displayed. Which dialog programming section is used to handle user functions? A: B: C: D: PBO PAI INITIALIZATION None of the above 211. COUNT. Ans:B . 214. If an internal table is declared without a header line. APPEND itab. From program zprog1. D: Branch to screen 200 without coming back. B: Changing the formal parameter immediately changes the passed parameter. C: An internal table type using the TYPES statement. to call a subroutine named sub_name in program zprog2. C: Remove the internal table itab from the SELECT statement. D: New memory is allocated for the parameter's value. B: A work area with the same structure as the internal table. no change is required. Which of the following is a good performance tuning technique? A: Change the SELECT statement to use INTO TABLE itab.D: Begins when the next screen is displayed 212. D: INCLUDE zprog2(sub_name). 215. C: PERFORM (sub_name)zprog2. All of the following are true in regard to a parameter passed by reference. B: Exit screen 200. B: Add MOVE statements to fill the header line of itab. what else must you declare to work with the table's rows? A: Another internal table with a header line. C: Besides USING. ENDSELECT. D: A PARAMETER. itab-fld5. D: This code is optimized. code the following: A: CALL zprog2(sub_name). LEAVE SCREEN. no additional syntax is required. 213. except: A: A pointer to the memory location of the parameter's value is passed. SELECT fld1 fld2 fld3 FROM tab1 INTO (itab-fld4. B: PERFORM sub_name(zprog2). A: Come back to the calling screen from screen 200. SET SCREEN 200. Ans:D 216. itab-fld6) WHERE fld7 = pfld7. C: Branch back to the previous screen. C: SUM. you should avoid using: A: SORT itab by fld1. B: TOP-OF-PAGE. Ans:A 221. To grant a set of access privileges to a user ____. B: FIELD-SYMBOLS <fs>. D: GET. B: Requires actual parameters. C: FIELD-SYMBOLS [fs]. D: WRITE itab-fld1. Ans:B 220. This event occurs before a selection screen is displayed and may be used to assign default values. When coding AT FIRST fld1. Ans:B . 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. within an internal table loop. A: INITIALIZATION.217. D: FIELD-SYMBOLS (FS). Which statement correctly declares a field-symbol? A: FIELD-SYMBOLS fs. In regard to PERFORM. _ ENDAT. which of the following is NOT a true statement? A: May be used within a subroutine. C: Recursive calls are allowed in ABAP. D: Can call a subroutine in another program. B: LOOP AT itab WHERE fld1 = pfld. C: START-OF-SELECTION. 218. Entering transaction SE80 will take you to an interface tool for managing application development objects. When creating a transparent table in the ABAP Dictionary. 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. If you forget the syntax of an ABAP keyword. This tool is called the ____. 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. 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. The declarative keyword for defining your own data types in an ABAP program is ____. A: DATA B: TYPE-GROUPS C: TYPES . A: ABAP editor B: ABAP workbench C: Object list D: Repository browser Ans: B 226.222. SUM. A: True B: False 231. Database locks are sufficient in a multi-user environment. tot = tot + fld4.D: DATA-TYPE Ans:C 227. use: A: AT LAST B: AT NEW C: ON CHANGE OF D: LOOP AT itab FROM Ans: 228. 230. ENDSELECT. A good performance tuning technique would be to change the SELECT statement to use: A: B: C: D: GROUP-BY. 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. To output a control break grand total for an entire internal table. Which keyword changes any line within an internal table? A: B: C: D: INSERT APPEND ALTER MODIFY . MAX. Ans: D 232. To get the average value of a database table field as you select it. Given this code: AT LINE-SELECTION. What is the transaction code for the ABAP Dictionary? A: B: C: D: SE10 SE38 SE11 SE37 Ans:C 236. Allows you to program a second SELECT as part of the WHERE clause. In regard to a subquery. A: B: C: D: GET AVERAGE SELECT AVERAGE SELECT AVG COMPUTE AVG Ans: 233. A: True B: False Ans:A 237. The TABLES statement declares a data object. which of the following is not a true statement? A: B: C: D: Include an internal table in parentheses without blanks. The outer SELECT is processed first. 234. The dynamic internal table may have two or more fields. use ____. . Write: /1 'Thanks!'. which of the following is a true statement? A: B: C: D: SELECT SINGLE may be used. UPDATE may not use a subquery. Ans: 235. The dynamic internal table may be empty. The IN operator may be used with the dynamic values internal table. In regard to a dynamic WHERE clause. The HIDE area is retrieved when using the READ LINE statement. ENDIF. Before a function module may be tested. which of the following is NOT a true statement? A: B: C: D: Saves the contents of variables in relation to a list line's row number. the program stops automatically. All of the following pertain to a subroutine's local data object except: A: B: C: D: Declared inside of the subroutine. CHECK AUTHORITY-OBJECT Ans:B 242. In regard to HIDE. EXIT. The hidden variables must be output on a list line. Available only within the subroutine. Must follow the same declaration syntax as Global data. Value is known to all subroutines Ans: D 241.What will trigger the output of the word "Thanks!"? A: B: C: D: Executing the ABAP report Double-clicking a list row Clicking once on a list row and pressing Enter None of the above Ans: 238. The HIDE area is retrieved when an interactive event is triggered. it must first be: A: Linked B: Authorized C: Released D: Active Ans: D 240. IF SY-SUBRC NE 0. . -------239. what else should you code to handle a failed check? A: B: C: D: WRITE 'You are not authorized'. After coding an authorization check. Nothing. APPEND itab. WRITE: /1 itab-fval. use: A: B: C: D: MATCHCODE OBJECT MODIF ID DEFAULT MEMORY ID 244. itab-fval = 1. DELETE itab. To delete duplicate lines from an internal table use the ABAP statement: A: B: C: D: SORT itab WITH UNIQUE ROWS. END OF itab. APPEND itab. At runtime Native SQL is converted to ABAP Open SQL. A: 2 .Ans: 243. REMOVE DUPLICATES FROM itab. FREE itab. DELETE ADJACENT DUPLICATES FROM itab Ans: D 246. fval type i. If you want to use a SPA/GPA parameter value as a default value for a selection screen field. What will be output by the following code? DATA: BEGIN OF itab OCCURS 0. itab-fval = 2. include this option of the PARAMETERS statement: A: B: C: D: FIRST INITIALIZATION VALUE DEFAULT Ans: D 245. A: True B: False Ans: B 247. To assign an initial value. Given this code. For a table field that you create.B: 0 C: blank D: 1 Ans: 2 248. A: B: C: D: E: He lives at 100 Washington Place He lives at He lives at 1600 Penn Ave. street like address. you may create your own Data Element. what will be the resulting output? report zabaprg. street. address = '100 Washington Place'. .'. He lives at 100 Washington Place. DATA: address(45) type C value '1600 Penn Ave. but you must use an existing Domain. 1600 Penn Ave. None of the above Ans: B 249. A: True B: False Ans: B Documented by Vaibhav Sharan Date : 10/08/2007. WRITE: /1 'He lives at'.
Copyright © 2024 DOKUMEN.SITE Inc.