How to select a record and delete using sereen painter in alv

Hi experts i have displayed a table in selection sereen
in alv by using table control(sereen painter).
My request is to display the database table records
when i press F8.
I also have two buttons one is 'DELETE'
and another one is 'INSERT'.
My request is i have to select a particular record in
the output and if i press the 'delete' button means
then the selected record should be deleted in that table
and also in database table.
Like if i insert a new record means then the record
should be inserted in that table and database table...
Kindly plz send the coding immediately............

Hi,
create a module in ur  PROCESS AFTER INPUT fro eg
MODULE select.
select * from db into table itab.
module delete.
db-field = wa-field(this is the field u r going to delete in ur  table control and in database table).
append wa to itab.
delete <db table> from itab.
module insert.
db-field = wa-field(this is the field u r going to insert in ur table control and database table )
append wa to itab.
insert <db table> from itab.
regards,
dhaya..

Similar Messages

  • How do I see, organise and delete unsorted bookmarks? I am using Firefox 3.6.6 on a Mac with OS X 10.5.8

    How do I see, sort and delete unsorted bookmarks in Firefox 3.6.6? Using Mac OS X 10.5.8. All bookmarks not in folders already seem to be in a lump called unsorted bookmarks in the Library but I can't open this to see them. I have deleted some from the bookmarks menu via the blue star it does not work with sites without an icon. pls help

    I have this same problem. I want the ability to remove links from the unsorted bookmarks or the entire category altogether.
    If there is no resolution, I could delete all Firefox files after saving my important bookmarks to Safari then come back and reload Firefox.
    Why Mozilla does not take this concern whole heartily I do not know.
    I have seen complaint about this dating back over two years.

  • Can any one tell me how to select latest record

    Hi,
    Can any one tell me how to select latest record. Below is the requirement
    select * from a where a_Date=v_date.
    out of thousand records with matched condition i need to select latest record
    Thanks in advance

    user12852882 wrote:
    Can any one tell me how to select latest record. Below is the requirement
    select * from a where a_Date=v_date.
    out of thousand records with matched condition i need to select latest recordHow do you determine the "latest" row? From your description it sounds like the following SQL will define the latest:
    select max(a_date) from aThis will return the last/latest date used from the table.
    Secondly, you now want to select the last row - or rows. As a_date may not be a primary key (you did not state it was and usually a date column make poor choice as unique identifier), there could be more than one row with that "+latest date+".
    So to find the latest row(s):
    select * from a where a_date = (select max(a_date) from a)Or you could do the following:
    declare
      latestDate date;
    begin
      // find the latest date and store it for use and re-use
      select max(a_date) into latestDate from a;
      // now process the last row(s) - and consider rewriting this
      // as a bulk processing loop
      for c in (select * from a where a_date = latestDate)
      loop
        .. do something with the row
      end loop;
      // now use latestDate variable for some other
      // required processing
    .. code goes here ...
    end;

  • Copy and delete using FM - HR_INFOTYPE_OPERATION..

    Hi All,
    I would like to copy the record and delete the record using the FM - HR_INFOTYPE_OPERATION..
    Scenario : For Example IT 0010
    Existing Record
    BEGDA                      ENDDA
    01.01.2005     30.09.2007
    I would like to copy the records with new begda - 01.10.2007, this is working fine and I am doing the commit work after FM - HR_INFOTYPE_OPERATION with Action COPY.. After this I have put a break point and cross checked theire are two records in IT 0010
    BEGDA                      ENDDA
    01.01.2005     30.09.2007
    01.10.2007     31.12.9999
    After this again I am using HR_READ_INFOTYPE with BEGDA and ENDDA as 01.10.2007, I was expecting the latest record that begda with 01.10.2007 but I am getting the old record that 01.01.2005 and 31.12.2007….!! When I cross check using PA20/PA0010 It shows two records but when I use HR_READ_INFOTYPE it still access the old records…!!, how do we overcome this , for me I need to record with begda 01.10.2007 and endda 31.12.9999 so that I can delete it…!!
    Please suggest..
    Regards,
    Mangalagi S V

    Dear Suresh,
    Thanks for the suggestion., it's worked..!!
    Regards,
    Mangalagi S V

  • How to reset All users and delete their table?

    Hi,
    i want to know How to reset All users and delete their tables with username- system and password-manager.
    thanks

    Hi
    Here delete means truncate or drop?????
    If drop use the following statement to generate the script:
    select 'drop table ' || Owner || '.' || Table_Name || ';' from Dba_tables
    where owner in (<All_the_users_you_want_to_reset>);
    But before firing the above statement extract the DDL's to create all the users and put it in a file and just run that file to re-create the users.
    if its truncate then:
    select 'truncate table ' || Owner || '.' || Table_Name || ';' from Dba_tables
    where owner in (<All_the_users_you_want_to_reset>);
    Hope this Helps
    Regards

  • How to select multiple records from a TREE in the table

    HI,
    I have a tree structure which is in the table.When I open the node of the tree,all the subnodes are coming as one-one records in the table.I want to slect multiple record from this table.I applied onLeadSelect for this table,I can select only 1 record from the table.
    Can any one plz suggest me how to select multiple records from the table so that I can get all the data of those selected record.
    Regards
    -Sandip

    Rashmi/Kukku,
    First of all, Thanks for your help!
    Is there any other way in which we can access tables other than using BAPIs or RFCs?
    In my case, there is a table structure which has to be updated with values after validating a key. i don't think there is any RFC available now. do i need to create bapi/rfc for that?
    Krishna Murthy

  • How to select data from a table using a date field in the where condition?

    How to select data from a table using a date field in the where condition?
    For eg:
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
                                                      and bdatu = '31129999'.
    thanks.

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

  • How to select the printer and select the ICC profile for printing with VBScript?

    I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
    Anyone has done this before?
    Thanx!
    jus

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • How to find the columns and tables used in a stored procedure?

    Hi,
    Can someone suggest how to find the columns and tables used within a stored procedure?
    Thanks
    VBK

    For example:
    SQL> create or replace
      2    procedure p1
      3      is
      4          cnt number;
      5      begin
      6          select count(*) into cnt from emp;
      7  end;
      8  /
    Procedure created.
    SQL> select  referenced_owner,
      2          referenced_name
      3    from  dba_dependencies
      4    where owner = 'SCOTT'
      5      and name = 'P1'
      6      and referenced_type = 'TABLE'
      7  /
    REFERENCED_OWNER               REFERENCED_NAME
    SCOTT                          EMP
    SQL> SY.

  • How do i reinstall ios5 and delete ios6

    Hi  how do i reinstall ios5 and delete ios6, i have had nothing but trouble since the ios6 update.
    i have to re-enter my wifi password everytime i my phone goes on standby, and the maps are pants..

    Wow, I love it when people tell you how "millions of people aren't having problems" or "let's troubleshoot" ... good thing you folks don't work for Apple customer support. Okay, here's the deal:
    Ipad2 updated to ios6.  Sound cuts out after a few seconds.  in "Music" app, there is no slider for volume ... in task bar at bottom (far left), there is no slider for volume.  When you use the rocker for volume on the side, up pops the symbol for "sound effects" (not the volume indicator graphic).  Switch the button to or from "lock rotation" and that does nothing.  In alarm clock, sounds work fine ... on random occasions the unlock slider has a click, then all sounds disappear.
    I reinstalled and reverted to default settings ... nothing changes.  Reset the thing a few hundred times ... nothing.  When I resinstalled, I installed no apps at first ... nothing.  
    I have tried every suggestion that people have put up here and none of them work. I have never had an update that even approaches how bad this one has been (I have nine Macs, 3 iPads, and 3 Ipod touches .... never have I seen such a ****** update).

  • HT201210 Contact List Problem.   I have duplicates on my iPhone.  I turned off my Contact and selected "Delete Contacts"  Most of the contacts were deleted but about 120 were left on my phone.   I've tried selecting individual contacts and deleting them,

    Contact List Problem.   I have duplicates on my iPhone.  I turned off my Contact and selected "Delete Contacts"  Most of the contacts were deleted but about 120 were left on my phone.   I've tried selecting individual contacts and deleting them, No Go. 
    Can anyone help?   How do I get rid of these contacts so I can re-synch my iPhone. 

    I have exactly the same problem on my ipad. It is happening on only some contacts but, as with you, when I delete one of the contacts on the ipad, the second ipad contact and the contact on the imac are also deleted. This is even the case when I have differentiated the two contacts on the ipad and can see the one I have deleted on the ipad is not the same one as is then deleted on the imac.

  • A phantom folder with the name of a folder that held photos has appeared in my finders places list.  I can't choose it to delete it.  it won't move.  It can't be found in a search.  How can I choose it and delete it?

    a phantom folder with the name of a folder that held photos has appeared in my finders>places list.  I can't choose it to delete it.  it won't move.  It can't be found in a search.  How can I choose it and delete it?

    Can you drag it off holding down the CMD key?
    Do a search for it with EasyFind  (try different settings in "Operator")
    http://www.devontechnologies.com/products/freeware/

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

  • My ipod touch wont restore - I plugged it into friends computer to charge and now it is stuck. How can I successfully restore and start using my I touch again (4th gen). TKS.

    my ipod touch wont restore - I plugged it into friends computer to charge and now it is stuck. How can I successfully restore and start using my I touch again (4th gen). TKS.

    You have to put the iPod touch into the recovery mode.

  • Fitbit does not sync with healthvault no matter how many times I add and delete it

    My healthvault never shows any information synced from fitbit.com, I have the scales and a tracker and no matter how many times I add and delete it through the fitbit share healthvault page but  it never ever syncs over night. I have left is weeks and
    still nothing in HV.
    I am starting to wonder if HV supports fitbit? Any help would really be appreciated, this is driving me insane.
    Do I need to create a new account? is my account just broken?

    Hi,
    I have spoken with FitBit about this issue and they provided the following:
    Since you have already linked and unlinked your account and still having issues please contact Fitbit Support (http://help.fitbit.com/?cu=1)
    for further assistance."
    Addititionally when you contact FitBit can you please let them know that you have already contacted HealthVault.
    Thanks
    Tomas
    MS HealthVault Support

Maybe you are looking for