Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

delete record from ztable by selection option

Former Member
0 Likes
1,076

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...

5 REPLIES 5
Read only

matt
Active Contributor
0 Likes
996

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

Read only

Former Member
0 Likes
996

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

Read only

Former Member
0 Likes
996

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

Read only

Former Member
0 Likes
996

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

Read only

Former Member
0 Likes
996

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.