SAP ABAP - Setting Default Values In Selection Screen.

If the requirement is to set default values in selection screen consisting of statements like Parameters and Select options, the below sample code gives a clear idea on how it can be done. REPORT zsetdefault_sel_screen. TABLES: mseg. PARAMETERS: p_name LIKE sy-uname, p_date LIKE sy-datum. SELECT-OPTIONS: s_matnr FOR mseg-matnr. INITIALIZATION. p_name = sy-uname. p_date = sy-datum - 1. s_matnr-low ='1'. s_matnr-high = '10'. s_matnr-option = 'BT'. s_matnr-sign = 'I'. APPEND s_matnr. CLEAR s_matnr. OUTPUT: MORE PROGRAMS ON REPORT PROGRAMMING: - Programming On Buttons In A Screen. - Create A Screen With Two TABSTRIPS For A Report Program. - On Using HOTSPOT Keyword In A Report Program. - Demonstrate Tabstrips & Subscreens In Selection Screen. - Type Conversion ( Curr To Char Type). - ...Back To Index On Report Programming. Your suggestions and comments are welcome in this section. Please mail all your ...