Application Development 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: 

To delete data from a particular Internal table by the user who executes it

Former Member
0 Kudos

Hi All,

I want to know how can the data from an internal table be deleted by the user who executes it.

For example:

In Selection screen, the user fills in some inputs and presses F8 or EXECUTE button. Depending on the parameters which the user fills in, some internal tables are being populated in the code. Now, the user should be given a chance ( ie the selection screen should come out again ) to select what all data he wants to display in the final output by providing a checkbox for each record. The records which he selects will be displayed in the final output and others get deleted from the internal table.

Can anybody help me on this? Much appreciated...

5 REPLIES 5

Former Member
0 Kudos

Hi

U need to call a POPUP before displaying the output, in the popup u can create a dialog where the user can decide which records have to be shown.

Max

Former Member
0 Kudos

Hi,

Why do you need to cal the selection screen again..??

USe check boxes on the same screen and fetch the query by filtering data according to checked boxes..

Or if you really wanna do so then create custom screen through se51 and use check boxes in that screen

& write your query in its PAI module..

And then write the 'WRITE' statement to display data accordingly in Report screen..

Regards

Mudit

satsrockford
Active Participant
0 Kudos

This message was moderated.

Former Member
0 Kudos

as you mentioned you can have a checkbox option, just add a flag field in your internal table.

for code details you can refer a recent message 'ALV Grid with check box' wherein you can select the records that need to be deleted or vice versa.

With the help of the check box flag field the records form the internal table can be modified.

Former Member
0 Kudos

Thanks for your help...