SAP DB Interview Questions and Answers
Question - 1 : - What are the tools used in SAP Implementation? How do you create Alert Messages?
Answer - 1 : - One of the Tools being used for SAP Implemention is QuickSizer, which is used to size the SAP Server based on number of users using various modules in SAP.
Alert Message is created in the CCMS monitor using TCodes RZ20 and RZ21. The values for Alert AutoReaction Methods are defined using the TCode RZ21, while this particular method is assigned to the Monitoring Tree Element (MTE) in the TCode RZ20.
One as well can have an Alert Management System, where alerts from the Entire Landscape can be configured in a Central Monitoring System from where it can trigger a alert mail or SMS to the concerned Administrator
Question - 2 : - When spool buffer is full and new spool request is raised what happens to the request ? where does the request stored?
Answer - 2 : - The new spool request will be in the queue. If it is urgent request then the current request will be be stoped and newrequest will be send.
Question - 3 : - What is the difference between R3trans and Tp in SAP-DBA?
Answer - 3 : - R/3trans is the R/3 system transport program which can be used for transporting data between different SAP systems ,even when they dont belong to the same group. R3trans normally is not used directorly but called from the Tp controle program or by the R/3 upgrade. Tp is the basic tool for the transporting the request.
Question - 4 : - What is “Group by” in Select statement?
Answer - 4 : - 1: -
Group by is used to fetch a unique data from a column.
2: -
A "group by" is used to group selected rows in a table to perform arg functions on them. Rows not included in the "group by" clouse and not part of ARG functions cannot be used ...(logical grouping of data) or orerations performed (on groups of data) can be used with the "HAVING" clause to further refine the output.
ex of some ARG functions : SUM() , MIN(),MAX(), AVG()
Select statement to read data into internal tables. Types of Select statements
select * from database table into (internal table name)
the above statement collects data into the header area of the internal table.
and
select * from database table into table (internal table name)
the above statement collects the data into the body area directly .
Question - 5 : - Explain “Commit” and “Roll back” ?
Answer - 5 : - The Oracle RDBMS provides a transaction model based on a unit of work. The PL/SQL language supports most, but not all, of the database model for transactions (you cannot, for example, ROLLBACK FORCE). Transactions begin with the first change to data and end with either a COMMIT or ROLLBACK.
COMMIT makes the database changes permanent and visible to other database sessions.
ROLLBACK undoes the changes made in the current transaction either to the beginning of the transaction or to a savepoint. A savepoint is a named processing point in a transaction, created with the SAVEPOINT statement. Rolling back to a savepoint is a partial rollback of a transaction, wiping out all changes (and savepoints) that occurred later than the named savepoint.
Question - 6 : - What happens “Update” command is used without where clause ?
Answer - 6 : - 1: -
It will update all the records with same name in the particular field of the table.
2: -
If we dont mention "WHERE" clause in the UPDATE statement, it will update all records satisfying the given condition (if given any ) in the table !
3: -
Based on query condition. it will update all the fields which are mentioned in the query.
ex: update employee set firstname= @firstname,lastname=@lastname where employee_id =@employee_id.
so in the above case nothing wil be happen if you used where clause or not.
if you have many statements in the query you need to use the where clause.
Question - 7 : - What are logical databases?
Answer - 7 : - 1: -
insert' will add a new record or a new row into the database table.
'Update' will modify a record in the DB table.
'Modify' it is a combination of both insert and update...
2: -
INSERT - Add a new record into the database table.
MODIFY - If record is available it modifies otherwise it wont modify.
UPDATE - If record is available its update the record otherwise it creates a new record.
Question - 8 : - Difference between “Insert”, “Update” and “Modify” ?
Answer - 8 : - INSERT - Add a new record into the database table.
MODIFY - If record is available it modifies otherwise it wont modify.
UPDATE - If record is available its update the record otherwise it creates a new record.
“Catch” Command
Trying to catch any runtime errors programmatically or manually we use this statement catch.
Question - 9 : - Tell me briefly about SAP
Answer - 9 : -
SAP stands for Systems Applications and Products in Data Processing. It was founded in 1972 by Wellenreuther, Hopp, Hector, Plattner, and Tschira and is a German Company.
SAP is the name of the company, as well as its ERP product.
SAP is #1 in the ERP market. As of 2010, SAP has more than 140,000 installations worldwide, over 25 industry-specific business solutions, and more than 75,000 customers in 120 countries.
Question - 10 : - What is ERP?
Answer - 10 : -
ERP stands for Enterprise Resource Planning Software and is an integrated computer-based system used to manage a company’s resources effectively. It ensures smooth information amongst various departments in an enterprise or a company and manages workflows.