SAP Certification
SAP Download
SAP Companies India
SAP Books
SAP JOBS
SAP jobs in India
SAP ABAP jobs in India
SAP BASIS jobs in India
SAP BI jobs in India
SAP CRM jobs in India
SAP FICO jobs in India
SAP Fresher jobs in India
SAP HR jobs in India
SAP MM jobs in India
SAP PM jobs in India
SAP PP jobs in India
SAP SD jobs in India
SAP XI jobs in India
|
INITIALIZATION is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
Show Full Details
INITIALIZATION
Basic
form INITIALIZATION.
Effect Processing event.
Executed
before the selection screen is displayed.
The parameters (PARAMETERS )
and selection criteria (SELECT-OPTIONS ) defined in the program already contain
default values (if specified). You can assign different values here and also
change the database-specific selections.
In contrast to R/2 , this event
is also executed during background processing.
Example Define the last
day of the previous month as the key date:
PARAMETERS QUAL_DAY TYPE D
DEFAULT SY-DATUM. INITIALIZATION. QUAL_DAY+6(2) = '01'. QUAL_DAY =
QUAL_DAY - 1.
Here, the default value of QUAL_DAY is the current
date, e.g. 05.04.88 ( QUAL_DAY = '19880405'). Two subseqent statements set the
date first to the beginning of the month, e.g. 01.04.88 ( QUAL_DAY = '19880401')
and then, by subtracting one day, to the last day of the previous month, e.g.
31.03.88 ( QUAL_DAY = '19880331').
Note In more precise terms,
INITIALIZATION is executed in the following steps: Specify default values for
the selections. Execute the event INITIALIZATION. Import variant (if used to
start the report). On SUBMIT , the values specified for each WHERE clause are
also transferred, if necessary. Execute the event AT SELECTION-SCREEN OUTPUT ,
if it occurs in the report (unlike INITIALIZATION , this event is always
executed for PBO of a selection screen). Display selection screen. Transport the
screen fields containing user input to the report fields. Continue with
START-OF-SELECTION .
Note Since INITIALIZATION is only executed once
when you start the report, it is not suitable for screen modifications such as
suppressing individual parameters (LOOP AT SCREEN , MODIFY SCREEN ) because
these changes would disappear again when the user pressed ENTER. The correct
event for screen modifications is AT SELECTION-SCREEN OUTPUT .
Show Most Readed SAP Tutorials
Most readed SAP Tutorials
Show Latest Added SAP Tutorials
Latest Added SAP documents
|
"Site covers most of the SAP technical and functional tutorials, articles, interview questions and PDF study materials . List and details of SAP transaction codes ( tcodes ), Tables, report names, Bapi, ABAP programming syntax and keywords are also available in the site.
Information on SAP Certification and training, latest SAP jobs in India, ABAP interview questions are useful for SAP professionals seeking for a career in SAP as a fresher or experienced.ABAP tutorial downloads on BDC, LSMW, BAPI, ALE, IDOC, Smartforms, Sapscripts etc etc are also added.Now you can read from this page about INITIALIZATION (ABAP keyword)" |