SAP ABAP Interview Questions Part-2
SAP ABAP Interview Questions Part-2
Questions
Part-2
49.What should be the approach for writing a BDC
program?
STEP 2: TRANSFERING THE FLAT FILE INTO SAP SYSTEM CALLED "SAP DATA
TRANSFER".
STEP 3: DEPENDING UPON THE BDC TYPE i)call transaction(Write the program explicity)
ii) create sessions (sessions are created and processed.if success data will transfer).
50.What is Field symbol ?
You can use field symbols to make the program more dynamic. In this example the
name of a table control is substituted by a field symbol. Thus you cal call the form with any
internal table, using the name of the table control as a parameter.
Example
forminsert_row
usingp_tc_name.
field-symbols<tc> type cxtab_control. “Table control
assign (p_tc_name) to <tc>.
* insert 100 lines in table control
<tc>-lines = 100.
51.The various numeric types definable in an ABAP
program are:
a) I, F, P, N
b) I, F, P
c) I, F, N
d) I, P, N
Ans: b
52.What is a batch input session?
BAPI”S provide the standard interface to other applications apart from SAP and
within differntvesions of SAP too. Also it is OOD bases so dosen”t depends on
screen flow.
BDC gets failed if we make changes for screen changes through IMG
customization.
54.Variables in an ABAP code can be defined as being
similar to data-dictionary elements, using:
a) LIKE
b) FOR
c) TYPE
Ans: a, b, c
55.What are the problems in processing batch input
sessions?
PROBLEMS:-
i) If the user forgets to opt for keep session then the session will be automatically
removed
from the session queue(log remains). However if session is processed we may
delete it
manually.
ii)if session processing fails data will not be transferred to SAP database table.
56.What are the advantages and disadvantages of
using views in ABAP programming ?
advantages: view is used to retrieve the data very fastly from the database tables
*memory wastage is reduced
*faster than joins to retrieve the data from database tables
disadvantages:
view is not a container,it will not hold the data.
57.Constants and internal tables are defined using the
keywords (respectively):
Ans: a
58.How many types of tables exists and what are they
in data dictionary?
4 types of tables
i)Transparent tables - Exists with the same structure both in dictionary as well as in
database exactly with the same data and fields. Both Opensql and Nativesql can
be used.
ii)Pool tables & iii)Cluster tables -
These are logical tables that are arranged as records of transparent tables.one
cannot use
native sql on these tables
(onlyopensql).They are not managable directly using database system tools.
iv)Internal tables -
59.Have you used performance tuning? What major
steps will you use for these?
Ans: a
61.What is the step by step process to create a table in
data dictionary?
a) TRUE
b) FALSE
Ans: a
64.Question. Can a transparent table exist in data
dictionary but not in the data base
physically?
NO.
a) NE
b) <>
c) ><
d) NEQ
Ans: a, b, c
67.What are the domains and data elements?
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 transcation 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.
69. S1 = ‘ABCAB’.S2 = ‘ABCD ‘.IF S1 CN S2.WRITE
‘a’.ELSE.WRITE ‘b’.ENDIF.Output of above code is:
a) a
b) b
c) Compilation error
d) Blank
Ans: b
70.What is a collect statement? How is it different from
append?
If an entry with the same key already exists, the COLLECT statement does not
append a new line, but adds the contents of the numeric fields in the work area to
the
contents of the numeric fields in the existing entry.
71.What are the different types of data dictionary
objects?
a) TRUE
b) FALSE
Ans: B
73.What is open sql vs native sql?
Open SQL , native SQL are the interfaces to create the database applicatons.
Open SQL is consistant across different types of existing Databases.
Native SQL is the database language specific to database.Its API is specific to the
databse.
Open SQL API is consistent across all vendors
74.What is the step by step process to create a table in
data dictionary?
a) True
b) False
Ans: A
76.What is an interactive report?
An Interactive report is a dynamic drill down report that produces the list on
users choice.
diff:-
a) THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to
interact with the
system
the list produced by interactive report allows the user to interact with the system.
b) ONCE A CLASSICAL REPORT EXECUTED USER LOOSES CONTROL.IR
USER HAS
CONTROL.
c) IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.IN INTERACTIVE
DRILLING IS
POSSIBLE.
77.Can a transparent table exist in data dictionary but
not in the data base physically?
a) YES
b) NO
Ans: a
79.How do you write a function module in SAP?
describe.?
domains:
___________
domains are the dictionary objects that are assigned with constants and data types
data elements:
______________
data elements are dictionary objects that are assigned with the domains.
uses:‟
* data elements are used to create relation between tables.
* data elements are used to transfer the data from one R/3 to another R/3.
* to create search helps.
81.The presentation server is actually the program
named SAPGUI.
a) True
b) False
Ans: a
82.What are internal tables? How do you get the
number of lines in an
internal table? How to use a specific number occurs
statement?
i)It is a standard data type object which exists only during the runtime of the
program.
They are used to perform table calculations on subsets of database tables and for
reorganising
the contents of database tables according to users need.
ii)using SY-DBCNT.
iii)The number of memory allocations the system need to allocate for the next
record
population.
83.What is a collect statement? How is it different from
append?
APPEND :
IT IS USED TO GET THE RECORD FROM THE INTERNAL TABLE HEADER TO
THE
BODY AREA
IT ALLOWS DUPLICATION
COLLECT:
IT IS USED TO A GET A RECORD FROM HEADER TO THE BODY AREA BUT
IT WILL
NOT ALLOW ANY DUPLICATION EXCEPT IF THERE IS ANY NUMERIC FIELS
IT
ADDS THAT FIELDS DATA BUT NOT AS A NEW RECORD.
84.On ABAP: Did you set up a workflow? Are you
familiar with all steps for setting
up a workflow?
Yes.
Execute the TxnSWDD(Creating a new Workflow).
In the header of the Workflow, define the Business Object and Event you refer to
for triggering
the Wf.
Create the Steps required for your workflow(Activity).
Inside the Activity, Create the task and assign the Business Object and the related
method for
that business object.
Activate the Workflow.
85.When is Top-of-page event executed
Ans: b, c
86.How do you take care of performance issues in your
ABAP programs?
Group by clause is used to fetch the data from the table by the specified field
ex.select count (*) from emptable group by deptno where deptno = 1.
It is used to find the number of employees present in the specified department no.
88.What are logical databases? What are the
advantages/disadvantages of logicaldatabases?
We look into the list of incorrect session and process it again. To correct
incorrect session we analyize the session to determine which screen and value produced
the error.For small errors in data we correct them interactively otherwise
modify batch input program that has generated the session or many times even the
datafile.
91.What are screen painter? menu painter? Gui status?
Elementary -
predefined C,D,F,I,N,P,T,X.
userdefined TYPES.
ex: see in intel book page no 35/65
Structured -
predefined TABLES.
userdefined Field Strings and internal tables.
96.What is the difference between a pool table and a
transparent table and
how they are stored at the database level.
For cardinality one out of two (domain or data element) should be the same for
Ztest1 and Ztest2 tables. M:N
Cardinality specifies the number of dependent(Target) and independent (source)
entities
which can be in a relationship.
THANK YOU..!!
For regular Updates on SAP ABAP please like our Face book page:-
Face book:- https://www.facebook.com/bigclasses/
Twitter:- https://twitter.com/bigclasses
LinkedIn:-https://www.linkedin.com/company/bigclasses/
Google+:https://plus.google.com/+Bigclassesonlinetraining
SAP ABAP Course Page:-https://bigclasses.com/sap-abap-online-
training.html
Contact us: - India +91 800 811 4040
USA +1 732 325 1626
Email us at: - [email protected]