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

showing dim for parameter in selection screen

Former Member
0 Likes
1,401

hi,

i would like to have 2 parameters become dim (not active) when selection screen showing so that user not allowed to enter anything.

i tried both method but also not working. what i have missed.

thanks

p_1 DEFAULT 'SS' MODIF ID dim,

p_2 DEFAULT 'MARA' MODIF ID dim,

method1

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'dim'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

method2

INITIALIZATION.

LOOP AT SCREEN.

IF SCREEN-NAME = 'p_1' OR

SCREEN-NAME = 'p_2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
1,166

Hi,

write the method 2 in AT SELECTION-SCREEN OUTPUT. e.g.

At Selection-screen output.

LOOP AT SCREEN.

CASE screen-group1.

WHEN 'DIM' .

screen-invisible = 0.

screen-active = 1.

ENDCASE.

CASE screen-name.

WHEN 'p_1'.

screen-input = 1.

WHEN 'p_2'.

screen-input = 1.

ENDCASE.

MODIFY SCREEN.

ENDLOOP.

Regards,

Amit

6 REPLIES 6
Read only

amit_khare
Active Contributor
0 Likes
1,167

Hi,

write the method 2 in AT SELECTION-SCREEN OUTPUT. e.g.

At Selection-screen output.

LOOP AT SCREEN.

CASE screen-group1.

WHEN 'DIM' .

screen-invisible = 0.

screen-active = 1.

ENDCASE.

CASE screen-name.

WHEN 'p_1'.

screen-input = 1.

WHEN 'p_2'.

screen-input = 1.

ENDCASE.

MODIFY SCREEN.

ENDLOOP.

Regards,

Amit

Read only

Former Member
0 Likes
1,166

Hi,

Use the first method, but specify 'DIM' not 'dim' while referring it in the loop at screen.

Regards

Subramanian

Message was edited by:

Subramanian PL

Read only

Former Member
0 Likes
1,166

Hi,

The character are case sensitive..Give the dim in capital letters..

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = <b>'DIM'</b>.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Thanks

Naren

Read only

Former Member
0 Likes
1,166

try to use capital letters 'DIM' or 'P_1' in the quotation like that and code it in at selection-screen output.

both will work fine.

regards

shiba dutta

Read only

Former Member
0 Likes
1,166

Hi,

Take a look at the demo program

DEMO_AT_SELECTION_SCREEN_PBO

Cheers

VJ

Read only

Former Member
0 Likes
1,166

thanks