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

Disable the selection screen

Former Member
0 Likes
1,478

Hi All,

I am declaring the parameters option in selectin screen .

SELECTION-SCREEN BEGIN OF BLOCK B1 .

PARAMETERS P_VARI TYPE DISVARIANT-VARIANT.

SELECTION-SCREEN END OF BLOCK B1.

I Know No-display options ...but I can't use that here.

I want to disable this parameters in seletion screen.

regads,

Ajay

Hi All,

I am declaring the parameters option in selectin screen .

SELECTION-SCREEN BEGIN OF BLOCK B1 .

PARAMETERS P_VARI TYPE DISVARIANT-VARIANT.

SELECTION-SCREEN END OF BLOCK B1.

I Know No-display options ...but I can't use that here.

I want to disable this parameters in seletion screen.

regads,

Ajay

11 REPLIES 11
Read only

Former Member
0 Likes
1,445

try with this...

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

CASE screen-name.

WHEN 'P_VARI'.

screen-INVISIBLE = '1'.

MODIFY SCREEN.

ENCASE.

ENDLOOP.

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,445

hi Ajay,

you can do:

PARAMETERS P_VARI TYPE DISVARIANT-VARIANT MODIF ID 001 .

AT SELECTION-SCREEN OUTPUT.

LOOP AT screen.

CHECK screen-group1 EQ '001'.

screen-active = '0'.

MODIFY screen.

ENDLOOP.

hope this helps

ec

Read only

0 Likes
1,445

Hi <

it is in generic include ..I can't change that include to add the modif option there.

regards,

AJay

Read only

0 Likes
1,445

then you have to go for the other solution, suggested by Chang and Heber...

Read only

0 Likes
1,445

Hi all,

I dont want see that field in selection screen, not disabling that field.

regards,

Ajay

Read only

Former Member
0 Likes
1,445

Hi,

You may put these codes:

(After INITIALIZATION.)

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_VARI'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Hope it helps,

Chang

Read only

Former Member
0 Likes
1,445

Hi,

You can use SCREEN-INPUT or SCREEN-ACTIVE to disable this parameter.

Screen input = 0 - Field disabled for writing

Screen input = 1 - Field enabled for writing

Screen active = 0 - Hides field

Screen active = 1 - Shows field

Regards,

Brian Gonsales

Read only

Former Member
0 Likes
1,445

Hi Ajay,

you can do that,

Please follow the below appended code which is for dynamic selection screen, Use the event AT-SELECTION screen and

use LOOP AT SCREEN, use SCREEN-INPUT = 0.

----


  • S E L E C T I O N S C R E E N S *

----


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

SELECT-OPTIONS: s_opbel FOR dfkkko-opbel,

s_blart FOR dfkkko-blart OBLIGATORY DEFAULT 'DB',

s_bukrs FOR dfkkop-bukrs OBLIGATORY,

s_gpart FOR dfkkop-gpart,

s_vtref FOR dfkkop-vtref,

s_asco FOR dfkkop-zzasco,

s_busen FOR dfkkop-zzbusent,

s_divi FOR dfkkop-zzdivision,

s_bldat FOR dfkkko-bldat,

s_faedn FOR dfkkop-faedn,

s_waers FOR dfkkko-waers.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.

PARAMETER: rb_sum RADIOBUTTON GROUP rtyp USER-COMMAND disp,

rb_det RADIOBUTTON GROUP rtyp .

SELECTION-SCREEN END OF BLOCK b2.

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.

PARAMETER: rb_lis RADIOBUTTON GROUP dtyp MODIF ID typ,

rb_alv RADIOBUTTON GROUP dtyp MODIF ID typ.

SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-t04.

PARAMETER: cb_asco AS CHECKBOX DEFAULT 'X' MODIF ID sel,

cb_divi AS CHECKBOX MODIF ID sel,

cb_buen AS CHECKBOX MODIF ID sel,

cb_prod AS CHECKBOX MODIF ID sel.

SELECTION-SCREEN END OF BLOCK b4.

----


  • Initialization *

----


INITIALIZATION.

IF rb_sum = ' '.

rb_sum = 'X'.

rb_det = ''.

ENDIF.

----


  • A T S E L E C T I O N - S C R E E N *

----


AT SELECTION-SCREEN OUTPUT.

  • If Summary report radio button has been selected then ALV Display

  • radio button should be disabled.

LOOP AT SCREEN.

IF screen-group1 = 'TYP'.

IF rb_sum = 'X'.

rb_alv = ''.

IF screen-name = 'RB_ALV'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDIF.

  • If Detail report has been selected the all the check box in the

  • selection-screen block b4 should be invisible.

IF screen-group1 = 'SEL'.

IF rb_det = 'X'.

screen-active = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

regards,

Prabhu

Reward if it is helpful

Read only

Former Member
0 Likes
1,445

Then, just do this:



INITIALIZATION.

LOOP AT SCREEN.

IF screen-name = 'P_VARI'.

screen-active = 0.

ENDIF.

This will disable the field on the Selection-screen. You will be not able to see it on the Selection-screen.

Regards,

Brian Gonsales

Read only

Former Member
0 Likes
1,445

my way made invisible the parameter, this don't see in the screen..

Read only

0 Likes
1,445

Hi heber,

I am able to see that parameters (variant) in the selection screen.

regards,

Ajay