Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

MCQ-SAP ABAP

1.True about Table maintenance generator.

 It creates a program to maintain entries in table


 Open the table in se11 in changes mode and navigate to utilities->table maintenance generator
to generate the same.

2.within ABAP, what is used to access application data in the database, independent of the
corresponding RDBMS?

 Open SQL

3.AMDP is created in which layer?

 ABAP layer

4.Which function modules can be used to generate jobs?

 Job_open, job_close, job_submit

5.how to find BADI?

 Search in program by keyword CL_EXITHANDLER


 Debugging using class CL_EXITHANDLER
 Using global search transactions and search in SPRO
 Search call customer-function
 Using t-code SMOD

6.What message is displayed at the bottom of the next screen, therefore, the user cannot make any
changes to the values on the current screen.

 Abend

7.What message is displayed at the bottom of the current screen where the user must make changes to
the values on the current program. After accessing the ‘ENTER’ key on the current screen, the user will
be taken to next screen only if appropriate corrections made?

 Warning

8.A static constructor is always named as CLASS_CONSTRUCTOR .

It gets executed with every new instance of the class.

 1st is true 2nd is false

9.HOW TO IMPROVE THE PERFORMANCE WHEN ACCESSING A DATABASE TABLE HAVING LARGE DATA VOLUME ?
11. output Q……

 LT->*
Name Age

Neena 30

Sarath 29

Nani 31

12.which server does text analysis in HANA?

 Pre-processor Server

13.when a table is read frequently and the data seldom changes. It is better to

 To buffer the table

14.In hana which among the following helps in parallel processing of the data and hence use the
underlying hardware to its full capacity?

 Multi-nodes, multi-core CPUs

15.cds output Q

 SQL view name ZCDS_DEMO_13 and DDL view name ZCDS_DEMO_13 cannot be identical

16.DYNPRO in bdcdata?

 Screen Number

17.Which processing mode in session message display termination message?

 Display errors only

18.A Pseudocode , sy-subrc values is showing 4?

 Unknown exception occurred

19.Options can be utilized to import data using LSMW?

 Direct input
 Batch input
 BAPI
 Idoc

20.An architect has to eliminate the size of HANA which is called as HANA sizing. HANA sizing done using
tools?

 ABAP reports
 DB scripts
 Quickie Tool

21.True about Use of batch input.

 Can be processed automatically without human intervention


 Can process large amount of data
 Uses std SAP transactions, just as if the data were entered manually.

22.CDS views created on top of which database?

 All databases- oracle, HANA, Seibel, IBM

23.True about performance tuning.

 If primary key fields are not available to use in where, use fields such that atleast one index on
DB will be used.
 Make sure internal table used in FOR ALL ENTRIES is not empty.

24.Topic-ABAP subtopic-Enhancements

Customer EXITS and FORMS are called by SAP std program using PERFORM?

 False (only forms is called by performs)

25.True about user exits.

 Are basically designed for module SD


 Doesn’t have any classification
 Considered modification, because we are modifying technical objects in SAP namespace

26.What requires driver program and is client dependent?

 SAPscript

27.WHAT PERMITS YOU TO CONTROL THE IMPLEMENTATION AND MAKE IT RELIABLE ON SPECIFIC CRITERIA ( E.G.-
ON A SPECIFIC C OUNTRY VALUE .)

 BADI

28.Topic: ABAP Sub-Topic: Forms

While creating table in smart forms, how many columns can be created in LINEtype?

 Any

29.True about Smartforms?

 You can write our own ABAP statements in the Smartforms as well.
 Graphics can be included as background or as form elements.
 Client independent

30.Choose the three nodes which will be there by default when you create smartforms newly?
 Form attributes
 Form interface
 Global definition

31.Topic : ABAP basics Sub-topic: Module Pool

What happens when LEAVE SCREEN is encountered? Choose most appropriate option.

 The system immediately terminates the current screens PAI event and goes to the PBO event of
the screen specified in NEXT SCREEN attributes.

32.Match the following about text node in smartform.

 Text elements- locally in form


 Text modules- for reusing text
 Include texts- for including SAPscript texts

33. PROCESS AFTER INPUT

CHAIN

FIELD: YMOVIE-AAYEAR,
YMOVIE-CATEGORY,
MODULE SELECT_LISTING.
ENDCHAIN.
What will happen when error is generated from module select_listing?

 The FIELD statements will leave both the YMOVIE-AAYEAR and YMOVIE-CATEGORY fields
editable

34.WHICH EVENT WILL BE EXECUTED BEFORE THE SCREEN IS DISPLAYED TO THE USER?
 PBO
35.I have, Only one returning parameter, only importing parameter, Exceptions are possible. Who am i?
 Functional method

36.Which global classes needs to be instantiated in order to achieve ALV OOPs?


 CL_GUI_CUSTOM_CONTAINER
 CL_GUI_ALV_GRID
37.In module program screen, there is an input field INPUT of type Char. In the flow logic, VALUES
statement is used like below.
FIELD input vaues (‘AA’, ‘AB’, ‘LH’)
What exactly does this statement do during execution?
 It will restrict the user to enter only ‘AA’, ‘AB’, or ‘LH’.
 It will add F4 help values to input having only ‘AA’ , ’AB’ and ‘LH’.
 It will give error message if user is not entering ‘AA’,’AB’ or ‘LH’
38.How to create static attributes in a class?
 Class-data
39.what changes will you do to the below source code to improve?
Select*from sflight into table lt_sflight.
Select*from scar into table lt_scarr
For all entries in lt_sflight
Where carrid = it_sflight-carrid.
Loop at lt_scarr into lw_scarr.
Write: / lw_scarr-carrid, lw_scarr-carrname.
Endloop.
 Avoid using select *
 Delete duplicates from lt_sflight before using in for all entries
 Check lt_sflight is empty or not before using in for all entries

40. ABAP: Basics Sub-topic: Background jobs


If a job has been created but has not been released yet. What is the state of this job now?
 Scheduled

41.Match the following.

 Developemet correction- All custom objects or workbench objects are saved under
development / correction task.
 Repair- changes in sap standard objects using SNOTES are always saved under correction tasks
 Unclassified-When a new task is created, it always gets created with type unclassified.

42.match the following.


 Main window- printing continuous o/p
 Secondary window- printing fixed length o/p
 Final window- contents printed at last
 Copies- to make copies of original pages

43.How to provide default values to screen fields?


 Using PBO module and Parameter ids
44.How to instantiate object in program
 CREATE Object <object_name>

45.predict the output of oops one(a long code, only answer)


 Syntax erroe- Instances of the abstract class cannot be generated

46.Topic: ABAP Sub-topic: Reports


Data:begin of itab occurs 0,
Value type I,
End of itab.
Itab-value = 1.
Append itab.
Itab-value = 2.
Append itab.
Refresh itab.
Write:/1 itab-vale .

 2

47.Value range is specified in


 Domain
48.When you create a lock object system automatically?
 Create 2 function module-Enqueue and Dequeue
49.What is a combination of fields from one or more related tables, but doesnot contain any data?
 View
50.In sales and distribution, division
 Groups material and services

51.What type of data is purchase order?


 Transaction data
52.What type of data is G/L Accounts?
 Master data
53. What option in SE11 should be selected to create ‘Structure’
 Data Type
54.Which among the following guarantees the integration between all of the application modules and
are platform independent?
 R/3 BASIS system
55.What is the the Top of hierarchy to divide financial accounts
 Company Code
56.how to print year in sy-datum?
 Write sy-datum(4)
57.Performance tuning
 Donot use joins on cluster tables like BSEG
 Never nest logic within a Select statement.
58.How many main windows can we create in a smartform
 One
59.All types of processing available in Function modules?
 Normal
 Remote-Enabled
 Update
60.A structure is created and need the same to be added in multiple tables.
 Include, append
61.Enhancement section and points are part of
 Explicit Enhancements
62.what can have multiple implementation and multiple customers can use them simultaneously.
 BADI
63.New functionality supported on OPEN SQL in JOIN options in ABAP perspective?
 Right outer join
64.Topic: Module pool Sub_topic: Tabstrips
 It allows user to navigate between sub screen
 Tabstrips screen may change with or without the application server
 Subscreen allows to create more dynamic user interfaces
65.Topic:ABAP Basics sub_topic: Module pool
Instead of coding ‘SET PARAMETER ID’ statement in PAI module, we can set what field attribute in
screen?
 SPA
66.What is type ‘X’ message?
 Exit
67.Which method updates SAP db tables directly via SAP open SQL?
 ALL- BDC, CALL TRANSACTION , DIRECT INPUT
68.In flow logic of screen, there is a statement like below. What will this do?
PROCESS AFTER INPUT.
FIELD carrird MODULE validate ON REQUEST.

 Module ‘validate’ will be executed only if value for XYZ fied changes to another value.

69.Debugger, which function key executes one statement. If we do this on PERFORM or a call , Control
wont go inside subroutine/function but will be processed?
 F6
70.An event handler method can be defined as ________method?
 Any method
71.Which standard program can be used to schedule session processing in background?
 RSBDCSUB (d)

72.Match the following.


 Workbench Requests- (c) Any changes in custom developed( or workbench) bojects are saved
under this request.
 Customizing Requests – (d) Any changes in system configuration are saved under this.
 Transport of Copies- (a) used for copying between anu 2 systems in a group . Objects donot
change their system owner, so the original system remains the same.
 Relocation – (b) used if development system of a compete pkg needs to be chngd on permanent
basis.

73.CALL TRANSACTION will help to capture messages?


 MESSAGES

74.In BDC program, while updating BDCDATA work area, it is mentioned like below. What is (01)
indicates?
Lw_bdcdata-fnam = ‘BDC_CURSOR’.
Lw_bdcdata-fval = ‘KNBK-BANKN(01).
 Step loop line number

75.Which node of smartforms is used to pass values from print prog.?


 Form interface

76.What is also placeholder but comes with default code in enhancement framework?
 ENHANCEMENT-SECTION

77.How to terminate Do loop?


 EXIT

78.Which is the logical partition of the DB within an instance?


 Client
79._________ function module is used to read the input field for the BADI_SORTOR?
 BADI_SORTER_LAYER_GET

80.Which is the option provided explicitily by SAP to replace a block of SAP code with customer?
 Enhancement Section

81.FOR WHICH OBJECTS YOU NEED TO USE FUNCTION CODE IN MENU PAINTER?
 MENU ITEMS
 APPLICATIONS AND STANDARD TOOL BAR BUTTONS
 FUNCTION KEYS

82.How to address static attributes of class within calling program?


 <classname>=><class_attribute>

83.New feature introduced in OPEN sql in abap 7.4 upgrade?


 RIGHT JOIN

84.What is the first screen you see when executing the transaction of Smart Forms?
 Form builder

85.For successful data migration what is commonly performed to improve data quality by eliminating
redundant or obsolete information.
 Data cleaning

86.Which among the following is not a session status in SM35?


 Errors

87.How to implement a local class?


 Class cl_main IMPLEMENTATION.
ENDCLASS.

88.In pc editor, texts can be entered in?


 Text elements
 Include texts
 Text modules
89.How to find a BADI?
 Search in prog by keyword cl_exithandler
 Debug using cl_exithandler
 Using global search transaction and search in SPRO
90.if you search for call customer-function in program you will find
 User exits
91.in a module pool program, in the screen there is an input box whose technical name is CARRID.
In the flowlogic, there is a piece of code like below.

Module user_commanding_0100 INPUT.


If carrid = ‘AA’.
Message ‘you hv entered AA type ‘T’.
Endif.
Endmodule.
When we activate the main program , the error below is displayed.
Field ‘CARRID’ is unknown. Why?
 The variable CARRID is not declared in top include declaration.

92.Consider the source code below. Whichmodule will be executed before the screen is displayed?
PBO.
MODULE read_data.
PAI.
MODULE calculate.
 Read_data

93.SAP_ABAP which is not a type of transport.


 Development
94.SAP_ABAP statement “call screen 200” does ?
 Temporarily branching to screen 300.

95.SAP_ABAP a do loop increments the system field _______?


 Sy-index

96.We can change the data in Adobe form. True or false


 True
97.Predict the o/p
CLASS find_time definition
Public section.
Methods :
Endclass
………….. lo_ref->time().

 Sysntax error
98.Topic:ABAP Basics Sub_topic: Interactive Reports.
What is the command to read the list at the cursor position?
 Get cursor field

99.Predict the o/p of below source code.

Lw_data-name = ‘vimal’.
Append lw_data to lt_data.
Clear lw_data.
Lw_data-name = ‘jisha’.
Append lw_data to lt_data.
Clear lw_data.
Lw_data-name = ‘lekha’.
Append lw_data to lt_data.
Clear lw_data.
Append lw_data to lt_data.

 4

100.which statement is true about function module calls on BDC session method? (1 4)
 When BDC_OPEN_GROUP is used, it is mandatory to close session using BDC_CLOSE_GROUP
 BDC_INSERT requires data in BDCDATA format

101.Choose all the statements true about transport requests.(a c d)


 A transport request is completed when it is released
 Once released, the objects involved in TR are then stored in the …
 Once released, the transport request can be changed.

102.What is true about data element?


 A data element describes the function of a domain in a particular context.
 We cannot create data element without a domain.
103.Which is also known as cube?
 Analytical view
104.What is true about CDS views?
 Can be viewed in se11 but modification of the views are done only in eclipse or HANA studio

105.True about INITIALIZATION event in program. (1,2,4)


 Main purpose of this section is to calculate/populate default values for screen fields.
 The statements under this section are executed when the program is run directly
 The statements in this section are not exceeded when the program is run in background/batch
mode.

106.Three methods to perform user-efined field checks.


 Issue error or warning message in PAI Module
 Issue error or warning message based on the outcome of SELECT statement in flow logic
 Use VALUES statement in flow logic to define the valid values

107.In code-Pushown technique


 Processing in the database layer leads to better speed than processing in application layer

108. oops code


 This is parent class: 10 44 10
This is sub class: 10 44 10

Some random Questions for which I don’t have the question .


So answers are:-
1.Using MATCHCODE OBJECT
2.FOR HDB

Q1.Table is buffered means, data is available in


Ans. Application Server

Q9.What is true about AMDP method


Ans.No returning parameter

You might also like