1.sapscript and Smartforms
1.sapscript and Smartforms
• 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
• BAPI is Business application programming interface. It is nothing but Remote
enabled function module which can be called from outside the SAP System.
• 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
• 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.
8. Classical and drill down report
• 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.
• 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
• 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.
20.free and refresh in internal table
• 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.
• 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.
• 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
• It is always good programming practice to join tables at application level because
if we join tables at database level then there might be performance issue
• Transparent Table: Exists with the same structure both in the dictionary and
database exactly with same data and fields. it’s to store transaction data. It’s 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. It’s also used to store control data, temporary data or text
ex., documentation. It’s 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
• 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
basis’s setting). Internal session is created when you call any Functional module
or any other task in your program. counts for internal sessions are 9.
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 don’t need any key.
• Screen has it’s 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.