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
866

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
847

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.

9 REPLIES 9
Read only

Former Member
0 Likes
847

HI,

Use this code,

at selection-screen output.

loop at screen.

if screen-name  = 'PLANT'.

screen-input = '0'.

modify screen.

ENDIF.
endloop.

Regards,

S.Nehru.

Edited by: Nehru on Mar 25, 2008 12:12 PM

Edited by: Nehru on Mar 25, 2008 12:14 PM

Read only

Former Member
0 Likes
847

Hi

do this

at selection-screen output.

plant-low = '1000'.

append plant.

loop at screen.

if screen-name = 'PLANT'.

screen-input = 0.

modify screen.

endif.

endloop.

Regards

Aditya

Read only

Former Member
0 Likes
847

Hi ,

you can do like that

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

you also need to loop at screen and change attribute input = 0.

reward if helpful.

Edited by: Ashish Paliwal on Mar 25, 2008 12:11 PM

Read only

Former Member
0 Likes
848

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.

Read only

Former Member
0 Likes
847

HI,

see this code.


tables:mard.
SELECT-OPTIONS:werks for mard-werks DEFAULT '1000'.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'WERKS-LOW'.
      screen-input = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

rgds,

bharat.

Read only

Former Member
0 Likes
847

Hi

parameters  werks like marc-werks default '1000'.

at selection-screen on werks.
 if  werks is not initial.

loop at screen.
 if screen-name = 'WERKS'.
 
screen-input = '1'.
 
modify screen.
 endif.
endloop.

ENDIF.

rEGDS,

v.BALAJI

Read only

Former Member
0 Likes
847

Hi,

Check out this piece of code.

DATA: v_var TYPE mard-werks.

SELECTION-SCREEN: BEGIN OF BLOCK b1.

SELECT-OPTIONS: s_plant FOR v_var default '1000' modif id md1.

SELECTION-SCREEN: END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 EQ 'MD1'.

screen-input = 0.

ELSE.

screen-input = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regards,

Abhisek.

Read only

Former Member
0 Likes
847

select-options: s_plant for werks_d MODIF ID SC1.

INITIALIZATION.

S_PLANT-LOW = '1000'.

APPEND S_PLANT.

AT SELECTION-SCREEN.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'SC1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

REWARD IF USEFUL.

REGARDS,

SUNIL KAIRAM.

Read only

Former Member
0 Likes
847

Hi,

Please refer example code below:


  PARAMETER : text(100) type c DEFAULT '1000' MODIF ID SP1.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'SP1'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
 ENDLOOP.

Thanks,

Sriram Ponna.