Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Oct 20, 2008 at 09: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 09: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 09:29 AM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 09: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 22, 2008 at 05:30 AM

    Thanks for your help...

    Add comment
    10|10000 characters needed characters exceeded