Professional Documents
Culture Documents
Most Frequently Asked Interview DIFFERENCES 1.sapscript and Smartforms
Most Frequently Asked Interview DIFFERENCES 1.sapscript and Smartforms
Smartforms has Only 1 main window while Sap script has 99 main windows
In BDC we have to take care of field mapping whereas field mapping is taken care by
sap in lsmw.
BDC is mostly used for customised data upload while LSMW is used for uploading
Master data.
In BDC we need to write large code but in LSMW small coding is needed.
BADI is business add ins, it is used to customize the standard business flow
User exit is an include program given by SAP in that you can write your code , It
needs Access key from SAP while key is not required in case of customer exit
Select single will fetch only one record while select up to n row. Will fetch n rows
from database
To display the output in ALV we have different function modules and class like
REUSE_ALV_GRID_DISPLAY , REUSE_ALV_LIST_DISPLAY and
CL_SALV_TABLE.
If you run the classical report in background after JOB finished you can see its output
which stored in spool, While in case of ALV you need code extra to store the output as
it will not generate the spool.
You cannot retrieve the output for the report which is displayed using ALV GRID
Display.As spool Request will not be created for the same. While in case of list
display Report out put will be there in spool request.
In classical report user cannot interact with report whereas in drill down report user
can interact with report.
Drill down facility is not provided in classical report while in drill down it is
provided.
If they ask you in detail then tell the interviewer that interact with the report means in
drill down report we have one basic list and 20 secondary lists so we can directly go
to 5th list or 10th list as per our requirement similarly we can come back to any list.
Drill down means showing data in basic list first and when we double click on any
field we get summarised list. NOTE:- to go to next list in drill down report use
following syntax SY-LSIND = < list number> example: to go to 15th list SY-LSIND
= 15 to come to 5th list from 15th list use F3 KEY OR PRESS BACK BUTTON
Get cursor will provide the location cursor position in the report
While hide is use to pass the data from basic list to secondary list
You cannot call normal function module from outside the current system while RFC
function module can be called from outside the SAP system.
To call subroutine from outside its main program you need to write its main program
name in the bracket
All dynamic commands and screen modification is done in AT selection screen output.
The basic difference is validation is not done in direct input by pre defined function
while in batch input it is coved.
Synchronous mode will wait until the BDC session gets over while asynchronous
mode will not wait for that
At selection screen is used to validate the whole screen elements while at selection
field is used to validate the particular field.
When you display the error message in at selection on field the focus will be on that
particular field while in case of At selection screen the focus will not be on any
particular field.
PBO will be called before the screen is displayed to the user while process after input
is called once user interact with screen.
If you use the STOP statement within an event block, the system stops processing the
block Immediately.
If you use the EXIT statement within an event block but not in a loop, the system
stops Processing the block immediately
If you use the CHECK <expr> statement within an event block but not within a loop,
and the Condition <expr> is not fulfilled, the system exits the processing block
immediately. <expr> can be any logical expression or the name of a selection table. If
you specify a selection table and the contents of the corresponding table work are do.
You can use FREE to initialize an internal table (along with header line ) and release
its memory space.
REFRESH will only initialize an internal table (along with header line)
The major difference is clear is used with internal table while delete is used with
database table.
COLLECT <line> INTO <itab>. The statement first checks whether the internal table
contains an entry with the same key. If not,it acts like INSERT. If there is already a
table entry with the same key, COLLECT does not inserta new line. Instead, it adds
the values from the numeric fields of the work area <line> to thevalues in the
corresponding fields of the existing table entry.
SUM.Can only be used in loops through internal tables. Calculates the sums of the
numeric fields in alllines of the current control level and writes the results to the
corresponding fields in the workarea.
As the name suggest AT FIRST executed for the first time while AT LAST executed
in last.
Both the enhancement-point and section are available for you to change standard SAP
code. Difference is in fact that you use Enhancement-point to add ABAP code to
standard SAP and enhancement-section to replace/extend standard SAP code.
Top of page trigger when report encounter the first write, skip or new-line statements.
End of page trigger when page size is over or report display gets over.
Table has physical definition into the underline database while structure does exist
physically in the data base.
Table has data init while view does not contain data in it. Both exist in the data base.
when u run the view it queries the database and gives the respective data.
Inner join joins the table at database level whereas For..All..Entries joins the table at
application level.
In For..All..Entries when the condition gets satisfied data is fetched in one single shot
from database table whereas in inner join data is fetched iteration by iteration
Transparent Table: Exists with the same structure both in the dictionary and database
exactly with same data and fields. its to store transaction data. Its one to
one Relation table
Pool tables: These are logical tables must be assigned to a table pool when they are
defined. Its use to store control data. its many to one relation table
Clustered tables: these also logical tables and must be assigned to table cluster when
they are defined. Its also used to store control data, temporary data or text ex.,
documentation. Its also many to one relation table.
Top of page is triggered for the basic list while top of page at line selection triggers at
secondary list.
start_form function module is called if we want to use different forms with similar
characteristics in a single spool request ,it must be closed by END_FORM function
module
Open dataset is use to read / write file into application server while close dataset is use
to close that file.
Domain gives technical details like length , decimal etc..while data elements gives
description and business details
Set screen <no> set the next screen value and temporarily override the next screen
value in screen attribute. While call screen <no> jump to the screen specified in <no>.
External session is nothing but the window you have opened in your screen .By
Default you can open 6 external sessions( 6 windows = you can increase it via basiss
setting). Internal session is created when you call any Functional module or any other
task in your program. counts for internal sessions are 9.
An Elementary Search help defines the flow of a standard input help. It is composed
of a selection method that defines where to get the data that will make up the hit list,
An interface consisting of search help parameters that define the exchange of data
between the screen and the selection method and a dialog type that controls how the
hit list will be displayed.
38. What is the difference between Clustered Tables and Pooled Tables?
A pooled table is used to combine several logical tables in the ABAP/4 dictionary.
Pooled tables are logical tables that must be assigned to a table pool when they are
defined.
Cluster table are logical tables that must be assigned to a table cluster when they are
defined.
Cluster table can be used to store control data they can also used to store temporary
data or text such as documentation.
User exit is sap defined includes so to modify it we need key from SAP.while
customer exit like function exit , screen exit we dont need any key.
Main window is compulsory in scripts whereas main window not compulsory in form.
smartform generates function module while scripts dont generate function module.
Screen has its own gui status while subscreen does not have any gui
status.Subscreens are part of main screen.
Standard table can be accessed by key as well as index while You can only access
hashed tables by specifying the key. The system has its own hash algorithm for
managing the table.