‎2006 Apr 25 1:27 PM
SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE gv_title.
PARAMETERS: z_period LIKE zcal_mstr-zsite.
SELECT-OPTIONS : zdate FOR sy-datum MODIF ID GR1.
SELECTION-SCREEN END OF BLOCK bl1.
SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE g_title.
PARAMETERS: m_but RADIOBUTTON GROUP rad1.
PARAMETERS: p_but RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK bl2.
AT SELECTION-SCREEN.
IF NOT w_but IS INITIAL.
PERFORM zzzz.
ENDIF.
IF NOT m_but IS INITIAL.
LOOP AT SCREEN.
IF screen-group1 <> 'GR1'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
INCLUDE zfind_month.
ENDIF.
when i click on the 2 button i get near zdate another paramter
where he come from?
‎2006 Apr 25 1:30 PM
Hi rani,
Instead of screen-input use screen active.
It is because a selection screen variable has one or more components...
SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE gv_title.
PARAMETERS: z_period LIKE zcal_mstr-zsite.
SELECT-OPTIONS : zdate FOR sy-datum MODIF ID GR1.
SELECTION-SCREEN END OF BLOCK bl1.
SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE g_title.
PARAMETERS: m_but RADIOBUTTON GROUP rad1.
PARAMETERS: p_but RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK bl2.
AT SELECTION-SCREEN.
IF NOT w_but IS INITIAL.
PERFORM zzzz.
ENDIF.
IF NOT m_but IS INITIAL.
LOOP AT SCREEN.
* IF screen-group1 <> 'GR1'.
screen-active = '0'.
MODIFY SCREEN.
* ENDIF.
ENDLOOP.
INCLUDE zfind_month.
ENDIF.
‎2006 Apr 25 1:30 PM
Hi rani,
Instead of screen-input use screen active.
It is because a selection screen variable has one or more components...
SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE gv_title.
PARAMETERS: z_period LIKE zcal_mstr-zsite.
SELECT-OPTIONS : zdate FOR sy-datum MODIF ID GR1.
SELECTION-SCREEN END OF BLOCK bl1.
SELECTION-SCREEN BEGIN OF BLOCK bl2 WITH FRAME TITLE g_title.
PARAMETERS: m_but RADIOBUTTON GROUP rad1.
PARAMETERS: p_but RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK bl2.
AT SELECTION-SCREEN.
IF NOT w_but IS INITIAL.
PERFORM zzzz.
ENDIF.
IF NOT m_but IS INITIAL.
LOOP AT SCREEN.
* IF screen-group1 <> 'GR1'.
screen-active = '0'.
MODIFY SCREEN.
* ENDIF.
ENDLOOP.
INCLUDE zfind_month.
ENDIF.
‎2006 Apr 25 1:31 PM
LOOP AT SCREEN.
IF screen-group1 <> 'GR1'.
<b>screen-active= '0/1'.</b>
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
regards
vinod
‎2006 Apr 25 1:35 PM
Hello Rani,
With the code that you have posted, there will be no action when any of the radio buttons is clicked. Do you want to instead refer to the event ' AT SELECTION SCREEN ON...'?
Please post complete scenario.