04-12-2006 10:49 AM
have an alv report with check box and standard button DELETE.
if i click a check box , and press the delete button,the corresponding rows has to be deleted.
i have created a check box by
WA_FIELDCAT-CHECKBOX = 'X'.
WA_FIELDCAT-INPUT = 'X'
04-12-2006 10:53 AM
Hi,
Make sure you call the method CHECK_CHANGED_DATA OF THE GRID, in the PAI of your screen so that the values from the screen are transferred to the internal table.
Once that is done, in the code of the button all you have to do is
DELETE ITAB WHERE CHECKBOX_FIELDNAME = 'X'.
Regards,
Ravi
Note : Please close the thread if this solves your problem
04-12-2006 10:59 AM
04-12-2006 10:54 AM
04-12-2006 11:02 AM
04-12-2006 11:06 AM
Charles,
As far as I remember, EDIT functionality in a ALV was introduced in 4.6C. So, is your CHECK BOX in the EDIT mode in the first place?
If yes, then all you have to do is to execute the DELETE command as given above.
Regards,
Ravi
Note : Please mark the helpful answers
04-12-2006 10:56 AM
Hi,
check where the checkbox is checked nd delete the records from itab.
some thing like this./
<b>delete itab where checkbox = 'X'.</b>
regards
vijay