cancel
Showing results for 
Search instead for 
Did you mean: 

how to set selection-screen fields in input disable&enable mode

Former Member
0 Kudos

Hi All,

Can you please help me to know, how to set selection screen fields input enabled & input disable based some validations. I tried with screen-intensified. But its not working. Please help me to achieve this.

Thanks in advance.

Regards

Rajesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The following is the sample code.

PARAMETERS : p_barea TYPE ps0171-barea DEFAULT 'Z1' MODIF ID pb,

" Benefit Area

p_imfil TYPE rlgrap-filename, " Import file name

p_lock TYPE ztx_int-int_name

DEFAULT 'ZHBNT06A_METLIFE_INBOUND' MODIF ID pb, " Lock

  • p_test TYPE c AS CHECKBOX, " Test run

p_update type c as checkbox. " default 'X'

SELECTION-SCREEN END OF BLOCK selb01.

************************************************************************

  • AT SELECTION-SCREEN OUTPUT *

************************************************************************

AT SELECTION-SCREEN OUTPUT.

  • Benefit Area field made display only field

LOOP AT SCREEN.

IF screen-group1 EQ 'PB'.

CLEAR screen-input.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards

Vick

Answers (2)

Answers (2)

Former Member
0 Kudos

With the parameter define MODIF ID

PARAMETERS: p_lay1 TYPE disvariant-variant MODIF ID la1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'LA1'.

screen-active = 0 or 1.

screen-input = 0 or 1.

screen-output = 0 or 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

You can take the help from the above mentioned code.

Former Member
0 Kudos

HI Rajesh,

Using the attribute <b> screen-active = 0</b> . We can achieve the same.

Regards,

Santosh

suresh_datti
Active Contributor
0 Kudos

Did you try the attribute <i>screen-active = 0 </i>.

Regards,

Suresh Datti