Skip to Content
0
Former Member
May 30, 2007 at 02:14 PM

modify the selection screen

11 Views

hi folks,

I need to modify the selection screen, I need the selection screen block B1 to be displayed only when the 'Delete' button is selected. Here is the code...

tables: ZABC.

data: itab like ZABC occurs 0 with header line.

selection-screen begin of block bl1 with frame title text-000 no

intervals.

parameters: Del_all radiobutton group r1,

Del_blk radiobutton group r1,

Delete radiobutton group r1.

selection-screen end of block bl1.

selection-screen begin of block B1 with frame title text-110.

select-options: P_PERNR for ZABC.

selection-screen end of block B1.

at selection-screen output.

if Del_all = 'X'.

select * from ZABC into table itab where pernr ne ' '.

DELETE ZABC FROM TABLE itab.

endif.

if Del_blk = 'X'.

delete from ZABC where pernr = ' '.

endif.

if Delete = 'X'.

delete from ZABCwhere pernr IN p_pernr[].

COMMIT WORK.

endif.

How can I do that? It is used only when the 'Delete' button is checked.

Thanks,

Sk