SAP ABAP Questions with Answers
1.
1. When using Open SQL statements in an ABAP/4 program, you must ensure the following.
a) The database system being addressed must be supported by SAP.
b) The database tables being addressed must be defined in the ABAP/4 dictionary.
c) Both a and b
d) None
Ans. c
2. Which of the following statements are correct?
a) A database interface translates SAP’s Open SQL statements into SQL commands specific to the database in use. Native SQL statements access the database directly.
b) When you use Native SQL, the addressed database tables do not have to be known to the ABAP/4 dictionary. In Open SQL, the addressed database tables must be defined in the ABAP/4 dictionary.
c) There is automatic client handling in Native SQL whereas clients must always be specified in Open SQL.
Ans. a,b
3. Which of the following are true?
a) TABLE is used as a synonym for STANDARD TABLE
b) You can only access a hashed table using the generic key operations. Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed.
c) All hashed tables are index tables.
d) We have to define the hash procedure explicitly for HASHED TABLE.
Ans. a, b
4. Can a transparent table exist in data dictionary but not in the database physically?
a) True
b) False
Ans. b
5. Can you create a table with fields not referring to data elements?
a) Yes
b) No
Ans. a
6. How do you create a batch input session for a transaction?
a) ‘Call transaction’ in background mode.
b) ‘Call transaction’ in error mode.
c) ‘Bdc_insert’ for the transaction.
d) None of the above.
Ans. c
7. What is the alternative to batch input session?
a) Load module
b) Call transaction
c) BAPI
d) Idoc segment
Ans. b
8. The following are true about ‘EXEC SQL’.
a) You can end the Native SQL with a semicolon.
b) You can end the Native SQL with a period.
c) You cannot perform reliable authorization checks using EXEC SQL.
d) Host variables in the Native SQL are identified with a preceding hash (#).
Ans. a, c
9. The following are true about database locking.
a) Database systems set physical locks on all lines affected by a database call.
b) Read locks prevent the setting of further read locks for the objects in question.
c) Read locks prevent other transactions from setting write locks for the objects in question.
d) Write locks allow other transactions to set read locks for the objects in question.
Ans. a, c
10. What are field symbols?
a) Field symbols are like pointers in C that can point to any data object in ABAP/4 and to structures defined in ABAP/4 dictionary.
b) Field symbols have to be created with type specifications only.
c) You cannot assign one field symbol to another.
d) All operations you have programmed with the field symbol are carried out with the assigned field.
Ans. a, d
11. EXTRACT statement
a) The first EXTRACT statement extracts the first extract record.
b) The first EXTRACT statement creates the extract dataset and adds the first extract record.
c) Each extract record contains, if specified, the fields of the field group.
d) Each extract record contains, if specified, the fields of the field symbol.
Ans. b, c
12. You cannot assign a local data object defined in a subroutine or function module to a field group.
a) True
b) False
Ans. a
13. Which of the following are true?
a) COLLECT can only be used with STANDARD TABLE.
b) To use COLLECT, the internal table should be derived from a database table with an explicit key.
c) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, control passes on to the next record in the internal table.
d) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead.
Ans. d
14. Which of the following are true?
a) ABAP queries are created by associating them to a logical database or through a direct read/data retrieval program.
b) ABAP queries are created from functional areas that are created from a logical database or through a direct read/retrieval program.
c) ABAP queries are created from user groups attached to the functional areas that are created from a logical database or through a direct read/retrieval program.
d) ABAP queries are created through the regular report program.
Ans. c
15. A logical unit of work (LUW or transaction) begins
a) Each time you start a transaction.
b) Each time you end a transaction.
c) When the database changes of the previous LUW have been confirmed (database commit).
d) Before the database changes of the previous LUW have been cancelled (database rollback).
Ans. a, d.
16. A database commit is triggered by
a) ABAP/4 command COMMIT WORK.
b) CALL SCREEN, CALL DIALOG.
c) A Remote Function Call
d) CALL TRANSACTION
Ans. a, b, c, d
17. The following are true about SAPscript control commands.
a) If a control command is unknown or it contains syntax errors, the line containing it will be printed out as it is.
b) If a control command is unknown or it contains syntax errors, the line containing it will be treated as a comment line.
c) A maximum of one control command may appear in each line.
d) A maximum of six control commands may appear in each line.
Ans. b, c
18. To output SAPscript layout sets, in the print program
a) You must always start the output with OPEN_FORM and end it with CLOSE_FORM.
b) Within one transaction, you can use only one OPEN_FORM and CLOSE_FORM to open and close a layout set.
c) WRITE_FORM should be used within an OPEN_FORM and CLOSE_FORM.
d) WRITE_FORM can be used without an OPEN_FORM and CLOSE_FORM.
Ans. a, c
19. The transaction CMOD and SMOD are
a) Used to create enhancements to standard SAP programs.
b) Used to create enhancements to ABAP queries.
c) Used to create the user exits, menu exits and screen exits.
d) Used to modify the standard function groups.
Ans. a, c
20. Which of the following are tools to report data in ABAP?
e) ALV
f) ALE
g) LSMW
h) SmartForms
Ans: a
21. ABAP Query tool is used to:
a) Enquire about a running-program status
b) Automatically generate code for reporting
c) Perform database operations for user-written programs
d) None of the above
Ans: b.
22. In ABAP Query tool...
e) Each user can be assigned to several user-groups
f) Each user can be assigned to several functional areas
g) Each functional area can be assigned to several user-groups
h) One user can be assigned only to one user-group.
Ans: a, b, c
23. Logical databases must be used to create an ABAP Query
a) True
b) False
Ans: b
24. In a BDC program, how would you handle errored records? Would you…
a) Rerun the program
b) Report the errored records
c) Generate a batch-input session with errored records
d) Create an output file, to be run again after corrections
Ans: b, c, d
25. What are IDocs?
a) Documentation of executable programs
b) Documents used for data-transport between SAP and non-SAP s/w.
c) Documents used for data-transport between two different SAP systems
d) Documents used for one-time data-migration activities.
Ans: b, c
26. For transportation of data from a presentation server into SAP, the function module used is
a) UPLOAD
b) WS_UPLOAD
c) FILE_UPLOAD
d) DATA_UPLOAD
Ans: a, b
27. For one-time high volume data-uploads into SAP from non-reliable systems, the following are generally used:
a) BDC
b) LSMW
c) Direct table update
d) Idocs
Ans: a, b
28. In an ABAP program, the INITIALIZATION event is invoked
a) Before the AT-SELECTION-SCREEN event
b) After the AT-SELECTION-SCREEN event
c) Could be either way
d) Cannot be predicted
Ans: a
29. The statement to check whether an internal table itab_test has no records, is:
IF itab_test is initial.
a) TRUE
b) FALSE
Ans: b.
30. The statement used to clear all the contents of an internal table is:
a) CLEAR itab.
b) REFRESH itab.
c) FREE itab.
d) DELETE itab.
Ans: b, c
31. The AT-SELECTION-SCREEN event is triggered when…
a) ENTER key is hit on the selection-screen
b) F8 key is hit on the selection-screen
c) Any field on selection-screen is populated
d) F4 key is hit on the selection-screen
Ans: a, b
32. What is the transaction-code for viewing batch-runs of a program?
a) SE37
b) SM37
c) SM35
d) SM30
Ans: b
33. SY-BATCH can be used to determine whether a program is being run in batch-mode, within the AT-SELECTION-SCREEN event.
a) TRUE
b) FALSE
Ans: b
34. The following statements will clear the header-line of an internal table:
a) DELETE ITAB.
b) FREE ITAB.
c) REFRESH ITAB.
d) CLEAR ITAB.
Ans: d
35. The SAP Logon password is always case-insensitive.
a) TRUE
b) FALSE
Ans: b
P.S: From ECC6.0, SAP Logon Password is case-sensitive.
36. Data: BEGIN OF ITAB OCCURS 0,
FIELD1(10),
FIELD2(10),
END OF ITAB.
DO 20 TIMES.
ITAB-FIELD1 = ‘Field1’.
ITAB-FIELD2 = ‘Field2’.
ENDDO.
a) The internal table has 20 entries.
b) The internal table has one entry.
c) The internal table has no entry.
d) Unpredictable.
Ans: c
37. READ TABLE ITAB_TEST WITH KEY
VBELN = k_vbeln.
If multiple records in table ITAB satisfy the condition, then
a) All records are fetched
b) The last record is fetched
c) The first record is fetched
d) Compilation error
Ans: c
38. If ITAB has 1000 entries, and DBTAB is a large table, which is better in terms of performance?
i) LOOP AT ITAB.
SELECT * INTO ITAB_2 FROM DBTAB WHERE
KEY1 = ITAB-KEY1.
APPEND ITAB_2.
ENDSELECT.
ENDLOOP.
ii) LOOP AT ITAB.
SELECT * INTO TABLE ITAB_2 FROM DBTAB WHERE
KEY1 = ITAB-KEY1.
ENDLOOP.
iii) SELECT * INTO TABLE ITAB_2 FROM DBTAB
FOR ALL ENTRIES IN ITAB WHERE
KEY1 = ITAB-KEY1.
a) (i) is better than (ii), and (ii) is better than (iii).
b) (ii) is better than (iii), and (iii) is better than (i).
c) (iii) is better than (i) and (i) is better than (ii).
d) (iii) is better than (ii) and (ii) is better than (i).
Ans: d
39. DATA: BEGIN OF ITAB OCCURS 0,
Fld1 (1),
Fld2 (1),
Fld3 (1),
END OF ITAB.
ITAB has 5 records – [ (1,1,1), (1,1,2), (1,2, 2), (2,2,2), (2,2,3) ].
The code segment:
LOOP AT ITAB.
AT NEW fld3.
WRITE fld3.
ENDAT.
ENDLOOP.
Produces the output:
a) 1 2 2 2 3
b) 1 2 3
c) 1 1 2 2 2
d) 1 1 1 2 2
Ans: a
40. TYPES: BEGIN OF TYPE1,
FLD1,
FLD2,
FLD3,
END OF TYPE1.
DATA: ITAB1 TYPE STANDARD TABLE OF TYPE1.
ITAB1-FLD1 = ‘a’.
ITAB1-FLD2 = ‘b’.
ITAB1-FLD3 = ‘c’.
APPEND ITAB1.
a) The table has one record, with values (a, b, c ).
b) The table has no records.
c) Compilation error due to method of declaration of type.
d) Compilation error due to method of declaration of table.
Ans: d
41. The fastest way to read a value in an internal table is to:
a) Specify key, and do a binary search
b) Specify the table-keys
c) Directly specify the index value
d) Use a work-area with same structure as the internal table.
Ans: c
42. If COLLECT is used on an internal table, which has a non-key character field,
a) The first record’s value is used in the collected version.
b) The last record’s value is used in the collected version.
c) Compilation error
d) Cannot be predicted
Ans: c
43. Which is the correct syntax for sorting an internal table?
a) SORT ITAB USING key1 key2.
b) SORT ITAB BY key1 key2.
c) SORT ITAB WITH key1 key2.
d) SORT ITAB key1 key2.
Ans: b
44. If we need to fetch all database entries corresponding to a given key,
X records at a time, the syntax to be used is:
a) SELECT…PACKET SIZE X….
b) SELECT…PACKAGE SIZE X…
c) SELECT…UPTO X RECORDS….
d) This facility is not available in ABAP.
Ans: b
45. LOOP AT ITAB_DTL_1.
COLLECT ITAB_DTL_1 INTO ITAB_FINAL.
ENDLOOP.
If the tables contain character fields, which table should be declared with the keys
Explicitly specified?
a) ITAB_DTL_1
b) ITAB_FINAL
c) Either one will do.
d) Neither needs a key to be specified
Ans: b
46. The syntax to concatenate a set of values into one variable is:
a) CONCATENATE source1, source2 INTO target.
b) CONCATENATE source1 source2 INTO target.
c) CONCATENATE source1 and source2 INTO target.
d) None of the above.
Ans: b
47. On the selection-screen, if, while using SELECT-OPTIONS, we specify NO INTERVALS,
we can guarantee that the user will not be able to enter a range of values.
a) TRUE
b) FALSE
Ans: b
48. ABAP programmers can create their own data types?
a) YES
b) NO
Ans: a
49. MOVE can be used to copy:
a) One field’s contents to another field
b) One structure’s contents to another compatible structure
c) One table’s contents to another compatible table
d) A part of one field to another field
Ans: a, b, c, d
50. PERFORM ROUTINE1 USING val1.
…..
FORM ROUTINE1 USING temp1.
Temp1 = 10.
ENDFORM.
Is the value of val1 changed?
a) YES
b) NO
Ans. a
51. Within an IF-ENDIF block,
a) ELSE must be used
b) ELSEIF must be used
c) If ELSEIF is used, ELSE must be used
d) None of the above
Ans: d
52. The user-list in a given SAP client can be found using transaction
a) STO4
b) SE04
c) SM04
d) None of the above
Ans: c
53. The DESCRIBE statement on internal tables is used to:
a) Find the number of lines currently in table
b) Find initial size of the table
c) Find type of the internal table
d) Give the line size, in number of characters, of the table
Ans: a, b, c
54. Which of the following statements can work without a corresponding END-statement?
a) DO
b) AT
c) IF
d) SELECT
Ans: d
55. In an ABAP program, we can specify a variable to be of HEXADECIMAL type.
a) TRUE
b) FALSE
Ans: a
56. In an ABAP program, we can specify a variable to be of OCTAL type.
a) TRUE
b) FALSE
Ans: b
57. The default length of a field of type “time”(‘T’) in an ABAP program is:
a) 6
b) 8
c) 14
d) 0
Ans: a
58. The various numeric types definable in an ABAP program are:
a) I, F, P, N
b) I, F, P
c) I, F, N
d) I, P, N
Ans: b
59. Variables in an ABAP code can be defined as being similar to data-dictionary elements, using:
a) LIKE
b) FOR
c) TYPE
d) None of the above
Ans: a, b, c
60. Constants and internal tables are defined using the keywords (respectively):
a) CONSTANTS and TABLES
b) DATA and DATA
c) DATA and TABLES
d) CONSTANTS and DATA
Ans: a
61. There are 8 elementary data-types, and hence, 64 possible conversions. Of these,
a) Type D and T cannot be inter-converted
b) None of the other types can be converted into D and T.
c) D and T cannot be converted into any other type.
d) Only C can convert into D/T and vice-versa.
Ans: a
62. MOVE f1 TO f2 is equivalent to f2 = f1
a) TRUE
b) FALSE
Ans: a
63. If a structure does not contain internal tables as components, we can equate two structures of incompatible types.
a) TRUE
b) FALSE
Ans: a
64. For an inequality check between two variables, the symbol used is:
a) NE
b) <>
c) ><
d) NEQ
Ans: a, b, c
65. S1 = ‘ABCAB’.
S2 = ‘ABCD ‘.
IF S1 CN S2.
WRITE ‘a’.
ELSE.
WRITE ‘b’.
ENDIF.
Output of above code is:
a) a
b) b
c) Compilation error
d) Blank
Ans: b
66. The statement
IF NUM IS BETWEEN 3 AND 7.
Is a valid syntax?
a) TRUE
b) FALSE
Ans: B
67. Is it possible to call a subroutine of one program from another program?
a) True
b) False
Ans: A
68. Can ABAP control statements be used within a sap script?
a) YES
b) NO
Ans: a
69. The presentation server is actually the program named SAPGUI.
a) True
b) False
Ans: a
70. When is Top-of-page event executed
a) Triggered by a New-page statement
b) When the First Write Statement of the program is encountered.
c) Before outputting the first line on a new page.
Ans: b, c
SAP ABAP Certification Questions
SAP ABAP Certification Questions
1.
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.
Initialization.
Field1 = 5.
Write: / 'field1 =', field1.
What is the result after executing the above code?
a) field1 = 10
field1 = 8
b) field1 = 8
field1 = 14
field1 = 5
c) field1 = 5
field1 = 3
field1 = 8
d) field1 = 5
field1 = 10
field1 = 8
e) field1 = 8
field1 = 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
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
d) SY
e) SYS
10.
An internal table ICODE contains the following entries:
field1 field2
--------------
John 12345
Alice 23478
Sam 54321
Bob 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
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
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.
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) SE37
c) SE35
d) SP35
e) SM35
20. What is the structure for the following select-options? Select-options: zname like ztable-name.
a) zname-sign
zname-value
zname-low
zname-high
b) zname-low
zname-high
zname-pattern
c) zname-sign
zname-option
zname-low
zname-high
d) zname-sign
zname-option
zname-low
e) zname-sign
zname-option
zname-low
21. Which of the following are elementary types in ABAP?
a) C,D,F,H,I,N,P,T
b) C,D,F,I,N,P,Q,T
c) A,D,F,I,N,P,T,X
d) A,D,F,H,N,P,T,X
e) C,D,F,I,N,P,T,X
22.
data: f1 type I value 1,
f2 type I value 1.
Write: / f1, f2.
Do 2 times.
Perform scope.
Enddo.
Write: / f1, f2.
Form scope.
Data: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Endform.
What is the output of this program after execution?
a) 1 1
3 3
4 4
4 4
b) 1 1
2 2
3 3
1 1
c) 1 1
3 3
3 3
3 3
d) 1 1
2 2
3 3
3 3
e) 1 1
3 3
3 3
1 1
23. Program specs call for screen 100 to appear in a modal dialog box.
PAI
------------
module do_something.
If field1 = 'X'.
Call screen '0100'.
Endif.
Endmodule.
Why does the above code fail to produce a modal box?
a) The addition 'starting at X' is left out.
b) The screen should be numbered 900.
c) The code must occur in the PBO.
d) The screen is of the wrong type.
e) Screens are not called within modules.
24. Field-symbols are defined in which of the following ways?
a) field-symbols f1 for f1.
b) field-symbols [f1].
c) field-symbols like f1.
d) field-symbols (f1) like f1.
e) field-symbols {f1}.
25.
1 TABLES: MARC.
2 DATA: BEGIN OF ITAB OCCURS 0,
3 FIELD1(5),
4 FIELD2(5),
5 END OF ITAB.
6 READ ITAB WITH KEY MATNR = '12345'.
7 IF SY-SUBRC = 0.
8 WRITE:/ ITAB-MATNR.
9 ENDIF.
Referring to the above code, which line contains an error?
a) Line 2
b) Line 5
c) Line 6
d) Line 7
e) Line 8
26.
Loop at itab.
Write itab.
Endloop.
From where is the written line derived in the above loop statement?
a) The table work area
b) sy-subrc
c) sy-index
d) The table header
e) sy-lisel
27.
An internal table icode contains the following entries:
Field1 Field2
--------------
John 12345
Alice 23478
Sam 54321
john 50000
DATA: BEGIN OF ICODE OCCURS 0,
FIELD1(5),
FIELD2(5),
END OF ICODE.
READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH.
Why does executing the above code return a sy-subrc of 4?
a) Icode-field2 must be a numeric field.
b) The internal table has an incorrect structure.
c) Both internal table fields must be used in the search.
d) The internal table must be sorted first.
e) 'John' should not be capitalized.
28.
Data: pos like sy-index,
index(1).
do 10 times.
Check sy-index between 2 and 6.
Add 1 to pos.
Move sy-index to index.
Write at pos index.
Enddo.
What is the output of the above code after execution?
a) 26
b) 1789
c) 23456
d) 132578910
e) 178910
29. Dialog programs are of which type?
a) Type B
b) Type 1
c) Type *
d) Type M
e) Type S
30.
data: f1(12) type c value 'Test Variant',
f2(6) type c,
f3(8) type c.
Move: f1 to f2,
f2 to f3.
What do f1, f2, and f3 contain after executing the above code?
a) f1: 'Test Variant'
f2: 'ariant'
f3: ' ariant'
b) f1: 'Test Variant'
f2: 'ariant'
f3: ' Variant'
c) f1: 'Test Variant'
f2: 'Test V'
f3: 'st Varia'
d) f1: 'Test Variant'
f2: 'Test V'
f3: 'Test V '
e) f1: 'Test Variant'
f2: 'Test V'
f3: 'Test Var'
31.
1. Data: Begin of itab occurs 0,
field1,
End of itab.
2. Data: Itab1 like itab occurs 0.
3. Data: Itab1 type itab occurs 0.
4. Data: Begin of itab1 occurs 0.
Include structure itab.
Data: End of itab1.
Which of the above statements code internal tables with a header line?
a) Lines 1 and 4
b) Lines 1 and 3
c) Lines 2 and 4
d) Lines 1 and 2
e) Lines 2 and 3
32. Which one of the following SQL statements does NOT lock the affected database entries ?
a) select *
b) Insert
c) Delete
d) select single for update
e) modify
33.
data: begin of itab occurs 0,
num1 type I,
num2 type I,
num3 type I,
mark,
end of itab.
Delete from itab where mark eq 'D'.
Itab entries:
1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
Given the ITAB entries, what are the contents of ITAB after executing the above code?
a) 1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
b) 2 3 4
c) 7 8 9 d
7 8 9 D
d) 2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
e) 2 3 4
7 8 9 d
34.
data: f1 type I value 1,
f2 type I value 1.
Do 2 times.
Perform scope.
Enddo.
Form scope.
Statics: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Perform scope2.
Endform.
Form scope2.
Write: / f1, f2.
Endform.
What is the output of the above program after execution?
a) 3 3
1 1
4 4
1 1
b) 3 3
3 3
3 3
3 3
c) 3 3
3 3
4 4
4 4
d) 3 3
0 0
4 4
0 0
e) 3 3
1 1
4 4
3 3
35. An ABAP Screen is created in which transaction?
a) Screen Editor
b) Screen Painter
c) Menu Painter
d) ABAP Editor
e) Status Painter
36. Data written to the database would be reversed under which of the following circumstances?
a) Dequeue
b) Enqueue
c) Commit
d) Message Xnnn
e) End of Transaction
37. Program specifications ask for error checking on a selection-screen which contains a parameter inside a frame.
a) at selection-screen on block b1
b) selection-screen check block b1
c) at selection-screen
d) selection-screen on field f1
e) check selection-screen
38. Table ztest has a secondary index on the following fields:
tnum, tcode.
Select * from ztest where tnum ne '123' and tcode = '456'.
Why is the index not used in the above case?
a) Indexes are not allowed on Z tables
b) Variables must be used, NOT literals
c) Select individual fields, not select *
d) Client is not in the where clause
e) NE invalidates the use of an index
39. An internal table has two fields :
Field1
Field2
Which of the following is the fastest way to fill an internal table of the structure above.
a) select field1 field2 into (itab-field1, itab-field2)
from ztable where field1 = '10'.
Append itab.
Endselect.
b) select * from ztable
where field1 = '10'.
Move ztable to wa.
Append itab from wa.
Endselect.
c) select * into corresponding-fields of itab
from ztable where field1 = '10'.
d) select * from ztable
where field1 = '10'.
Append itab.
Endselect.
e) select * into table itab from ztable
where field1 = '10'.
40. Update Bundling can occur within which of the following?
a) Within dialog tasks and dequeue processes
b) Within dialog and update tasks
c) Within enqueue processes
d) Within enqueue and dequeue processes
e) Within update tasks and enqueue processes
41.
data: begin of itab occurs 0,
field1,
end of itab.
Do 3 times.
Append initial line to itab.
Append 'X' to itab.
Enddo.
Describe table itab.
Write: sy-tfill.
What is the value of sy-tfill after executing the above code?
a) 1
b) 2
c) 3
d) 6
e) 12
42.
Table zinfo Entries:
-------------------- a1 Smith 100.00 50.00
Field Type a1 Jones 100.00 50.00
-------------------- a2 Bob 100.00 50.00
id C a3 Bob 100.00 50.00
name C a4 Mike 100.00 50.00
sales P a5 Mary 100.00 50.00
sales2 P a5 Mary 100.00 50.00
Using the above information, what is the result of the following code?
Loop at zinfo.
At new name.
Sum.
Write: / zinfo-id, zinfo-name, zinfo-sales.
Endat.
Endloop.
a) a1 Smith 100.00
a1 Jones 100.00
a2 Bob 100.00
a3 Bob 100.00
a4 Mike 100.00
a5 Mary 200.00
b) a1 Smith 100.00
a1 Jones 100.00
a2 Bob 200.00
a4 Mike 100.00
a5 Mary 100.00
c) a1 Jones 200.00
a2 Bob 200.00
a4 Mike 100.00
a5 Mary 100.00
a5 Mary 100.00
d) a1 Jones 200.00
a2 Bob 200.00
a4 Mike 100.00
a5 Mary 100.00
e) a1 Smith 200.00
a2 Bob 100.00
a3 Bob 100.00
a4 Mike 100.00
a5 Mary 200.00
43. Which one of the following is an INCORRECT form of the WRITE statement?
a) write x no-sign.
b) write x no-decimals.
c) write x left-justified no-gap.
d) write x no-zero.
e) write x under y currency us.
44.
1. Data: Begin of imara occurs 0.
2. Include structure mara.
3. Data: End of imara.
4 Data: number like mara-matnr.
5. Select * into table imara
6. From mara where matnr = number.
7. If sy-subrc = 0.
8. Write:/ imara.
9. Endif.
10. Endselect.
Which line in the above code contains a syntax error?
a) 2
b) 5
c) 6
d) 8
e) 10
45.
data: field1(4) type c value 'ABCD'.
if field1 co 'ABCD'.
endif.
What is the value of sy-fdpos after this block of code is executed ?
a) D
b) 4
c) ABCD
d) A
e) 0
46. Which statement is INCORRECT when referring to SAP memory or ABAP memory?
a) ABAP memory is only stored during the lifetime of an external session.
b) You can use ABAP memory to pass data between internal sessions.
c) SAP memory is also referred to as Global Memory.
d) SAP memory is available across transactions.
e) IMPORT/EXPORT (TO MEMORY) statements are used for SAP memory.
47. A standard type internal table ICODE contains the following entries:
field1 field2
-------------
001 New York
002 Boston
003 Houston
008 Denver
010 San Diego
020 Seattle
READ TABLE ICODE WITH KEY FIELD1 = '015' BINARY SEARCH.
WRITE: / SY-TABIX.
What is the value of sy-tabix after executing the above code?
a) 0
b) 2
c) 5
d) 6
e) 7
48.
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.
Initialization.
Field1 = 5.
Write: / 'field1 =', field1.
What is the result after executing the above code?
a) field1 = 5
field1 = 10
field1 = 8
b) field1 = 8
field1 = 14
c) field1 = 10
field1 = 8
d) field1 = 5
field1 = 3
field1 = 8
e) field1 = 8
field1 = 14
field1 = 5
49.
data: f1 type I value 1,
f2 type I value 1.
Do 2 times.
Perform scope.
Enddo.
Form scope.
Statics: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Perform scope2.
Endform.
Form scope2.
Write: / f1, f2.
Endform.
What is the output of the above program after execution?
a) 3 3
1 1
4 4
3 3
b) 3 3
3 3
4 4
4 4
c) 3 3
3 3
3 3
3 3
d) 3 3
1 1
4 4
1 1
e) 3 3
0 0
4 4
0 0
50.
Table ZNAME Table ZINFO
------------- --------------------------
field key field key
------------- --------------------------
mandt X mandt X
id X id X
lname X dept
fname X division
address
phone
fax
Using the above table definitions, which one of the following selects uses proper syntax?
a) select * from zinfo where id = '0025'.
Loop at zinfo.
Write: / id.
Endloop.
Endselect.
b) select mandt id lname into (client, id, lname)
from zname where id = '0025'.
Write: / id.
Endselect.
c) select * into table itab from zname
where id = '0025'.
Select * from zinfo for all entries in itab
where id = itab-id.
Write: / zinfo-dept.
Endselect.
d) select a~id a~lname a~fname b~dept into table itab
from zname as a INNER JOIN zinfo as b
on a~id = b~id
where lname = 'Smith'.
Loop at zname.
Write: / zname-id, zname-lname.
Endloop.
e) select count ( id ) sum ( lname ) into (num, lname)
from zname where id = '0025'.
Write: / num, lname.
Endselect.
51. Which one of the following statements is FALSE?
a) Local objects CANNOT be transported to another instance.
b) After a CHANGE REQUEST is released, no further changes to its' objects are allowed.
c) Development classes can be viewed by using transaction SE80.
d) A CHANGE REQUEST contains objects that can be transported to QA-PRD.
e) A CHANGE REQUEST only contains one task.
52. Which one of the following statements would occur in the PBO of a dialog program using table control?
a) loop at itab with control itab_tc.
b) loop at itab.
c) set screen '0100'.
d) module user_command.
e) module exit at exit-command
53.
data n type i.
do 5 times.
If n > 0 and n < 5.
n = n + 1.
elseif n = 5.
n = n - 5.
else.
n = n - 1.
endif.
enddo.
Write: / n.
If n = 3, what is the output of this code after execution?
a) 2-
b) 1-
c) 0
d) 3
e) 5
54. You have added an append structure to a standard SAP table. What happens to the standard table when a new version of the table is imported during an upgrade?
a) The standard table is returned to standard.Therefore, the append structure must be manually re-applied
b) The append fields are automatically appended to the table upon activation but you must still convert the table
c) All append structures are deleted. A new append structure must be created and then appended to the standard table
d) When the standard tables are activated, the append structure is automatically appended to the standard table
55. What can you NOT attach a search help to?
a) type
b) field of a table
c) check table
d) data element
e) table
56. Which of the following does not physically exist in the underlying database? More than one answer is correct.
a) View
b) Internal table
c) Structure
d) Transparent Table
e) Domain
57. What conditoins apply for a LEFT Outer Join in OPEN SQL?
a) Only 'Or' can be used as a logical operator in the ON condition
b) A join statement is found to the right of the join operator
c) At least one field from the table on the right is required for comparison in the ON condition
d) A Left Outer Join is not permitted in OPEN SQL
58. What is true about a check table?
a) Foreign key fields can accept only values which exist in the check table
b) Check table fields can accept only values which exist in the check table
c) Foreign key fields can accept any values regardless of the check table
d) Check tables are not used for restricting values in the foreign key tables
59. Full buffering would be appropriate for what type of tables?
a) Small Static tables
b) Transaction Tables
c) Tables with generic Keys
d) Internal Tables
60. Where does information come from when you press F1 on a screen field?
a) Domain short text
b) Search help
c) Data element documentation
d) Domain Help values
61. What are the main functions of a Data Dictionary? More than one answer is correct.
a) To insulate the ABAP/4 developer from the database
b) To support the creation and management of metadata (data about data)
c) To provide data security at the application level
d) To connect to the operating system
62. Structure MY_STRUCTURE is created in the dictionary. When does the structure get created in the underlying database ?
a) At the beginning of the table creation
b) When the database administrator physically creates the table
c) When the table is activated
d) At the end of the table creation after it is saved.
e) It does not correspond to an object in the underlying database and does not get created
63. What is the recommended method to modify a standard search help to include customer defined search paths?
a) Add an elementary search help to the standard search help
b) Enhance the standard search help with an append search help
c) Add a collective search help to the standard search help
d) Perform a modification to the standard search help
64. Where are Dictionary runtime objects used ?
a) in the dictionary
b) in structures
c) in table "nametab"
d) in work processes
65. If you want a subroutine U to have a formal parameter P that is used to return a value to the actual parameter . Which of the following definitions of U would you use to ensure that the value is passed back to the calling program only if the processing of U ends normally and is not terminated with a message statement ?
a) Form U changing P.
b) Form U using P.
c) Form U changing value(P).
d) Form U using value(P).
e) Form U using P local P.
66. You want to go from dialog processing to list processing using a selection screen . Which statements would you use?
a) call screen .
b) read list.
c) call transaction .
d) leave to ist processing followed by call selection-screen.
e) selection-screen followed by parameters.
67. Which component on the application server controls the data traffic between work process and presentation server?
a) SapGui.
b) message handler.
c) dispatcher.
d) Dynpro processor.
e) frontend processor.
68. Which options exist for extending a table without having to modify a table within the ABAP Dictionary? More than one answer is correct.
a) append fields to the table.
b) use append structures.
c) use customer includes.
d) CI includes.
e) Insert new table fields.
69. Which of the following steps should be carried out in a transaction that implements updates ? More than one answer is correct.
a) read the record that is to be updated.
b) lock the record that is to be updated.
c) pass the changed data to the update process.
d) unlock the record that is to be updated.
e) call the Abap command commit work.
70. Which enhancements planned by SAP are maintained in transaction CMOD (SAP enhancements)? More than one answer is correct.
a) Table appends
b) Menu exits
c) function module exits
d) User exits
e) Screen exits
71. Why would you group corrections together? More than one answer is correct.
a) To enable several corrections to be assigned to the same transport.
b) To transport objects from different development classes.
c) To prevent other developers from processing the same objects.
d) To enable several developers to process the same object in parallel.
e) To retain versions of several objects together.
72. Which statements are allowed if you are working with an internal table of type sorted? More than one answer is correct.
a) Append
b) Collect
c) Sort
d) Read
e) Modify
73. How can you set the status and title for a modal dialog box?
a) In the attributes of the corresponding screen.
b) Before the corresp. call screen statement.
c) In a PBO module of the corresponding screen.
d) In the PAI module of the corresponding screen.
74. Which ABAP datatype would you use for calculations which require high degree of precision?
a) P
b) I
c) F
d) N
e) X
75. Which of the following statements about R/3 instances are correct? More than one answer is correct.
a) An R/3 instance is an administrative unit that combines together all the components of a R/3 system that provide one or more services.
b) A central R/3 system consists of one or more Instances.
c) Each instance has its own SAP buffer area.
d) Each instance contains at least one dialog service
76. Where can you find the SET/GET parameters that has been assigned to a screen field? More than one answer is correct.
a) in table TPARA.
b) in the object list of the module pool.
c) in the F1 help for the screen field under technical info.
d) in the field list of the screen in the screen painter.
e) in the window with possible values.
77. Which letters are allowed to be the first letter in the names of customer defined tables,structures and global types? More than one answer is correct.
a) Y
b) Z
c) W
d) T
78. What must you do to undo DB changes previously issued in a dialog? More than one answer is correct.
a) output E message.
b) perform rollback work.
c) raise exception.
d) Analyze log record.
e) code rollback LUW.
79. An update function module VF is called within subprogram VU .The program contains the call , VU on commit . At which point are the parameters for the update function VF evaluated ?
a) when perform is executed
b) at the beginning of function
c) at commit work
d) at start of v1 update
e) at the end of the dialog step
80. Which events and statements determine the end of an SAP LUW in an online program with synchronous update? More than one answer is correct.
a) call function in update task
b) the start of the next dialog step
c) commit work (explicit)
d) call screen
e) leave to list processing
81. What methods can be used to set the values for printing an online list? More than one answer is correct.
a) Include SET_PRINT_PARAMTERS
b) Function SET_PRINT_PARAMETERS
c) NEW-PAGE PRINT ON
d) Function GET_PRINT_PARAMETERS
82. What does a LDB(Logical Database) provide?
a) Consistent and flexible user interface
b) Central performance improvements for update accesses
c) A method to access the data in a random manner
d) Centrally defined authorization checks
83. When you EXPORT an internal table that has a header line to ABAP/4 memory, what is the result?
a) Only the contents of the internal table is stored
b) Only the header line is stored
c) The header line and contents of the internal table are stored
d) You cannot EXPORT an internal table with a header line.
84. Which Report Statement option determines the width of a list?
a) Line-Size
b) Line-Count
c) Line-Width
d) Report Size
85. What happens to memory when the Export is executed without specifying ID. i.e EXPORT object to memory ?
a) The ABAP memory is completely overwritten
b) SAP Memory is overwritten
c) ABAP memory sets up a new default area
86. Mark the valid values for a checkbox . More than one answer is correct.
a) Any Alpha Character
b) Space
c) 0
d) 1
e) X
87. When does the processing block for a Get statement end?
a) When the next keyword event is encountered
b) When all data has been retrieved for the Get
c) After each PUT in the LDB
d) When the END GET statement is encountered
88. What technique would you use to fix the 10 leftmost columns on a list when scrolling to the right?
a) Set Left Scroll-Boundary Column 10
b) Set Right Scroll-Boundary Column 10
c) Scroll List PS+<10>
d) Scroll List Left
89. When does the system reset the formatting on a Write statement?
a) When explicitly changed using the Format statement
b) At any New Event
c) Using the Reset option of the Format statement
d) All of the above
90. Which type is not a valid GUI Status type?
a) Online(Dialog) Status
b) List Status
c) Dialog Box
d) Context Menu
91. What does the following code achieve?
At Selection-Screen on value-request for sales.
Call screen 100.
a) When the user presses F4, Screen 100 is displayed in addition to the normal help screen
b) When the user presses F1, Screen 100 is displayed instead of the normal possible values search help
c) When the user presses F4, Screen 100 is displayed instead of the normal possible values search help
d) When the user presses F1, Screen 100 is displayed in addition to the normal help screen
92. Which of the following are valid logical database types? More than one answer is correct.
a) Table
b) Structure
c) File
d) Complex Data Object
e) Node
93. Program A issues the following statement SUBMIT PROGRAM B. What takes place?
a) Program B becomes active in the same internal session of Program A
b) Program A becomes active in the same internal session of Program B
c) Program B runs in a new internal session
d) User Context is flushed
94. What is the code required in order to scroll the 3rd detail list to page 5 ?
a) Scroll LIST 3 5
b) Scroll LIST Index 3 to Page 5
c) Scroll LIST sy-index 3 to Page 5
d) Scroll LIST sy-lsind 3 to Page 5
95. For called program components that are of type transaction or report, what is true about the roll area (assuming processing will resume in the calling program).
a) They run in their own roll area
b) They run in the roll area of the caller
c) Share the same roll area
96. Select the line that would execute in the following code after the EXIT statement
10 get spfli.
20 * Processing of SPFLI records
30 write: spfli-carrid, spfli-connid.
40 counter = counter + 1.
60 if counter > 1.
70 Exit.
80 endif.
90 write:/ ‘No more processing for this Carrier’.
100 get sflight.
110 write: sflight-fldate, spfli-price.
120 end-of-selection.
130 write: / text-002, text-003.
a) 80
b) 100
c) 120
d) 130
e) Exits the Program
97. What is not a valid functional area type?
a) LDB
b) Sequential Data Set
c) Program
d) Search Help
e) Joined Tables
98. Which is not a valid option of the Write Statement?
a) NO-GAP
b) Input
c) Centered
d) Under
e) No-Zero
f) As RadioBox
99. What are the 3 main sub objects of a LDB? More than one answer is correct.
a) Structure
b) Selection Screen
c) Search Helps
d) Tables
e) DB Program
100. What is needed to ensure a check field is verified against the referenced key field of the check table?
a) same data element is required for check field and referenced field
b) same domain is required for check field and referenced field
c) same data type only is required for check field and referenced field
d) all key fields MUST have domain equality between check table andn foreign key table
101. What is true about the primary index of a table? More than one answer is correct.
a) The key fields of the table make up the primary index
b) The primary index ID is designated by the Database Adminstrator
c) The developer designates the fields to be used as the primary index
d) The primary index is automatically created when the table is activated
102. Which of the following gets stored as a Runtime Object?
a) Programs
b) Tables
c) Aggregate Objects
d) Fixed Values belonging to a domain
103. When is it better to buffer the table?
a) When a table is read infrequently
b) When a table is read frequently and the data seldom changes
c) When a table is read frequently and the data is always changing
d) When a table is linked to check tables
104. Identify the different type categories in the ABAP dictionary. More than one answer is correct.
a) Data Elements
b) Structures
c) Data definitions
d) Table Types
e) Data Models
105. What is true about views? More than one answer is correct.
a) A view is automatically created on the database upon activation
b) A view contains data
c) Maintenance Views are not updateable
d) Views can be buffered
106. Identify the case where table buffering should be set off.
a) When the most current data is required
b) When the most current data is not required
c) For Small Static non volatile tables
d) For Global Master Data
107. Table T1 wants to ensure that the key field t1-fielda entered is valid against a field t2-fielda in table T2. Which is the foreign key table?
a) T1
b) T2
c) T3 from the dictionary
d) Cannot be determined
108. Identify the one addition that is not part of the interface of a method
a) Importing
b) Result
c) Exception
d) Returning
109. What is the effect when a CLEAR statement is used on an internal table without header line?
a) The work area is intitialized
b) All the lines of the table are deleted
c) All the lines of the table are initialized
d) Nothing
110. What is the default mode for passing actual parameters in a Perform?
a) By Value
b) By Reference
c) By Changing
111. In the case of a function, Identify the item that is not a valid interface element.
a) Import parameters
b) Export parameters
c) Tables
d) Source Code
e) Exceptions
112. How would you clear the body of an internal table (with a header line). More than one answer is correct.
a) Clear ITAB[]
b) Refresh ITAB []
c) Clear ITAB
d) Refresh ITAB
113. When catching errors using the CATCH…ENDCATCH statement, where does the runtime error return code get placed?
a) sy-subrc
b) sy-fdpos
c) error class
d) system-exceptions
114. What is the value of ZFIELDB after the last line of the following code is executed?
Data: ZFIELDA(5) type c value 'ABCDE'.
ZFIELDB(4) type c.
ZFIELDA = ‘XX’.
Clear ZFIELDA.
ZFIELDB = ZFIELDA.
a) ABCDE
b) Spaces
c) ABCD
d) BCDE
115. Mark the valid use of the data statement. Assume that ZBOOK-ID is a dictionary object.
a) Data fielda value zbook-id
b) Data fielda type c like zbook-id
c) Data fielda(5) like zbook-id
d) Data fielda like zbook-id
116. Assuming you have created a data object of type c with the name ZFIELDA in your program. Which of the following is allowed?
a) Data: ZFIELDA type n
b) Types: ZFIELDA type I
c) Data: ZFIELDA type c
d) Constants: ZFIELDA type n
117. What do search statements REPLACE, SHIFT, CONCATENATE, SPLIT have in common? More than one answer is correct.
a) They all set sy-subrc
b) They all set sy-fdpos
c) They all distinguish between upper and lower case
d) They all treat the operands as type C regardless of their actual type
e) The actual type of each operand determines how the string processing is performed
118. What are valid uses of a variant? More than one answer is correct.
a) Hiding input fields
b) Pre-assigning values
c) Input validation
d) Security checking
119. How can you perform a direct database read from a buffered table?
a) Do not have buffering in the technical attributes
b) Add the BYPASSING BUFFER clause on the select statement
c) Buffering can be turned off on the application server by the programmer using the ABAP Workbench
120. What is the Effect of not Typing Formal parameters in a Form?
a) Conversion always occurs
b) Conversion never occurs
c) Forms are more flexible but prone to a short dump if conversion does not work
d) No effect
e) Forms are less flexible and are guaranteed no chance of a run time error
121. What requirement exists if a field is defined in the dictionary of type CURR?
a) The field must be numeric
b) Decimals must be defined in the domain
c) The field must be linked to another field of type CUKY
d) No other requirement exists
122. Which of the following is not a valid ABAP data statement?
a) Data fielda(5) type c
b) Data fielda(5) type n
c) Data fielda(5) type t
d) Data fielda(5) type x
123. What is the result of the following date calculation? Assume current date is 20001220.
Data: Today(8) type C.
Today = sy-datum.
Today = 10.
a) 10
b) 20001220
c) 10001220
d) 20011210
124. Mark the default size for a packed field
a) 1
b) 2
c) 4
d) 8
e) size must be specified
125. Refer to the following Code. What is the value of sy-fdpos and sy-subrc after the search is executed?
Data: mystring type c value 'ARAMCO'.
Search mystring for 'X'
a) sy-fdpos = 0 and sy-subrc = 0
b) sy-fdpos = 0 and sy-subrc = 4
c) sy-fdpos = 4 and sy-subrc = 0
d) sy-fdpos = 4 and sy-subrc = 4
126. What is true of passing by value and result in the following code? More than one answer is correct.
Perform calculate_sales using amount.
FORM calculate_sales changing value(f_amount)
a) Formal Parameter f_amount is allocated it’s own memory space
b) The address of the actual parameter is passed to the formal parameter
c) Formal parameter is copied to memory space of actual parameter at the end of the form
d) Formal parameter is not copied to memory space of actual parameter
127. Define a Logical Database.
a) An ABAP/4 Reading Program used to read and process data
b) A method to update data
c) A Reporting Tool
d) Defintion of a Relational Data Model
128. What happens if message E046 is raised?
At Selection-Screen on sales.
If sales-low < 500.
Message E046.
Endif.
a) The initialization event is fired again
b) Field Sales is open for input and all other fields are not available for input
c) All fields are open for input and cursor is positioned on field sales
d) The program ends
129. What is a structured type in the ABAP dictionary that has no physical table defintion in the underlying database referred to as?
a) table
b) structured data type
c) structure
d) table type
1.
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.
Initialization.
Field1 = 5.
Write: / 'field1 =', field1.
What is the result after executing the above code?
a) field1 = 10
field1 = 8
b) field1 = 8
field1 = 14
field1 = 5
c) field1 = 5
field1 = 3
field1 = 8
d) field1 = 5
field1 = 10
field1 = 8
e) field1 = 8
field1 = 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
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
d) SY
e) SYS
10.
An internal table ICODE contains the following entries:
field1 field2
--------------
John 12345
Alice 23478
Sam 54321
Bob 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
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
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.
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) SE37
c) SE35
d) SP35
e) SM35
20. What is the structure for the following select-options? Select-options: zname like ztable-name.
a) zname-sign
zname-value
zname-low
zname-high
b) zname-low
zname-high
zname-pattern
c) zname-sign
zname-option
zname-low
zname-high
d) zname-sign
zname-option
zname-low
e) zname-sign
zname-option
zname-low
21. Which of the following are elementary types in ABAP?
a) C,D,F,H,I,N,P,T
b) C,D,F,I,N,P,Q,T
c) A,D,F,I,N,P,T,X
d) A,D,F,H,N,P,T,X
e) C,D,F,I,N,P,T,X
22.
data: f1 type I value 1,
f2 type I value 1.
Write: / f1, f2.
Do 2 times.
Perform scope.
Enddo.
Write: / f1, f2.
Form scope.
Data: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Endform.
What is the output of this program after execution?
a) 1 1
3 3
4 4
4 4
b) 1 1
2 2
3 3
1 1
c) 1 1
3 3
3 3
3 3
d) 1 1
2 2
3 3
3 3
e) 1 1
3 3
3 3
1 1
23. Program specs call for screen 100 to appear in a modal dialog box.
PAI
------------
module do_something.
If field1 = 'X'.
Call screen '0100'.
Endif.
Endmodule.
Why does the above code fail to produce a modal box?
a) The addition 'starting at X' is left out.
b) The screen should be numbered 900.
c) The code must occur in the PBO.
d) The screen is of the wrong type.
e) Screens are not called within modules.
24. Field-symbols are defined in which of the following ways?
a) field-symbols f1 for f1.
b) field-symbols [f1].
c) field-symbols
d) field-symbols (f1) like f1.
e) field-symbols {f1}.
25.
1 TABLES: MARC.
2 DATA: BEGIN OF ITAB OCCURS 0,
3 FIELD1(5),
4 FIELD2(5),
5 END OF ITAB.
6 READ ITAB WITH KEY MATNR = '12345'.
7 IF SY-SUBRC = 0.
8 WRITE:/ ITAB-MATNR.
9 ENDIF.
Referring to the above code, which line contains an error?
a) Line 2
b) Line 5
c) Line 6
d) Line 7
e) Line 8
26.
Loop at itab.
Write itab.
Endloop.
From where is the written line derived in the above loop statement?
a) The table work area
b) sy-subrc
c) sy-index
d) The table header
e) sy-lisel
27.
An internal table icode contains the following entries:
Field1 Field2
--------------
John 12345
Alice 23478
Sam 54321
john 50000
DATA: BEGIN OF ICODE OCCURS 0,
FIELD1(5),
FIELD2(5),
END OF ICODE.
READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH.
Why does executing the above code return a sy-subrc of 4?
a) Icode-field2 must be a numeric field.
b) The internal table has an incorrect structure.
c) Both internal table fields must be used in the search.
d) The internal table must be sorted first.
e) 'John' should not be capitalized.
28.
Data: pos like sy-index,
index(1).
do 10 times.
Check sy-index between 2 and 6.
Add 1 to pos.
Move sy-index to index.
Write at pos index.
Enddo.
What is the output of the above code after execution?
a) 26
b) 1789
c) 23456
d) 132578910
e) 178910
29. Dialog programs are of which type?
a) Type B
b) Type 1
c) Type *
d) Type M
e) Type S
30.
data: f1(12) type c value 'Test Variant',
f2(6) type c,
f3(8) type c.
Move: f1 to f2,
f2 to f3.
What do f1, f2, and f3 contain after executing the above code?
a) f1: 'Test Variant'
f2: 'ariant'
f3: ' ariant'
b) f1: 'Test Variant'
f2: 'ariant'
f3: ' Variant'
c) f1: 'Test Variant'
f2: 'Test V'
f3: 'st Varia'
d) f1: 'Test Variant'
f2: 'Test V'
f3: 'Test V '
e) f1: 'Test Variant'
f2: 'Test V'
f3: 'Test Var'
31.
1. Data: Begin of itab occurs 0,
field1,
End of itab.
2. Data: Itab1 like itab occurs 0.
3. Data: Itab1 type itab occurs 0.
4. Data: Begin of itab1 occurs 0.
Include structure itab.
Data: End of itab1.
Which of the above statements code internal tables with a header line?
a) Lines 1 and 4
b) Lines 1 and 3
c) Lines 2 and 4
d) Lines 1 and 2
e) Lines 2 and 3
32. Which one of the following SQL statements does NOT lock the affected database entries ?
a) select *
b) Insert
c) Delete
d) select single for update
e) modify
33.
data: begin of itab occurs 0,
num1 type I,
num2 type I,
num3 type I,
mark,
end of itab.
Delete from itab where mark eq 'D'.
Itab entries:
1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
Given the ITAB entries, what are the contents of ITAB after executing the above code?
a) 1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
b) 2 3 4
c) 7 8 9 d
7 8 9 D
d) 2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
e) 2 3 4
7 8 9 d
34.
data: f1 type I value 1,
f2 type I value 1.
Do 2 times.
Perform scope.
Enddo.
Form scope.
Statics: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Perform scope2.
Endform.
Form scope2.
Write: / f1, f2.
Endform.
What is the output of the above program after execution?
a) 3 3
1 1
4 4
1 1
b) 3 3
3 3
3 3
3 3
c) 3 3
3 3
4 4
4 4
d) 3 3
0 0
4 4
0 0
e) 3 3
1 1
4 4
3 3
35. An ABAP Screen is created in which transaction?
a) Screen Editor
b) Screen Painter
c) Menu Painter
d) ABAP Editor
e) Status Painter
36. Data written to the database would be reversed under which of the following circumstances?
a) Dequeue
b) Enqueue
c) Commit
d) Message Xnnn
e) End of Transaction
37. Program specifications ask for error checking on a selection-screen which contains a parameter inside a frame.
a) at selection-screen on block b1
b) selection-screen check block b1
c) at selection-screen
d) selection-screen on field f1
e) check selection-screen
38. Table ztest has a secondary index on the following fields:
tnum, tcode.
Select * from ztest where tnum ne '123' and tcode = '456'.
Why is the index not used in the above case?
a) Indexes are not allowed on Z tables
b) Variables must be used, NOT literals
c) Select individual fields, not select *
d) Client is not in the where clause
e) NE invalidates the use of an index
39. An internal table has two fields :
Field1
Field2
Which of the following is the fastest way to fill an internal table of the structure above.
a) select field1 field2 into (itab-field1, itab-field2)
from ztable where field1 = '10'.
Append itab.
Endselect.
b) select * from ztable
where field1 = '10'.
Move ztable to wa.
Append itab from wa.
Endselect.
c) select * into corresponding-fields of itab
from ztable where field1 = '10'.
d) select * from ztable
where field1 = '10'.
Append itab.
Endselect.
e) select * into table itab from ztable
where field1 = '10'.
40. Update Bundling can occur within which of the following?
a) Within dialog tasks and dequeue processes
b) Within dialog and update tasks
c) Within enqueue processes
d) Within enqueue and dequeue processes
e) Within update tasks and enqueue processes
41.
data: begin of itab occurs 0,
field1,
end of itab.
Do 3 times.
Append initial line to itab.
Append 'X' to itab.
Enddo.
Describe table itab.
Write: sy-tfill.
What is the value of sy-tfill after executing the above code?
a) 1
b) 2
c) 3
d) 6
e) 12
42.
Table zinfo Entries:
-------------------- a1 Smith 100.00 50.00
Field Type a1 Jones 100.00 50.00
-------------------- a2 Bob 100.00 50.00
id C a3 Bob 100.00 50.00
name C a4 Mike 100.00 50.00
sales P a5 Mary 100.00 50.00
sales2 P a5 Mary 100.00 50.00
Using the above information, what is the result of the following code?
Loop at zinfo.
At new name.
Sum.
Write: / zinfo-id, zinfo-name, zinfo-sales.
Endat.
Endloop.
a) a1 Smith 100.00
a1 Jones 100.00
a2 Bob 100.00
a3 Bob 100.00
a4 Mike 100.00
a5 Mary 200.00
b) a1 Smith 100.00
a1 Jones 100.00
a2 Bob 200.00
a4 Mike 100.00
a5 Mary 100.00
c) a1 Jones 200.00
a2 Bob 200.00
a4 Mike 100.00
a5 Mary 100.00
a5 Mary 100.00
d) a1 Jones 200.00
a2 Bob 200.00
a4 Mike 100.00
a5 Mary 100.00
e) a1 Smith 200.00
a2 Bob 100.00
a3 Bob 100.00
a4 Mike 100.00
a5 Mary 200.00
43. Which one of the following is an INCORRECT form of the WRITE statement?
a) write x no-sign.
b) write x no-decimals.
c) write x left-justified no-gap.
d) write x no-zero.
e) write x under y currency us.
44.
1. Data: Begin of imara occurs 0.
2. Include structure mara.
3. Data: End of imara.
4 Data: number like mara-matnr.
5. Select * into table imara
6. From mara where matnr = number.
7. If sy-subrc = 0.
8. Write:/ imara.
9. Endif.
10. Endselect.
Which line in the above code contains a syntax error?
a) 2
b) 5
c) 6
d) 8
e) 10
45.
data: field1(4) type c value 'ABCD'.
if field1 co 'ABCD'.
endif.
What is the value of sy-fdpos after this block of code is executed ?
a) D
b) 4
c) ABCD
d) A
e) 0
46. Which statement is INCORRECT when referring to SAP memory or ABAP memory?
a) ABAP memory is only stored during the lifetime of an external session.
b) You can use ABAP memory to pass data between internal sessions.
c) SAP memory is also referred to as Global Memory.
d) SAP memory is available across transactions.
e) IMPORT/EXPORT (TO MEMORY) statements are used for SAP memory.
47. A standard type internal table ICODE contains the following entries:
field1 field2
-------------
001 New York
002 Boston
003 Houston
008 Denver
010 San Diego
020 Seattle
READ TABLE ICODE WITH KEY FIELD1 = '015' BINARY SEARCH.
WRITE: / SY-TABIX.
What is the value of sy-tabix after executing the above code?
a) 0
b) 2
c) 5
d) 6
e) 7
48.
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.
Initialization.
Field1 = 5.
Write: / 'field1 =', field1.
What is the result after executing the above code?
a) field1 = 5
field1 = 10
field1 = 8
b) field1 = 8
field1 = 14
c) field1 = 10
field1 = 8
d) field1 = 5
field1 = 3
field1 = 8
e) field1 = 8
field1 = 14
field1 = 5
49.
data: f1 type I value 1,
f2 type I value 1.
Do 2 times.
Perform scope.
Enddo.
Form scope.
Statics: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Perform scope2.
Endform.
Form scope2.
Write: / f1, f2.
Endform.
What is the output of the above program after execution?
a) 3 3
1 1
4 4
3 3
b) 3 3
3 3
4 4
4 4
c) 3 3
3 3
3 3
3 3
d) 3 3
1 1
4 4
1 1
e) 3 3
0 0
4 4
0 0
50.
Table ZNAME Table ZINFO
------------- --------------------------
field key field key
------------- --------------------------
mandt X mandt X
id X id X
lname X dept
fname X division
address
phone
fax
Using the above table definitions, which one of the following selects uses proper syntax?
a) select * from zinfo where id = '0025'.
Loop at zinfo.
Write: / id.
Endloop.
Endselect.
b) select mandt id lname into (client, id, lname)
from zname where id = '0025'.
Write: / id.
Endselect.
c) select * into table itab from zname
where id = '0025'.
Select * from zinfo for all entries in itab
where id = itab-id.
Write: / zinfo-dept.
Endselect.
d) select a~id a~lname a~fname b~dept into table itab
from zname as a INNER JOIN zinfo as b
on a~id = b~id
where lname = 'Smith'.
Loop at zname.
Write: / zname-id, zname-lname.
Endloop.
e) select count ( id ) sum ( lname ) into (num, lname)
from zname where id = '0025'.
Write: / num, lname.
Endselect.
51. Which one of the following statements is FALSE?
a) Local objects CANNOT be transported to another instance.
b) After a CHANGE REQUEST is released, no further changes to its' objects are allowed.
c) Development classes can be viewed by using transaction SE80.
d) A CHANGE REQUEST contains objects that can be transported to QA-PRD.
e) A CHANGE REQUEST only contains one task.
52. Which one of the following statements would occur in the PBO of a dialog program using table control?
a) loop at itab with control itab_tc.
b) loop at itab.
c) set screen '0100'.
d) module user_command.
e) module exit at exit-command
53.
data n type i.
do 5 times.
If n > 0 and n < 5.
n = n + 1.
elseif n = 5.
n = n - 5.
else.
n = n - 1.
endif.
enddo.
Write: / n.
If n = 3, what is the output of this code after execution?
a) 2-
b) 1-
c) 0
d) 3
e) 5
54. You have added an append structure to a standard SAP table. What happens to the standard table when a new version of the table is imported during an upgrade?
a) The standard table is returned to standard.Therefore, the append structure must be manually re-applied
b) The append fields are automatically appended to the table upon activation but you must still convert the table
c) All append structures are deleted. A new append structure must be created and then appended to the standard table
d) When the standard tables are activated, the append structure is automatically appended to the standard table
55. What can you NOT attach a search help to?
a) type
b) field of a table
c) check table
d) data element
e) table
56. Which of the following does not physically exist in the underlying database? More than one answer is correct.
a) View
b) Internal table
c) Structure
d) Transparent Table
e) Domain
57. What conditoins apply for a LEFT Outer Join in OPEN SQL?
a) Only 'Or' can be used as a logical operator in the ON condition
b) A join statement is found to the right of the join operator
c) At least one field from the table on the right is required for comparison in the ON condition
d) A Left Outer Join is not permitted in OPEN SQL
58. What is true about a check table?
a) Foreign key fields can accept only values which exist in the check table
b) Check table fields can accept only values which exist in the check table
c) Foreign key fields can accept any values regardless of the check table
d) Check tables are not used for restricting values in the foreign key tables
59. Full buffering would be appropriate for what type of tables?
a) Small Static tables
b) Transaction Tables
c) Tables with generic Keys
d) Internal Tables
60. Where does information come from when you press F1 on a screen field?
a) Domain short text
b) Search help
c) Data element documentation
d) Domain Help values
61. What are the main functions of a Data Dictionary? More than one answer is correct.
a) To insulate the ABAP/4 developer from the database
b) To support the creation and management of metadata (data about data)
c) To provide data security at the application level
d) To connect to the operating system
62. Structure MY_STRUCTURE is created in the dictionary. When does the structure get created in the underlying database ?
a) At the beginning of the table creation
b) When the database administrator physically creates the table
c) When the table is activated
d) At the end of the table creation after it is saved.
e) It does not correspond to an object in the underlying database and does not get created
63. What is the recommended method to modify a standard search help to include customer defined search paths?
a) Add an elementary search help to the standard search help
b) Enhance the standard search help with an append search help
c) Add a collective search help to the standard search help
d) Perform a modification to the standard search help
64. Where are Dictionary runtime objects used ?
a) in the dictionary
b) in structures
c) in table "nametab"
d) in work processes
65. If you want a subroutine U to have a formal parameter P that is used to return a value to the actual parameter . Which of the following definitions of U would you use to ensure that the value is passed back to the calling program only if the processing of U ends normally and is not terminated with a message statement ?
a) Form U changing P.
b) Form U using P.
c) Form U changing value(P).
d) Form U using value(P).
e) Form U using P local P.
66. You want to go from dialog processing to list processing using a selection screen . Which statements would you use?
a) call screen .
b) read list.
c) call transaction .
d) leave to ist processing followed by call selection-screen
e) selection-screen followed by parameters.
67. Which component on the application server controls the data traffic between work process and presentation server?
a) SapGui.
b) message handler.
c) dispatcher.
d) Dynpro processor.
e) frontend processor.
68. Which options exist for extending a table without having to modify a table within the ABAP Dictionary? More than one answer is correct.
a) append fields to the table.
b) use append structures.
c) use customer includes.
d) CI includes.
e) Insert new table fields.
69. Which of the following steps should be carried out in a transaction that implements updates ? More than one answer is correct.
a) read the record that is to be updated.
b) lock the record that is to be updated.
c) pass the changed data to the update process.
d) unlock the record that is to be updated.
e) call the Abap command commit work.
70. Which enhancements planned by SAP are maintained in transaction CMOD (SAP enhancements)? More than one answer is correct.
a) Table appends
b) Menu exits
c) function module exits
d) User exits
e) Screen exits
71. Why would you group corrections together? More than one answer is correct.
a) To enable several corrections to be assigned to the same transport.
b) To transport objects from different development classes.
c) To prevent other developers from processing the same objects.
d) To enable several developers to process the same object in parallel.
e) To retain versions of several objects together.
72. Which statements are allowed if you are working with an internal table of type sorted? More than one answer is correct.
a) Append
b) Collect
c) Sort
d) Read
e) Modify
73. How can you set the status and title for a modal dialog box?
a) In the attributes of the corresponding screen.
b) Before the corresp. call screen statement.
c) In a PBO module of the corresponding screen.
d) In the PAI module of the corresponding screen.
74. Which ABAP datatype would you use for calculations which require high degree of precision?
a) P
b) I
c) F
d) N
e) X
75. Which of the following statements about R/3 instances are correct? More than one answer is correct.
a) An R/3 instance is an administrative unit that combines together all the components of a R/3 system that provide one or more services.
b) A central R/3 system consists of one or more Instances.
c) Each instance has its own SAP buffer area.
d) Each instance contains at least one dialog service
76. Where can you find the SET/GET parameters that has been assigned to a screen field? More than one answer is correct.
a) in table TPARA.
b) in the object list of the module pool.
c) in the F1 help for the screen field under technical info.
d) in the field list of the screen in the screen painter.
e) in the window with possible values.
77. Which letters are allowed to be the first letter in the names of customer defined tables,structures and global types? More than one answer is correct.
a) Y
b) Z
c) W
d) T
78. What must you do to undo DB changes previously issued in a dialog? More than one answer is correct.
a) output E message.
b) perform rollback work.
c) raise exception.
d) Analyze log record.
e) code rollback LUW.
79. An update function module VF is called within subprogram VU .The program contains the call , VU on commit . At which point are the parameters for the update function VF evaluated ?
a) when perform is executed
b) at the beginning of function
c) at commit work
d) at start of v1 update
e) at the end of the dialog step
80. Which events and statements determine the end of an SAP LUW in an online program with synchronous update? More than one answer is correct.
a) call function in update task
b) the start of the next dialog step
c) commit work (explicit)
d) call screen
e) leave to list processing
81. What methods can be used to set the values for printing an online list? More than one answer is correct.
a) Include SET_PRINT_PARAMTERS
b) Function SET_PRINT_PARAMETERS
c) NEW-PAGE PRINT ON
d) Function GET_PRINT_PARAMETERS
82. What does a LDB(Logical Database) provide?
a) Consistent and flexible user interface
b) Central performance improvements for update accesses
c) A method to access the data in a random manner
d) Centrally defined authorization checks
83. When you EXPORT an internal table that has a header line to ABAP/4 memory, what is the result?
a) Only the contents of the internal table is stored
b) Only the header line is stored
c) The header line and contents of the internal table are stored
d) You cannot EXPORT an internal table with a header line.
84. Which Report Statement option determines the width of a list?
a) Line-Size
b) Line-Count
c) Line-Width
d) Report Size
85. What happens to memory when the Export is executed without specifying ID. i.e EXPORT object to memory ?
a) The ABAP memory is completely overwritten
b) SAP Memory is overwritten
c) ABAP memory sets up a new default area
86. Mark the valid values for a checkbox . More than one answer is correct.
a) Any Alpha Character
b) Space
c) 0
d) 1
e) X
87. When does the processing block for a Get statement end?
a) When the next keyword event is encountered
b) When all data has been retrieved for the Get
c) After each PUT in the LDB
d) When the END GET statement is encountered
88. What technique would you use to fix the 10 leftmost columns on a list when scrolling to the right?
a) Set Left Scroll-Boundary Column 10
b) Set Right Scroll-Boundary Column 10
c) Scroll List PS+<10>
d) Scroll List Left
89. When does the system reset the formatting on a Write statement?
a) When explicitly changed using the Format statement
b) At any New Event
c) Using the Reset option of the Format statement
d) All of the above
90. Which type is not a valid GUI Status type?
a) Online(Dialog) Status
b) List Status
c) Dialog Box
d) Context Menu
91. What does the following code achieve?
At Selection-Screen on value-request for sales.
Call screen 100.
a) When the user presses F4, Screen 100 is displayed in addition to the normal help screen
b) When the user presses F1, Screen 100 is displayed instead of the normal possible values search help
c) When the user presses F4, Screen 100 is displayed instead of the normal possible values search help
d) When the user presses F1, Screen 100 is displayed in addition to the normal help screen
92. Which of the following are valid logical database types? More than one answer is correct.
a) Table
b) Structure
c) File
d) Complex Data Object
e) Node
93. Program A issues the following statement SUBMIT PROGRAM B. What takes place?
a) Program B becomes active in the same internal session of Program A
b) Program A becomes active in the same internal session of Program B
c) Program B runs in a new internal session
d) User Context is flushed
94. What is the code required in order to scroll the 3rd detail list to page 5 ?
a) Scroll LIST 3 5
b) Scroll LIST Index 3 to Page 5
c) Scroll LIST sy-index 3 to Page 5
d) Scroll LIST sy-lsind 3 to Page 5
95. For called program components that are of type transaction or report, what is true about the roll area (assuming processing will resume in the calling program).
a) They run in their own roll area
b) They run in the roll area of the caller
c) Share the same roll area
96. Select the line that would execute in the following code after the EXIT statement
10 get spfli.
20 * Processing of SPFLI records
30 write: spfli-carrid, spfli-connid.
40 counter = counter + 1.
60 if counter > 1.
70 Exit.
80 endif.
90 write:/ ‘No more processing for this Carrier’.
100 get sflight.
110 write: sflight-fldate, spfli-price.
120 end-of-selection.
130 write: / text-002, text-003.
a) 80
b) 100
c) 120
d) 130
e) Exits the Program
97. What is not a valid functional area type?
a) LDB
b) Sequential Data Set
c) Program
d) Search Help
e) Joined Tables
98. Which is not a valid option of the Write Statement?
a) NO-GAP
b) Input
c) Centered
d) Under
e) No-Zero
f) As RadioBox
99. What are the 3 main sub objects of a LDB? More than one answer is correct.
a) Structure
b) Selection Screen
c) Search Helps
d) Tables
e) DB Program
100. What is needed to ensure a check field is verified against the referenced key field of the check table?
a) same data element is required for check field and referenced field
b) same domain is required for check field and referenced field
c) same data type only is required for check field and referenced field
d) all key fields MUST have domain equality between check table andn foreign key table
101. What is true about the primary index of a table? More than one answer is correct.
a) The key fields of the table make up the primary index
b) The primary index ID is designated by the Database Adminstrator
c) The developer designates the fields to be used as the primary index
d) The primary index is automatically created when the table is activated
102. Which of the following gets stored as a Runtime Object?
a) Programs
b) Tables
c) Aggregate Objects
d) Fixed Values belonging to a domain
103. When is it better to buffer the table?
a) When a table is read infrequently
b) When a table is read frequently and the data seldom changes
c) When a table is read frequently and the data is always changing
d) When a table is linked to check tables
104. Identify the different type categories in the ABAP dictionary. More than one answer is correct.
a) Data Elements
b) Structures
c) Data definitions
d) Table Types
e) Data Models
105. What is true about views? More than one answer is correct.
a) A view is automatically created on the database upon activation
b) A view contains data
c) Maintenance Views are not updateable
d) Views can be buffered
106. Identify the case where table buffering should be set off.
a) When the most current data is required
b) When the most current data is not required
c) For Small Static non volatile tables
d) For Global Master Data
107. Table T1 wants to ensure that the key field t1-fielda entered is valid against a field t2-fielda in table T2. Which is the foreign key table?
a) T1
b) T2
c) T3 from the dictionary
d) Cannot be determined
108. Identify the one addition that is not part of the interface of a method
a) Importing
b) Result
c) Exception
d) Returning
109. What is the effect when a CLEAR statement is used on an internal table without header line?
a) The work area is intitialized
b) All the lines of the table are deleted
c) All the lines of the table are initialized
d) Nothing
110. What is the default mode for passing actual parameters in a Perform?
a) By Value
b) By Reference
c) By Changing
111. In the case of a function, Identify the item that is not a valid interface element.
a) Import parameters
b) Export parameters
c) Tables
d) Source Code
e) Exceptions
112. How would you clear the body of an internal table (with a header line). More than one answer is correct.
a) Clear ITAB[]
b) Refresh ITAB []
c) Clear ITAB
d) Refresh ITAB
113. When catching errors using the CATCH…ENDCATCH statement, where does the runtime error return code get placed?
a) sy-subrc
b) sy-fdpos
c) error class
d) system-exceptions
114. What is the value of ZFIELDB after the last line of the following code is executed?
Data: ZFIELDA(5) type c value 'ABCDE'.
ZFIELDB(4) type c.
ZFIELDA = ‘XX’.
Clear ZFIELDA.
ZFIELDB = ZFIELDA.
a) ABCDE
b) Spaces
c) ABCD
d) BCDE
115. Mark the valid use of the data statement. Assume that ZBOOK-ID is a dictionary object.
a) Data fielda value zbook-id
b) Data fielda type c like zbook-id
c) Data fielda(5) like zbook-id
d) Data fielda like zbook-id
116. Assuming you have created a data object of type c with the name ZFIELDA in your program. Which of the following is allowed?
a) Data: ZFIELDA type n
b) Types: ZFIELDA type I
c) Data: ZFIELDA type c
d) Constants: ZFIELDA type n
117. What do search statements REPLACE, SHIFT, CONCATENATE, SPLIT have in common? More than one answer is correct.
a) They all set sy-subrc
b) They all set sy-fdpos
c) They all distinguish between upper and lower case
d) They all treat the operands as type C regardless of their actual type
e) The actual type of each operand determines how the string processing is performed
118. What are valid uses of a variant? More than one answer is correct.
a) Hiding input fields
b) Pre-assigning values
c) Input validation
d) Security checking
119. How can you perform a direct database read from a buffered table?
a) Do not have buffering in the technical attributes
b) Add the BYPASSING BUFFER clause on the select statement
c) Buffering can be turned off on the application server by the programmer using the ABAP Workbench
120. What is the Effect of not Typing Formal parameters in a Form?
a) Conversion always occurs
b) Conversion never occurs
c) Forms are more flexible but prone to a short dump if conversion does not work
d) No effect
e) Forms are less flexible and are guaranteed no chance of a run time error
121. What requirement exists if a field is defined in the dictionary of type CURR?
a) The field must be numeric
b) Decimals must be defined in the domain
c) The field must be linked to another field of type CUKY
d) No other requirement exists
122. Which of the following is not a valid ABAP data statement?
a) Data fielda(5) type c
b) Data fielda(5) type n
c) Data fielda(5) type t
d) Data fielda(5) type x
123. What is the result of the following date calculation? Assume current date is 20001220.
Data: Today(8) type C.
Today = sy-datum.
Today = 10.
a) 10
b) 20001220
c) 10001220
d) 20011210
124. Mark the default size for a packed field
a) 1
b) 2
c) 4
d) 8
e) size must be specified
125. Refer to the following Code. What is the value of sy-fdpos and sy-subrc after the search is executed?
Data: mystring type c value 'ARAMCO'.
Search mystring for 'X'
a) sy-fdpos = 0 and sy-subrc = 0
b) sy-fdpos = 0 and sy-subrc = 4
c) sy-fdpos = 4 and sy-subrc = 0
d) sy-fdpos = 4 and sy-subrc = 4
126. What is true of passing by value and result in the following code? More than one answer is correct.
Perform calculate_sales using amount.
FORM calculate_sales changing value(f_amount)
a) Formal Parameter f_amount is allocated it’s own memory space
b) The address of the actual parameter is passed to the formal parameter
c) Formal parameter is copied to memory space of actual parameter at the end of the form
d) Formal parameter is not copied to memory space of actual parameter
127. Define a Logical Database.
a) An ABAP/4 Reading Program used to read and process data
b) A method to update data
c) A Reporting Tool
d) Defintion of a Relational Data Model
128. What happens if message E046 is raised?
At Selection-Screen on sales.
If sales-low < 500.
Message E046.
Endif.
a) The initialization event is fired again
b) Field Sales is open for input and all other fields are not available for input
c) All fields are open for input and cursor is positioned on field sales
d) The program ends
129. What is a structured type in the ABAP dictionary that has no physical table defintion in the underlying database referred to as?
a) table
b) structured data type
c) structure
d) table type
SAP ABAP Certification Sample Questions for Abapers
SAP ABAP Certification Sample Questions for Abapers
To take the ABAP certification, contact your local or regional SAP Education training center at this url :
http://www.sap.com/services/education/index.epx
Caution: more than one answer may be correct.
Please mark ALL correct answers.
Question:
Within the TOP-OF-PAGE event the following code represents:
write: /1 text-001.
A: A selection text.
B: A basic list row.
C: A page footer
D: A page header
Question:
Given the two ABAP Dictioary tables below, the Customer number field in table one must contain
a value from table two. The Customer number field is known as a ____.
Table one:
Customer number (Primary key)
Company code (Primary key)
Other data
Table two:
Customer number (Primary key)
Customer name
Other data
A: Secondary index
B: Matchcode object
C: Validation field
D: Foreign key
Question:
A batch input job with two steps is processed. IMPORT/EXPORT statements are used to pass values between the steps.
Step 1 contains the statements
STATUS='S'. CONT = 'C'.
EXPORT STATUS CONT TO MEMORY ID 'XXXX'.
Step 2 contains the statements
CLEAR:CONT, STATUS, FLAG.
IMPORT CONT FLAG FROM MEMORY ID 'XXXX'.
What do the fields SY-SUBRC, CONT and FLAG contain after the IMPORT statement have been executed?
A. SY-SUBRC=4. CONT='C'. FLAG=''.
B. SY-SUBRC=0. CONT='C'. FLAG=''.
C. SY-SUBRC=0. CONT=''. FLAG=''.
Question:
The structure of a table has been changed in the ABAP/4 Dictionary.
Which of the following adjustments in the relevant database table is correct, if you want to retain the previous data?
A. Delete and recreate the database table.
B. Change the database directory (ALTER TABLE) where the structure change with ALTER TABLE is supported by the database.
C. Convert the table.
Question:
Must Exits be predefined by SAP programmers?
A. No
B. Yes
C. Customers can determine for themselves where they want to use exits
To take the ABAP certification, contact your local or regional SAP Education training center at this url :
http://www.sap.com/services/education/index.epx
Caution: more than one answer may be correct.
Please mark ALL correct answers.
Question:
Within the TOP-OF-PAGE event the following code represents:
write: /1 text-001.
A: A selection text.
B: A basic list row.
C: A page footer
D: A page header
Question:
Given the two ABAP Dictioary tables below, the Customer number field in table one must contain
a value from table two. The Customer number field is known as a ____.
Table one:
Customer number (Primary key)
Company code (Primary key)
Other data
Table two:
Customer number (Primary key)
Customer name
Other data
A: Secondary index
B: Matchcode object
C: Validation field
D: Foreign key
Question:
A batch input job with two steps is processed. IMPORT/EXPORT statements are used to pass values between the steps.
Step 1 contains the statements
STATUS='S'. CONT = 'C'.
EXPORT STATUS CONT TO MEMORY ID 'XXXX'.
Step 2 contains the statements
CLEAR:CONT, STATUS, FLAG.
IMPORT CONT FLAG FROM MEMORY ID 'XXXX'.
What do the fields SY-SUBRC, CONT and FLAG contain after the IMPORT statement have been executed?
A. SY-SUBRC=4. CONT='C'. FLAG=''.
B. SY-SUBRC=0. CONT='C'. FLAG=''.
C. SY-SUBRC=0. CONT=''. FLAG=''.
Question:
The structure of a table has been changed in the ABAP/4 Dictionary.
Which of the following adjustments in the relevant database table is correct, if you want to retain the previous data?
A. Delete and recreate the database table.
B. Change the database directory (ALTER TABLE) where the structure change with ALTER TABLE is supported by the database.
C. Convert the table.
Question:
Must Exits be predefined by SAP programmers?
A. No
B. Yes
C. Customers can determine for themselves where they want to use exits
100 SAP ABAP Interview Questions
100 SAP ABAP Interview Questions
1. What is the typical structure of an ABAPTM program?
2. What are field symbols and field groups.? Have you used "component idx of 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 program 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 input 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 base 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 programs?
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 using it?
21. What is the meaning of ABAPTM editor integrated with ABAPTM data dictionary?
22. What are the events in ABAPTM language?
23. What is an interactive report? What is the obvious difference of such report 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 display 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 the CTS entries? How do you do it?
42. What is the client concept in SAP®? What is the meaning of client independent?
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 internal 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 prefer to write your own programs to load master data? Why?
52. What are logical databases? What are the advantages/disadvantages of logical 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 work 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 session?
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 event 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 for 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 menu 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 is 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 requirements?
85. How do you find the tables to report from when the user just tells you the 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. How do you number pages in SAP® script layout outputs?
95. What takes most time in SAP® script programming?
96. How do you use tab sets in layout sets?
97. How do you backup SAP® script layout sets? Can you download and upload? How?
98. What are presentation and application servers in SAP®?
99. In an ABAPTM program how do you access data that exists on presentation server vs. on an application server?
100. What are different data types in ABAPTM?
1. What is the typical structure of an ABAPTM program?
2. What are field symbols and field groups.? Have you used "component idx of 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 program 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 input 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 base 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 programs?
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 using it?
21. What is the meaning of ABAPTM editor integrated with ABAPTM data dictionary?
22. What are the events in ABAPTM language?
23. What is an interactive report? What is the obvious difference of such report 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 display 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 the CTS entries? How do you do it?
42. What is the client concept in SAP®? What is the meaning of client independent?
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 internal 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 prefer to write your own programs to load master data? Why?
52. What are logical databases? What are the advantages/disadvantages of logical 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 work 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 session?
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 event 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 for 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 menu 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 is 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 requirements?
85. How do you find the tables to report from when the user just tells you the 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. How do you number pages in SAP® script layout outputs?
95. What takes most time in SAP® script programming?
96. How do you use tab sets in layout sets?
97. How do you backup SAP® script layout sets? Can you download and upload? How?
98. What are presentation and application servers in SAP®?
99. In an ABAPTM program how do you access data that exists on presentation server vs. on an application server?
100. What are different data types in ABAPTM?
Sample Test Questions on SAP ABAP Programming 6
Part 6
1. Language Constructs
1. When using Open SQL statements in an ABAP/4 program, you must ensure the following.
a) The database system being addressed must be supported by SAP.
b) The database tables being addressed must be defined in the ABAP/4 dictionary.
c) Both
d) None
2. What is the difference between the TYPE and LIKE statements in data declaration?
a) LIKE is used to define variables that are similar to the ones previously defined whereas TYPE is used to define variables that exist in data dictionary.
b) LIKE is used to define variables that are similar to the ones previously defined whereas TYPE is used to define variables to refer ABAP internal data elements.
c) LIKE is used to define variables that exist in data dictionary whereas TYPE is used to define variables to refer ABAP internal data elements.
d) Both of them can be used interchangeably, there is no difference.
3. HIDE statement support deep structures?
a) True
b) False
c) Not applicable
d) Not applicable
4. Which of the following are true?
a) ABAP queries are created by associating them to a logical database or through a direct read/data retrieval program.
b) ABAP queries are created from functional areas that are created from a logical database or through a direct read/retrieval program.
c) ABAP queries are created from user groups attached to the functional areas that are created from a logical database or through a direct read/retrieval program.
d) ABAP queries are created through the regular report program.
5. A logical unit of work (LUW or transaction) begins
a) Each time you start a transaction.
b) Each time you end a transaction.
c) When the database changes of the previous LUW have been confirmed (database commit).
d) Before the database changes of the previous LUW have been cancelled (database rollback).
6. A database commit is triggered by
a) ABAP/4 command COMMIT WORK.
b) CALL SCREEN, CALL DIALOG.
c) A Remote Function Call
d) CALL TRANSACTION
7. Open SQL vs. Native SQL
a) A database interface translates SAP’s Open SQL statements into SQL commands specific to the database in use. Native SQL statements access the database directly.
b) When you use Native SQL, the addressed database tables do not have to be known to the ABAP/4 dictionary. In Open SQL, the addressed database tables must be defined in the ABAP/4 dictionary.
c) There is automatic client handling in Native SQL whereas clients must always be specified in Open SQL.
d) None of above
8. The following are true about ‘EXEC SQL’.
a) You can end the Native SQL with a semicolon.
b) You can end the Native SQL with a period.
c) You cannot perform reliable authorization checks using EXEC SQL.
d) Host variables in the Native SQL are identified with a preceding hash (#).
9. What are field symbols?
a) Field symbols are like pointers in C that can point to any data object in ABAP/4 and to structures defined in ABAP/4 dictionary.
b) Field symbols have to be created with type specifications only.
c) You cannot assign one field symbol to another.
d) All operations you have programmed with the field symbol are carried out with the assigned field.
10. EXTRACT statement
a) The first EXTRACT statement extracts the first extract record.
b) The first EXTRACT statement creates the extract dataset and adds the first extract record.
c) Each extract record contains, if specified, the fields of the field group.
d) Each extract record contains, if specified, the fields of the field symbol.
11. You cannot assign a local data object defined in a subroutine or function module to a field group.
a) True
b) False
c) Not applicable
d) Not applicable
12. Which of the following system fields keep track of each pass in LOOP statement?
a) SY-STEPL
b) SY-INDEX
c) SY-TABIX
d) B and C both
13.
data: begin of group1,
f1 type I value 1,
f2 type I value 1,
f3 type c value '1',
f4 type I value 1,
end of group1.
Data: begin of group2,
g1 type I value 1,
f1 type I value 1,
f2 type I value 1,
g4 type c value '1',
end of group2.
Do 2 times.
Add-corresponding group1 to group2.
Enddo.
Write: group2-g1, group2-f1, group2-f2, group2-g4.
What is the output of the above code after execution?
a) 1221
b) 2222
c) 3333
d) 1331
14. Which one of the following SQL statements does NOT lock the affected database entries ?
a) insert
b) modify
c) select single for update
d) select *
15. Which one of the following is an example of an asynchronous update?
a) insert wa into ztable.
b) call function 'update_table' in update task.
c) update ztable from ztable.
d) modify ztable from wa.
16. REPORT ZTEST.
TABLES: MARC.
DATA: ZWERKS LIKE MARC-WERKS.
Which one of the following contains the length definition of ZWERKS?
a) The DATA statement
b) The Data Element used in MARC-WERKS
c) Table MARC
d) The Domain used in Data Element of MARC-WERKS
17.
1. Data: Begin of imara occurs 0.
2. Include structure mara.
3. Data: End of imara.
4 Data: number like mara-matnr value ‘123’.
5. Select * into table imara
6. From mara where matnr = number.
7. If sy-subrc = 0.
8. Write:/ imara.
9. Endif.
10. Endselect.
Which line in the above code contains a syntax error?
a) Line 5
b) Line 6
c) Line 8
d) Line 10
18.
data: f1 type I value 1,
f2 type I value 1.
Write: / f1, f2.
Do 2 times.
Perform scope.
Enddo.
Write: / f1, f2.
Form scope.
Data: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Endform.
What is the output of this program after execution?
a) 1 1
3 3
4 4
4 4
b) 1 1
2 2
3 3
3 3
c) 1 1
3 3
3 3
1 1
d) 1 1
3 3
3 3
3 3
19.
data: begin of period,
f1 type I value 5,
f2 type I value 5,
f3 type I value 5,
f4 type I value 5,
f5 type I value 2,
end of period.
Data: amt type I,
total type I.
do 5 times varying amt from period-f1 next period-f2.
if sy-index <= 4.
add amt to total.
endif.
enddo.
Write: / 'Amt:',amt, 'Total', total.
What is the output of the above code after execution?
a) Amt: 2 Total: 22
b) Amt: 2 Total: 20
c) Amt: 5 Total: 20
d) Amt: 5 Total: 10
20. data: field1(4) type c value 'ABCD'.
if field1 co 'ABCD'.
endif.
If the above statement is evaluated as true, what is the value of sy-fdpos?
a) 0
b) D
c) ABCD
d) A
21.
1 case number.
2 when 1. Write '1'.
3 when 2. Write '2'.
4 when 3. Write: / '3'.
5 when number > 5. Write '>5'.
6 endcase.
Which line in the above code contains a syntax error?
a) Line 2
b) Line 4
c) Line 5
d) Line 6
22. Which of the following are elementary types in ABAP?
a) C,D,F,I,N,P,Q,T
b) C,D,F,I,N,P,T,X
c) A,D,F,H,N,P,T,X
d) A,D,F,I,N,P,T,X
Tables
23. Which of the following are true?
a) TABLE is used as a synonym for STANDARD TABLE
b) You can only access a hashed table using the generic key operations. Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed.
c) All hashed tables are index tables.
d) We have to define the hash procedure explicitly for HASHED TABLE.
24. Can a transparent table exist in data dictionary but not in the database physically?
a) True
b) False
c) Not Applicable
d) Not Applicable
25. Which statement is used to get the number of lines in an internal table?
a) DESCRIBE table
b) LINES
c) LINE
d) All of the above
26. If CHECK statement is outside the loop structure and if the condition fails?
a) Subsequent statements in the current processing blocks are executed
b) Subsequent statements in the current processing blocks are not executed
c) Program gets terminated
d) There is an error message
27. SORT statement can sort
a) External as well as internal table
b) Database tables
c) Internal Tables
d) B and C
28. Join statements can be used with Cluster tables?
a) True
b) False
c) Not Applicable
d) Not Applicable
29. It is always faster to use the Into Table version of a Select statement than to use Append statements?
a) True
b) False
c) Not Applicable
d) Not Applicable
30. From the performance point of view, if you want to process the data only once, which of the following will you use?
a) Selecting the data into an internal table and then LOOP through internal table.
b) Do the processing in SELECT..END SELECT
c) Select the records in the loop and then process each individually
d) Each of the above will be equally efficient
31. Two internal tables are equal if
a) Internal tables cannot be compared for equality
b) It has same number of lines
c) Each pair of corresponding lines is equal
d) A and B both
32. Which of the following will happen if you write ‘DELETE itab’ statement in your program?
a) All entries of Internal table will be deleted
b) Only the header line will be deleted
c) The row corresponding to header line will be deleted from the internal table
d) The program will give syntax error.
33. Which of the following statements is/are syntactically correct?
a) PERFORM sub1 TABLES itab
CHANGING var1.
b) PERFORM sub1 CHANGING var1
TABLES itab .
c) Both of the above
d) None of the above
34. Which of the following will happen if you write ‘DELETE itab’ statement?
a) All entries of Internal table will be deleted
b) Only the header line will be deleted
c) The row corresponding to header line will be deleted from the internal table
d) The program will give syntax error.
35. Transparent table ztable consists of field1 and field2.
Internal Table Itab has structure like ztable.
Which one of the following is the fastest way to fill an internal table given the information above?
a) select * into corresponding-fields of itab
from ztable where field1 = '10'.
b) select field1 field2 into (itab-field1, itab-field2)
from ztable where field1 = '10'.
Append itab.
Endselect.
c) select * into table itab from ztable
where field1 = '10'.
d) select * from ztable
where field1 = '10'.
Move ztable to wa.
Append itab from wa.
Endselect.
36.
data: begin of itab occurs 0,
num1 type I,
num2 type I,
num3 type I,
mark,
end of itab.
Itab entries:
1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
Delete from itab where mark eq 'D'.
Given the ITAB entries, what are the contents of ITAB after executing the above code?
a) 2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
b) 1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
c) 2 3 4
7 8 9 d
d) 2 3 4
Which of the following statements define internal tables with a header line?
a) Data: Begin of itab occurs 0,
field1,
End of itab.
b) Data: Itab1 like itab occurs 0.
c) Data: Itab1 type itab occurs 0.
d) Data: Begin of itab1 occurs 0.
Include structure itab.
Data: End of itab1.
37.
DATA: BEGIN OF ICODE OCCURS 0,
FIELD1(5),
FIELD2(5),
END OF ICODE.
The internal table icode contains the following entries:
Field1 Field2
------- ------
John 12345
Alice 23478
Sam 54321
john 50000
READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH.
Why does executing the above code return a sy-subrc of 4?
a) The internal table has an incorrect structure.
b) Icode-field2 must be a numeric field.
c) Both internal table fields must be used in the search.
d) The internal table must be sorted first.
38. Which of the following are true?
a) COLLECT can only be used with STANDARD TABLE.
b) To use COLLECT, the internal table should be derived from a database table with an explicit key.
c) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, control passes on to the next record in the internal table.
d) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead.
39.
data: begin of itab occurs 0,
field1,
end of itab.
Do 3 times.
Append initial line to itab.
Append 'X' to itab.
Enddo.
Describe table itab.
Write: sy-tfill.
What is the value of sy-tfill after executing the above code?
a) 1
b) 2
c) 3
d) 6
40. Loop at itab.
Write itab.
Endloop.
From where is the written line derived in the above loop statement?
a) The table header
b) The table work area
c) sy-index
d) sy-lisel
41.
DATA TEXT(72).
DATA CODE LIKE TABLE OF TEXT.
TEXT = 'This is the first line.'.
APPEND TEXT TO CODE.
TEXT = 'This is the second line. '.
APPEND TEXT TO CODE.
TEXT = 'This is the third line.'.
APPEND TEXT TO CODE.
WRITE 'not' TO CODE+8 INDEX 3.
WRITE 'modified line.' to code+12 INDEX 2.
LOOP AT CODE INTO TEXT.
WRITE / TEXT.
ENDLOOP.
What is the result of the above code after execution?
a) This is the first line.
This is the modified line.
This is not the third line.
b) This is the first line.
This is the modified line.
This is not third line.
c) This is the first line.
This is the modified second line.
This is not third line.
d) This is the first line.
This is the second line.
This is the third line.
ABAP/4 Data Dictionary
42. Can you create a table with fields not referring to data elements?
a) Yes
b) No
c) Not Applicable
d) Not Applicable
43. Which transaction code is used for deleting entire table contents?
a) SE17
b) SE30
c) SE14
d) SE09
44. Which of the following are true?
a) Pooled tables can be used to store control data like screen sequences, program parameters etc.
b) Several cluster tables are stored in one corresponding table on the database.
c) Both
d) None
45. Which database object is used for storing the system variables?
a) SYST table
b) SYST structure
c) SYSTEM table
d) SYSTEM structure
46. What makes a text table?
a) The type of foreign key field defined must be “No Key/Candidates”
b) The key of the text table consists of the key of the check table plus an additional language key
c) Cardinality must be defined as 1:1
d) The table has to be client independent
47. From the list below which is not a data class in the Dictionary?
a) Master Data
b) Organizational Data
c) Project Data
d) System Data
48. Identify the case where table buffering is set to off.
a) When the most current data is required
b) When the most current data is not required
c) Small static tables i.e. tables do not change much
d) b and c
49. When using SAP Buffering on database tables, which statement does NOT result in database access?
a) select distinct..
b) select single..
c) using (Is null) in the where clause
d) using aggregate functions in the select clause
50. A structured type in the ABAP dictionary that has no physical table definition in the underlying database is referred to as :
a) Table
b) Table Type
c) Structured Type
d) Structure
51. When are Dictionary changes made available to a program?
a) Immediately provided object is activated
b) Next time user logs on
c) Next time program is regenerated
d) After Database is re-organized
52. Which of the following do not exist in the underlying database?
a) Transparent Table
b) Structure
c) View
d) Internal tables
53. Full buffering would be appropriate for what type of tables:
a) Small static tables
b) Transaction Tables
c) Tables with generic keys
d) b and c
54. You have added an append structure to a standard SAP table. What happens to the standard table when a new version of table is imported during an SAP version upgrade:
a) The standard table is returned to standard. Therefore, the append structure must be manually re-applied
b) The append fields are automatically appended to the table upon activation but you must still convert the table
c) All append structures are deleted. A new append structure must be created and added to the standard table
d) When the standard tables are activated, the append structure is automatically added to the standard table
55. Which of the following are TRUE for SQL trace utility (tcode ST05) in SAP -
a) SQL trace utility traces database access for a specific program
b) SQL trace utility traces database access for all transactions by a specific user
c) SQL trace result shows details of queries on database tables
d) SQL trace result can show details of queries on internal tables
56. A table ztest has the following secondary index: tnum, tcode.
Select * from ztest where tnum ne '123' and tcode = '456'.
Why does a SQL trace confirm that the secondary index is NOT used in the code above?
a) Client is not in the where clause
b) NE invalidates the use of an index
c) Variables must be used, NOT literals
d) Indexes are not allowed on Z tables
Batch Data Communication
57. How do you create a batch input session for a transaction?
a) We create a bdc and use ‘call transaction’ in background mode.
b) We create a bdc and use ‘call transaction’ in error mode.
c) We create a bdc and use ‘bdc_insert’ for the transaction.
d) None of the above.
58. What is the alternative to batch input session?
a) Load module
b) Call transaction
c) BAPI
d) Idoc segment
59. Which SAP table stores the BDC session queue information?
a) APQD
b) APQL
c) APQQ
d) APQI
60. Which program can be used to release BDC sessions within a job?
a) RSBDCSUB
b) RSBDCJOB
c) RSSUBBDC
d) BDCRECXX
61. Which one of the following is output to the job log when included in an ABAP program running in the background?
a) Write statements
b) message statements
c) report parameters
d) Submit statements
62. Your program specs call for you to read the first 10 records from a text file (fname1), and write them out to another text file (fname2).
Which block of code will accomplish the result desired in the above scenario?
a) Open dataset fname2 for input in text mode.
Do 10 times.
Read dataset fname1 into hold_var.
Transfer hold_var to fname2.
Enddo.
b) open file fname1 for output.
Open file fname2 for input.
Read dataset fname1 into hold_var 10 times.
Transfer hold_var to fname2.
c) open file fname1 for input.
Open file fname2 for output.
Do 10 times.
Read file fname1 into hold_var.
Transfer hold_var into fname2.
Enddo.
d) open dataset fname1 for input in text mode.
Open dataset fname2 for output in text mode.
Do 10 times.
Read fname1 into hold_var.
Write hold_var to fname2.
Enddo.
63. sy-dynpro is
a) screen no
b) program
c) table
d) field name
64. Which of the following are NOT correct usage of BDC_cursor?
a) To position the cursor on a particular field.
-FNAM = 'BDC_CURSOR'.
-FVAL = ‘fieldx’ .
b) To position the cursor on a particular field.
-FNAM = ‘fieldx’
-FVAL = 'BDC_CURSOR'. .
c) For fifth row of Table control
-FVAL = 'fieldx(5)'.
d) For fifth row of Table control
-FNAM = 'BDC_CURSOR(5) '.
65. In case of background processing of a BI session, which authorization is checked?
a) Developer of the program that schedules BI Session
b) User who executes the BI session
c) User who executes the program that schedules BI Session
d) User ID that is passed to the BDC_OPN_GROUP function module inside the calling program
66. Which of the following are TRUE about Transaction Recorder?
a) Transaction Code is SHDB
b) Transaction Code is SM35
c) It can generate ABAP code for the BDC program automatically
d) It can generate ABAP code for the Call Transaction program automatically
SAP Script
67. The following are true about SAPscript control commands.
a) If a control command is unknown or it contains syntax errors, the line containing it will be printed out as it is.
b) If a control command is unknown or it contains syntax errors, the line containing it will be treated as a comment line.
c) A maximum of one control command may appear in each line.
d) A maximum of six control commands may appear in each line.
68. To output SAPscript layout sets, in the print program
a) You must always start the output with OPEN_FORM and end it with CLOSE_FORM.
b) Within one transaction, you can use only one OPEN_FORM and CLOSE_FORM to open and close a layout set.
c) WRITE_FORM should be used within an OPEN_FORM and CLOSE_FORM.
d) WRITE_FORM can be used without an OPEN_FORM and CLOSE_FORM.
69. Which transaction do we use for debugging SAP Script?
a) SE61
b) SE72
c) SE71
d) None of the above.
SAP Enhancements
70. The transaction cmod and smod are
a) Used to create enhancements to standard SAP programs.
b) Used to create enhancements to ABAP queries.
c) Used to create the user exits, menu exits and screen exits.
d) Used to modify the standard function groups.
Interfaces and Queries
71. What happens if we write COMMIT WORK is written within SELECT..END SELECT.
a) All the transactions will be committed.
b) The first transaction is committed and the program exits the loop.
c) Program will create a short dump
d) A runtime error will occur.
72. How many function modules can be present in a function group?
a) 30
b) 49
c) 99
d) There is no such limit
73. Can you call a subroutine of one program from another program, which is not an include program?
a) True
b) False
c) Not Applicable
d) Not Applicable
74. Which of the following statements is TRUE?
a) The ABAP statement ‘IMPORT ... TO MEMORY’ overwrites the old data in ABAP memory.
b) The ABAP statement ‘EXPORT ... TO MEMORY’ appends to the already existing data in ABAP memory.
c) The ABAP statement ‘EXPORT ... TO MEMORY’ overwrites the old data in ABAP memory.
d) The ABAP statement ‘IMPORT ... TO MEMORY’ appends to the already existing data in ABAP memory.
75. SAP Memory and ABAP/4 memory refer to the same memory space?
a) True
b) False
c) Not Applicable
d) Not Applicable
76. Which statement is INCORRECT when referring to SAP memory or ABAP memory?
a) SAP memory is also referred to as Global Memory.
b) SAP memory is available across transactions.
c) IMPORT/EXPORT (TO MEMORY) statements are used for SAP memory.
d) You can use ABAP memory to pass data between internal sessions.
77. Which one of the following are true about a function module?
a) Function modules CANNOT be created by a programmer.
b) Function modules are locally accessible objects.
c) Function modules use a memory area separate from calling program.
d) Function modules have inbound and outbound parameters.
IDOC
78. An IDOC structure is composed of
a) One substructure, substructure consists of several fields
b) Several segments, each segments has several data elements
c) Several substructures, each one made up of several data fields
d) Several segments, each segment consists of several data fields
79. Read the 2 statements below and pick the right answer choice
A. Archived files can be analyzed without reloading the file
B. An archived IDOC can be reloaded and then archived
a) A & B are true
b) Only B
c) Only A
d) Both are false
80. The transaction for archiving IDOC’s is
a) WARC
b) WEAR
c) SARA
d) SARC
81. An IDOC contains data for 3 purchase orders (type ORDERS01, with 1 mandatory segment, 11 other segments which are permitted to be multiple). Read the following statements which could describe the content of the idoc, and pick the right combination:
A. It will have 3 control records
B. It will have 1 control record
C. It will have a minimum of 3 data records
D. It will have a minimum of 1 data record
E. It will have a minimum of 48 data records
F. It will have at least 1 status record
G. It will have at least 3 status records
a) A, C, F
b) B, C, F
c) B, C, G
d) A, E, G
82. Which of the following statements is true?
A. An IDoc type can have many messages types associated with it.
B. An IDoc can have many messages associated with it.
C. A message type can be associated with many IDoc types.
a) A and C
b) A and B
c) Only A
d) All the statements
83. Pick the right answer
A. An idoc type is dependent on the direction of data flow (inbound/outbound).
B. The control record has a field ‘DOCTYP’ which indicates whether the IDOC is of the type inbound or outbound
a) Only A is true
b) Only B is true
c) A and B are true
d) Neither A nor B are true
84. The control record field which determines the direction of the IDoc can have values
e) ‘X’ and ‘ ‘ (space)
f) ‘1’ and ‘2’,
The meaning of the values is
C. X inbound, space outbound
D. X outbound, space inbound
E. 1 inbound, 2 outbound
F. 1 outbound, 2 inbound
Pick the right combinations of statements, which are true
a) A, C
b) A, D
c) B, E
d) B, F
85. The area menu from which EDI tools can be accessed is
a) WALE
b) WEDI
c) SALE
d) SEDI
86. The transactions for documentation on IDOC structures are
a) WE60 to WE64
b) SA60 to SA64
c) WE80 to WE84
d) SA20 to SA24
Report Programming
87. How do you check whether a report is submitted in background?
a) The system variable, sy-batch is set to ‘X’.
b) The system variable, sy-binpt is set to ‘X’.
c) The system variable, sy-calld is set to ‘X’.
d) Not applicable
88. Which transaction code is used executing a report (type 1 program)?
a) SE38
b) SA38
c) SM38
d) All of the above
89. When is the TOP-OF-PAGE event triggered?
a) After executing first write statement in start-of-selection event.
b) At every new page in the report output
c) After the REPORT statement
d) A and B
90. Which of the following additions for SELECT-OPTIONS would disable the ranges on selection screen?
a) NO-RANGES
b) NO INTERVALS
c) NO RANGES
d) NO-INTERVALS
91. What is the structure for the following select-options? Select-options: zname like ztable-name.
a) zname-sign
zname-value
zname-low
name-high
b) zname -sign
zname-option
zname-low
zname-high
c) zname -include
zname-pattern
zname-range
d) zname-sign
zname-option
zname-low
92. Following properties are given:
· Must use mara-matnr's conversion exit
· Is a required field
· Appears as 100 on the selection screen
· Check for a valid mara-matnr
Which one of the following is the correct way to define a selection-screen parameter (n) with the above properties?
a) parameters: n type I default '100'.
b) parameters: n like mara-matnr default ‘100’ obligatory.
At selection-screen on n.
Select single * from mara where matnr = n.
If sy-subrc ne 0.
Message e000(00) with 'Incorrect number'.
Endif.
c) parameters: n like mara-matnr default 100 obligatory.
d) parameters: n type I default 100 required.
At selection-screen on n.
Select single * from mara where matnr = n.
If sy-subrc ne 0.
Message e000 with 'Incorrect number'.
Endif.
93. Report specs call for a selection screen with 1 parameter inside a frame. Which code block will accomplish this?
a) Selection-screen begin of frame b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end of frame b1.
b) Selection-screen begin-of-frame b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end-of-frame b1.
c) Selection-screen begin-of-block b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end-of-block b1.
d) Selection-screen begin of block b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end of block b1.
94. 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
95. You are required to create a selection screen with 1 input parameter: A date range which defaults to the last 1 week (today-7,today)
Which is the correct block of code for the above request?
a) select-options: s_date type date.
Initialization.
Move: sy-datum to s_date-high,
sy-datum - 7 to s_date-low.
Append s_date.
b) select-options: s_date for sy-datum.
Initialization.
Move: sy-datum - 7 to s_date-low,
sy-datum to s_date-high.
Append s_date.
c) select-options: s_date type d default sy-datum - 7, sy-datum.
d) select-options: s_date for sy-datum default sy-week,
96. Which one of the following statements is a valid use of the write command?
a) write text(3)(4).
b) write text(3)4.
c) write text+(3)(4).
d) write text+3(4).
97. When using an edit mask, which one of the following fields will be output with a leading sign?
a) field1 using edit mask '**_LLV'
b) field1 using edit mask 'RR__,_'
c) field1 using edit mask 'LL__,_'
d) field1 using edit mask 'V__'
98. For the events in Classical Reports :
1. Initialisation
2. At Selection Screen
3. Start Of Selection ( Get & Get Late in case of Logical Database )
4. End of Selection
5. Top of Page
6. End of Page
sequence of calling is :
a) 1,2,3,4, 5, 6
b) 2,1, 3,4, 5, 6
c) 1,2, 5, 6, 3,4
d) 2,1, 5, 6, 3,4
99. The sequence of events in Interactive Reports is
1. At Line Selection
2. At User Command
3. At PFKEY
4. Get Cursor
5. Read
a) 1,2,3,4, 5
b) 1,2,3,5, 4,
c) 1, 2, 4, 5, 3
d) 1, 3, 5, 4, 2
100. What is max no of lists u can attach to basic list?(interactive report)
a) 22
b) 20
c) 18
d) 1
General
101. If a break-point statement is written in an ABAP program and the program is run in the background mode, which of the following is true.
a) Break-point statement will be ignored and program will complete the execution.
b) System generates a Sys log message
c) Program will create a short dump
d) None of the above
102. When a program is created and transported the selections texts are always transported along with the program.
a) True
b) False
c) Not Applicable
d) Not Applicable
103. Programs and reports are client dependent.
a) True
b) False
c) Not Applicable
d) Not Applicable
104. Which transaction code is used for creating a background job?
a) SM37
b) SM35
c) SM36
d) SM38
105. Can variants be transported across systems?
a) Yes
b) No
c) Not Applicable
d) Not Applicable
106. Are variants client dependent?
a) Yes
b) No
c) Not Applicable
d) Not Applicable
107. What are the functions in the editor command line?
a) F1
b) F4
c) F3
d) F8
108. What does the transaction code /i1 do?
a) Shifts to the first session of the user
b) This terminates the first session of the user
c) Terminates the current session of the user
d) No transaction with this code exists.
109. Which transaction code is used for deleting the user lock on tables?
a) SE12
b) SE11
c) SM12
d) SM11
110. What transaction is used to create background jobs?
a) SM30
b) SM35
c) SM36
d) SM37
111. Which one of the following transaction types is INVALID?
a) Area
b) Modal
c) Variant
d) Report
112. Which one of the following statements are TRUE?
a) After a TRANSPORT REQUEST is released, no further changes to its' objects are allowed.
b) Development classes can be viewed by using transaction SE80.
c) Local objects CANNOT be transported to another instance. .
d) A TRANSPORT REQUEST contains objects that can be transported to Quality or Production SAP instances.
113. Which one of the following statements are FALSE about Inactive objects in SAP?
a) Development Objects are always saved as inactive versions.
b) An inactive version of a Development Object is written to developer’s pc
c) In DISPLAY mode, other users can NOT access the code of inactive version of a developer
d) Generating a runtime object is same as activating a development object.
Dialog Programming
114. Program specs call for screen 100 to appear in a modal dialog box.
Process After Input.
module do_something.
module do_something.
If field1 = 'X'.
Call screen '0100'.
Endif.
Endmodule.
Why does the above code fail to produce a modal box?
a) The code must occur in the PBO.
b) The screen is of the wrong type.
c) The screen should be numbered 900.
d) Screens are not called within modules.
115. Which one of the following statements would occur in the PBO of a dialog program using table control?
a) module user_command.
b) set screen '0100'.
c) loop at itab.
d) loop at itab with control itab_tc.
1. Language Constructs
1. When using Open SQL statements in an ABAP/4 program, you must ensure the following.
a) The database system being addressed must be supported by SAP.
b) The database tables being addressed must be defined in the ABAP/4 dictionary.
c) Both
d) None
2. What is the difference between the TYPE and LIKE statements in data declaration?
a) LIKE is used to define variables that are similar to the ones previously defined whereas TYPE is used to define variables that exist in data dictionary.
b) LIKE is used to define variables that are similar to the ones previously defined whereas TYPE is used to define variables to refer ABAP internal data elements.
c) LIKE is used to define variables that exist in data dictionary whereas TYPE is used to define variables to refer ABAP internal data elements.
d) Both of them can be used interchangeably, there is no difference.
3. HIDE statement support deep structures?
a) True
b) False
c) Not applicable
d) Not applicable
4. Which of the following are true?
a) ABAP queries are created by associating them to a logical database or through a direct read/data retrieval program.
b) ABAP queries are created from functional areas that are created from a logical database or through a direct read/retrieval program.
c) ABAP queries are created from user groups attached to the functional areas that are created from a logical database or through a direct read/retrieval program.
d) ABAP queries are created through the regular report program.
5. A logical unit of work (LUW or transaction) begins
a) Each time you start a transaction.
b) Each time you end a transaction.
c) When the database changes of the previous LUW have been confirmed (database commit).
d) Before the database changes of the previous LUW have been cancelled (database rollback).
6. A database commit is triggered by
a) ABAP/4 command COMMIT WORK.
b) CALL SCREEN, CALL DIALOG.
c) A Remote Function Call
d) CALL TRANSACTION
7. Open SQL vs. Native SQL
a) A database interface translates SAP’s Open SQL statements into SQL commands specific to the database in use. Native SQL statements access the database directly.
b) When you use Native SQL, the addressed database tables do not have to be known to the ABAP/4 dictionary. In Open SQL, the addressed database tables must be defined in the ABAP/4 dictionary.
c) There is automatic client handling in Native SQL whereas clients must always be specified in Open SQL.
d) None of above
8. The following are true about ‘EXEC SQL’.
a) You can end the Native SQL with a semicolon.
b) You can end the Native SQL with a period.
c) You cannot perform reliable authorization checks using EXEC SQL.
d) Host variables in the Native SQL are identified with a preceding hash (#).
9. What are field symbols?
a) Field symbols are like pointers in C that can point to any data object in ABAP/4 and to structures defined in ABAP/4 dictionary.
b) Field symbols have to be created with type specifications only.
c) You cannot assign one field symbol to another.
d) All operations you have programmed with the field symbol are carried out with the assigned field.
10. EXTRACT statement
a) The first EXTRACT statement extracts the first extract record.
b) The first EXTRACT statement creates the extract dataset and adds the first extract record.
c) Each extract record contains, if specified, the fields of the field group.
d) Each extract record contains, if specified, the fields of the field symbol.
11. You cannot assign a local data object defined in a subroutine or function module to a field group.
a) True
b) False
c) Not applicable
d) Not applicable
12. Which of the following system fields keep track of each pass in LOOP statement?
a) SY-STEPL
b) SY-INDEX
c) SY-TABIX
d) B and C both
13.
data: begin of group1,
f1 type I value 1,
f2 type I value 1,
f3 type c value '1',
f4 type I value 1,
end of group1.
Data: begin of group2,
g1 type I value 1,
f1 type I value 1,
f2 type I value 1,
g4 type c value '1',
end of group2.
Do 2 times.
Add-corresponding group1 to group2.
Enddo.
Write: group2-g1, group2-f1, group2-f2, group2-g4.
What is the output of the above code after execution?
a) 1221
b) 2222
c) 3333
d) 1331
14. Which one of the following SQL statements does NOT lock the affected database entries ?
a) insert
b) modify
c) select single for update
d) select *
15. Which one of the following is an example of an asynchronous update?
a) insert wa into ztable.
b) call function 'update_table' in update task.
c) update ztable from ztable.
d) modify ztable from wa.
16. REPORT ZTEST.
TABLES: MARC.
DATA: ZWERKS LIKE MARC-WERKS.
Which one of the following contains the length definition of ZWERKS?
a) The DATA statement
b) The Data Element used in MARC-WERKS
c) Table MARC
d) The Domain used in Data Element of MARC-WERKS
17.
1. Data: Begin of imara occurs 0.
2. Include structure mara.
3. Data: End of imara.
4 Data: number like mara-matnr value ‘123’.
5. Select * into table imara
6. From mara where matnr = number.
7. If sy-subrc = 0.
8. Write:/ imara.
9. Endif.
10. Endselect.
Which line in the above code contains a syntax error?
a) Line 5
b) Line 6
c) Line 8
d) Line 10
18.
data: f1 type I value 1,
f2 type I value 1.
Write: / f1, f2.
Do 2 times.
Perform scope.
Enddo.
Write: / f1, f2.
Form scope.
Data: f1 type I value 2,
f2 type I value 2.
Add: 1 to f1, 1 to f2.
Write: / f1, f2.
Endform.
What is the output of this program after execution?
a) 1 1
3 3
4 4
4 4
b) 1 1
2 2
3 3
3 3
c) 1 1
3 3
3 3
1 1
d) 1 1
3 3
3 3
3 3
19.
data: begin of period,
f1 type I value 5,
f2 type I value 5,
f3 type I value 5,
f4 type I value 5,
f5 type I value 2,
end of period.
Data: amt type I,
total type I.
do 5 times varying amt from period-f1 next period-f2.
if sy-index <= 4.
add amt to total.
endif.
enddo.
Write: / 'Amt:',amt, 'Total', total.
What is the output of the above code after execution?
a) Amt: 2 Total: 22
b) Amt: 2 Total: 20
c) Amt: 5 Total: 20
d) Amt: 5 Total: 10
20. data: field1(4) type c value 'ABCD'.
if field1 co 'ABCD'.
endif.
If the above statement is evaluated as true, what is the value of sy-fdpos?
a) 0
b) D
c) ABCD
d) A
21.
1 case number.
2 when 1. Write '1'.
3 when 2. Write '2'.
4 when 3. Write: / '3'.
5 when number > 5. Write '>5'.
6 endcase.
Which line in the above code contains a syntax error?
a) Line 2
b) Line 4
c) Line 5
d) Line 6
22. Which of the following are elementary types in ABAP?
a) C,D,F,I,N,P,Q,T
b) C,D,F,I,N,P,T,X
c) A,D,F,H,N,P,T,X
d) A,D,F,I,N,P,T,X
Tables
23. Which of the following are true?
a) TABLE is used as a synonym for STANDARD TABLE
b) You can only access a hashed table using the generic key operations. Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed.
c) All hashed tables are index tables.
d) We have to define the hash procedure explicitly for HASHED TABLE.
24. Can a transparent table exist in data dictionary but not in the database physically?
a) True
b) False
c) Not Applicable
d) Not Applicable
25. Which statement is used to get the number of lines in an internal table?
a) DESCRIBE table
b) LINES
c) LINE
d) All of the above
26. If CHECK statement is outside the loop structure and if the condition fails?
a) Subsequent statements in the current processing blocks are executed
b) Subsequent statements in the current processing blocks are not executed
c) Program gets terminated
d) There is an error message
27. SORT statement can sort
a) External as well as internal table
b) Database tables
c) Internal Tables
d) B and C
28. Join statements can be used with Cluster tables?
a) True
b) False
c) Not Applicable
d) Not Applicable
29. It is always faster to use the Into Table version of a Select statement than to use Append statements?
a) True
b) False
c) Not Applicable
d) Not Applicable
30. From the performance point of view, if you want to process the data only once, which of the following will you use?
a) Selecting the data into an internal table and then LOOP through internal table.
b) Do the processing in SELECT..END SELECT
c) Select the records in the loop and then process each individually
d) Each of the above will be equally efficient
31. Two internal tables are equal if
a) Internal tables cannot be compared for equality
b) It has same number of lines
c) Each pair of corresponding lines is equal
d) A and B both
32. Which of the following will happen if you write ‘DELETE itab’ statement in your program?
a) All entries of Internal table will be deleted
b) Only the header line will be deleted
c) The row corresponding to header line will be deleted from the internal table
d) The program will give syntax error.
33. Which of the following statements is/are syntactically correct?
a) PERFORM sub1 TABLES itab
CHANGING var1.
b) PERFORM sub1 CHANGING var1
TABLES itab .
c) Both of the above
d) None of the above
34. Which of the following will happen if you write ‘DELETE itab’ statement?
a) All entries of Internal table will be deleted
b) Only the header line will be deleted
c) The row corresponding to header line will be deleted from the internal table
d) The program will give syntax error.
35. Transparent table ztable consists of field1 and field2.
Internal Table Itab has structure like ztable.
Which one of the following is the fastest way to fill an internal table given the information above?
a) select * into corresponding-fields of itab
from ztable where field1 = '10'.
b) select field1 field2 into (itab-field1, itab-field2)
from ztable where field1 = '10'.
Append itab.
Endselect.
c) select * into table itab from ztable
where field1 = '10'.
d) select * from ztable
where field1 = '10'.
Move ztable to wa.
Append itab from wa.
Endselect.
36.
data: begin of itab occurs 0,
num1 type I,
num2 type I,
num3 type I,
mark,
end of itab.
Itab entries:
1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
Delete from itab where mark eq 'D'.
Given the ITAB entries, what are the contents of ITAB after executing the above code?
a) 2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
7 8 9 D
b) 1 2 3 D
2 3 4
3 4 5 D
4 5 6 D
7 8 9 d
c) 2 3 4
7 8 9 d
d) 2 3 4
Which of the following statements define internal tables with a header line?
a) Data: Begin of itab occurs 0,
field1,
End of itab.
b) Data: Itab1 like itab occurs 0.
c) Data: Itab1 type itab occurs 0.
d) Data: Begin of itab1 occurs 0.
Include structure itab.
Data: End of itab1.
37.
DATA: BEGIN OF ICODE OCCURS 0,
FIELD1(5),
FIELD2(5),
END OF ICODE.
The internal table icode contains the following entries:
Field1 Field2
------- ------
John 12345
Alice 23478
Sam 54321
john 50000
READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH.
Why does executing the above code return a sy-subrc of 4?
a) The internal table has an incorrect structure.
b) Icode-field2 must be a numeric field.
c) Both internal table fields must be used in the search.
d) The internal table must be sorted first.
38. Which of the following are true?
a) COLLECT can only be used with STANDARD TABLE.
b) To use COLLECT, the internal table should be derived from a database table with an explicit key.
c) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, control passes on to the next record in the internal table.
d) If the system finds a numeric component, that is not part of the key, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead.
39.
data: begin of itab occurs 0,
field1,
end of itab.
Do 3 times.
Append initial line to itab.
Append 'X' to itab.
Enddo.
Describe table itab.
Write: sy-tfill.
What is the value of sy-tfill after executing the above code?
a) 1
b) 2
c) 3
d) 6
40. Loop at itab.
Write itab.
Endloop.
From where is the written line derived in the above loop statement?
a) The table header
b) The table work area
c) sy-index
d) sy-lisel
41.
DATA TEXT(72).
DATA CODE LIKE TABLE OF TEXT.
TEXT = 'This is the first line.'.
APPEND TEXT TO CODE.
TEXT = 'This is the second line. '.
APPEND TEXT TO CODE.
TEXT = 'This is the third line.'.
APPEND TEXT TO CODE.
WRITE 'not' TO CODE+8 INDEX 3.
WRITE 'modified line.' to code+12 INDEX 2.
LOOP AT CODE INTO TEXT.
WRITE / TEXT.
ENDLOOP.
What is the result of the above code after execution?
a) This is the first line.
This is the modified line.
This is not the third line.
b) This is the first line.
This is the modified line.
This is not third line.
c) This is the first line.
This is the modified second line.
This is not third line.
d) This is the first line.
This is the second line.
This is the third line.
ABAP/4 Data Dictionary
42. Can you create a table with fields not referring to data elements?
a) Yes
b) No
c) Not Applicable
d) Not Applicable
43. Which transaction code is used for deleting entire table contents?
a) SE17
b) SE30
c) SE14
d) SE09
44. Which of the following are true?
a) Pooled tables can be used to store control data like screen sequences, program parameters etc.
b) Several cluster tables are stored in one corresponding table on the database.
c) Both
d) None
45. Which database object is used for storing the system variables?
a) SYST table
b) SYST structure
c) SYSTEM table
d) SYSTEM structure
46. What makes a text table?
a) The type of foreign key field defined must be “No Key/Candidates”
b) The key of the text table consists of the key of the check table plus an additional language key
c) Cardinality must be defined as 1:1
d) The table has to be client independent
47. From the list below which is not a data class in the Dictionary?
a) Master Data
b) Organizational Data
c) Project Data
d) System Data
48. Identify the case where table buffering is set to off.
a) When the most current data is required
b) When the most current data is not required
c) Small static tables i.e. tables do not change much
d) b and c
49. When using SAP Buffering on database tables, which statement does NOT result in database access?
a) select distinct..
b) select single..
c) using (Is null) in the where clause
d) using aggregate functions in the select clause
50. A structured type in the ABAP dictionary that has no physical table definition in the underlying database is referred to as :
a) Table
b) Table Type
c) Structured Type
d) Structure
51. When are Dictionary changes made available to a program?
a) Immediately provided object is activated
b) Next time user logs on
c) Next time program is regenerated
d) After Database is re-organized
52. Which of the following do not exist in the underlying database?
a) Transparent Table
b) Structure
c) View
d) Internal tables
53. Full buffering would be appropriate for what type of tables:
a) Small static tables
b) Transaction Tables
c) Tables with generic keys
d) b and c
54. You have added an append structure to a standard SAP table. What happens to the standard table when a new version of table is imported during an SAP version upgrade:
a) The standard table is returned to standard. Therefore, the append structure must be manually re-applied
b) The append fields are automatically appended to the table upon activation but you must still convert the table
c) All append structures are deleted. A new append structure must be created and added to the standard table
d) When the standard tables are activated, the append structure is automatically added to the standard table
55. Which of the following are TRUE for SQL trace utility (tcode ST05) in SAP -
a) SQL trace utility traces database access for a specific program
b) SQL trace utility traces database access for all transactions by a specific user
c) SQL trace result shows details of queries on database tables
d) SQL trace result can show details of queries on internal tables
56. A table ztest has the following secondary index: tnum, tcode.
Select * from ztest where tnum ne '123' and tcode = '456'.
Why does a SQL trace confirm that the secondary index is NOT used in the code above?
a) Client is not in the where clause
b) NE invalidates the use of an index
c) Variables must be used, NOT literals
d) Indexes are not allowed on Z tables
Batch Data Communication
57. How do you create a batch input session for a transaction?
a) We create a bdc and use ‘call transaction’ in background mode.
b) We create a bdc and use ‘call transaction’ in error mode.
c) We create a bdc and use ‘bdc_insert’ for the transaction.
d) None of the above.
58. What is the alternative to batch input session?
a) Load module
b) Call transaction
c) BAPI
d) Idoc segment
59. Which SAP table stores the BDC session queue information?
a) APQD
b) APQL
c) APQQ
d) APQI
60. Which program can be used to release BDC sessions within a job?
a) RSBDCSUB
b) RSBDCJOB
c) RSSUBBDC
d) BDCRECXX
61. Which one of the following is output to the job log when included in an ABAP program running in the background?
a) Write statements
b) message statements
c) report parameters
d) Submit statements
62. Your program specs call for you to read the first 10 records from a text file (fname1), and write them out to another text file (fname2).
Which block of code will accomplish the result desired in the above scenario?
a) Open dataset fname2 for input in text mode.
Do 10 times.
Read dataset fname1 into hold_var.
Transfer hold_var to fname2.
Enddo.
b) open file fname1 for output.
Open file fname2 for input.
Read dataset fname1 into hold_var 10 times.
Transfer hold_var to fname2.
c) open file fname1 for input.
Open file fname2 for output.
Do 10 times.
Read file fname1 into hold_var.
Transfer hold_var into fname2.
Enddo.
d) open dataset fname1 for input in text mode.
Open dataset fname2 for output in text mode.
Do 10 times.
Read fname1 into hold_var.
Write hold_var to fname2.
Enddo.
63. sy-dynpro is
a) screen no
b) program
c) table
d) field name
64. Which of the following are NOT correct usage of BDC_cursor?
a) To position the cursor on a particular field.
b) To position the cursor on a particular field.
c) For fifth row of Table control
d) For fifth row of Table control
65. In case of background processing of a BI session, which authorization is checked?
a) Developer of the program that schedules BI Session
b) User who executes the BI session
c) User who executes the program that schedules BI Session
d) User ID that is passed to the BDC_OPN_GROUP function module inside the calling program
66. Which of the following are TRUE about Transaction Recorder?
a) Transaction Code is SHDB
b) Transaction Code is SM35
c) It can generate ABAP code for the BDC program automatically
d) It can generate ABAP code for the Call Transaction program automatically
SAP Script
67. The following are true about SAPscript control commands.
a) If a control command is unknown or it contains syntax errors, the line containing it will be printed out as it is.
b) If a control command is unknown or it contains syntax errors, the line containing it will be treated as a comment line.
c) A maximum of one control command may appear in each line.
d) A maximum of six control commands may appear in each line.
68. To output SAPscript layout sets, in the print program
a) You must always start the output with OPEN_FORM and end it with CLOSE_FORM.
b) Within one transaction, you can use only one OPEN_FORM and CLOSE_FORM to open and close a layout set.
c) WRITE_FORM should be used within an OPEN_FORM and CLOSE_FORM.
d) WRITE_FORM can be used without an OPEN_FORM and CLOSE_FORM.
69. Which transaction do we use for debugging SAP Script?
a) SE61
b) SE72
c) SE71
d) None of the above.
SAP Enhancements
70. The transaction cmod and smod are
a) Used to create enhancements to standard SAP programs.
b) Used to create enhancements to ABAP queries.
c) Used to create the user exits, menu exits and screen exits.
d) Used to modify the standard function groups.
Interfaces and Queries
71. What happens if we write COMMIT WORK is written within SELECT..END SELECT.
a) All the transactions will be committed.
b) The first transaction is committed and the program exits the loop.
c) Program will create a short dump
d) A runtime error will occur.
72. How many function modules can be present in a function group?
a) 30
b) 49
c) 99
d) There is no such limit
73. Can you call a subroutine of one program from another program, which is not an include program?
a) True
b) False
c) Not Applicable
d) Not Applicable
74. Which of the following statements is TRUE?
a) The ABAP statement ‘IMPORT ... TO MEMORY’ overwrites the old data in ABAP memory.
b) The ABAP statement ‘EXPORT ... TO MEMORY’ appends to the already existing data in ABAP memory.
c) The ABAP statement ‘EXPORT ... TO MEMORY’ overwrites the old data in ABAP memory.
d) The ABAP statement ‘IMPORT ... TO MEMORY’ appends to the already existing data in ABAP memory.
75. SAP Memory and ABAP/4 memory refer to the same memory space?
a) True
b) False
c) Not Applicable
d) Not Applicable
76. Which statement is INCORRECT when referring to SAP memory or ABAP memory?
a) SAP memory is also referred to as Global Memory.
b) SAP memory is available across transactions.
c) IMPORT/EXPORT (TO MEMORY) statements are used for SAP memory.
d) You can use ABAP memory to pass data between internal sessions.
77. Which one of the following are true about a function module?
a) Function modules CANNOT be created by a programmer.
b) Function modules are locally accessible objects.
c) Function modules use a memory area separate from calling program.
d) Function modules have inbound and outbound parameters.
IDOC
78. An IDOC structure is composed of
a) One substructure, substructure consists of several fields
b) Several segments, each segments has several data elements
c) Several substructures, each one made up of several data fields
d) Several segments, each segment consists of several data fields
79. Read the 2 statements below and pick the right answer choice
A. Archived files can be analyzed without reloading the file
B. An archived IDOC can be reloaded and then archived
a) A & B are true
b) Only B
c) Only A
d) Both are false
80. The transaction for archiving IDOC’s is
a) WARC
b) WEAR
c) SARA
d) SARC
81. An IDOC contains data for 3 purchase orders (type ORDERS01, with 1 mandatory segment, 11 other segments which are permitted to be multiple). Read the following statements which could describe the content of the idoc, and pick the right combination:
A. It will have 3 control records
B. It will have 1 control record
C. It will have a minimum of 3 data records
D. It will have a minimum of 1 data record
E. It will have a minimum of 48 data records
F. It will have at least 1 status record
G. It will have at least 3 status records
a) A, C, F
b) B, C, F
c) B, C, G
d) A, E, G
82. Which of the following statements is true?
A. An IDoc type can have many messages types associated with it.
B. An IDoc can have many messages associated with it.
C. A message type can be associated with many IDoc types.
a) A and C
b) A and B
c) Only A
d) All the statements
83. Pick the right answer
A. An idoc type is dependent on the direction of data flow (inbound/outbound).
B. The control record has a field ‘DOCTYP’ which indicates whether the IDOC is of the type inbound or outbound
a) Only A is true
b) Only B is true
c) A and B are true
d) Neither A nor B are true
84. The control record field which determines the direction of the IDoc can have values
e) ‘X’ and ‘ ‘ (space)
f) ‘1’ and ‘2’,
The meaning of the values is
C. X inbound, space outbound
D. X outbound, space inbound
E. 1 inbound, 2 outbound
F. 1 outbound, 2 inbound
Pick the right combinations of statements, which are true
a) A, C
b) A, D
c) B, E
d) B, F
85. The area menu from which EDI tools can be accessed is
a) WALE
b) WEDI
c) SALE
d) SEDI
86. The transactions for documentation on IDOC structures are
a) WE60 to WE64
b) SA60 to SA64
c) WE80 to WE84
d) SA20 to SA24
Report Programming
87. How do you check whether a report is submitted in background?
a) The system variable, sy-batch is set to ‘X’.
b) The system variable, sy-binpt is set to ‘X’.
c) The system variable, sy-calld is set to ‘X’.
d) Not applicable
88. Which transaction code is used executing a report (type 1 program)?
a) SE38
b) SA38
c) SM38
d) All of the above
89. When is the TOP-OF-PAGE event triggered?
a) After executing first write statement in start-of-selection event.
b) At every new page in the report output
c) After the REPORT statement
d) A and B
90. Which of the following additions for SELECT-OPTIONS would disable the ranges on selection screen?
a) NO-RANGES
b) NO INTERVALS
c) NO RANGES
d) NO-INTERVALS
91. What is the structure for the following select-options? Select-options: zname like ztable-name.
a) zname-sign
zname-value
zname-low
name-high
b) zname -sign
zname-option
zname-low
zname-high
c) zname -include
zname-pattern
zname-range
d) zname-sign
zname-option
zname-low
92. Following properties are given:
· Must use mara-matnr's conversion exit
· Is a required field
· Appears as 100 on the selection screen
· Check for a valid mara-matnr
Which one of the following is the correct way to define a selection-screen parameter (n) with the above properties?
a) parameters: n type I default '100'.
b) parameters: n like mara-matnr default ‘100’ obligatory.
At selection-screen on n.
Select single * from mara where matnr = n.
If sy-subrc ne 0.
Message e000(00) with 'Incorrect number'.
Endif.
c) parameters: n like mara-matnr default 100 obligatory.
d) parameters: n type I default 100 required.
At selection-screen on n.
Select single * from mara where matnr = n.
If sy-subrc ne 0.
Message e000 with 'Incorrect number'.
Endif.
93. Report specs call for a selection screen with 1 parameter inside a frame. Which code block will accomplish this?
a) Selection-screen begin of frame b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end of frame b1.
b) Selection-screen begin-of-frame b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end-of-frame b1.
c) Selection-screen begin-of-block b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end-of-block b1.
d) Selection-screen begin of block b1 with frame title t-001.
Parameters: p1 like ztable-field1.
Selection-screen end of block b1.
94. 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
95. You are required to create a selection screen with 1 input parameter: A date range which defaults to the last 1 week (today-7,today)
Which is the correct block of code for the above request?
a) select-options: s_date type date.
Initialization.
Move: sy-datum to s_date-high,
sy-datum - 7 to s_date-low.
Append s_date.
b) select-options: s_date for sy-datum.
Initialization.
Move: sy-datum - 7 to s_date-low,
sy-datum to s_date-high.
Append s_date.
c) select-options: s_date type d default sy-datum - 7, sy-datum.
d) select-options: s_date for sy-datum default sy-week,
96. Which one of the following statements is a valid use of the write command?
a) write text(3)(4).
b) write text(3)4.
c) write text+(3)(4).
d) write text+3(4).
97. When using an edit mask, which one of the following fields will be output with a leading sign?
a) field1 using edit mask '**_LLV'
b) field1 using edit mask 'RR__,_'
c) field1 using edit mask 'LL__,_'
d) field1 using edit mask 'V__'
98. For the events in Classical Reports :
1. Initialisation
2. At Selection Screen
3. Start Of Selection ( Get & Get Late in case of Logical Database )
4. End of Selection
5. Top of Page
6. End of Page
sequence of calling is :
a) 1,2,3,4, 5, 6
b) 2,1, 3,4, 5, 6
c) 1,2, 5, 6, 3,4
d) 2,1, 5, 6, 3,4
99. The sequence of events in Interactive Reports is
1. At Line Selection
2. At User Command
3. At PFKEY
4. Get Cursor
5. Read
a) 1,2,3,4, 5
b) 1,2,3,5, 4,
c) 1, 2, 4, 5, 3
d) 1, 3, 5, 4, 2
100. What is max no of lists u can attach to basic list?(interactive report)
a) 22
b) 20
c) 18
d) 1
General
101. If a break-point statement is written in an ABAP program and the program is run in the background mode, which of the following is true.
a) Break-point statement will be ignored and program will complete the execution.
b) System generates a Sys log message
c) Program will create a short dump
d) None of the above
102. When a program is created and transported the selections texts are always transported along with the program.
a) True
b) False
c) Not Applicable
d) Not Applicable
103. Programs and reports are client dependent.
a) True
b) False
c) Not Applicable
d) Not Applicable
104. Which transaction code is used for creating a background job?
a) SM37
b) SM35
c) SM36
d) SM38
105. Can variants be transported across systems?
a) Yes
b) No
c) Not Applicable
d) Not Applicable
106. Are variants client dependent?
a) Yes
b) No
c) Not Applicable
d) Not Applicable
107. What are the functions in the editor command line?
a) F1
b) F4
c) F3
d) F8
108. What does the transaction code /i1 do?
a) Shifts to the first session of the user
b) This terminates the first session of the user
c) Terminates the current session of the user
d) No transaction with this code exists.
109. Which transaction code is used for deleting the user lock on tables?
a) SE12
b) SE11
c) SM12
d) SM11
110. What transaction is used to create background jobs?
a) SM30
b) SM35
c) SM36
d) SM37
111. Which one of the following transaction types is INVALID?
a) Area
b) Modal
c) Variant
d) Report
112. Which one of the following statements are TRUE?
a) After a TRANSPORT REQUEST is released, no further changes to its' objects are allowed.
b) Development classes can be viewed by using transaction SE80.
c) Local objects CANNOT be transported to another instance. .
d) A TRANSPORT REQUEST contains objects that can be transported to Quality or Production SAP instances.
113. Which one of the following statements are FALSE about Inactive objects in SAP?
a) Development Objects are always saved as inactive versions.
b) An inactive version of a Development Object is written to developer’s pc
c) In DISPLAY mode, other users can NOT access the code of inactive version of a developer
d) Generating a runtime object is same as activating a development object.
Dialog Programming
114. Program specs call for screen 100 to appear in a modal dialog box.
Process After Input.
module do_something.
module do_something.
If field1 = 'X'.
Call screen '0100'.
Endif.
Endmodule.
Why does the above code fail to produce a modal box?
a) The code must occur in the PBO.
b) The screen is of the wrong type.
c) The screen should be numbered 900.
d) Screens are not called within modules.
115. Which one of the following statements would occur in the PBO of a dialog program using table control?
a) module user_command.
b) set screen '0100'.
c) loop at itab.
d) loop at itab with control itab_tc.
Subscribe to:
Posts (Atom)