09-03-2007 11:59 AM
Hi
This is the existin g code
SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.
parameters:
p_nor radiobutton group rad1, "new posting
p_rep2 radiobutton group rad1. "report (flag '2')
select-options:
recno for zbacks_gipd-recno "record number
default '1' obligatory.
SELECTION-SCREEN END OF BLOCK 8.
I want to disable p_rep2 and recno ,how to do this ?
09-03-2007 12:02 PM
hI..
This is the code:
SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.
parameters:
p_nor radiobutton group rad1, "new posting
p_rep2 radiobutton group rad1. "report (flag '2')
select-options:
recno for zbacks_gipd-recno "record number
default '1' obligatory.
SELECTION-SCREEN END OF BLOCK 8.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_REP2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'RECNO'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
<b>REWARD IF HELPFUL</b>
09-03-2007 12:02 PM
hI..
This is the code:
SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.
parameters:
p_nor radiobutton group rad1, "new posting
p_rep2 radiobutton group rad1. "report (flag '2')
select-options:
recno for zbacks_gipd-recno "record number
default '1' obligatory.
SELECTION-SCREEN END OF BLOCK 8.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'P_REP2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF SCREEN-NAME = 'RECNO'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
<b>REWARD IF HELPFUL</b>
09-03-2007 12:21 PM
I am getting a error ,when I do like this with some variable which is allready declared as not declared.
09-03-2007 12:04 PM
Hi
SELECTION-SCREEN BEGIN OF BLOCK 8 WITH FRAME TITLE TEXT-008.
parameters:
p_nor radiobutton group rad1, "new posting
p_rep2 radiobutton group rad1. "report (flag '2')
select-options:
recno for zbacks_gipd-recno "record number
default '1' obligatory <b>modif id s1.</b>.
SELECTION-SCREEN END OF BLOCK 8.
<b>
at selection-screen output
loop at screen.
when r1 = 'x' and screen-group1 = 's1'.
screen-input = '0'.
modify screen.
endloop.</b>
reward if usefull
09-03-2007 12:09 PM
hi vasu,
u can use the command loop at screen to disable this radiobutton and select-option.
In at selection-screen u can write the code for enable or disable and then modify the screen.
go to the table SCREEN, u can find the options available for fields.
Regards...
Arun.
Reward points if useful.