06-03-2010 1:13 AM
Hello all,
When I use MODIF ID in a select-options definition, the field displays on the screen in an unusual format. There is entry field to the left of the select-option low field. What is this and how can I prevent it from displaying? We are on version 4.7.
TABLES: skb1, bkpf.
*
SELECTION-SCREEN BEGIN OF BLOCK b0 WITH FRAME TITLE text-000.
PARAMETERS: p_lstrun RADIOBUTTON GROUP bydt USER-COMMAND xyz
DEFAULT 'X'.
PARAMETERS: p_yr_prd RADIOBUTTON GROUP bydt .
SELECTION-SCREEN END OF BLOCK b0.
*
PARAMETERS: p_gjahr TYPE bkpf-gjahr MODIF ID sel.
SELECT-OPTIONS: s_monat FOR bkpf-monat NO INTERVALS MODIF ID sel.
*
SELECTION-SCREEN SKIP.
*
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK b5 WITH FRAME TITLE text-005.
PARAMETERS: p_updzlr AS CHECKBOX " update ZLSTRUN table
DEFAULT 'X' MODIF ID sel.
* USER-COMMAND ucom .
SELECTION-SCREEN END OF BLOCK b5.
*
**********************************************************************
AT SELECTION-SCREEN OUTPUT.
**********************************************************************
IF p_yr_prd = 'X'. " Select by screen Year/period
*
p_updzlr = ' '. " uncheck "update ZLSTRUN table"
*
LOOP AT SCREEN.
IF screen-group1 = 'SEL'.
*
screen-input = 0. " prevent input
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*
ELSE. " p_yr_prd = ' '. select by ZLSTRUN
*
LOOP AT SCREEN.
* IF screen-name = 'P_UPDZLR'.
IF screen-group1 = 'SEL'.
*
screen-input = 1. " allow input
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*
ENDIF. " " Select by screen Year/period
Any thoughts?
Thanks
Bruce
06-03-2010 7:10 AM
Hi,
When you set SCREEN-INPUT to 1 for modif id SEL also the text label of that select-option is set to input - this becomes that unwanted input field.
You should not set SCREEN-INPUT to 1 in selection screens - the fields are already ready for input. Instead set it to 0 when you want the fields not to be ready for input.
Regards, Gerd Rother
06-03-2010 7:10 AM
Hi,
When you set SCREEN-INPUT to 1 for modif id SEL also the text label of that select-option is set to input - this becomes that unwanted input field.
You should not set SCREEN-INPUT to 1 in selection screens - the fields are already ready for input. Instead set it to 0 when you want the fields not to be ready for input.
Regards, Gerd Rother
06-03-2010 5:46 PM