Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection-screen

Former Member
0 Likes
499

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 .

6 REPLIES 6
Read only

Former Member
0 Likes
478

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
478

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...

Read only

Former Member
0 Likes
478

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!

Read only

Former Member
0 Likes
478

Hi,

Either you make them READ-ONLY or keep them as Mandatory. This will solve the problem.

Regards,

Hk.

Read only

Former Member
0 Likes
478

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>

Read only

Former Member
0 Likes
478

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