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
795

Hi all,

I am using a selection screen.

on tht selection screen i am using a select option called plant(i.e. werks)

now i want to disable the plant option with canstant value 1000.

plz its urgent

regards,

anniyan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
767

Hi ,

you can do like that

SELECT-OPTIONS: s_werks FOR mard-werks no interval default 1000.

u can also do it by using loop.

thanks,

swaroop.

7 REPLIES 7
Read only

Former Member
0 Likes
768

Hi ,

you can do like that

SELECT-OPTIONS: s_werks FOR mard-werks no interval default 1000.

u can also do it by using loop.

thanks,

swaroop.

Read only

0 Likes
767

hi ,

Read only

0 Likes
767

hi Swaroop,

u told that there is other method aby using loop can u explain me that.

thanks,

anniyan

Read only

0 Likes
767

Hi anniyan,

select-options : p_pernr for pernr-pernr default '1000'.

initialization.

loop at screen.

if screen-name = 'P_PERNR-LOW'.

screen-input = '0'.

modify screen.

endif.

if screen-name = 'P_PERNR-HIGH'.

screen-input = '0'.

modify screen.

endif.

endloop.

thanks,

swaroop

Read only

former_member182371
Active Contributor
0 Likes
767

Hi,

maybe:

SELECT-OPTION select_option_name FOR field_name

DEFAULT ‘your_default_value’.

Best regards.

Read only

Former Member
0 Likes
767

Hi,

select-options werks for marc-werks default '1000' .

Regards,

V.Balaji

Reward if Usefull...

Read only

Clemenss
Active Contributor
0 Likes
767

Hi annniyan,

may be I understand you wrong because the other replies will do something else.

If "disable the plant option with canstant value 1000" means you do not want the user to select '1000' as plant option, then the answer is


at selection-screen on s_werks.
  if '1000' in s_werks.
    message 000(R1) 'Plant 1000 is diabled - please change selection'.
  endif.

Regards,

Clemens