Basic form
INITIALIZATION.
Effect
Processing event.
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 SYDATUM.
INITIALIZATION.
QUAL_DAY+6(2) = '01'.
QUAL_DAY = QUAL_DAY - 1.
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 .
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 .(80.5)
You can go through entire syntax check here.
Check SAP SCRIPTS AND SMART FORMS BDC HERE COMPLETELY.
Learn object oriented approach of SAP ABAP HERE COMPLETELY.
ABAP ALE CONFIGURATION
BADI Complete Series
COMMENT HERE and thank you for sparing your valuable time.
Thank you for visiting SAP ABAP.If you liked the post, please subscribe to RSS FEED or get the updates directly into your mail box through EMAIL SUBSCRIPTION.If you want to contact me click here.
Request you to share this page on your favorite book mark site.

INITIALIZATION.
Effect
Processing event.
Executed before the selection screen is displayed.The parameters (PARAMETERS ) and selection criteria (SELECTOPTIONS ) 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 SYDATUM.
INITIALIZATION.
QUAL_DAY+6(2) = '01'.
QUAL_DAY = QUAL_DAY - 1.
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 .
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 .(80.5)
You can go through entire syntax check here.
Check SAP SCRIPTS AND SMART FORMS BDC HERE COMPLETELY.
Learn object oriented approach of SAP ABAP HERE COMPLETELY.
ABAP ALE CONFIGURATION
BADI Complete Series
COMMENT HERE and thank you for sparing your valuable time.
Thank you for visiting SAP ABAP.If you liked the post, please subscribe to RSS FEED or get the updates directly into your mail box through EMAIL SUBSCRIPTION.If you want to contact me click here.
Request you to share this page on your favorite book mark site.


0 comments
Post a Comment