Vous êtes sur la page 1sur 15

ABAP Written Test Questions 1. If a table does not have MANDT as part of the primary key, it is ____.

A: A structure B: Invalid C: Client-independent D: Not mandatory 2. In regard to CALL, which of the following is NOT a valid statement? A: CALL FUNCTION B: CALL SCREEN C: CALL TRANSACTION D: CALL PROGRAM 3. Name the type of ABAP Dictionary table that has these characteristics: Same number of fields as the database table Same name as database table Maps 1:1 to database table A: Pooled B: Cluster C: Transparent D: View 4. An event starts with an event keyword and ends with: A: Program execution. B: END-OF-EVENT. C: Another event keyword. D: END-EVENT. 5. What is the system field for the current date? A: SY-DATUM B: SY-DATE C: SY-DATID D: SY-SDATE 6. The following code indicates: SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab WHERE fld1 IN sfld1. A: B: C: D: Add rows to the existing rows of itab. Add rows to itab after first deleting any existing rows of itab. Select rows from tab1 for matching itab entries. Nothing, this is a syntax error.

7. You may change the following data object as shown below so that it equals 3.1 4. CONSTANTS: PI type P decimals 2 value '3.1'. PI = '3.14'. A: True B: False 8. The SAP service that ensures data integrity by handling locking is called: A: Update B: Dialog C: Enqueue/Dequeue D: Spool 9. Which of these sentences most accurately describes the GET VBAK LATE. event? A: This event is processed before the second time the GET VBAK event is processe d. B: This event is processed after all occurrences of the GET VBAK event are compl eted. C: This event will only be processed after the user has selected a basic list ro w. D: This event is only processed if no records are selected from table VBAK. 10. Which of the following is not a true statement in regard to a hashed interna l table type? A: Its key must always be UNIQUE. B: May only be accessed by its key. C: Response time for accessing a row depends on the number of entries in the tab le. D: Declared using internal table type HASHED TABLE. 11. TO include database-specific SQL statements within an ABAP program, code the m between: A: NATIVE SQL_ENDNATIVE. B: DB SQL_ENDDB.

C: SELECT_ENDSELECT. D: EXEC SQL_ENDEXEC. 12. To measure how long a block of code runs, use the ABAP statement: A: GET TIME. B: SET TIME FIELD. C: GET RUN TIME FIELD. D: SET CURSOR FIELD. 13. When a secondary list is being processed, the data of the basic list is avai lable by default. A: True B: False 14. Given: DATA: BEGIN OF itab OCCURS 10, qty type I, END OF itab. DO 25 TIMES. itab-qty = sy-index. APPEND itab. ENDDO. LOOP AT itab WHERE qty > 10. WRITE: /1 itab-qty. ENDLOOP. This will result in: A: Output of only those itab rows with a qty field less than 10 B: Output of the first 10 itab rows with a qty field greater than 10 C: A syntax error D: None of the above 15. After a DESCRIBE TABLE statement SY-TFILL will contain A: The number of rows in the internal table. B: The current OCCURS value. C: Zero, if the table contains one or more rows. D: The length of the internal table row structure. 16. You may declare your own internal table type using the TYPES keyword. A: True B: False 17. After adding rows to an internal table with COLLECT, you should avoid adding more rows with APPEND. A: True B: False 18. Which of the following is not a component of control break processing when l ooping at an internal table? A: AT START OF B: AT FIRST C: AT LAST D: AT NEW 19. A dictionary table is made available for use within an ABAP program via the TABLES statement. A: True B: False 20. Which of the following would be best for hiding further selection criteria u ntil a function is chosen? A: AT NEW SELECTION-SCREEN B: SELECTION-SCREEN AT LINE-SELECTION C: SUBMIT SELECTION-SCREEN D: CALL SELECTION-SCREEN 21. What must you code in the flow logic to prevent a module from being called u nless a field contains a non-initial value (as determined by its data type)? A: ON INPUT B: CHAIN C: FIELD D: ON REQUEST 22. The AT USER-COMMAND event is triggered by functions defined in the ____.

A: screen painter B: ABAP report C: menu painter status D: ABAP Dictionary 23. In regard to a function group, which of the following is NOT a true statemen t? A: Combines similar function modules. B: Shares global data with all its function modules. C: Exists within the ABAP workbench as an include program. D: Shares subroutines with all its function modules. 24. In regard to SET PF-STATUS, you can deactivate unwanted function codes by us ing ____. A: EXCLUDING B: IMMEDIATELY C: WITHOUT D: HIDE 25. In regard to data transported in PAI when the FIELD statement is used, which of the following is NOT a true statement? A: Fields in PBO are transported directly from PAI. B: Fields with identical names are transported to the ABAP side. C: Fields not defined in FIELD statements are transported first. D: Fields that are defined in FIELD statements are transported when their corres ponding module is called. Previous | Next

26. The order in which an event appears in the ABAP code determines when the eve nt is processed. A: True B: False 27. A field declared as type T has the following internal representation: A: SSMMHH B: HHMMSS C: MMHHSS D: HHSSMM 28. Which of the following is NOT a component of the default standard ABAP repor t header? A: Date and Time B: List title C: Page number D: Underline 29. Assuming a pushbutton with function code 'FUNC' is available in the toolbar of a list report, what event is processed when the button is clicked? A: AT USER-COMMAND. B: AT PFn. C: AT SELECTION-SCREEN. D: END-OF-SELECTION. 30. In regard to field selection, what option of the SELECT statement is require d? A: FOR ALL ENTRIES B: WHERE C: INTO D: MOVE-CORRESPONDING 31. The following program outputs what? report zjgtest1 write: /1 'Ready_'. PARAMETER: test. INITIALIZATION. write: /1 'Set_'. START-OF-SELECTION. write: /1 'GO!!'. A: Set_ GO!! (each on its own line) B: Set_ Ready_ GO!! (all on their own lines)

C: Ready_ GO!! (each on its own line) D: Ready_ Set_ GO!! (all on their own lines) 32. To declare a selection criterion that does not appear on the selection scree n, use: A: NO-DISPLAY B: INVISIBLE C: MODIF ID D: OBLIGATORY 33. An internal table that is nested within another internal table should not co ntain a header line. A: True B: False 34. What is output by the following code? DATA: BEGIN OF itab OCCURS 0, letter type c, END OF itab. itab-letter = 'A'. APPEND itab. itab-letter = 'B'. APPEND itab. itab-letter = 'C'. APPEND itab. itab-letter = 'D'. APPEND itab. LOOP AT itab. SY-TABIX = 2. WRITE itab-letter. EXIT. ENDLOOP. A: B: C: D: A A B C D B B C D

35. To select all database entries for a certain WHERE clause into an internal t able in one step, use A: SELECT_INTO TABLE itab_ B: SELECT_INTO itab_ C: SELECT_APPENDING itab D: SELECT_itab_ 36. After a successful SELECT statement, what does SY-SUBRC equal? A: 0 B: 4 C: 8 D: Null 37. This selection screen syntax forces the user to input a value: A: REQUIRED-ENTRY B: OBLIGATORY C: DEFAULT D: SELECTION-SCREEN EXCLUDE 38. If the following code results in a syntax error, the remedy is: DATA: itab TYPE SORTED TABLE OF rec_type WITH UNIQUE KEY field1 WITH HEADER LINE. itab-field1 = 'Company'. itab-field2 = '1234'. INSERT TABLE itab. itab-field1 = 'Bank'. itab-field2 = 'ABC'. INSERT TABLE itab. SORT itab. LOOP AT itab. write: /1 itab-field1, itab-field2. ENDLOOP. A: There is no syntax error here

B: Remove the SORT statement C: Change INSERT to APPEND D: Add a WHERE clause to the loop 39. If this code results in an error, the remedy is: SELECT fld1 fld2 FROM tab1 WHERE fld3 = pfld3. WRITE: /1 tab1-fld1, tab1-fld2. ENDSELECT. A: B: C: D: Add a SY-SUBRC check. Change the WHERE clause to use fld1 or fld2. Remove the /1 from the WRITE statement. Add INTO (tab1-fld1, tab1-fld2).

40. When modifying an internal table within LOOP AT itab. _ ENDLOOP. you must in clude an index number. A: True B: False 41. To allow the user to enter values on the screen for a list field, use: A: OPEN LINE. B: SET CURSOR FIELD. C: WRITE fld AS INPUT FIELD. D: FORMAT INPUT ON. 42. Before a function module may be tested, it must first be: A: Linked B: Authorized C: Released D: Active 43. To include a field on your screen that is not in the ABAP Dictionary, which include program should contain the data declaration for the field? A: PBO module include program B: TOP include program C: PAI module include program D: Subroutine include program 44. If a table contains many duplicate values for a field, minimize the number o f records returned by using this SELECT statement addition. A: MIN B: ORDER BY C: DISTINCT D: DELETE 45. The system internal table used for dynamic screen modification is named: A: ITAB B: SCREEN C: MODTAB D: SMOD 46. Within the source code of a function module, errors are handled via the keyw ord: A: EXCEPTION B: RAISE C: STOP D: ABEND 47. Which system field contains the contents of a selected line? A: SY-CUCOL B: SY-LILLI C: SY-CUROW D: SY-LISEL 48. The following statement writes what type of data object? WRITE: /1 'Total Amount:'. A: Text literal B: Text variable C: In-code comment D: Text integer 49. For the code below, second_field is of what data type? DATA: first_field type P, second_field like first_field. A: P

B: C C: N D: D 50. Which of the following describes the internal representation of a type D dat a object? A: DDMMYYYY B: YYYYDDMM C: MMDDYYYY D: YYYYMMDD 51. 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

52. In regard to PERFORM, which of the following is NOT a true statement? A: B: C: D: May be used within a subroutine. Requires actual parameters. Recursive calls are allowed in ABAP. Can call a subroutine in another program.

53. What is the transaction code for the ABAP Editor? A: B: C: D: SE11 SE38 SE36 SE16

54. In regard to HIDE, 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 hidden variables must be output on a list line. The HIDE area is retrieved when using the READ LINE statement. The HIDE area is retrieved when an interactive event is triggered.

55. Database locks are sufficient in a multi-user environment. A: True B: False 56. The complete technical definition of a table field is determined by the fiel d's: A: B: C: D: Domain Field name Data type Data element

57. In regard to LEAVE, which of the following is NOT a true statement? A: May be used to return immediately to a calling program. B: May be used to stop the current loop pass and get the next. C: May be used to start a new transaction.

D: May be used to go to the next screen. 58. The following code indicates: SELECT fld6 fld3 fld2 fld1 FROM tab1 INTO CORRESPONDING FIELDS OF TABLE itab WHERE fld3 = pfld3. A: B: C: D: The order of the fields in itab does not matter. Fill the header line of itab, but not the body. Table itab can only contain fields also in table tab1. None of the above.

59. The ABAP statement below indicates that the program should continue with the next line of code if the internal table itab: CHECK NOT itab[] IS INITIAL. A: B: C: D: Contains no rows Contains at least one row Has a header line Has an empty header line

60. What will be output by the following code? DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab. itab-fval = 1. APPEND itab. itab-fval = 2. APPEND itab. FREE itab. WRITE: /1 itab-fval. A: B: C: D: 2 0 blank 1

61. To allow the user to enter a range of values on a selection screen, use the ABAP keyword: A: B: C: D: DATA. RANGES. PARAMETERS. SELECT-OPTIONS.

62. If an internal table is declared without a header line, what else must you d eclare to work with the table's rows? A: B: C: D: Another internal table with a header line. A work area with the same structure as the internal table. An internal table type using the TYPES statement. A PARAMETER.

63. Assuming an internal table contains 2000 entries, how many entries will it h

ave after the following line of code is executed? DELETE itab FROM 1500 TO 1700. A: B: C: D: This is a syntax error. 1801 1800 1799

64. To remove lines from a database table, use ____. A: B: C: D: UPDATE MODIFY ERASE DELETE

65. All of the following may be performed using SET CURSOR except: A: B: C: D: Move Move Move Move the the the the cursor cursor cursor cursor to to to to a a a a specific specific specific specific field on a list. list line. pushbutton, activating that function. row and column on a list.

66. When is it optional to pass an actual parameter to a required formal paramet er of a function module? A: B: C: D: The actual parameter is type C. The formal parameter contains a default value. The formal parameter's \"Reference\" attribute is turned on. It is never optional.

67. Coding two INITIALIZATION events will cause a syntax error. A: True B: False 68. Adding a COMMIT WORK statement between SELECT_ENDSELECT is a good method for improving performance. A: True B: False 69. To save information on a list line for use after the line is selected, use t his keyword. A: B: C: D: APPEND EXPORT WRITE HIDE

70. To bypass automatic field input checks, include this in PAI. A: AT EXIT-COMMAND

B: ON INPUT C: ON REQUEST D: LEAVE TO SCREEN 0. 71. Within a function module's source code, if the MESSAGE_RAISING statement is executed, all of the following system fields are filled automatically except: A: B: C: D: SY-MSGTY SY-MSGNO SY-MSGV1 SY-MSGWA

72. The following code indicates: REPORT ZLISTTST. START-OF-SELECTION. WRITE: text-001. FORMAT HOTSPOT ON. WRITE: text-002. FORMAT HOTSPOT OFF. AT LINE-SELECTION. WRITE / text-003. A: B: C: D: Text-002 may not be selected. The value of text-002 is stored in a special memory area. Text-002 may be clicked once to trigger the output of text-003. None of the above.

73. The ____ type of ABAP Dictionary view consists of one or more transparent ta bles and may be accessed by an ABAP program using Open SQL. A: B: C: D: Database view Projection view Help view Entity view

74. A concrete field is associated with a field-symbol via ABAP keyword A: B: C: D: MOVE WRITE ASSIGN VALUE

75. The output for the following code will be: report zabaprg. DATA: char_field type C. char_field = 'ABAP data'. WRITE char_field. A: ABAP data B: A C: Nothing, there is a syntax error

D: None of the above 76. Page footers are coded in the event: A: B: C: D: TOP-OF-PAGE. END-OF-SELECTION. NEW-PAGE. END-OF-PAGE.

77. The event AT SELECTION-SCREEN OUTPUT. occurs before the selection screen is displayed and is the best event for assigning default values to selection criter ia. A: True B: False 78. The TABLES statement declares a data object. A: True B: False 79. Assuming tab1-fld7 is not a key field, how can you prevent reading all the t able rows? SELECT fld1 fld2 fld3 FROM tab1 INTO (fld4, fld5, fld6) WHERE fld7 = pfld7. WRITE: /1 fld4, fld5, fld6. ENDSELECT. A: B: C: D: Take fld7 out of the WHERE clause. Create an index in the ABAP Dictionary for tab1-fld7. Use INTO TABLE instead of just INTO. Take the WRITE statement out of the SELECT_ENDSELECT.

80. Which of the following is NOT a required attribute when creating an ABAP pro gram? A: B: C: D: Application Title Status Type

81. When creating a transparent table in the ABAP Dictionary, which step automat ically creates the table in the underlying database? A: B: C: D: Adding technical settings to the table Checking the table syntax Saving the table Activating the table

82. Within the ABAP program attributes, Type = 1 represents: A: INCLUDE program B: Online program C: Module pool

D: Function group E: Subroutine pool 83. If this code results in an error, the remedy is: SELECT fld1 SUM( fld1 ) FROM tab1 INTO_ A: B: C: D: Remove the spaces from SUM( fld1 ). Move SUM( fld1 ) before fld1. Add GROUP BY f1. Change to SUM( DISTINCT f1 ).

84. Which keyword adds rows to an internal table while accumulating numeric valu es? A: B: C: D: INSERT APPEND COLLECT GROUP

85. Assuming itab has a header line, what will be output by the following code? READ TABLE itab INDEX 3 TRANSPORTING field1. WRITE: /1 itab-field1, itab-field2. A: B: C: D: The contents of the third row's itab-field1. The contents of the third row's itab-field1 and itab-field2. The contents of the third row's itab-field2. Nothing.

86. The following code indicates: SELECTION-SCREEN BEGIN OF BLOCK B1. PARAMETERS: myparam(10) type C, Myparam2(10) type N, SELECTION-SCREEN END OF BLOCK. A: B: C: D: Draw a box around myparam and myparam2 on the selection screen. Allow myparam and myparam2 to be ready for input during an error dialog. Do not display myparam and myparam2 on the selection screen. Display myparam and myparam2 only if both fields have default values.

87. Which statement will sort the data of an internal table with fields FRUIT, Q TY, and PRICE so that it appears as follows? FRUIT QTY PRICE Apples 12 22.50 Apples 9 18.25 Oranges 15 17.35 Bananas 20 10.20 Bananas 15 6.89 Bananas 5 2.75 A: SORT itab DESCENDING BY QTY PRICE.

B: SORT itab BY PRICE FRUIT. C: SORT itab. D: SORT itab BY PRICE DESCENDING. 88. Which keyword adds a line anywhere within an internal table? A: B: C: D: APPEND MODIFY ADD INSERT

89. To read a single line of an internal table, use the following: A: B: C: D: LOOP AT itab. _ ENDLOOP. READ itab. SELECT SINGLE * FROM itab. READ TABLE itab.

90. Which Open SQL statement should not be used with cluster databases? A: B: C: D: UPDATE MODIFY DELETE INSERT

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

92. This flow logic statement is used to make multiple fields open for input aft er an error or warning message. A: B: C: D: GROUP FIELD-GROUP CHAIN LOOP AT SCREEN

93. Given: PERFORM subroutine USING var. The var field is known as what type of parameter? A: Formal B: Actual C: Static D: Value ABAPTM Interview Questions Thanks to all contributors for these questions. 1. What is the typical structure of an ABAPTM program?

2. What are field symbols and field groups.? Have you used "component idx o f structure" clause with field groups? 3. What should be the approach for writing a BDC program? 4. What is a batch input session? 5. What is the alternative to batch input session? 6. An ABAPTM program creates a batch input session. We need to submit the p rogram and the batch session in background. How to do it? 7. What is the difference between a pool table and a transparent table and how they are stored at the database level. 8. What are the problems in processing batch input sessions? How is batch i nput process different from processing on line? 9. What do you define in the domain and data element. 10. What are the different types of data dictionary objects? 11. How many types of tables exist and what are they in data dictionary? 12. What is the step by step process to create a table in data dictionary? 13. Can a transparent table exist in data dictionary but not in the data bas e physically? 14. What are the domains and data elements? 15. Can you create a table with fields not referring to data elements? 16. What is the advantage of structures? How do you use them in the ABAPTM p rograms? 17. What does an extract statement do in the ABAPTM program? 18. What is a collect statement? How is it different from append? 19. What is open sql vs native sql? 20. What does an EXEC SQL stmt do in ABAPTM? What is the disadvantage of usi ng it? Thanks to all contributors for these questions. 21. What is the meaning of ABAPTM editor integrated with ABAPTM data diction ary? 22. What are the events in ABAPTM language? 23. What is an interactive report? What is the obvious difference of such re port compared with classical type reports? 24. What is a drill down report? 25. How do you write a function module in SAP? Describe. 26. What are the exceptions in function module? 27. What is a function group? 28. How are the date and time field values stored in SAP? 29. What are the fields in a BDC_Tab Table? 30. Name a few data dictionary objects? 31. What happens when a table is activated in DD? 32. What is a check table and what is a value table? 33. What are match codes? Describe? 34. What transactions do you use for data analysis? 35. What is table maintenance generator? 36. What are ranges? What are number ranges? 37. What are select options and what is the diff from parameters? 38. How do you validate the selection criteria of a report? And how do you d isplay initial values in a selection screen? 39. What are selection texts? 40. What is CTS and what do you know about it? 41. When a program is created and need to be transported to production does selection texts always go with it? If not how do you make sure? Can you change t he CTS entries? How do you do it? 42. What is the client concept in SAP? What is the meaning of client independ ent? 43. Are programs client dependent? 44. Name a few system global variables you can use in ABAPTM programs? 45. What are internal tables? How do you get the number of lines in an inter nal table? How to use a specific number occurs statement? 46. How do you take care of performance issues in your ABAPTM programs?

47. What are datasets? 48. How to find the return code of a stmt in ABAPTM programs? 49. What are interface/conversion programs in SAP? 50. Have you used SAP supplied programs to load master data? 51. What are the techniques involved in using SAP supplied programs? Do you p refer to write your own programs to load master data? Why? 52. What are logical databases? What are the advantages/disadvantages of log ical databases? 53. What specific statements do you using when writing a drill down report? 54. What are different tools to report data in SAP? What all have you used? 55. What are the advantages and disadvantages of ABAPTM query tool? 56. What are the functional areas, User groups and how does ABAPTM query wor k in relation to these? 57. Is a logical database a requirement/must to write an ABAPTM query? 58. What is the structure of a BDC sessions. 59. What are Change header/detail tables? Have you used them? 60. What do you do when the system crashes in the middle of a BDC batch sess ion? 61. What do you do with errors in BDC batch sessions? 62. How do you set up background jobs in SAP? What are the steps? What are ev ent driven batch jobs? 63. Is it possible to run host command from SAP environment? How do you run? 64. What kind of financial periods exist in SAP? What is the relevant table f or that? 65. Does SAP handle multiple currencies and multiple languages? 66. What is a currency factoring technique? 67. How do you document ABAPTM programs? Do you use program documentation me nu option? 68. What is SAPscript and layout set? 69. What are the ABAPTM commands that link to a layout set? 70. What is output determination? 71. What are IDOCs? 72. What is screen painter, menu painter and GUI status? 73. What is screen flow logic? What are the sections in it? Explain PAI and PBO. 74. Overall how do you write transaction programs in SAP? 75. Does SAP has a GUI screen painter or not? If yes what operating systems i s it available on? What is the other type of screen painter called? 76. What are step loops? How do you program pagedown, pageup in step loops? 77. Is ABAPTM a GUI language? 78. Normally how many and what files get created when a transaction program is written? What is the XXXXXTOP program? 79. What are the include programs? 80. Can you call a subroutine of one program from another program? 81. What are user exits? What is involved in writing them? What precautions are needed? 82. What are RFCs? How do you write RFCs on SAP side? 83. What are the general naming conventions of ABAPTM programs? 84. How do you find if a logical database exists for your program requiremen ts? 85. How do you find the tables to report from when the user just tells you t he transaction he uses? And all the underlying data is from SAP structures? 86. How do you find the menu path for a given transaction in SAP? 87. What are the different modules of SAP? 88. What is IMG in SAP? 89. How do you get help in ABAPTM? 90. What are different ABAPTM editors? What are the differences? 91. What are the different elements in layout sets? 92. Can you use if then else, perform statements in SAP script? 93. What type of variables normally used in SAP script to output data?

94. 95. 96. 97. w? 98. 99. server 100. 101. 102. 103. ion?

How do you What takes How do you How do you

number pages in SAP script layout outputs? most time in SAP script programming? use tab sets in layout sets? backup SAP script layout sets? Can you download and upload? Ho

What are presentation and application servers in SAP? In an ABAPTM program how do you access data that exists on presentation vs. on an application server? What are different data types in ABAPTM? What is difference between BDC and Call Transaction? Setting up a BDC program where you find information from? What has to be done to the packed fields before submitting to a BDC sess

Vous aimerez peut-être aussi