Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with screen input

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?

Tags:
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question