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

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

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

  • Can you please help me with validation logic for Events in Table maintenance generator

    Can you please help me with validation logic for Events in Table maintenance generator,i.e if i enter record in 1st internal table then automatically 2nd internal table should be updated.

    Hi Glen Anthony,
        Thanks for replay,
         I used foreign key relationship between those 2 internal tables....
    I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
    Thanks Glen.

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

  • How to see column in table maintenance  generator?

    Hi All,
    Can we write code in table maintenance generator ? where can we write code?
    suppose I have created table maintenance generator but column is not visible what might be reason? How to deal with this?
    Can any 1 help me in this regard?
    Thanks in advance.

    Hi,
    column is not visible
    This may be because of additioni of a new field in the table after you have generated the TMG.
    Delete and re-create the object in TMG again.
    writing code in table maintenance generator
    Yes, you can write.
    SE54 --> Environmnt --> Events --> New Entry
    Select the event ..eg.
    01 for Before saving the data in the database
    02 for After saving the data in the database
    Press enter. Click on the editor button and start writing your codes in the routine.
    Regards,
    Firoz.

  • How to tie tcode to table maintenance generator table

    hi guys,
    i need to use tcode to call table maintenance generator program (the one that is created via SM30 ).
    how can i use module instead of executable program type ?

    > Hi Erwan,
    >
    > I hv followed ur step, but i didnt see this step
    >
    > then in the dynpro fields :
    > VIEWNAME ztable
    > SHOW X
    >
    > i am currently in ver 4.7
    >
    > i only see screen, from module pool, name of screen
    > fields, value
    You type VIEWNAME and SHOW in "name of screen fields",  and put your ztable name and X in "Value".
    matt

  • How to hide fields in table maintenance generator dynamically.

    Hello Experts,
                         I have one requirement and that needs to do dynamically display the fields in table maintenance generator based on the selected radio button.I have written the code in pbo but it is not working properly,can anyone figure me out in this.
    Thanks,
    Vinod Bhaskar.

    Hi vinod
         when you are creating tmg , you will specific a function group name  and sap generate a func group which contains that tmg . you can view in se80 , specifying function group name. In that , screen contains single screen 100 or two screen 100,200 .
         screen you can create module in pbo .u can find all field name in that screen.
        loop at screen.
       if screen-name = ''.
       screen-visible = 0.
       endif.
       modify screen.
       endloop.
    regards,
    vijay.

  • How to create transaction for table maintinance generator

    what is the procedure(steps) to create transaction for a table maintinance generator

    Hi,
    The link will be useful for ur requirement.
    allaboutsap.blogspot.com/2007/04/table-maintenance-in-sap-step-by-step.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
    REgards,
    Sarosh

  • Changing data in events in Table Maintenance generator

    Hi,
    My requirement is to default two fields while changing a row..
    I tried using event 01, 02 and 03...
    I used the below code..
    ZYREN-userid = sy-uname.
    zyren-lupdate = 0.
    Please help me in solving this..
    Thanks

    I have done this recently using event 01. Code is as follows, but I don't think that is the ideal way of doing things, but it works in my case. You have to figure out how to define the structure in your case. You can do that by placing a break-point in the subroutine and checking how the internal table TOTAL looks. Then define your structure just like that.
    form populate_created_date.
      data: begin of rec_data,
              sfa_id type /bic/oizucsiebel,
              date   type erdat,
              dummy(2),
            end   of rec_data.
      loop at total into rec_data.
        rec_data-date = sy-datum.
        modify total from rec_data.
      endloop.
    endform.                    "POPULATE_CREATED_DATE

  • Event in Table maintenance generator

    Hi,
    We are using the event in the table maintainenace to validate the data entred by the user.
    In one of the scenarios when user does enter anything and press enter , an error message should come.
    I have created a form on event 01-before saving the data into database.
    But this form is not getting called .in which event should io code this.
    Regards
    Sohit

    Hi Sohit,
    It must work. you keep a break point and check. I had used the same  same thing in one of my object.
    the logic would be to
    LOOP AT TOTAL.
    Now check the record of TOTAL which you want to check by using offset like  TOTAL+0(4) i.e. the first four characters of the total which is for the first field and by taking it do the validation by checking teh database or whatever if fails raise the error message.
    ENDLOOP.
    If you have any doubt write back i'll help you.
    <b>Kindly reward points if it helps.</b>
    Thanks and Regards
    Tanweer zaki

  • EVENT problem in Table maintenance generator

    Hello all
                 I m working on 4.6C sytem. I m facing  2 problems in events in table maintenance generator
    (1) I am using 04 event (After deleting records from table)   I have written BREAK-POINT in the Form .....ENDFORM... But the control doesnt stop there , when i select  an existing record and press delete record button? not able to understand  this
    (2) When i implement even t 03( Before deleting records from table) , and select  an existing record and press delete record button . Control successfully Go  to corresponding FORM ...   BREAK-POINT ENDFORM . 
    But now the problem is.. in debuggin i can see the contents in TOTAL table  but when i try to code LOOP at TOTAL ..ENDLOOP...it gives me syntax error saying "  table TOTAL doesnot exists or not defined..but similar field TOTAL_S , TOTAL_M , TOTAL_L  exists.. ???
      how come i can see the same during debugging but cannot code it ?
    Plese help
    Nilesh

    Hi Nilesh,
    (1)  I think the control will stop there after you delete AND save. Not sure about that but give it a try.
    (2) I believe you are trying to access fields inside table TOTAL, is that right?
    Actually you have to declare a work area with your Z table type.
    DATA: w_workarea type ztable.
    LOOP at total.
      w_workarea = total.
    endoop.
    Then you can work with w_workarea.
    Best regards.

  • Event code in table maintenance generator

    Hi All,       Need to call event in Table maintenance generator of the z table. I have to use 1st event (Select ’01’ – Before saving data in the database).     Need to do fallowing job: Table cleaning : Delete all records with value year =< 2011 -New rule :      No save can be done with value (Pst Var, PA,PSA, Cost = ‘ *,*,*,*’). I am attaching table entry with this mail, I have written the code for this but not sure please suggest me modification if required for this.Because i have never done this before. Thanks and Regards Sankil     

    hi Sankil
    Some variable is not available in your code and you did not modify EXTRACT table.
    Try to modify your code as blow:
    This event has no standard routine. The following global data is available for the realization of the user routine:
    •internal table TOTAL
    •field symbols
    •field symbols <ACTION> and <ACTION_TEXT>
    •<STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table
    TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM
    refer event 01: http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
    regards,
    Archer

  • Field validation in table maintenance generator and input value grey out.

    i have created ztable with 3 fields as em_no,em_no and addrnumber.
    first two fields are custom fields but the third custom field need to validate the standard table adrc contains the value of the field addrnumber.
    i need the query of field validation query which we write in create entry events in table maintenance generator and also if we give wrong value for addrnumber in sm30 maintain table, the input field need not to be grey out for next entry...
    please help.

    Hi,
    create method -
    >before saving data.....write the logic between the method
    go to utilities->table maintanance ,,,after creating generator ---go to envirnment->modification->events.
    create event -.>.as zsave select event  type 1(before saving data to table) write code in include....
    consider data for field3 is 10 .
    lv_new = ztbr(table name)-field3.
    select field3  from ADRC(ZTABLE) into wa_new (TYPE ZTABLE) where field3 = lv_new.
    if sy-subrc = 0.
         working fine
         else.
        message  i888(sabapdocu) with 'data invalid'.
    endform.
    This will help u...
    Thank u.........

  • Changing the table maintenance generator

    hi expert if table maintenance generator is created for a table and after the creation table is changed then how to change the old table maintenance generator?
    Thanks
    Avadhesh
    Moderator message: standard functionality, please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 1, 2010 1:37 PM

    Hi Abbu_sap
    I am agree with Rock's answere.
    go to utilities->table maintenance generator and delete it.
    After it recreate it in a similar manner as you created earlier and save it.
    it will work fine.
    As I also do this every time I change the table and it works fine for me.
    Thanks
    Lalit Gupta
    Moderator message: please do not just repeat what somebody before you already said, there is no added value.
    Edited by: Thomas Zloch on Oct 1, 2010 1:37 PM

Maybe you are looking for

  • Can i exchange my old Macbook Pro with a new one

    I have the 2010 Macbook Pro, but i would like to exchange it with the Macbook Pro Retina 13''. Is it possible. ASAP

  • ICal to do items not available on ipod touch

    Why? The ipod touch is a PDA - mini computer. An amazing piece of technology, yet it fails in one of the main reasons people have a PDA... a to do list to have on the run (yes, I know about notes, but it's a sloppy way to organize "to do things" and

  • I forgot my pass code and disabled my iPad

    I Forgot my pass code and disabled my iPad I have no computers or laptops to connect to as it tells me to connect to iTunes I connected to a freinds computer and it told me to put in my pass code but I don't know what it is ?

  • Help with XI mapping/testing

    Hi! I just went thru the following exercise: /people/james.guanzon/blog/2006/02/22/how-to-support-industry-standards-in-xi-part-i-of-iii--interfaces /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping

  • Why Illustrator UI is so different compared to Photoshop?

    Features that do the same thing like skewing an object is even named differently (its shear in Illustrator, under object/transform/). There are also many other differences that only confuses user like me who often works with both apps. Why can't Phot