2008 May 20 4:13 PM
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 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
2008 May 20 4:16 PM
try with this...
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'P_VARI'.
screen-INVISIBLE = '1'.
MODIFY SCREEN.
ENCASE.
ENDLOOP.
2008 May 20 4:17 PM
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
2008 May 20 4:20 PM
Hi <
it is in generic include ..I can't change that include to add the modif option there.
regards,
AJay
2008 May 20 4:25 PM
then you have to go for the other solution, suggested by Chang and Heber...
2008 May 20 4:27 PM
Hi all,
I dont want see that field in selection screen, not disabling that field.
regards,
Ajay
2008 May 20 4:19 PM
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
2008 May 20 4:23 PM
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
2008 May 20 4:25 PM
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
2008 May 20 4:33 PM
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
2008 May 20 4:37 PM
my way made invisible the parameter, this don't see in the screen..
2008 May 20 5:10 PM
Hi heber,
I am able to see that parameters (variant) in the selection screen.
regards,
Ajay
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |