SAP ABAP Interview Questions



Q.1 How to create client independent tables? 
client independent tables:
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

Q.2 What type of user exits have you written? 
There are four types:
1.function exit
2.menu exit
3.screen exit.
4.field exit. 

Q.3 How can you debug a script form?

SE71 -> give the form name -> utilities -> activate debugger 

Q.4 How do we debug sapscript? 

First we need to put Break point in Print program where ever you want to stop the execution. 
After in SE71 give your form name and go to Utilities-->Active De-bugger. 
Then go to your transaction like VF03(for Invoice or Credit memo) etc to see the print preview or print the form execute it. 
When you execute it the the form Debugging will get activated and you can see your Form execution step by step.


Q.5 What are the different types of data dictionary objects?
Answer 1
Data Dictionary Objects
  • Tables
  •  Views
  •  Domain
  •  Data Element
  •  Type Groups
  •  Search Helps/Matchcode Objects
  •  Lock objects
  •  Structures
  •  Table Types

Answer 2

The dictionary objects are:
domain
data elements
tables
views
structures
type groups
search helps
lock objects etc which are data base related objects in sap

Q.6 What is the step by step process to create a table in data dictionary?
Answer 1:
steps to create database tables 
1.go to SE11 
2.give name the database table 
3.give short description for the table 
4.Give delivery class name as A and data browser / table view main as Display/maintenance allowed 
5.select fields tab 
6.give field name data type(user defined element type/built-in-type),short text 
7.select technical settings tab ,give data class as appl0 and size category as 0 
8.save it 
9.go utilities menu click table contents select create and enter the field values then select display in table contents and u can view the table values with field lables 

Answer 2
bottom to top approach: 
 
step 1: 
creating a domain: 
*se11,select the object type as domain ,name it ,create,description,enter the datatype and length(size),save ,activate 
step2: 
creating a dataelement; 
se11,select the object type as :date element,name it ,create,desc,assign it with a domain what we created now,save,activate it. 
step3: 
creating a table; 
se11,select the object type as table,name it, create, 
enter the field name and assign it with the data element instead of assigning a datatype to it, 
like this create required fields: 
on behalf of this: 
table maintenance: 
assign the type of the table i.e. A C G L S 
NEXT 
maintenance: 
allowed,not allowed ,allowed with restrictions 

fields of a table:(as described above) 

technical settings: 
A0 
OR 
A1 
AND 
BUFFERED OR NON-BUFFERED

Q.7 Can a transparent table exist in data dictionary but not in the data base physically?
Answer 1
NO. TRANSPARENT TABLE DO EXIST WITH THE SAME STRUCTURE BOTH IN THE DICTIONARY AS WELL AS IN THE DATABASE,EXACTLY WITH THE SAME DATA AND FIELDS.
No,
at the point you will activate your table a same transparent table is going to be create in database

Answer 2
Yes, a transparent table(definition) can exist in the data dictionary and not in the database. In this case, it is not activated

Q.8 What is ALV programming in ABAP? When is this grid used in ABAP? 

ALV is Application List viewer. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain up to 90 columns in the display with the wide array of display options.


No comments:

Post a Comment