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 option

Former Member
0 Likes
852

hi,

i have declared selection option as below.

PARAMETERS : p_newko LIKE rf05a-newko OBLIGATORY DEFAULT '0000165016'.

i want to make this field non editable i.e. user shuld not change this. can u tell me how to do this ??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
830

hi,

write like this


PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

if helpful give reward points.

regards,

pankaj vashista

6 REPLIES 6
Read only

Former Member
0 Likes
831

hi,

write like this


PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

if helpful give reward points.

regards,

pankaj vashista

Read only

Former Member
0 Likes
830

Hi,

Check this code.


At selection-screen ouput.
Loop at screen.
 if screen-name = 'P_NEWKO'.
    screen-input = 1.
 modify screen.
endif.
enloop.

Reward if helpful.

Regards.

Either its screen-input = 1 or screen-input = 0.

Check both.

Edited by: Akshay Raj on Mar 24, 2008 8:31 AM

Read only

Former Member
0 Likes
830

Hi Santosh,

If you want to display default value and the user should not change the default value then no need of giving obligatory.

try this code...

PARAMETERS : p_newko LIKE rf05a-newko DEFAULT '0000165016' MODIF ID SC1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'SC1'.

screen-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

<b>REWARD IF USEFUL</b>

regards,

sunil kairam.

Edited by: sunil kairam on Mar 24, 2008 1:02 PM

Read only

Former Member
0 Likes
830

Hi Santosh..

may be it is useful...

Assign parameter to a screen group...like below way..

PARAMETERS <p>.. MODIF ID <key> ....

after that u use below events and code like that..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'SCREENGROUP NAME'.

SCREEN-editable = '1'.

MODIFY SCREEN.

ENDIF.

if u want other options on selection screen like editable/noneditable, intensified..etc see SCREEN table in SE11.

thanks..

Read only

Former Member
0 Likes
830

Hi Santhosh,

if u want to disable the text field u need to modify it using the following code

At selection-screen ouput.

Loop at screen.

if screen-name = 'P_NEWKO'.

screen-invisible = 1.

modify screen.

endif.

enloop.

Thanks

Ganesh

Read only

Former Member
0 Likes
830

thanks