Delete entry

Hi Guys
I want to delete particular entry from ALV output and press save,it should refresh and should update the database table.
How can i proceed on this.
Thanks in advance

FORM PAI_INPUT.
  OK_CODE = SY-UCOMM.
  CASE OK_CODE.
    WHEN '&TEM'.  " im not sure what the code is for the save button (u can also make your own button in a toolbar)
      LOOP AT itab.
        MOVE itab TO Zexttable.  " zexttable is the external db table in this case
        UPDATE Zexttable.
      ENDLOOP.
      MESSAGE S000(E4) WITH 'Data successfully saved to'
              'database table'.
  ENDCASE.
ENDFORM.                    "pai_input

Similar Messages

  • Delete entries from the table

    Hi folks,
    I have delete program to delete entries from a custom table and has only one feld in it.
    tables: ZABC
    selection-screen begin of block B1 with frame title text-110.
    select-options: P_KOSTL for ZABC-KOSTL.
    selection-screen end of block B1.
    delete from ZABC where KOSTL in P_KOSTL.
    Upon executing I am entering certain cost center ids on the selection screen to delete them from the table.It did not work.
    what is it I am missing?
    Thanks,
    SK

    Hi,
    Try this sample code..Replace ZABC with your table..
    TABLES: ZABC.
    selection-screen begin of block B1 with frame title text-110.
    select-options: P_KOSTL for ZABC-KOSTL.
    selection-screen end of block B1.
    START-OF-SELECTION.
    * Delete the records from the table.
    DELETE FROM ZABC where KOSTL IN P_KOSTL[ ].  " [] for the select-options.
    IF sy-subrc <> 0.
      ROLLBACK WORK.
    ELSE.
      COMMIT WORK.
    ENDIF.
    Thanks,
    Naren

  • Unable to delete entries from queue (SMQ2)

    Hi
    I am unable to delete entries from inbound queue due to number of entries are too high (Approximately 160,000). Deletion in dialog mode producing timeout error...Is there any way to delete these entris in background mode or any other idea about this situation..
    Your valuable time & annswer appreciated.
    Thanks
    Rakesh

    Hi Rakesh,
       Check these threads on SMQ2. It may give some help to you:
       Queue issue
       deleting the inbound queue tc smq2
       Also check this file:
      http://help.sap.com/saphelp_nw04s/helpdata/en/d9/b9f2407b937e7fe10000000a1550b0/frameset.htm
    Regards,
    Subhasha Ranjan

  • Is there any BAPI or function module  to delete entries from a table (VBAK)

    Hi Everybody,
    this is my first thread in SDN...
    my problem follows...
    A report is be created that selects all sales orders created by e-Sales that are more than 20 minutes old and still have a delivery block:
    tables:
    VBAK     sales document: header data
    selection fields:
    VBAK-LIFSK      &#8800;     <BLANK>
    VBAK-ERNAM     =     userID used by e-Sales / IVE
              (EP-BATCH / EAI-BATCH)
    VBAK-ERDAT      <=     Current system Date
    VBAK-ERZET     <=     Current system Time - 20 minutes
    These orders should be deleted from SAP system.
    This report should be scheduled to run regularly every 10 minutes.
    my doubt : is ther any BAPI or Function module to delete entries from a standard table...if no what is the way to delete the enteries from a std table...
    best replies will be rewarded....
    regards
    Reddy

    Hi Vasanth ,
    thanks for your reply.
    i tried in the same manner what u mentioned.
    but how to pass only one parameter to the functionmodule..
    here in this case we have to pass only update flag as 'D'..
    i did the same it giving dump..
    An exception occurred that is explained in detail below.                          
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was      
      not caught and                                                                   
    therefore caused a runtime error.                                                 
    The reason for the exception is:                                                  
    The call to the function module "BAPI_SALESORDER_CHANGE" is incorrect:                                                                               
    In the function module interface, you can specify only                            
    fields of a specific type and length under "ORDER_HEADER_INX".                    
    Although the currently specified field                                            
    "INT_ORDER_HEADER_INX" is the correct type, its length is incorrect.              
    my pgm :
    *& Report  YNEW_ORDER_DELETION
    REPORT  ynew_order_deletion.
    TABLES:vbak.
    PARAMETERS:
         p_lifsk LIKE vbak-lifsk DEFAULT '02'.
    SELECT-OPTIONS:
       s_lifsk FOR vbak-lifsk DEFAULT '10',
        s_ernam FOR vbak-ernam,
        s_erdat FOR vbak-erdat,"DEFAULT sy-datum.
        s_erzet FOR sy-uzeit.
    *PARAMETERS:
    p_erzet LIKE sy-uzeit.
       s_erdat like vbak-erdat,
       s_erzet like vbak-erzet.
    DATA:
       BEGIN OF int_final OCCURS 0,
            w_vbeln TYPE vbak-vbeln,
       END OF int_final.
    DATA:
      int_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    DATA: int_order_header_inx LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA:
      wf_time TYPE sy-uzeit.
    INITIALIZATION.
      s_ernam-low = 'KULKARMA'.
      s_ernam-sign = 'I'.
      s_ernam-option = 'EQ'.
      APPEND s_ernam.
    s_ernam-low = 'EAI-BATCH'.
    s_ernam-sign = 'I'.
    s_ernam-option = 'EQ'.
    APPEND s_ernam.
    wf_time = sy-uzeit - 1200.
    p_erzet = sy-uzeit - 1200.
    p_erzet-low = wf_time.
    APPEND s_erzet.
      int_order_header_inx-updateflag = 'D'.
      APPEND int_order_header_inx.
    START-OF-SELECTION.
      SELECT vbeln FROM vbak
                       INTO TABLE int_final
                       WHERE lifsk EQ p_lifsk
                         AND ernam IN s_ernam
                         AND erdat IN s_erdat
                         AND erzet IN s_erzet.
      IF sy-subrc = 0.
        LOOP AT int_final.
          CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
            EXPORTING
              salesdocument         = int_final-w_vbeln
      ORDER_HEADER_IN             =
        order_header_inx            = int_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
            TABLES
              return                      = int_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
        ENDLOOP.
        LOOP AT int_return.
          WRITE:/ int_return-type,
                  int_return-id,
                  int_return-number,
                  int_return-message.
        ENDLOOP.
      ENDIF.
    please help me ..its a very urgent issue to be solved...
    am waiting for ur reply...
    regards
    gangareddy

  • How to delete entries in the T030 table with LSMW?

    Hi all,
    I need to delete 600 entries from T030 table (Fix account table), Tcode OBYG, and I want to use a legacy for this,
    but I don´t know how or if is possible delete entries from a table with a legacy.
    Thanks in advance!

    You Can Use SCAT instead.

  • Delete entries in "Installed Updates" log

    Is there anyway to delete entries in the "Installed software updates" log?
    I want to reinstall a firmware patch but although the patch downloads and says it has installed successfully it doesn't actually update anything... However, it shows up in the "installed updates" log.
    Any one any ideas how to delete entries in the "Installed software updates" log?

    Why do you want to delete an entry from the log?
    What do you think that will achieve?
    How do you know it doesn't actually update anything?
    Why do you think you need to reinstall the patch?
    If you reinstall the patch but it doesn't need to be reinstalled
    then I would not expect anything to change.
    Dave

  • Delete entry or change entry in sap table

    Hi Gurus,
    i want to change or delete entry in VBEP.
    points sure!
    Rahul

    hi guys ,
    its very easy ,
    go for se16 , fetch all the records which are required to delete ( use only se16 lay out)
    after fetching the records just enter ' /H ' in the command bar
    and then double click on any of the enter , then u fill go to debugging screeen and then just press F7
    u will find the following code
    form set_status_val tables ntab structure x031l
                        using code name next for_lines.
      field-symbols: .
      refresh exclude_tab.
      if code = 'SHOW'.
        set titlebar 'TAB' with name 'anzeigen'(100).
      elseif code = 'EDIT'.
        set titlebar 'TAB' with name 'ändern'(101).
      elseif code = 'INSR'.
        set titlebar 'TAB' with name 'einfügen'(102).
      elseif code = 'ANVO'.
        set titlebar 'TAB' with name 'einfügen'(102).
      elseif code = 'DELE'.
    then just click on CODE and pass value as  DELE and press F8
    AND THEN U CAN DELETE ALL THE ENTRIES

  • How to delete entries in COSP table?

    Dear experts
    How to delete the transactions posted in COSP table from my testing client.
    The reason is user has created wrong cost element and posted the transactions. But they don't want this as cost element.
    I have deleted entries in COEP table by running the program RKACOR20.
    After that I tried to delete the cost element. Now it is showing that  "Deletion is not possible (dependent records exist in table COSP)"
    Now  the question is how to delete these transaction posted to COSP table.
    Regards
    Kiran

    Hi Experts,
    I'm facing exactely the same issue on a customer system
    COEP line deleted via RKACOR20
    COSP total amount stil exist, need to be cleaned.
    Does it exist a program that read COEP to update COSP ?
    Any update ?
    Thanks a lot for your help.
    Best regards,
    Jean

  • Delete entries from Database table  t71inp1

    Hi,
    I want to Delete entries from Database table  t71inp1. Its a H R Table. I want to know the exact code.
    i saw the cide delete bkpf where usnam = p_name.
    Will it work the same here. Also.
    Please let me know.
    I hope to get reply from you soon.
    where should i write the code. i.e. Tcode SE38 and directly deeleting write the code.
    Please give me some inputs. I am new to H R ABAp
    Shivakumar K B
    919886920258

    hi
    You can write a program in se38.
    create a program.
    use delete from t71inp1 where<condition> command in it.

  • Delete entries over 1 month old in parent  and child tables

    Hi guys,
    Im new to oracle (2days old) and im struggling to find out how to delete all entries over 1 month old in a database but also delete entries from the child table. I have read about delete cascading etc but im really strugging at the moment. Any tip or ideas? thank you

    You just need to delete data in parent table using the right WHERE clause that requires some timestamp column that stores data age. If the foreign key constraint is created with ON DELETE CASCADE child rows are automatically deleted.
    Assuming P is the parent table and C the child table and the timestamp column is stored in the parent table here is an example.
    SQL> create table p(px int primary key, d date);
    Table created.
    SQL> create table  c(cx int, cy int references p on delete cascade);
    Table created.
    SQL>
    SQL> insert into p values(1, '01/01/2011');
    1 row created.
    SQL> insert into p values(2, '15/01/2011');
    1 row created.
    SQL> insert into p values(3, '31/01/2011');
    1 row created.
    SQL> insert into c values(10,1);
    1 row created.
    SQL> insert into c values(20,2);
    1 row created.
    SQL> insert into c values(30,3);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> delete p where months_between(sysdate, d) >= 1;
    2 rows deleted.
    SQL>
    SQL> select * from p;
            PX D
             3 31-01-2011
    SQL> select * from c;
            CX         CY
            30          3
    SQL>Edited by: P. Forstmann on 15 févr. 2011 13:45

  • Source system appearing in BI folder : Not able to delete entry RSBASIDOC

    Hi all,
    Iam creating source system connection from ECC to BI system.
    But the source system appearing in BI folder all the time, i found one note 1087980 and tried deleting an entry with SRCTYPE = M from RSBASIDOC table with FM RSAP_BIW_DISCONNECT , but the system shows error message OTHER_ERROR and the entry does not get deleted.
    For this SAP recommended to check a valid RFC connection between ECC and BI system , i have checked it and the RFCs are working fine for it also.
    Please help.
    Regards,
    Akash.

    follow this steps:
    In the source sytem
    SE37 e launch the FM RSAP_BIW_DISCONNECT
    you will find the BIW and OLTP log on the RSBASIDOC
    So run the FM.
    IF you find the OTHER_ERROR, may you have to check the RFC connection. (If the source system was been refreshed, you have to create a RFC to PROD).
    You should encounter this error ( Not able to delete entry RSBASIDOC), when you try to restore the DS: in this case infact, is the IDENTIFIER (TSPREFIX) that creates problem (so you have to delete the relevant entry from the table).
    CIao,
    Cristian

  • How to retrive the deleted entries in the ztable

    please let me know how to retrive the deleted entries in the ztable.

    >
    Naseer uddin wrote:
    > Hi,
    >
    >   While creating a table have u activated the buffering (full).
    >   if not then it is not possible to retrive the lost data, and if u have activated the full buffering of table then it is possible to retrive data, up to some extent, using transaction Code se14.
    Complete Nonsense.*
    buffering doesn't mean that it will buffer the records back in database ,once you deleted.it means it will allow the buffer the table to memory only while read access.

  • How to retrieve the deleted entries

    Hi all
    I deleted some standard entries in the sand box related to item category determination in sand box.They are not stored in a change request. How can I revert back those deletd entries back into the system.
    Thanks
    Sonali

    No . I dont have IDES.
    I want to get back those deleted entries.
    Any help is appreciated.
    Thanks
    Sonali

  • Oraphan(deleted) entries in the v$archived_log

    1)why I have oraphan(deleted) entries in the v$archived_log
    77338 04-28-2013 22:10:04 04-28-2013 22:10:39
    77489 04-29-2013 18:07:21 04-29-2013 18:07:27
    77489 04-29-2013 18:07:21 04-29-2013 18:07:27
    1 04-30-2013 16:35:28 05-01-2013 08:47:20
    1 04-30-2013 16:35:28 05-01-2013 08:47:20
    5279 05-08-2013 00:05:12 05-08-2013 05:14:19
    5280 05-08-2013 05:14:19 05-08-2013 11:36:16
    5280 05-08-2013 05:14:19 05-08-2013 11:36:16
    I checked my physical stand is in synced with primary.I have a script to monitor arch gap which grab max seq.So in this case it grabs (77497 29 apr) instead of (5280 may 8 2013)

    Thanks a lot to HC and CKPT for finding time and replying me.
    CKPT I really like your article.I think I am facing same issue.
    We have to reset primary on 30 april 2013.
    DEVL PRIMARY          77490     5474 09-MAY/00:06      ####
    Primary:
    select distinct RESETLOGS_CHANGE#, RESETLOGS_TIME from v$archived_log order by RESETLOGS_TIME desc;
    RESETLOGS_CHANGE# RESETLOGS_TIME
    2.2701E+10 05-01-2013 08:47:20
    2.2701E+10 04-30-2013 16:35:28
    1 08-28-2012 16:34:30
    SQL> select distinct RESETLOGS_CHANGE#, RESETLOGS_TIME from v$archived_log order by RESETLOGS_TIME desc;
    RESETLOGS_CHANGE# RESETLOGS_TIME
    2.2701E+10 05-01-2013 08:47:20
    2.2701E+10 04-30-2013 16:35:28
    1 08-28-2012 16:34:30
    SQL> select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
    77490
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 5471
    Next log sequence to archive 5476
    Current log sequence 5476
    STANDBY
    SQL> select max(sequence#) from v$archived_log where applied='YES';
    MAX(SEQUENCE#)
    5474

  • OB08- Error while deleting entries.

    Hi All,
    I am getting an error while deleting some entires in OB08.
    ERROR MESSAGE: Entry CAD/EUR (28.08.09), exchange rate type EURX cannot be deleted.
    Steps i followed to delete the entires are
    selected some 30 entries and clicked the edit tab and delete function.
    system has given a message box with number of deleted entries 30 after that i clicked SAVE button. Once i clicked the save button i got the above error message.
    Please advice what is error about and how to get rid of this error. Why the error message coming only for this currency combination.
    Thanks in advance.
    Regards,
    VK

    Hi Tarun,
    Thanks for your reply.
    But when i try to delete all the entries one by one i could, but this error comes only when i try as a bunch of entires.
    Please advice why the differences.
    Regards,
    Vimal

  • Removing the Delete Entry (Shift+F2) in SM58 through authorization object

    Dear All,
    Please guide me how to remove the delete entry (Shift+F2) from the following tcode SM58, SMQ1, LBWQ.
    The above said tcode having the S_ADMI_FCD with NADM check.
    I know to edit or copy the standard reports which is used to do the activity.
    But I would like to implement this to the functional Users only to avoid deleting all the TRFC logs.
    Please suggest ASAP.
    Cheers..
    Khadar

    Hi,
    I Appreciate your response.
    Actually my issue was, once you execute the SM58 it will list all the TRFC logs with the criteria of all or mentioned users.
    There you could find the delete icon and in the Edit menu --> Delete Entry (Shift+F2).
    I want to disable this function for all the users except System Administrators.
    Cheers..
    Khadar

Maybe you are looking for