Skip to Content
0
Former Member
Sep 19, 2006 at 05:55 AM

Table control

24 Views

thanks fr ur help.but still i m not able to delete the row.please help me by giving code for beloww statement

I HAVE 1 database table named zSTUD_TEMP having field sid,sname,saddress.

Please give me the code for deleteing row from database table through table control.

its vry urgent.i have to use it in project.

sample code:

case sy-ucomm.

WHEN 'DELETE'.

MODIFY i_ZSTUD_TEMP FROM I_ZSTUD_TEMP INDEX

tab_cntrl-CURRENT_LINE transporting CHECK.

LOOP AT i_ZSTUD_TEMP WHERE CHECK = 'X'.

APPEND i_ZSTUD_TEMP TO WA_ZSTUD_TEMP1.

DELETE FROM ZSTUD_TEMP WHERE SID EQ WA_ZSTUD_TEMP1-SID.

ENDLOOP.

endcase.