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...
data: itab like ZABC occurs 0 with header line.
selection-screen begin of block bl1 with frame title text-000 no
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.
if Del_blk = 'X'.
delete from ZABC where pernr = ' '.
if Delete = 'X'.
delete from ZABCwhere pernr IN p_pernr.
How can I do that? It is used only when the 'Delete' button is checked.