ABAP Interview Questions Answers

Aired Consulting 6/10/2011 No Comment
Question 1:Lock Objects and Function Modules
What are the names of the function modules that will be generated upon activation of a lock object?
Answer Prior to creating setting any locks in an ABAP program, a lock object must be created in the ABAP dictionary'. When the lock object is created, the system will automatically generate the two function modules required for lock management.

The first function module used to set locks is the ENQUEUE_< Lock Object Name>. This function module is used to generate a lock entry in the lock table. If the lock cannot be set for any reason then this would be reflected in the return code.

The second function module used to release locks is the DEQUEUE_< Lock Object Name>. This function module will remove a lock entry from the lock table.

These function modules are used to set and release locks in an ABAP program. The programmer simply performs the specific "CALL FUNCTION..." statement for each function module.

These lock function modules are executed in a specific work process with the SAP system dedicated to lock management. This work process is run on a single server that maintains the central lock table for the entire SAP system.

There are two types of locks that can be set:
Shared lock - is a read only lock that prevents data from being changed while a user is reading it.
Exclusive lock - is a write lock that prevents data from being changed while a used is already modifying it.

Question 2:Update function modules
Update function modules are classified as either Vi or V2. Which type of update is performed first and in what mode (Asynchronously, Synchronously or locally) can each type be processed in?

Ans:
VI updates take priority over V2 updates and are therefore processed prior to V2 updates. Vi updates can be performed asynchronously, synchronously or locally. V2 updates always run asynchronously.

Question 3:ABAP Memory Exchanging
What two statements would be used to exchange data between programs using ABAP memory?
Answer:
EXPORT to MEMORY ID will copy data to ABAP memory and IMPORT from MEMORY ID is used to copy the data from ABAP memory into a program.
The data that is being exchanged via ABAP memory must be declared in the two programs involved with exactly the same data declarations.

Question 4:Authorization Objects
What are authorization objects and what statement is used to perform an authorization check in an ABAP program?
Answer
:Authorization objects are composed of a grouping of fields. The values in these fields will be used in an authorization check.

AUTHORITY- CHECK is the statement used in an ABAP program to perform an authorization check against an authorization object. In the AUTHORITY-CHECK statement, all fields of the object must be addressed or the keyword DUMMY is used to bypass checking on a field.

There can be a maximum of 10 fields defined on an authorization object.

Question 5:Modifications
What is the definition of a modification in an SAP system and how do they impact an upgrade?
Answer:

A modification is a change made by a customer to an SAP delivered repository object. Modifications must be reviewed during upgrade time to determine if the new SAP object should be used or if the modified object can still be used with or without further modifications.
Related Posts

No comments:

 

Aired | Copyright © 2009-2014| All Rights Reserved 2014 | Privacy Policy and Disclaimer

Contact Us | About Us