Application Development 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: 

problem with screen input

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

vinod_gunaware2
Active Contributor
0 Kudos

LOOP AT SCREEN.

  • IF screen-group1 <> 'GR1'.

<b>screen-active= '0/1'.</b>

screen-input = '1'.

MODIFY SCREEN.

  • ENDIF.

ENDLOOP.

regards

vinod

Former Member
0 Kudos

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.