Application Development 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: 

select option

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

hi ,

0 Kudos

hi Swaroop,

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

thanks,

anniyan

0 Kudos

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

former_member182371
Active Contributor
0 Kudos

Hi,

maybe:

SELECT-OPTION select_option_name FOR field_name

DEFAULT ‘your_default_value’.

Best regards.

Former Member
0 Kudos

Hi,

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

Regards,

V.Balaji

Reward if Usefull...

Clemenss
Active Contributor
0 Kudos

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