2006 Jul 17 5:23 PM
Hi folks,
iam desinging the report, i have designed the selection screen which contains 4 blocks , first 3 blocks contains the input data for 3 diffrent selections, and the 4th block contains the 3 radio buttons , now the user pass the data to the first block and clicked the first radio button the output should be displayed , if he passed data to the second block and pressed the 2nd button then the required out should be displayed and like same for 3 rd.
now my problem is if user filled the data in first block and mistakenly clicked the third raido button, here how can i restrict the user form this, is there any error message has to be displayed? if yes please tell me how?
thanks in advance,
regards
priya
2006 Jul 17 5:26 PM
hi priya,
u can give like
at selection-screen.
if not p_val1 is initial and
rad2 = 'X' or rad3 = 'X'.
message e001(zz).
endif.
Hi folks,
iam desinging the report, i have designed the selection screen which contains 4 blocks , first 3 blocks contains the input data for 3 diffrent selections, and the 4th block contains the 3 radio buttons , now the user pass the data to the first block and clicked the first radio button the output should be displayed , if he passed data to the second block and pressed the 2nd button then the required out should be displayed and like same for 3 rd.
now my problem is if user filled the data in first block and mistakenly clicked the third raido button, here how can i restrict the user form this, is there any error message has to be displayed? if yes please tell me how?
thanks in advance,
regards
priya
2006 Jul 17 5:26 PM
hi priya,
u can give like
at selection-screen.
if not p_val1 is initial and
rad2 = 'X' or rad3 = 'X'.
message e001(zz).
endif.
2006 Jul 17 5:26 PM
in at selection screen u can use validation against the block of input and radio button
if block- field is not initial and r3 is clicked
message error
Harish
2006 Jul 17 5:28 PM
You can use MESSAGE statement.
Why you are not using buttons in sel. screen instead those radio buttons?
2006 Jul 17 5:31 PM
You will need to check this per radiobutton. Something simular to this.
report zrich_0001 .
parameters: p_chk1 type c.
parameters: p_chk2 type c.
parameters: p_chk3 type c.
parameters: p_rad1 radiobutton group gp1 default 'X',
p_rad2 radiobutton group gp1,
p_rad3 radiobutton group gp1.
at selection-screen.
if p_rad1 = 'X'
and p_chk1 is initial.
message e001(00) with 'Hey, put something in P_CHK1'.
endif.
if p_rad2 = 'X'
and p_chk2 is initial.
message e001(00) with 'Hey, put something in P_CHK2'.
endif.
if p_rad3 = 'X'
and p_chk3 is initial.
message e001(00) with 'Hey, put something in P_CHK3'.
endif.
Regards,
Rich Heilman
2006 Jul 18 8:23 AM
when u input data in first block, make 2nd and 3rd radio button's disbale ( in display mode )
regards
Srini kumar
2006 Jul 18 11:40 AM
hi priya,
try this code.
data : flag 1.
parameters: p_rad1 radiobutton group gp1 default 'X',
p_rad2 radiobutton group gp1,
p_rad3 radiobutton group gp1.
at selection-screen.
if p_rad1 = 'X'
flag = 1.
dour work......
endif.
if p_rad3 = 'X'
if not flag is initial.
do ur work....
else.
message e001(00).
endif.
enif.
as same in p_rad2. if u want , try this
hope it will help u.
chetan vishnoi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |