Skip to Content

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

reports selection-screen

hi

i am giving some coding if i select radio button p_dir it must enable s_prod and s_mgroup. if i select radio button p_sel it must enable first five select-options. i am not getting out put.

SELECTION-SCREEN : BEGIN OF BLOCK blck1 WITH FRAME TITLE text-001.

SELECT-OPTIONS : s_bukrs FOR t001-bukrs OBLIGATORY MODIF ID dir,

s_date FOR sy-datum MODIF ID dir,

s_bezei FOR t005u-bezei MODIF ID dir,

s_kunnr FOR kna1-kunnr MODIF ID dir,

s_vtweg FOR tvtw-vtweg MODIF ID dir,

s_prod FOR t179t-vtext MODIF ID sel,

s_mgroup FOR t023t-matkl MODIF ID sel.

SELECTION-SCREEN : END OF BLOCK blck1.

SELECTION-SCREEN : BEGIN OF BLOCK blck3 WITH FRAME TITLE text-003.

PARAMETER : p_sel RADIOBUTTON GROUP grp1 default 'X'.

PARAMETER : p_dir RADIOBUTTON GROUP grp1.

SELECTION-SCREEN : END OF BLOCK blck3.

AT SELECTION-SCREEN output.

LOOP AT SCREEN.

IF screen-group1 EQ 'DIR'.

IF p_dir EQ 'X'.

screen-input = 0.

MODIFY SCREEN.

CLEAR: s_bukrs, s_date,s_bezei,s_kunnr,s_vtweg.

ELSEIF p_sel EQ 'X'.

screen-input = 1.

MODIFY SCREEN.

ENDIF.

IF p_dir EQ 'X'.

IF NOT s_bukrs IS INITIAL OR

s_date IS INITIAL OR

s_bezei IS INITIAL OR

s_kunnr IS INITIAL OR

s_vtweg IS INITIAL.

screen-input = 0.

MODIFY SCREEN.

REFRESH : s_bukrs, s_date, s_bezei,s_kunnr,s_vtweg.

ENDIF.

ENDIF.

ENDIF.

IF screen-group1 EQ 'SEL'.

IF p_dir EQ 'X'.

screen-input = 1.

MODIFY SCREEN.

ELSEIF p_sel EQ 'X'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDIF.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question