Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

advise plz

Former Member
0 Kudos
72

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
47

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

6 REPLIES 6

ThomasZloch
Active Contributor
0 Kudos
47

what is your question, my friend?

0 Kudos
47

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

0 Kudos
47

can anyone help please

Former Member
0 Kudos
47

if radiobutton1 = 'X"

detete itab where date NE s_budate.

endif.

awrd points if useful

Bhupal

Former Member
0 Kudos
47

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.

Former Member
0 Kudos
48

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