2011 Sep 26 1:20 PM
hi experts,
i have an issue regarding deletion of record from ztable
we have only one record in that table and tha is primary one
i need to delete a selected record from that table
and i should not take it as parameter and i am working on function modules and i need to create web service for that fm.
if i execute that fm total records from data base need to displayed if i select a check boxes it need to delete that records and can you please tell me the procedure ....
thank you...
hi experts,
i have an issue regarding deletion of record from ztable
we have only one record in that table and tha is primary one
i need to delete a selected record from that table
and i should not take it as parameter and i am working on function modules and i need to create web service for that fm.
if i execute that fm total records from data base need to displayed if i select a check boxes it need to delete that records and can you please tell me the procedure ....
thank you...
2011 Sep 26 1:32 PM
Please try posting your question again. At the moment I cannot understand what you are asking. When you've retyped your question, read it through and make sure it's clear.
matt
2011 Sep 26 1:40 PM
hi ,
i need to create a function module in which if i execute that function module. i need to display the total number of records which are present in the table. the user selects one record by using check box and he will delete that record in that way he may select 20 records at atime and deletes that records and what sort of logic i need to use there...
if i use parameter it wont work in my present condition i need to go with other options please can u tell me the other solution...
regards,
prabhanjan
2011 Sep 26 1:55 PM
Hi
It depends on how you've defined your selection-screen, that's not clear, I mean I don't understand how you define the parameters/selection-screen for key fields.
You says the user can select a checkbox, but what this checkbox means?
Max
2011 Sep 27 8:39 AM
You can use a screen.
Create a screen, add a table controller to the screen with a selection column.
Load the records into the table controller.
User can select the required records.
Loop through the internal table.
If the record selected, selection column value will be 'X'.
use DELETE ztable FROM wa in the loop.
following links may help
creating and using table controller
<Link to blocked site removed by moderator>
using row selection
http://www.sapdev.co.uk/dialog/tabcontrol/tc_mark.htm
Edited by: Vinod Kumar on Sep 27, 2011 1:31 PM
2011 Sep 27 8:55 AM
Hi,
What i understand from your question is you will display some records from a ztable using a function module, after display user will select some records(using checkboxes) to delete from the ztable , if my understanding is right my question is how are you displaying the record in the output screen using alv or simple report, if you are using a alv then you can easily incorporate check boxes over there to select different records, then you can store tose records in an internal table and then delete the ztable records based on this internal table records.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |