‎2007 Jul 27 5:32 AM
hi in selection screen using select-option i can set a default value' 1000 ' to '3000'
after displaying the sceen we can delete the default values .now my question is what is the procedure to prevent the above operation .
‎2007 Jul 27 5:34 AM
did u mean removing the default values in the selection screen
if so i think those values are given in your code in your initialization event so go to the event and remove the values there
‎2007 Jul 27 7:36 AM
i think u have set default values
not ot prevent the deletion make that to disable mode...
provide modif id in select option
and at selection-screen output.
make that entry as disabled...
plz paste ur piece od code...so that i could modify it for u...
‎2007 Jul 27 7:41 AM
Hi,
Make those fileds READ-ONLY. so as one cant modify it.
AT SELECTION-SCREEN OUTPUT
Loop at screen
if screen-name =<fieldname>
screen-input = 1/0.
endif.
modify screen.
endloop.
Reward if useful!
‎2007 Jul 27 7:42 AM
Hi,
Either you make them READ-ONLY or keep them as Mandatory. This will solve the problem.
Regards,
Hk.
‎2007 Jul 27 7:43 AM
Hi,
Initialize the selection table at the initialization event.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
*
*
*SELECT-OPTIONS: s_data FOR table-field.
*
*SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
s_data-sign = 'I'. "INCLUDE
s_data-option = 'EQ'.
s_data-low = '1000'.
APPEND s_data.
s_data-sign = 'I'.
s_data-option = 'EQ'.
s_date-low = '3000'.
APPEND s_data.
<b><i>regards
Debjani
Reward points for helpful answers</i></b>
‎2007 Jul 27 7:46 AM
We need to modify the selection screen so that it becomes READ ONLY.
AT SELECTION-SCREEN OUTPUT
LOOP AT SCREEN
IF SCREEN-NAME = <field-name>
SCREEN-INPUT = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Regards,
Pavan