Table maintenance generator

Hi All,
I have created a table maintenance generator and maintained data in that.
After that I added one more field in that table, but when I goto SM30 to add entries I cannot find that field.
Please suggest,
Thanks ,
Salman Zahir

Hi,
Whenever you do any changes in a database table, and then activate it, you need to create a new maintenance genrator for your table, else no changes would be reflect in SM30.
As you have added a new field in your ztable, activate it, and delete the old maintenance generator and create a new maintenance generator in the similar way as created initially.
Now execute SM30 and all the modification would be displayed to the user.
Hope this helps you.
Regards,
Tarun

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.

  • How to create table maintenance generator?

    Dear Sir/Madam,
        when i am creating table maintenance generator , it asks for function group
      i give 0MB8 , it says u r going to change function group which does not belongs to u,
    then i created a function group yfg9 and given , it then says yfg9 cannot be processed.
    please telll me how to create the table maintenance generator for maintenance view yv_mmim_rep_cust.
    Thanks in advance,
    Dastagiri

    Hi ,
    Table Maintenance generator is used to maintain data in table , instead of giving access to se11 , we create a tcode for this table maintenance generator and we will give this tcode to end-user to maintain data
    To generate table Maintenance generator :
    click on UTILITIES   in menu bar
    -> table maintenance generator
    -> enter Authorization Group as : &NC&
    -> Enter Function Group : name of your table ( so it will create a function group , to check this function group go to tcode se80 : then select function and enter your Table name )
    -> Then click on find screen numbers in Application tool bar.
    -> Then click on create button in Application tool bar
    if it is created successfully , then you will get a status message like table maintained generator is created successfully.

  • Purpose of table maintenance generator

    wht is the purpose of table maintenance generator

    Hi Pavan,
    The purpose of table maintainence generator is to enable the table maintenance through SM30, and to implement and validation etc on table field inputs.
    SE11->Utillities->table maintainence generator
    You need to enter the values of following fields:
    1. Table name
    2. Authorization group , and authorization object (select the suitable one )
    3. Function group and package
    4. Maintainence type : single or double screen maintainence view depending on the option selected.
    5. Maintain screen number : you may specify a value or let the system generate one for you.
    The validation code for the table entry is written in the flow logic of this screen. Even some of the fields may be made display only , by adding suitable code in the logic or directly disabling the input in table control in the layout.
    Table maintanance is for creating,adding datas to an existing table.
    it is for adding muiltiple records at a time in the table
    A table can be manipulated by a program or manually.
    When creating table, you will find a check box 'Table maintenance allowed'. If we
    check that option, we can manually enter entries using SE16 or table
    maintenance generator screen.
    SE16 is for data browser.
    Go to SE11, give the table name and click on change. Then Go to utilities--> Table
    maintenance generator.
    In the table maintenance generator screen, we should give Authorization Group,
    Function Group name (Function Group name can be same as table name),
    Maintenance type can be one step or two step, usually we will create with one
    step. we should give maintenance screen number. After clicking on create button,
    a table maintenance generator will be created.
    To check it go to SM30 . In SM30, we find display, Maintain options.
    We can view the table contents by choosing Display and we can create table
    entries by choosing Maintain.
    In the production system, end-users will not be having access to transaction
    codes like SE11 and SE16. Developers will not be having access to many
    transaction codes including the above two.
    To view the contents of the database table, we will use SE16n in Production
    system. Please find out the difference between SE16 and SE16n.
    All these authorizations will be maintained by BASIS team, by creating access
    profiles.
    So in order to edit or create the contents of a database table, we should go for
    table maintenance generator. In real time, authorizations will be maintained in
    production system. (even in development and Test systems to some extent).
    There is an audit like Sarbanes-Oxley Act for American clients, where every thing
    will be audited by government agency. To know more about SOX, use the links on
    the right hand side of this page.
    The second reason is, we can edit or create multiple entries at a time, using table
    maintenance generator.
    Apart from that we have options like 'Enter conditions' in table maintenance
    screen SM30. Please try to find out the use of those, by creating an example.
    Table Maintenance generator: Difference between one step and two steps.
    While creating table maintenance generator, we find below options:
    When we choose one step, we have to give the screen number in Overview Screen field.
    When we choose two step, we have to give both overview screen number and single screen number.
    You can give any number for screen. Don’t give 1000 screen number. As this
    number is reserved for selection screen.
    When we choose two step, two screens will be created for table maintenance. For
    single step only one screen will be created.
    When we choose two step, table maintenance will work as follows
    Go to SM30, give the table name for which you have created table maintenance-
    Overview screen will be displayed. To create entries, when you click on ‘new
    entries’. Another screen will be displayed, where you give input and save. You can
    enter one record at a time.
    Go to SM30; give table name for which you have created table maintenance-
    Overview screen will be displayed; To create entries click on ‘new entries’, you can
    enter the records on the same screen. You can enter multiple records at a time.
    We use single step generally, as it is user friendly.
    To completely understand the difference and above points please do exercise by
    creating table maintenance generator in both ways (using single step and two
    step).
    Link: [http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm]
    Link: [http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm]
    Link: [/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.

  • Error while creating table maintenance generator

    Hi,
    I am getting below error while creating table maintenance generator.
    Screen SAPLZtest   0002 could not be generated.   In DYNPFIELD_ATTR field LENGTH has the invalid value 241.
    Reason for that error might be:
    In the table I have a field with a dataelement(customized) of type Char and length 241.
    But in the other table Iam using the standard data element(standard) of same type(241 char).In this table Iam able to create table maintenance generator without any errors.
    And the domain Iam using is same for both the tables.
    Please help me to solve this.
    Thanks in advance,
    Sravanthi

    Hi,
    you can go to transaction se51 and go your screen. active it.. you can find thesolution.
    refer these links..
    Error in table control
    Error while creating table maintainence generator !
    Thanks and Regards,
    Ahamed.

  • Addition of a new column in Table Maintenance Generator

    Hi All,
    I have a requirement in which I have to include a new field in Table Maintenance Generator . This field is not present in the table but its data will be fetched from another table . Pls help me in this regard.
    I have little idea of Table control .
    Regards,
    Nibha

    Hi Nibha,
    Table maintenance generator screen is an automatically generated screen. You cannot to any changes in that and neither can you do the changes in the PBO and/or PAI.
    You can do it but it will ask you for SAP key etc. So there's not need to do it that way.
    What you could do is;
    1. Go to the table maintenence generator from SE11, in Change Mode.
    2. Click on change icon. The system will show the 'Change Generation Elements' screen where it sill ask you the resson
        for change.
    3. Click on the New Field/Sec. table in struction (or whichever is appropriate/applicable in your case)
    4. Press Ok (Tick sign).
    5. Then it will show you the ''Change Generation Elements: Detail' screen.Here;
           =>  You will select the maintenance screen that you wish to change( Overview/Single).
           =>   And the Field Type. Whether it is a key field or normal field.
                  Select which ever is applicable.
    6. The system will then re-generate the screen for you and - You'll Smile! - that you got the answer!
    Cheers!
    Sanjiv

  • Abap WebDynpro: Table Maintenance Generator ??

    ...in ABAP Dictionary there is a tool for generating Table Maintenance for classical "Screen Painter" Dynpro. Is there (or will there ever be?) a similiar tool for generating Table Maintenance for WebDynpro ?

    Have a look at [this|"Table Maintenance Generator" for WD4A?; thread - nothing new until now afaik.
    Regards,
    TW

  • How to disable some of the table fields in Table Maintenance Generator

    HI,
    I am creating one table which contains 10 fields.
    But i wanted to disable some 2 fields in Table maintenance generator.
    So can any one plz tell me how to disable those 2 fields.

    Generate a maintenance view for the table,
    Goto- Table/Join Conditin Tab-- Put the name of your table 
    Goto-viewfield tab--- Put the fields whatever you required. 
    Then generate table maintenance for the view created.
    pls chk
    Thanks
    Anurag

  • Table Maintenance Generator : Editable Entry after validation fails

    Hi,
    I have created a Z table and a table maintenance generator to maintain the data.
    I have to carry out certain validations when user enters data on Key and Non- key fields.
    This is working fine, but the issue is with the key fields.
    If validation fails, the table maintenance screen is displayed the date-field is grayed out (non-editable) as it is the key field of the table.
    Now the user cannot change the data unlike the non-key fields were the user can modify the non-valid data and save again.
    How can make the date field (Key Field) editable after entry in case the validation fail, so that the user can make the changes.
    Please suggest the approach to handle the above scenario in events.
    Thanks,
    Keyur

    Thanks Kiran for your inputs.
    I have done the same thing what you have explained.
    I have used a Form Routine as CIP_SAVE with Event Number as 01, since on event SAVE i need to validate whether dates are
    overlapping the inputs dates or not.
    Fields are :
    Group ID (Key)
    Start Date (Key)
    End Date (Key)
    Value (Non -Key)
    Initial value in Table:
    Group ID = 12345
    Start Date = 01/01/2011
    End Date = 01/31/2011
    Value = 11.11
    Now if i try to enter value:
    Group ID = 12345
    Start Date = 01/02/2011
    End Date = 01/25/2011
    Value = 99.99
    & SAVE it... validation will fails because Start & End dates overlaps.
    Hence, on Table Maintainance Screen all key fields will be in non-editable display mode, whereas non-key field will be in editable mode.
    My requirement is that Start Date & End Date key fields must be Editable field.
    Thanks.

  • Event 03 in table maintenance generator

    Hello All,
    I have created a event 03 in table maintenance generator. Because I need to check if the deleted key is still referenced in an other table.
    I tried the following code, but only if I use the message the entry will not be deleted.
      MOVE uebergehen TO <mark>.
      MODIFY total INDEX sy-tabix.
      <xmark> = <mark>.
      MODIFY extract INDEX nextline.
      IGNORED_ENTRIES_EXIST = abap_true.
    *  MESSAGE e000 WITH 'Entry not allowed to delete'.
    Thanks in advance.
    Marcus

    had to put it in a generic form, hope it still works:
    FORM event_03.
      TYPES: BEGIN OF typ_extract,
               zview TYPE zview,   "or ztable, the one with the maintenance dialog!
               flags TYPE vimtbflags,
             END OF typ_extract.
      DATA: ls_extract TYPE typ_extract.
    * loop at marked lines
      LOOP AT extract INTO ls_extract.
        CHECK ls_extract-flags-vim_mark EQ 'M'.
    *   place existence check here!
    *   using the values in ls_extract-zview-...
    *   if value still being used, send message
        IF sy-dbcnt > 0.
          MESSAGE i...
          ls_extract-flags-vim_mark = '*'.
          MODIFY extract FROM ls_extract.
        ENDIF.
      ENDLOOP.
    ENDFORM.

  • Table maintenance generator is not saving entries.

    Hi All,
    I am facing problem in table maintenance generator.
    I created a table maintenance for Z-Table.
    In my table last 2 fields are a checkbox.
    When we go to Sm30 and check/uncheck the boxes then save , message comes tht data saved , but when we come out and go back to maintenance generator , it's not saved.
    while table maintenance in 2 step , then on detail screen it is working perfectly but on primary screen it's not.
    when TM is single step , it's show entries saved but not saving in data.
    I tried to delete and regenerate table maintenance but still not working .
    Please guide me to ractify this.
    Thanks in advance,
    Ashish Gautam

    Hello Friend,
    Check with th etechnical settings of the ztable:
    see if your buffereing is allowed, and log data chnages is checked.
    If so :
    Then select buffereing is not allowed and uncheck the Log Data Changes:
    Also go to TMG:
    Check if standard recording routine is selected, then select the no, or user recording routine.
    After making these changes, delete the TMG and create a new one once again. You can check it will work fine now.
    Thanks and regards,
    Uttam Agrawal
    [http://uttambpt.blogspot.com|http://uttambpt.blogspot.com]
    Edited by: uttamagrawal on Jan 31, 2011 12:42 PM

  • Delete data with table maintenance generator

    Hi All,
    I have created custom table ZXXX and table maintenance generator.
    I need to maintain data but delete them too. I can update and modify data but how can I delete them ?
    Thanks for your answers !
    Best regards,
    Sandrine

    ok, I found  ..
    I created an internal table to delete the content of my table ZXXX :
    DATA : ws_zxxx TYPE zxxx OCCURS 0 WITH HEADER LINE.
    select * from zxxx into CORRESPONDING FIELDS OF TABLE ws_zxxx
    DELETE zxxx from table ws_zxxx.
    commit work.
    it works !
    thanks all !

  • Blank Records added while using Table maintenance generator - SM30

    Hi all,
    I have created a ztable and view,
    For the view table maintenance generator created using sm30,
    First time when i add reords, a blank record is added automatically ,how to prevent it,
    Also when i try to add invalid data, system throws error , field becomes display only.
    How to solve.
    Regards
    Senthil

    Hi Tarun,
    Go to the layout and increase the size of the Screen. or at the screen attributes change the length and width values.
    You know that initially the screen occupies default size only.
    Hope this would serve your purpose.
    Cheerz
    Ram

  • Add field in table maintenance generator screen of maintenance view

    Hi,
    I am having a table with field user-id. I want to generate a maintenance view which will have corresponding user name as input disabled field. Since there are two tables USR21 and ADRP I need to access(not a direct check table) I will have to modify the code generated by the table maintenance generator.
    Problem is that it is having one internal table EXTRACT at table control loop. That internal table cannot be accessed if you write a module inside the table control loop and try to catch. The error coming as EXTRACT is not object of structure and therefore no component. I tried to capture the value of the Loop but could not be successful. Any suggestion please.
    Thanks,
    Atanu

    Hi,
    sample:
          MODULE LISTE_UPDATE_LISTE.
        ENDCHAIN.
    *--->begin of your change
        CHAIN.
          FIELD YTAB1-BILKS .
          FIELD YTAB1-BILKH .
           module check_bewar  ON CHAIN-input. "your checks
        ENDCHAIN.
    *-----> end of your change
      ENDLOOP.
      MODULE LISTE_AFTER_LOOP.
    ->  module check_bewar  is in an includ z123_INCL
    Regards Andreas

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

Maybe you are looking for