Event in Table Maintenace

Hi All,
I am facing a problem while writing code in a table maintenance event-03 (Before deleting the data displayed).
By creating a FORM, I am writing my logic. Now my requirement was that when an entry is deleted, my part will trigger.
So how can I understand which entry got deleted?
Thanks in adv.

Hi Danilo,
I have made changes as per told by your suggestion. Taking the EXTRACT table into an local internal table, having declaration like
INCLUDE STRUCTURE <table name>.
INCLUDE STRUCTURE vimtbflags.
Now in the internal table the flag fields are not updated while deletion. The field VIM_MARK is always getting value like '1'.
And as this table has a text table also.So should I have to handle this text table?
Edited by: Mini Nandy on Nov 5, 2009 3:00 PM

Similar Messages

  • EVENTS in table maintenance Generator

    Hi, can u people help me while using EVENTS in Table Maintenance Generator. Means how can I perform different task using events.

    Hi,
    Using events in table maintenace generator, you can validate the fields, update the fields etc..There are events(01-New Entry), (02-Before Save); (03-After Save) etc... The respective events trigger on the action performed.
    To create events : Goto table maintenace generator screen->Enviorement->Modifications->Events.
    Select the from the list of events and peform based on ur requirement
    Regards
    Shiva

  • How to create event in table maintenance generator

    Hi guys,
    I need to create an event for my table maintenace generator such that when the field land1 is filled, the landx field should take its data from t005t table. and the ladnx field should be display only, it can not be modified in table maintenance.
    How can i create an event in table maint. gen? How am i going to do it?
    thanks always,
    mark

    Hi,
    As mentioned in the last post go to the event screen by
    Environment --> Modifications --> Events.
    There you click on new entries and try writing your logic for event 21 i.e. after selecting 21 give some name of your event and write down the logic how you want to do this.
    If event number 21 does not work then try 1. One of these two should work.
    Hope this helps!!!
    Regards,
    Lalit

  • How to hide fields in Table maintenace screen

    I have created a view with table maintenance generator. I would like to hide some fields. With event I am able to fill in those fields but I want to hide those from screen.

    HI, 
    This is reff with ur below post, I have been stuck with same problem,
    I got your code, how its functioning, but didn't get get where i have to write it.
    plz tell me in brief.
    Thanks in Advance.
    Regards
    Vivek
    Re: How to hide fields in Table maintenace screen  
    Posted: Feb 6, 2009 11:42 AM   in response to: Aarti Ramdasi in response to: Aarti Ramdasi           
    Click to report abuse...             Click to reply to this thread      Reply
    Hi,
    You can hide the fields like this..
    For example
    select-options:
    s_carrid for spfli-carrid modif id gr1,
    s_connid for spfli-connid modif id gr1,
    s_cityto for spfli-cityto modif id gr2.
    I am going to hide last fied..To do this
    at selction-screen output.
    if s_carrid is initial or s_connid is initial.
    loop at screen.
    if screen-group1 CS 'GR2'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    endif.
    whenever u click on any one of the field i.e. carrid or connid the third field will displayed.Otherwies the last field cityto is not visible initially
    Regards
    Kiran

  • Table maintenace - adding my own screen fields

    Hi, I made a table zx with 4 columns and table maintenace also. Besides I need a column on the screen wich is not exist in my table. This column must be fiiled  by values that are taken according values of first column..
    I add this column on the screen by se80 and made such changes in code
    PROCESS BEFORE OUTPUT.
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_ZPM_144_EQ_STTYP CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
       MODULE LISTE_INIT_WORKAREA.
       CHAIN.
        FIELD ZPM_144_EQ_STTYP-EQART .
        FIELD ZPM_144_EQ_STTYP-STTYPE_10 .
        FIELD ZPM_144_EQ_STTYP-STTYPE_20 .
        FIELD ZPM_144_EQ_STTYP-STTYPE_30 .
        FIELD ZPM_144_EQ_STTYP-STTYPE_40 .
        MODULE INIT_EARTX.                                                    <--- my module
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
       FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
       CHAIN.
        FIELD ZPM_144_EQ_STTYP-EQART .
        MODULE LISTE_UPDATE_LISTE.
       ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.:
    MODULE INIT_EARTX INPUT.
      DATA: t_EARTX TYPE TABLE OF  T370K_T-EARTX WITH HEADER LINE.
      SELECT SINGLE EARTX FROM T370K_T
        INTO t_EARTX
        WHERE EQART = ZPM_144_EQ_STTYP-EQART AND
              SPRAS = SY-LANGU.
      APPEND t_EARTX.
    ENDMODULE.       
    But I don't know how to display values on the screen. I know that it must be done ib PBO but HOW???

    Hello John
    You should not modify the flow logic of the automatically generated dynpros. Instead, use the maintenance events of the view.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm">Extended Table Maintenance Events</a>
    In your case you may use <u><b>Event 26 before displayed data is output in a list</b></u> or <u><b>Event AA instead of the standard data read routine</b></u>.
    Please refer to the SAP documentation for details of implementing this events.
    The big advantage over your approach is that when you completely regenerate the dynpros your coding will be lost whereas the events remain.
    Regards
      Uwe

  • How to Create Event polling table

    hi,
    1)How to Create Event polling table
    2) wahts RPD stands for.
    3) when we are prefer Dynamic variables.
    thanks.
    raj

    1) http://obiee101.blogspot.com/2008/07/obiee-managing-cache-emptyingpurging.html
    2) Repository Project Design ?
    - More than likely the extension RPD was not used by anything else when Siebel Analytics first started using it, no doubt the 'RP' is repository, so use 'Definition' or 'Design' as you like. Im pretty sure there is nothing in the documentation but i've not checked, maybe you could check and let us know?
    3) Dynamic variables would be something like 'CURRENT_MONTH' where the same query does not need to fire per user (ie SESSION variable) but needs to be periodically refreshed. Another use of you dynamic variable might be 'LAST_ETL_DATE' or somethng similar which might implement with your event polling table. By including the Variable within a Business Model, all cache for the Business Model is purged whenever the Variable's value changes.

  • Events in table maintenance generator 01

    Hi all,
           I have an urgent requirement regarding the events in table maintenance generator.The requirement is i have a qty field in table i want to change the existing value it should allow only a lesser value.How to use TOTAL and EXTRACT structures.
    it is urgent.please help me out.
    Thanks & regards,
    Kranthi

    Follow the example below:
    form get_vendor_name.
      data w_extract type z_table.
      data begin of w_total.
              include structure z_table.
      data: action,
            mark,
      end of w_total.
      loop at extract into w_extract.
        check not w_extract-z_vend_no is initial.
        select single name1 from lfa1
                           into  w_extract-z_vend_name
                           where lifnr = w_extract-z_vend_no.
        modify extract from w_extract.
      endloop.
      loop at total into w_total.
        check not w_total-z_vend_no is initial.
        select single name1 from lfa1
                           into  w_total-z_vend_name
                           where lifnr eq w_total-z_vend_no.
        modify total from w_total.
      endloop.
    endform.
    Reward points if useful.
    Regards.

  • Some records stays in Event Polling Table forever and ever

    I have configured Event Polling Table at Oracle BI. It works fine and the entry cache are purged. But some records stays in EPT table for ever. Records without misstat1 are inserted by me (trigger). Records with OTHER=misstat1 are inserted by BI Server. There is no delete or error statement in log file for this timestamp. Other timestamps are deleted by BI Server.
    +++Administrator:fffe0000:fffe0012:----2008/09/22 22:17:58
    -------------------- Sending query to database named misstat1_db (id: <<127983>>):
    insert into
         BI_EPT("UPDATETYPE", "UPDATETIME", "DBNAME", "CATALOGNAME", "SCHEMANAME", "TABLENAME", "OTHER") values (1, TIMESTAMP '2008-09-22 22:08:24', '', '', '', 'MV_E_DENIK_KP', 'misstat1')
    UPDATETYPE     UPDATETIME     DBNAME     CATALOGNAME     SCHEMANAME     TABLENAME          OTHER
    1     22. 9. 2008 22:08:24                                                                    MV_E_DENIK_KP           misstat1
    1     22. 9. 2008 22:08:24                                                                    MV_E_HIM                           misstat1
    1     22. 9. 2008 22:28:19                                                                    MV_ODY_OSCI_VYROCI     misstat1
    1     22. 9. 2008 22:28:19                                                                    MV_ZPC_CERP           misstat1
    1     22. 9. 2008 22:08:24                                                                    MV_E_DENIK_KP     
    1     22. 9. 2008 22:08:24                                                                    MV_E_HIM     
    1     22. 9. 2008 22:28:19                                                                    MV_ZPC_CERP     
    1     22. 9. 2008 22:28:19                                                                    MV_ODY_OSCI_VYROCI     

    UpdateTime needs to be unique, but you can't put a unique constraint on it. As you probably know, the server will insert a nearly identical record (it will just put text in the OTHER field but everything else will be the same). Then it deletes both records. However, in your case it looks like there are some identical timestamps that are not just duplicates from the server's insert. If you make sure you don't have any identical timestamps in UpdateTime, I think it will work correctly if everything else is configured correctly.

  • Event Pooling Table doesn't work

    I have created Event Pooling Table and registered it. When I insert correct name into field TABLENAME nothing happens - when I look at BI Administrator - Manage - Cache - the table still has entry in cache (and record is deleted from EPT table). When I insert incorrect name info field TABLENAME, I can see message in errorlog (The physical table misstat1_db::MIP:MV_E_HIMA in a cache polled row does not exist.) and I suppose that it is working. But cache not purged.
    Can you someone tell me why?
    Thx.

    Hi,
    Stale cache entries are purged automatically at the specified polling intervals. As your saying record has deleted, it means that polling has occured.
    Are you sure that the cache entry you are looking at is the same table which has been modified?
    If possible, not a solution just for debugging, try to create sample request in Answers and check whether it's been changing when the table get modified.
    -Vency

  • When we are using Event pooling tables explicitly we have insert data into

    hi all
    i have read about event pooling table,
    if we implement event pooling tables then explicitly we have insert table information (like product_dim) in event pooling table explicitly
    suppose i have updated more then 5 tables in my database that time i have to enter(insert) 5 table information in event pooling table(Tables_nq_emt) in the back end
    if so then what is the use of event pooling table???
    this is event pooling table i have crated in back end
    CREATE TABLE S_NQ_EPT (
    UPDATE_TYPE DECIMAL(10,0) DEFAULT 1 NOT NULL,
    UPDATE_TS DATE DEFAULT SYSDATE NOT NULL,
    DATABASE_NAME VARCHAR2(120) NULL,
    CATALOG_NAME VARCHAR2(120) NULL,
    SCHEMA_NAME VARCHAR2(120) NULL,
    TABLE_NAME VARCHAR2(120) NOT NULL,
    OTHER_RESERVED VARCHAR2(120) DEFAULT NULL NULL
    Thanks

    Hi,
    IF you are using event pooling then you should make use of triggres in database.Create a trigger 'after insert' on some major table which you think is gonna update after every etl load.As soon as some data is inserted into this table trigger will automatically insert a record in event pooling table and cache will be purged.I am not sure about the syntax of triggers.Please google it around.
    If you are trying to purge cache through oDBC procdure then you need to create a shell script and based on whether ETL load has completed ,you need to execute this script.
    regards,
    Sandeep

  • Get value of Table data in Event of Table maintaince generaor

    Hi Expert,
    I want content of table in event of table maintenance generator (Event 01 - Before Saving Data in Database).
    can you please tell me that how can i achieve this value of whole table in this event.
    Regards,
    Chintan Shah

    Hi ,
    Try this..
    In event 01
    MESSAGE 'Dulicate Record Exist' TYPE 'S' display like 'E'.
    *--->It will stop save functionality
    vim_abort_saving = 'X' .

  • Cache purging in RPD using Event polling table

    Hi All,
    We have a star schema implemented with few dimension tables and one fact. I am trying to implement Cache management using Event Polling table concept.
    During validation,
    1. Created and ran an adhoc user report
    2. Inserted a record in event polling table with one of dimension table(not fact) of star schema used in adhoc reporting.
    3. Cache in the RPD doesn't get purge.
    Also i have tried validating by inserting a Fact table in Event polling table for which cache gets purged in the RPD within certain interval of time.
    Please help , why dimension tables inserted in Event Polling table and the corresponding RPD query is not getting purged.
    Thanks,
    LonaD

    I can't help you with why this happens, but we experience the same behavior in our environment.  I've always chalked it up to either bad design in the cache polling feature or a bug.
    To work around this, in the past we've used one of these two solutions -- (1) Schedule a daily cron job to clear the entire cache sometime after your nightly ETL refresh usually completes (2) Have your nightly ETL refresh trigger a clear of the entire cache as the last thing it does.  This way, your cache is cleared for most queries on a fact by fact basis, and the dimension-only queries (and anything else left over) get cleared at the end.
    If you figure out a way to do this via the event polling, I'd love to hear it.
    Tony

  • OnFilter event in Table UI element

    Hi,
    I need the coding for onfilter event in table ui element. And also i need step by step procedure for 'How to make the filter function possible in Table display'.
    ie. How many context nodes to be created, i have mapped on context node with bapi and bind it with a Table ui element.I need to display the filter in that table .Do i need to create on more with same structure  for onfilter or i need two context nodes to be created.
    Plz clear me.
    I have place the filter icon in Table UI Element. Also i binded the Filter context node Attributes with each column in Table ui element.  I need to make that icon function properly.
    Edited by: Ramanan Panchabakesan on Mar 25, 2008 6:51 AM
    Edited by: Julius Bussche on Aug 16, 2010 11:57 AM
    Forbidden word removed from title...

    hi,
    on clicking the filter button i got this error
    What has happened?
    The URL http://<server>/sap/bc/webdynpro/sap/ztabletestapp/ was not called due to an error.
    Note
    The following error text was processed in the system KCS : Conversion of type g to type l not supported.*
    The error occurred on the application server kaar-server9_KCS_00 and in the work process 1 .*
    The termination type was: RABAX_STATE*
    The ABAP call stack was:*
          Method: IFWDR_INTERNAL_API~ASSIGN_UNTYPED_REFERENCE of program SAPLWDR_RG_PROXY_FACTORY
          Method: ONACTIONFILTER of program /1BCWDY/EPRPAVSQP7YFCH7L2M4F==CP
          Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/EPRPAVSQP7YFCH7L2M4F==CP
          Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
          Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
          Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
          Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
          Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
          Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
          Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Edited by: Ramanan Panchabakesan on Mar 25, 2008 11:11 AM

  • Events in Table maintanance generator

    Hi All,
        Iam creating the events in the table mainatanance generator.
       My requiremnt is : I need to validate the non-key field. If i give an erro message the field is going to dispaly mode.so i tried to give an warning message dispaly like error. But after user re enters the value , i couldn't handle the value in that field.
    i could not find the event which will trigger after  the entering the value.
    Please help me.
    Thanks in advance.
    Kiran Kumar.

    Hi Kiran,
    The following is a very useful PDF link about IMPLEMENTING EVENTS IN TABLE MAINTENANCE which should solve your problem
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    table maintanance Generator is used to manually
    input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under
    attributes tab
    2) utilities-table maintanance Generator->
    again from the MENU
    ENVIRONMENT->MODIFICATION->EVENTS
    you can find different events for this Table mainteance
    create function group and assign it under
    function group input box.
    also assign authorization group default &NC& .
    3)
    select standard recording routine radio in table
    table mainitainence generator to move table
    contents to quality and production by assigning
    it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers
    this dialog box appears when you click on create
    button
    6) save and activate table
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
    /message/2831202#2831202 [original link is broken]
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    chk this link
    http://help.sap.com//saphelp_470/helpdata/EN/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
    Reward if it helps..
    Regards,
    Omkar.

  • Events in table maintains genrator

    hi gurus,
    events in table maintains generator..... 
    regards,
    praveen

    While creating the tables, sometimes we may need to update the table fields in the background
    Lets take an example, if create a table with 10 fields in those 10 fields there are 2 fields which are User name and the Date, these 2 fields should update automatically when a record Inserted/Updated in the table.
    For this, we need to create a table maintenance generator for that table. There in the table maintenance generator we have an option to create EVENTS.
    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events, for updating the fields create 05(Creating a new entry) and 21(Fill hidden fields) .
    In the EVENTS screen, press new Entries, there give 05 and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write the below code
    form CREATE_ENTRY.
    TABLE-USERNAME = sy-uname.
    TABLE-CHANGED_ON = sy-datum.
    endform.
    Then in the events screen enter 21 and give the form name as HIDDEN_FIELDS, then press the editor button, then in the editor
    form HIDDEN_FIELDS.
    TABLE-USERNAME = sy-uname.
    TABLE-CHANGED_ON = sy-datum.
    update TABLE.
    endform.
    This CREATE_ENTRY Perform will be triggered for every new entry and the HIDDEN_FIELDS fields will be triggered for every changed value in the table, so the Fields USERNAME and the CHANGED_ON fields will be updated automatically when a new record inserted into the table or an existed record changes through the table maintenance generator.
    If you want any more functions, and then look at the events, you can press the F4 and look at the description of the event, then you come to know how to use and where to use.
    Check these links
    http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm
    http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
    Regards,

Maybe you are looking for

  • Itunes wont sync apps to ipod touch

    I bought a second gen iPod touch last Christmas for my son, and loaded it up with the preschool apps from my iPhone with no problem. However, after the initial installation, I have not been able to get any apps to sync from iTunes to the iPod. The ap

  • Putting files on an iPod

    I want to put some files from a friends Mac onto my iPod. If I connect my iPod to his Mac, put it into disk mode, does the iPod need to register with that computer? Would I need to put it in disk mode before I connect to his Mac? Would it make a diff

  • Function not returning value in Discoverer report

    Hi All, I am using a PL/SQL function in a Discoverer Report to return a particular date. The way I am using is that I have created a PL/SQL function and registered the same in Discoverer Administatrator. My problem is that when i run the report this

  • Interest Rate Assignment

    Hello. I really need help on this. I am very new with programming with Java. I have an assignment due and I don't even know where to begin. All I know how to do is program words and that is it. My assignment is as follows: Here is an example of a tra

  • Unable to execute a command in MySQL in a jdbc prog..

    I have a program that needs to execute an SQL insert sentence: stmt.executeUpdate( "INSERT INTO myDates(date_val,time_val,string_val)"+ "VALUES(one,two,three)"); where myDates is a table i have created in my DB and one two three are string values tha