2007 Dec 24 5:13 AM
HOW CAN I DELETE ONE RECORD FROM TABLE CONTROL SO THAT IT ALSO GET DELETAED FROM DATABASE TABLE.
2007 Dec 24 5:21 AM
*Delete the SELECTED Record
if gt_item-cflag = 'X'. --> Field assigned to W/ Selection field on Screen
This deletes from Table
delete from yvbap where vbeln = gt_item-vbeln
and posnr = gt_item-posnr
and matnr = gt_item-matnr
and matkl = gt_item-matkl
and arktx = gt_item-arktx.
This deletes from Table control
delete gt_item index my_table-current_line.
endif.
awrd Poits if useful
Bhupal
2007 Dec 24 5:21 AM
*Delete the SELECTED Record
if gt_item-cflag = 'X'. --> Field assigned to W/ Selection field on Screen
This deletes from Table
delete from yvbap where vbeln = gt_item-vbeln
and posnr = gt_item-posnr
and matnr = gt_item-matnr
and matkl = gt_item-matkl
and arktx = gt_item-arktx.
This deletes from Table control
delete gt_item index my_table-current_line.
endif.
awrd Poits if useful
Bhupal
2007 Dec 24 5:37 AM
CAN I MAKE A PARTICULAR RECORD STATUS TO BE INACTIVE INSTEAD OF DELETING.
IN MY TABLECONTROL I HAVE A COLUMN CALLED STATUS.
2007 Dec 24 5:53 AM
Instead of delete u can write 'Modify' command
Awrd Points if useful
Bhupal
2007 Dec 24 6:02 AM