ABAP

37
ABAP Written Test Questions Thanks to all contributors for these questions. 1. If a table does not have MANDT as part of the primary key, it is ____. A: A structure B: Invalid C: Client-independent D: Not mandatory 2. In regard to CALL, which of the following is NOT a valid statement? A: CALL FUNCTION B: CALL SCREEN C: CALL TRANSACTION D: CALL PROGRAM 3. Name the type of ABAP Dictionary table that has these characteristics: Same number of fields as the database table Same name as database table Maps 1:1 to database table A: Pooled B: Cluster C: Transparent D: View 4. An event starts with an event keyword and ends with: A: Program execution. B: END-OF-EVENT. C: Another event keyword. D: END-EVENT. 5. What is the system field for the current date? A: SY-DATUM B: SY-DATE C: SY-DATID D: SY-SDATE 6. The following code indicates: SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab WHERE fld1 IN sfld1. A: Add rows to the existing rows of itab. B: Add rows to itab after first deleting any existing rows of itab. C: Select rows from tab1 for matching itab entries. D: Nothing, this is a syntax error. 7. You may change the following data object as shown below so that it equals 3.14. CONSTANTS: PI type P decimals 2 value '3.1'. PI = '3.14'. A: True B: False 8. The SAP service that ensures data integrity by handling locking is called: A: Update B: Dialog C: Enqueue/Dequeue D: Spool 9. Which of these sentences most accurately describes the GET VBAK LATE. event? 1 | Page

Transcript of ABAP

Page 1: ABAP

ABAP Written Test Questions

Thanks to all contributors for these 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 tableSame name as database tableMaps 1:1 to database tableA: 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 itabWHERE fld1 IN sfld1.

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

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

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

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

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

1 | P a g e

Page 2: ABAP

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

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

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

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

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

LOOP AT itab WHERE qty > 10.WRITE: /1 itab-qty.ENDLOOP.

This will result in:A: Output of only those itab rows with a qty field less than 10B: Output of the first 10 itab rows with a qty field greater than 10C: A syntax errorD: None of the above

15. After a DESCRIBE TABLE statement SY-TFILL will containA: The number of rows in the internal table.B: The current OCCURS value.C: Zero, if the table contains one or more rows.D: The length of the internal table row structure.

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

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

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

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

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

2 | P a g e

Page 3: ABAP

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

22. The AT USER-COMMAND event is triggered by functions defined in the ____.A: screen painter B: ABAP report C: menu painter statusD: ABAP Dictionary

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

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

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

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

27. A field declared as type T has the following internal representation:A: SSMMHH B: HHMMSS C: MMHHSS D: HHSSMM

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

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

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

3 | P a g e

Page 4: ABAP

31. The following program outputs what?report zjgtest1

write: /1 'Ready_'.

PARAMETER: test.

INITIALIZATION.write: /1 'Set_'.

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

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

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

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

34. What is output by the following code?

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

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

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

A: AB: A B C DC: BD: B C D

35. To select all database entries for a certain WHERE clause into an internal table in one step, useA: SELECT_INTO TABLE itab_B: SELECT_INTO itab_C: SELECT_APPENDING itabD: SELECT_itab_

4 | P a g e

Page 5: ABAP

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-ENTRYB: OBLIGATORYC: DEFAULTD: 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 field1WITH 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 hereB: Remove the SORT statementC: Change INSERT to APPENDD: Add a WHERE clause to the loop

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

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

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

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

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

5 | P a g e

Page 6: ABAP

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 programB: TOP include programC: PAI module include programD: Subroutine include program

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

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

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

47. Which system field contains the contents of a selected line?A: SY-CUCOL B: SY-LILLI C: SY-CUROW D: SY-LISEL

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

WRITE: /1 'Total Amount:'.

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

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

DATA: first_field type P, second_field like first_field.

A: PB: CC: ND: D

50. Which of the following describes the internal representation of a type D data object?A: DDMMYYYYB: YYYYDDMMC: MMDDYYYYD: YYYYMMDD

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

A: Downloading data to a local file

6 | P a g e

Page 7: ABAP

B: Data interfaces between SAP and external systemsC: Initial data transferD: Entering a large amount of data

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

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

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

A: SE11B: SE38C: SE36D: SE16

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

A: Saves the contents of variables in relation to a list line's row number.B: The hidden variables must be output on a list line.C: The HIDE area is retrieved when using the READ LINE statement.D: The HIDE area is retrieved when an interactive event is triggered.

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

A: TrueB: False

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

A: DomainB: Field nameC: Data typeD: 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:

7 | P a g e

Page 8: ABAP

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

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

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

CHECK NOT itab[] IS INITIAL.

A: Contains no rowsB: Contains at least one rowC: Has a header lineD: 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: 2B: 0C: blankD: 1

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

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

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

8 | P a g e

Page 9: ABAP

63. Assuming an internal table contains 2000 entries, how many entries will it have after the following line of code is executed?

DELETE itab FROM 1500 TO 1700.

A: This is a syntax error.B: 1801C: 1800D: 1799

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

A: UPDATEB: MODIFYC: ERASED: DELETE

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

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

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

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

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

A: TrueB: False

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

A: TrueB: False

9 | P a g e

Page 10: ABAP

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

A: APPENDB: EXPORTC: WRITED: HIDE

70. To bypass automatic field input checks, include this in PAI.

A: AT EXIT-COMMANDB: ON INPUTC: ON REQUESTD: LEAVE TO SCREEN 0.

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

A: SY-MSGTYB: SY-MSGNOC: SY-MSGV1D: SY-MSGWA

72. The following code indicates:

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

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

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

A: Database viewB: Projection viewC: Help viewD: Entity view

10 | P a g e

Page 11: ABAP

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

A: MOVEB: WRITEC: ASSIGND: 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 dataB: AC: Nothing, there is a syntax errorD: None of the above

76. Page footers are coded in the event:

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

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

A: TrueB: False

78. The TABLES statement declares a data object.

A: TrueB: False

11 | P a g e

Page 12: ABAP

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

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

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

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

A: ApplicationB: TitleC: StatusD: Type

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

A: Adding technical settings to the tableB: Checking the table syntaxC: Saving the tableD: Activating the table

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

A: INCLUDE programB: Online programC: Module poolD: Function groupE: Subroutine pool

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

SELECT fld1 SUM( fld1 ) FROM tab1 INTO_

A: Remove the spaces from SUM( fld1 ).B: Move SUM( fld1 ) before fld1.C: Add GROUP BY f1.D: Change to SUM( DISTINCT f1 ).

12 | P a g e

Page 13: ABAP

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

A: INSERTB: APPENDC: COLLECTD: GROUP

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

READ TABLE itab INDEX 3 TRANSPORTING field1.WRITE: /1 itab-field1, itab-field2.

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

86. The following code indicates:

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

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

87. Which statement will sort the data of an internal table with fields FRUIT, QTY, and PRICE so that it appears as follows?

FRUIT QTY PRICE

Apples 12 22.50Apples 9 18.25Oranges 15 17.35Bananas 20 10.20Bananas 15 6.89Bananas 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.

13 | P a g e

Page 14: ABAP

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

A: APPENDB: MODIFYC: ADDD: INSERT

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

A: LOOP AT itab. _ ENDLOOP.B: READ itab.C: SELECT SINGLE * FROM itab.D: READ TABLE itab.

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

A: UPDATEB: MODIFYC: DELETED: INSERT

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

A: PBO module include programB: TOP include programC: PAI module include programD: Subroutine include program

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

A: GROUPB: FIELD-GROUPC: CHAIND: LOOP AT SCREEN

14 | P a g e

Page 15: ABAP

93. Given:

PERFORM subroutine USING var.

The var field is known as what type of parameter?

A: FormalB: ActualC: StaticD: Value

SAP ABAP FAQ - Frequently Asked Questions

The ANSWERS is in BOLD. Please note that not all questions have answers.

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.

15 | P a g e

Page 16: ABAP

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: A SELECT fld1 fld2 FROM tab1 APPENDING TABLE itab WHERE fld1 IN sfld1.

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

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

A: True B: False

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

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

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

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

10. Which of the following is not a true statement in regard to a hashed internal table type?

A: Its key must always be UNIQUE. B: May only be accessed by its key.

16 | P a g e

Page 17: ABAP

C: Response time for accessing a row depends on the number of entries in the table. D: Declared using internal table type HASHED TABLE.

11. TO include database-specific SQL statements within an ABAP program, code them between:

A: NATIVE SQL_ENDNATIVE. B: DB SQL_ENDDB. C: SELECT_ENDSELECT. D: EXEC SQL_ENDEXEC.

12. To measure how long a block of code runs, use the ABAP statement:

A: GET TIME . B: SET TIME FIELD . C: GET RUN TIME FIELD . D: SET CURSOR FIELD .

13. When a secondary list is being processed, the data of the basic list is available by default.

A: True B: False

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

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

LOOP AT itab WHERE qty > 10. WRITE: /1 itab-qty. ENDLOOP.

This will result in:

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

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

A: The number of rows in the internal table. B: The current OCCURS value.

17 | P a g e

Page 18: ABAP

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

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

A: True B: False

17. After adding rows to an internal table with COLLECT, you should avoid adding more rows with APPEND.

A: True B: False

18. Which of the following is not a component of control break processing when looping at an internal table?

A: AT START OF B: AT FIRST C: AT LAST D: AT NEW

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

A: True B: False

20. Which of the following would be best for hiding further selection criteria until a function is chosen?

A: AT NEW SELECTION-SCREEN B: SELECTION-SCREEN AT LINE-SELECTION C: SUBMIT SELECTION-SCREEN D: CALL SELECTION-SCREEN

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

A: ON INPUT B: CHAIN C: FIELD D: ON REQUEST

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

18 | P a g e

Page 19: ABAP

A: screen painter B: ABAP report C: menu painter status D: ABAP Dictionary

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

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

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

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

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

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

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

A: True B: False

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

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

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

A: Date and Time B: List title

19 | P a g e

Page 20: ABAP

C: Page number D: Underline

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

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

30. In regard to field selection, what option of the SELECT statement is required?

A: FOR ALL ENTRIES B: WHERE C: INTO D: MOVE-CORRESPONDING      

ABAP Interview Questions

Yesterday my friend  attended one interview. She gave me these questions. Can any body to answer these questions???

  1.Without using Tcode SE11, How can we enter the values in to the table???   2.What is the difference between Collect statement and Append Statement???   3.What do you mean by correction and Transportation system???   4.What is the difference between User Exits and BADI????   5.How can we identify User exits in our screen???   6.What do you mean by Inbound and Outbound interface???   7.In realtime do we configure ALE systems or Administator will take care of that??   8.How to release an object???   9.What is the flow of a Sales document??? 10.What is the flow of Purchase order??? 12.What is the flow of Invoice??? 13.What are the standard IDOC's used??? 14.What do you mean by table control???Where will we use this??? 15.What are field symbols??Where will we use these symbols???

Deepti

-----------------------------------------------------------------------

  1. There are other ways of entering data into a DB table. ex. B D C   2. Collect statement collect/adds the records basing on a key field. allows to create summarised

20 | P a g e

Page 21: ABAP

data sets.       Append will append/add a record at the end of existing records   8. to release an object - use se10/se9   9. sales doc flow: S. A. - S. O. - Delivery - Billing 12. Delivery - invoice. 15. field symbols are used for dynamic allocation. at runtime u can assign a concrete field to field-symbol.

Kishore

-----------------------------------------------------------------------

  1. you can go to abap editor (se38) and use insert statement for insertion update for update and modify for modifications.   2. collect will not allow duplicate entries, while append can allow duplicates.   3. if any changes are made to objects they are to be transported to different systems i.e, change and transport.   4. in user exits we go by general method for enhancements while BADIs we use objects (oops concepts)       methods for enhancement. 14. table controls are enhanced version for step loops where we can expand rows .main difference between these two       is step loop can be expanded to two lines table controls can`t. 15. field symbols are just like pointers concept which are used in C language.  We use them when we want to refer to       the fields considered,it doesnt allocate any memory for it.

Venu Rapolu

-----------------------------------------------------------------------

   1. Ans: Using BDC., LSMW,,ALE., BAPI    2. Ans: Collect:  it adds the numeric fields to the existing non numeric key field records., thereby avoiding duplicate                values., and append will simply adds the record   3 . Ans: The CTS contains work bench organizer and transport system :                The workbench organizer is used to record and contol changes to the ABAP/4 development objects;                The transport system is used to move objects from an SAP dev.system to production system   6. Ans: Outbound interface is used to send IDocs to the ALE server.,               Inbound interface is used to Analyse the received Idoc.   7. Ans: We (ABAPers) don't do.   8. Ans:  se09 or se10 13. Ans:  MATMAS                CREMAS

21 | P a g e

Page 22: ABAP

               DEBMAS                GLMAST etc... 14. Ans:  to display records in table format., we use in Screens 15. Ans:  we assign the field content at run time with ASSIGN stmt.

Satish D

-----------------------------------------------------------------------

  1. goto se16 u can view the table contents   2. collect will collects all the numeric fields of nonnumeric field values      append will append record at the end of table   3. when we are creatiing new task like dev. a new prg.. after completion of dev. that will be trnsported to testing system       or production system ... to do that we are assigning an transport request from our dev.class(system) by using se09   4. badis are dev. by class and inheritence methods where as user exitsdev by SAP only and empty shells filled wit user logic   5. go to system then status   6. outbound generating an idoc in ale layer with master_idoc_create_messgetype,       inbound is receivng system with idoc_inbound_process, gives an return variable wether it is sucess or not   7. no we have to configur that   8. go to se09 or se01 there write your task no and use release button it will asks whats the other system name       and number enter them and relase by pressing jeep button   9.  inquiry        quotation        sales order        shipping        delivery        invoice        return goods 12.  after creation of delivry note invoice is prepared 13.  master_idoc_distribute will generate standard idoc

Deepti

-----------------------------------------------------------------------

I am enclosing some of answers which I know.

  1. We can use t.Code SE16 to enter values into table only if table maintainence is allowed for that table.   2. Append will add new entries into the table where as collect add into the numeric type fields if other charatcer fields

22 | P a g e

Page 23: ABAP

      matches to your selection criteria.   3. CTS used for creation of ABAP development transport requests.The transaction code for this is SE10.   4. UserExits r used for adding additional functionality to the existing SAP standard transactions.Using UserExits       we can add additional functionality standard SAP functionality without making any changes to the original code.       BADI is a standardized interface for ABAP sources that enables partners and customers to enhance       SAP-delivered programs in their namespace.   5 .We can identify User exits by using transactions CMOD and SMOD.   6. After entering transaction code SE10 select the transport request which u want to transport and click on transport       icon(Truck symbol) to release it. 10. Purchase Requistion->RFQ->Vendor Evaluation->Purchase Order(ME21). 14. Table control is the only facility provide thru dialog programming when we come acrosse the use of updating       standard tables,deletion,insertion and all database operations. 15. Field symbols r pointers to the existing data types(like 'C') which does not allocate any memory space. These are used       faster access of data.

23 | P a g e

Page 24: ABAP

ABAPTM Certification Questions

Thanks to all contributors for these questions.

1. What is the fastest way to move one internal table to another internal table (assuming two tables of similar structure)?

a) append lines of table1 to table2.

b) loop at table1.Move: table1-field1 to table2-field1,      table1-field2 to table2-field2.Append table2.Endloop.

c) table2[] = table1[].

d) loop at table1.Move-corresponding table1 to table2.Endloop.

e) move table1 to table2.

2. Which one of the following is true about a function module?

a) Function modules are locally accessible objects.

b) Function modules have inbound and outbound parameters.

c) Function modules have no built-in exception handling.

d) Function modules CANNOT be created by a programmer.

e) Function modules use a shared memory area.

3.

data: field1 type I value 10.

End-of-selection.Subtract 2 from field1.Write: / 'field1 =', field1.

Start-of-selection.Add 5 to field1.Write: / 'field1 =', field1.

24 | P a g e

Page 25: ABAP

Initialization.Field1 = 5.Write: / 'field1 =', field1.

What is the result after executing the above code?

a) field1 = 10field1 = 8

b) field1 = 8field1 = 14field1 = 5

c) field1 = 5field1 = 3field1 = 8

d) field1 = 5field1 = 10field1 = 8

e) field1 = 8field1 = 14

4. Which one of the following commands is used in drill-down reporting?

a) AT LINE-SELECTION

b) MODULE SET_SCREEN

c) LEAVE SCREEN

d) END-OF-PAGE

e) ON VALUE-REQUEST

5. What is an object which CANNOT be transported?

a) A local object

b) A change request

c) A development object

d) A class

25 | P a g e

Page 26: ABAP

e) A task

6. A GUI-Status is created in which transaction?

a) Flow Logic

b) Menu Painter

c) GUI Painter

d) Screen Painter

e) Status Painter

7. Which one of the following statements creates a GUI-status in a dialog program?

a) set pf-status '0100'.

b) set screen '0100'.

c) set gui-status '0100'.

d) set gui-status = '0100'.

e) set status '0100'.

8. Dialog programs have which naming convention?

a) ZPBOxxx

b) SAPMZxxx

c) ZDIAxxx

d) ZPAIxxx

e) Zxxx

9. Which dictionary structure contains system fields?

a) SYSTEM

b) SYTAB

c) SYST

26 | P a g e

Page 27: ABAP

d) SY

e) SYS

10.

An internal table ICODE contains the following entries:field1  field2--------------John    12345Alice   23478Sam     54321Bob     10000

IF NOT ICODE[] IS INITIAL.SORT ICODE BY FIELD1 DESCENDING.READ TABLE ICODE WITH KEY FIELD1 = 'Sam'.WRITE: / SY-TABIX.ENDIF.

What is the output of the above code after execution?

a) 1 b) 2 c) 3 d) 4 e) Sam

11.

Data: number type i.

while number < 10.  Add 1 to number.  If number < 8.   Continue.  Else.   Add 4 to number.  Endif.Endwhile.Write number.

What does NUMBER equal after executing the above code?

a) 4

b) 8

c) 10

27 | P a g e

Page 28: ABAP

d) 12

e) 14

12. Which one of the following statements would occur in the PBO of a dialog program using table control?

a) loop at itab.

b) loop at itab with control itab_tc.

c) module exit at exit-command.

d) module user_command.

e) set screen '0100'

13.

data: begin of itab occurs 0,       field1(10),       field2(10),      end of itab.

Move: 'A' to itab-field1,      'B' to itab-field2.Append itab.Append itab.Move: 'B' to itab-field1.Append itab.Clear itab.Move: 'A' to itab-field2.Append itab.

What are the contents of itab after executing the above code?

a) A B    A B    B B    A

b) A B    A B    B    A

28 | P a g e

Page 29: ABAP

c) A B    B      A

d) A B    B A     A

e) A B     B A     B A      B A

14. When debugging a BDC session, which command is used to exit the session?

a) /n

b) /bend

c) /nexit

d) /nquit

e) /exit

15. Which system field returns the number of records returned after a select?

a) sy-index

b) sy-recno

c) sy-lncnt

d) sy-dbcnt

e) sy-tabix

16. Which statement regarding Logical databases is FALSE?

a) Logical databases use a tree structure.

29 | P a g e

Page 30: ABAP

b) Logical databases use a standard selection-screen for selection criteria.

c) More than one logical database can be used in a report.

d) Any change to a logical database is reflected in all reports using that logical database.

e) Logical databases simplify and encapsulate data retrieval

17. Which one of the following is an example of an asynchronous update?

a) modify ztable from wa.

b) update ztable set field1 = '123'.

c) update ztable from ztable.

d) insert wa into ztable.

e) call function 'update_table' in update task

18. Which return code is associated with a failed authority check due to lack of user authorization for the chosen action?

a) 0

b) 4

c) 8

d) 12

e) 24

19. Which transaction is used to monitor, release, and reprocess BDC sessions?

a) SM36

b) SE

30 | P a g e