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

SELECT-OPTION

Former Member
0 Likes
581

Hi Expert

this is my selection screen.

<b>SELECT-OPTIONS s_matnr FOR mseg-matnr ."MEMORY ID mat.

SELECT-OPTIONS s_bwart FOR mseg-bwart DEFAULT '531' TO '532'.</b>

in my report <b>s_bwart</b> is fixthat is 531 and 532

and i want that user shoud not be able to change its value .

i want to grayed that part.

so where exactly loop at scrren i have to write ??

<b>initialization.

LOOP AT SCREEN.

if screen-name = 's_bwart-LOW' or screen-name = 's_bwart-HIGH'.

screen-INTENSIFIED = 'x'.

screen-INPUT = 'X'.

SCREEN-REQUIRED = 'X'.

endif.

ENDLOOP.</b>

i hv written this code but not working..

pls help me on this....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

Check the below code :

report zars no standard page heading

line-size 170

line-count 65(4).

tables : mseg.

SELECT-OPTIONS s_matnr FOR mseg-matnr ."MEMORY ID mat.

SELECT-OPTIONS s_bwart FOR mseg-bwart DEFAULT '531' TO '532'.

at selection-screen output.

loop at screen.

if screen-name = 'S_BWART-LOW'.

screen-intensified = '1'.

screen-input = '0'.

modify screen.

endif.

if screen-name = 'S_BWART-HIGH'.

screen-intensified = '1'.

screen-input = '0'.

modify screen.

endif.

endloop.

Thanks

Seshu

4 REPLIES 4
Read only

Former Member
0 Likes
544

Check the below code :

report zars no standard page heading

line-size 170

line-count 65(4).

tables : mseg.

SELECT-OPTIONS s_matnr FOR mseg-matnr ."MEMORY ID mat.

SELECT-OPTIONS s_bwart FOR mseg-bwart DEFAULT '531' TO '532'.

at selection-screen output.

loop at screen.

if screen-name = 'S_BWART-LOW'.

screen-intensified = '1'.

screen-input = '0'.

modify screen.

endif.

if screen-name = 'S_BWART-HIGH'.

screen-intensified = '1'.

screen-input = '0'.

modify screen.

endif.

endloop.

Thanks

Seshu

Read only

Former Member
0 Likes
543

Hi Rajan,

use NO-DISPLAY Extension as below , there will not be any problem.even user can not see that field on the selection screen but still you can pass the values.

SELECT-OPTIONS s_bwart FOR mseg-bwart DEFAULT '531' TO '532' NO-DISPLAY.

<b>Reward for helpful answers</b>

Satish

Read only

Former Member
0 Likes
543

Hi,

Try this code.

SELECT-OPTIONS s_bwart FOR mseg-bwart DEFAULT '531' TO '532' MODIF ID M1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'M1'.

SCREEN-INPUT = 0. " Disable for input.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Thanks

Naren

Read only

PS_1978
Active Participant
0 Likes
543

Hi Rajan,

U have to write ur code in AT SELECTION-SCREEN OUTPUT.

For Example:

SELECT-OPTIONS s_matnr FOR mseg-matnr ."MEMORY ID mat.
SELECT-OPTIONS s_bwart FOR mseg-bwart DEFAULT '531' TO '532'.

AT SELECTION-SCREEN OUTPUT.

loop at screen where name = 'S_BWART-LOW' or name = 'S_BWART-HIGH'.

screen-intensified = '1'.
screen-input = '0'.
modify screen.

endloop.

Regards,

Phani