01-09-2008 9:38 AM
selection screen
select-options
S1
S2
S3
S4
radiobutton1
Select option s_budate
radiobutton2
IF radiobutton1 and radiobutton2
select from TABLE
into itab
where S1, S2, S3, and S4
endif.
if radiobutton1
detete itab with all data on selection screen s_budate.
endit
01-09-2008 11:13 AM
Hi Fnd,
i will send a sample code check it once ok..
if radiobutton1 = 'X' and radiobutton2 = 'X'.
select from TABLE
into itab
where S1, S2, S3, and S4
elseif radiobutton1 = 'X'.
detete itab where date NE s_budate.
endif.
Here date is UR DATABASE TABLE FILED ACTUALLY I DONT THAT FILED NAME U HAVE TO MENTION UR DATE FILED THERE OK..
Award points if helpful.
Kiran Kumar.G.A
01-09-2008 9:40 AM
01-09-2008 10:02 AM
how do i write the code
detete itab with all data on selection screen s_budate.
note: itab may contain 20 field with a filed date it that field date NE s_budate it delete the record in itab
01-09-2008 10:36 AM
01-09-2008 10:40 AM
if radiobutton1 = 'X"
detete itab where date NE s_budate.
endif.
awrd points if useful
Bhupal
01-09-2008 10:40 AM
hi,
Have a look on this logic.It will help you out.
If you want to do it using Selection screen then it is possible.
for that you have to use AT SELECTION-SCREEN output. event..
See the below code and use it according to your requirement.
======================================
tables: pa0000, pa0001.
parameters: p_rad1 radiobutton group rad1 default 'X' user-command rusr,
p_rad2 radiobutton group rad1.
selection-screen: begin of block blk1 with frame.
select-options: s_pernr for pa0000-pernr modif id ABC.
selection-screen: end of block blk1.
selection-screen: begin of block blk2 with frame.
select-options: s_stat2 for pa0000-stat2 modif id DEF.
select-options: s_werks for pa0001-werks modif id DEF.
selection-screen: end of block blk2.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
IF p_rad1 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'DEF'.
IF p_rad2 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
=====================================
Hope it will solve your problem.
Reward Points if useful,
thanks,
swaroop.
01-09-2008 11:13 AM
Hi Fnd,
i will send a sample code check it once ok..
if radiobutton1 = 'X' and radiobutton2 = 'X'.
select from TABLE
into itab
where S1, S2, S3, and S4
elseif radiobutton1 = 'X'.
detete itab where date NE s_budate.
endif.
Here date is UR DATABASE TABLE FILED ACTUALLY I DONT THAT FILED NAME U HAVE TO MENTION UR DATE FILED THERE OK..
Award points if helpful.
Kiran Kumar.G.A