abap master
TRANSCRIPT
-
8/10/2019 Abap Master
1/79
MASTER TECHNICAL QUESTION IN ABAP:
1. What is ABAP?
Ans: Advanced Business Application in Data Processing
2. What is tcode for ABAP Coding
Ans : SE38 - ABAP Editor
3. How ABAP Work for business.
Ans : When business requirement comes then functional peoples map this requirement as per
business needs , they build template with details table mapping . and once its is finalize its
customization develop by ABAPER called developer.
4. How Many Modules supported by ABAP.
Ans : Mostly All (SD,MM, PP, QM, HR..... etc)
5. How many Objects types in ABAP.
Ans: Objects type are Reports, Conversation , Forms , Interfaces , Enhancements.
6. How to create client independent tables?
Ans: The table in which the first field is not mandt is the client independent tables.mandt is the
field with mandt as the data element. automatically client which we login is populated to mandt.
7. What is the difference between Type and Like?
TYPE, you assign data type directly to the data object while declaring.LIKE, you assign the data
type of another object to the declaring data object. The data type is referenced indirectly.
8. Which one is not an exit command ? (Exit, cancel, stop, back)
The statement STOP is only to be used in executable programs
If the EXIT statement is executed outside of a loop, it will immediately terminate the currentprocessing block.
Back statement positions the list cursor on the first position of the first line in a logical unit.
So "Cancel" is not an exit command.
9. What is the difference between synchronous and asynchronous update?
1
-
8/10/2019 Abap Master
2/79
In synchronous updated the parent table is updated along with the child tables and then a sy-
subrc is returned. 0 for successful and 4 or 8 for not successful.
While in asynchronous updating after the updation of the parent table we get a sy-subrc return.
The system is not bothered if the child tables are updated or not.
10. What is bdcmsgcoll and how it works with call transaction method?
BDCMSGCOLL is a structure available in the abap dictionary. We use this to handle errors in
call transaction. We need to declare an internal table like bdcmsgcoll. When a database table is
updated we get some messages like successful , or not successful or successful with some warning
message.
All these messages pass through this structure. We can capture them using a function module
called FORMAT_MESSAGE.
11. What is BDC recording?
In BDC recording you record the transaction through which you want to upload data. This tool will
create a program for you and you don't need to create the program manually. You can code both
call transaction and session method using this tool .
12. Which table stores the Programs created?
Table: TRDIR
13. How can we compare two programs
Ans: SE30
14. Describe data classes.
Master data: It is the data which is seldomly changed.
Transaction data: It is the data which is often changed.
Organization data: It is a customizing data which is entered in the system when the system is
configured and is then rarely changed. System data:It is the data which R/3 system needs for
itself.
2
-
8/10/2019 Abap Master
3/79
15. What is foreign key relationship?
A relationship which can be defined between tables and must be explicitly defined at field level.
Foreign keys are used to ensure the consistency of data. Data entered should be checked againstexisting data to ensure that there are now contradiction. While defining foreign key relationship
cardinality has to be specified. Cardinality mentions how many dependent records or how
referenced records are possible.
16. The following statements will clear the header-line of an internal table:
Ans: CLEAR ITAB.
17. The AT-SELECTION-SCREEN event is triggered when.
Ans: ENTER key is hit on the selection-screen & F8 key is hit on the selection-screen
18. The statement used to clear all the contents of an internal table is.
Ans: REFRESH itab & FREE itab.
19.In an ABAP program, the INITIALIZATION event is invoked
Ans: Before the AT-SELECTION-SCREEN event.
20. In a BDC program, how would you handle errored records? Would you
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.
21. The transaction CMOD and SMOD are
a) Used to create enhancements to standard SAP programs.
c) Used to create the user exits, menu exits and screen exits.
22. To output SAPscript layout sets, in the print program
3
-
8/10/2019 Abap Master
4/79
a) You must always start the output with OPEN_FORM and end it with CLOSE_FORM.
c) WRITE_FORM should be used within an OPEN_FORM and CLOSE_FORM.
23. 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
24. EXTRACT statement
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.
25. What are field symbols?
a) Field symbols are like pointers in C that can point to any data object in ABAP/4
d) All operations you have programmed with the field symbol are carried out with the assigned
field.
26. READ TABLE ITAB_TEST WITH KEY VBELN = k_vbeln.
If multiple records in table ITAB satisfy the condition, then
c) The first record is fetched
27. The fastest way to read a value in an internal table is to:
c) Directly specify the index value
28. If COLLECT is used on an internal table, which has a non-key character field.
4
-
8/10/2019 Abap Master
5/79
c) Compilation error
29. Which is the correct syntax for sorting an internal table?
b) SORT ITAB BY key1 key2.
30. If we need to fetch all db entries corresponding to a given key, X records at a time,
the syntax to be used is:
b) SELECTPACKAGE SIZE X.
31. MOVE can be used to copy:
a) One fields contents to another field
b) One structures contents to another compatible structure
c) One tables contents to another compatible table
d) A part of one field to another field
32. The user-list in a given SAP client can be found using transaction.
c) SM04
33. 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
34. Which of the following statements can work without a corresponding END-
statement?
d) SELECT
35. In an ABAP program, we can specify a variable to be of HEXADECIMAL type.
a) TRUE
36.In an ABAP program, we cant specify a variable to be of OCTALL type.
37.The default length of a field of type time(T) in an ABAP program is:a) 6
38.The various numeric types definable in an ABAP program are:
a) I, F, P,
39.Variables in an ABAP code can be defined as being similar to data-dictionary
elements, using:
5
-
8/10/2019 Abap Master
6/79
a) LIKE
b) FOR
c) TYPE
40.Constants and internal tables are defined using the keywords (respectively):
a) CONSTANTS and TABLES
41. There are 8 elementary data-types, and hence, 64 possible conversions. Of these.
a) Type D and T cannot be inter-converted.
42. If a structure does not contain internal tables as components, we can equate two
structures of incompatible types.
a) TRUE
43. For an inequality check between two variables, the symbol used is:
a) NE , , >