10-20-2008 10:20 AM
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...
10-20-2008 10:25 AM
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
10-20-2008 10:29 AM
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
10-20-2008 10:29 AM
10-20-2008 10:35 AM
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.
10-22-2008 6:30 AM