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

selecttion screen

Former Member
0 Likes
646

HI all,

how to create selection screen where input field will be gray if they are not conected with previous

screen input.

Eg. if ORT01 ne '435' other filed will be gray which they not have conection with this numb. 435.

PARAMETERS t_tip(10). "transaction tip

PARAMETERS:

pa1 TYPE ort01,

pa2 TYPE name1,

pa3 TYPE name2,

pa4 TYPE regio,

pa5 TYPE dmtbr.

AT SELECTION-SCREEN OUTPUT.

if t_tip = 'A'.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

AT SELECTION-SCREEN OUTPUT.

IF PA1 NE '435'.

LOOP AT SCREEN.

IF SCREEN-NAME CS 'PA2 ' OR

SCREEN-NAME CS'PA3' OR

SCREEN-NAME CS 'PA4' OR

SCREEN-NAME CS 'PA5'.

SCREEN-INPUT = 0.

SCREEN-OUTPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

4 REPLIES 4
Read only

Former Member
0 Likes
598

HI Nick,

in the selection screen PBO

use loop at screen if the required criteria has not been met.

LOOP AT SCREEN.

---here you can make the fields grey as desired by you

ENDLOOP.

regards

Ramchander Rao.K

Read only

Former Member
0 Likes
599

AT SELECTION-SCREEN OUTPUT.

IF PA1 NE '435'.

LOOP AT SCREEN.

IF SCREEN-NAME CS 'PA2 ' OR

SCREEN-NAME CS'PA3' OR

SCREEN-NAME CS 'PA4' OR

SCREEN-NAME CS 'PA5'.

SCREEN-INPUT = 0.

SCREEN-OUTPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Read only

Former Member
0 Likes
598

Hi,

Try like this:

PARAMETERS T_TIP(10). "transaction tip

PARAMETERS:

PA1 TYPE ORT01 MODIF ID AA,

PA2 TYPE NAME1,

PA3 TYPE NAME2,

PA4 TYPE REGIO,

PA5 TYPE DMBTR.

AT SELECTION-SCREEN OUTPUT .

LOOP AT SCREEN.

IF PA1 NE 435.

IF SCREEN-GROUP1 NE 'AA'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

Regards,

Bhaskar

Edited by: Bhaskar Chikine on Nov 21, 2008 5:33 PM

Read only

Former Member
0 Likes
598

Hi nick ,

Try the similar kind of the following code .

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : s_vkorg TYPE vbak-vkorg MODIF ID abc.

SELECTION-SCREEN : END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

(specify your condition if ORT01 ne '435' )

LOOP AT SCREEN.

IF screen-group1 = 'ABC'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endif

HOPE THIS MIGHT HELP YOU.