‎2009 Jan 03 5:13 AM
Hi friends,
am working on modulepool table control.here want to save the data into ztable when i press save.want to select and deselect row in the table control and want to delete the selected row from ztable and internal table.how to get the selected value and how to do select and deselect through coding can any one please provide the code if poosible.i have already tried to get in the forums was unable to get the correct answer.
thanks In advance.
‎2009 Jan 03 5:26 AM
refer to below link...
http://saptechnical.com/Tutorials/ABAP/TableControl/Demo.htm
‎2009 Jan 03 5:20 AM
hi,
here in PAI section u have to modify internal table from screen structure.
at the time of save u have to update database table.
MODIFY IT_ZMATDISPCERT FROM WA_ZMATDISPCERT
TRANSPORTING PROJECT
SUBJECT
YOUREF
LINE1
LINE2
REMARK1
REMARK2
REMARK3
WHERE REFNO = WA_ZMATDISPCERT-REFNO.
when ok_code = 'save'.
modify table ztab from it_tab.
for deletion ,
when ok_code 'delete'.
READ TABLE IT_ZMATDISPCERT INTO WA_ZMATDISPCERT WITH KEY SRLNO = WA_ZMATDISPCERT-SRLNO.
DELETE TABLE IT_ZMATDISPCERT FROM WA_ZMATDISPCERT .
‎2009 Jan 03 5:26 AM
refer to below link...
http://saptechnical.com/Tutorials/ABAP/TableControl/Demo.htm