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

Similar Messages

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

  • Table maintenance generator. Why cut a column ?

    Hallo,
    I created a ztable and than a table maintenance . All it was ok. After I changed the ztable, I add a column,
    than I delete the table maintenence and I rebuild it.
    The new table maintenance generated not contein the column... why ? What I have to check ?
    Tks.
    regards.

    Hi ,
    Go to Tcode SE14 Database Utility and select the activate and adjust data and do the TMG.
    Regards,
    Bharani

  • Check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table B

    How to check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table b.
    DDL-
    Create table A
    ( A INT,
    B INT,C VARCHAR(2)
    Create table B
    A INT,
    B INT
    Any advice on the best approach or method to achieve this.
    I understand that I need to check the schema of the columns and then do a match between 2 tables and find new columns and then alter my target table
    Mudassar

    Can you try this..
    CREATE TABLE A ( A INT, B INT, C VARCHAR(2) )
    CREATE TABLE B ( A INT, B INT )
    Declare @ColumnVar nvarchar(128),@DatatypeVar nvarchar(128)
    SELECT @ColumnVar=x.COLUMN_NAME, @DatatypeVar=x.DATA_TYPE
    FROM INFORMATION_SCHEMA.COLUMNS AS x
    WHERE TABLE_NAME = 'A'
    AND NOT EXISTS ( SELECT *
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'B'
    AND COLUMN_NAME = x.COLUMN_NAME )
    Declare @SQL VarChar(1000)
    SELECT @SQL = 'ALTER TABLE B ADD ' + @ColumnVar + ' '+ @DatatypeVar
    Exec (@SQL)
    select * from B
    Please Mark This As Answer if it helps to solve the issue
    http://stackoverflow.com/questions/2614101/alter-table-my-table-add-column-int

  • New field not reflecting in Table maintenance generator

    Hi Experts,
    I have added a new field in a ztable.I regenerated the table maintenance generator,so that the  new field is reflecting in devlopment system , also a TR got created.When i moved this TR to pre-production system new fields are reflecting in the structure of table but not in table maintenance generator.
    Please suggest solutions.
    Regards,
    Niranjan

    Hi Experts ,
    I have gone through the steps which is mentioned.But still issue is pending,the changes in TR are not reflecting in pre prod.
    Error after moving the TR with "Definition of a Maintenance and Transport Object".
    The current ABAP program "SAPLSVIM" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "SAPLZFGL " in include "LZFGL$03
      " in
    line 13:
    "Field "ZCHAR_FIXED_WIDTH" is unknown. It is neither in one of the spec"
    "ified tables nor defined by a "DATA" statement. ."

  • Additional buttons in Table Maintenance generated program

    Hello all,
    I'm looking for a way to add additional buttons on the generated table maintenance program. Such a program is generated via Dictionary transaction SE11 and then the Menu choice Utillities --> Table Maintenance generator (or use transactiob SE54).
    The program generated is based on the standard SAP function group SVIM (of which components are copied to the table maintenance program). In the function group SVIM the STATUS objects are located (but they are standard SAP). In order to modify them (add some additional buttons) i am seeking a method for this.
    Thanks in advance,
    Rob.

    Hi Rob,
    Use transaction SE54, enter the name of your table, choose radiobutton 'Generated Objects' and choose 'Create/Change'. In the next screen there is an option in the menu Environment -> Modification -> User Interface. Here you can choose to use an Individual Interface where you can add the buttons you need.
    Regards,
    John.

  • Table maintenance generator for a custom table

    Hi All,
    I have a requirement.
    I had created a custom table with 5 fields with partner_id as the key field.
    I had generated the table maintenance for this.
    But, when i maintain via sm30, the maintenance screen should display 7 fields, i.e
    for the partnerid, the firstname and the lastname has to be display as the second and third column.
    So, in the maintnenace screen sm30, i should have 7 fields display... but actually in real custom table, there will be only five fields (except firstname and lastname of partner).
    Please guide me how to do this development.
    Do i need to change the code generated via table maintenance and add these two fields in the table control and code to retreive the values for the firstname and lastname.
    Please help me.
    Thanks,
    Jaffer ali.S

    it is not a wise idea to add your custom fields in standard sap table maintenance generator screens..
    each time you do a re - generate, (in case you added a new field in the table, or changed a data element, ) you will have to regenerate your tabe maintenance generator, and you will lose your code...
    in this case, it will be better to create a custom screen with these fields and write code to populate the table..
    or to make it easy, create a maintenance view with all fields required,

  • Table Maintenance Generator via program using ALV OO concept

    Hi All,
    I have a requriement to update the table using OO ALV i.e table maintenance generator program.
    My Z table have three fields say.. NEW status, old status and flag.
    I have to dispaly the records of the Z table in Matrix format.
    for example the records of the Z table is
    New status
    Old status
    Flag
    N1
    O11
    F11
    N1
    O12
    F12
    N1
    O13
    F13
    N2
    O21
    F21
    N2
    O22
    F22
    N2
    O23
    F23
    N3
    O31
    F31
    N3
    O32
    F32
    N3
    O33
    F33
    My program have to display the records of the table in matrix format  i.e
    |   .....       |    O11    |  O12  |  O13   |  O21  |  O22   |   O23  |  O31   |   O32  |  O33 | ..
    |     N1    |     F11     |    F12     |  F13     |    .....   |  .....       |  ....        |  .....      |   .......     |   ....    | ..   ____________________________________________________________________________________   
    |    N2     |     .....     |  ......      | .......      |   F21   |   F22     |  F23      |   ...        |   .....       | ......   | .
    |     N3    |     ......   |   .....      | .......   .  |  .......   |  .......     | ....         |   F31     |    F32      |  F33   |   
    The ALV display is dynamic i.e it depends upon the no. of records in the table...
    My headings( Row heading and Column heading )  will be the value  from table... and the user should be able to change the Flag ... For example when the user change the Flag  'F21'  to say 'X',
    |   .....       |    O11    |  O12  |  O13   |  O21  |  O22   |   O23  |  O31   |   O32  |  O33 | ..
    |     N1    |     F11     |    F12     |  F13     |    .....   |  .....       |  ....        |  .....      |   .......     |   ....    | ..   ____________________________________________________________________________________   
    |    N2     |     .....     |  ......      | .......      |   X       |   F22     |  F23      |   ...       |   .....       | ......    | .
    |     N3    |     ......   |   .....      | .......   .   |  .......  |  .......     | ....       |   F31      |    F32     |   F33    | .  
    In the Z table  the record  is
                     N2          O21        F21
    should be changed to
                    N2          O21        X
    I tried using ALV oo concept....but  I can able to display the output as like it is in table ....Not like the one above format....
    Can you please help me to resolve it?
    Thanx in advance
    Sangeetha
    Edited by: sangeetha s k on Dec 16, 2008 7:42 AM
    Edited by: sangeetha s k on Dec 16, 2008 7:50 AM
    Edited by: sangeetha s k on Dec 16, 2008 8:04 AM

    Hi,
    Go through Following Menu Path
    Tcode SE11-> Table Name-> Change.
    Utilities-> Table Maintance Generator->Create Maintance.
    On Same Screen go to Menu Environment->Modification->Events
    Create New Event e.g. 05 , Enter Form Routine Name.
    Go to Editor.
    and Put Your Logic
    e.g.
    FORM FILL_DEFAULT.
    * Actual Logic for how to get materials list.
    ENDFORM.   

  • Search Help for field on table maintenance generator ECC 6.0

    Hi All.
    To maintain search help for a custom field on table maintenance generator.
    Only through coding.
    Cannot use domain or data element or table field search helps.
    Have to code only.
    Is there any way?
    Can I do modifications/additions to screen code and achieve this?
    Regards,
    Veeranji Reddy P.

    Scenarion:
    1. table with 2 fields.
    2. table maintenance generator.
    3. Function group with one screen(0001-mentioned in table maintenance) created.
    4. For one field on table maintenance generator...where we add new entries to table, i want a search help.
    Conditions : only coding has to be done..no search helps I can use.
    Coding where and what?
    one option is to code on the screen 0001- either in PBO/PAI.
    Is it a rite place...? or any other option? But no search helps as mentiond in my first message can be used.
    Thanks and Regards,
    Veeranji Reddy P.

  • 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

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

  • 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

  • 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

  • 'Position' Button in Table Maintenance Generator

    Hi,
    i am using 'Position' button to navigate to particular entry in the table in table maintenance generator.
    as far as i know this will correctly when we provide 'left part' of key in the pop up provided by position button.
    however in my case where i changed the column positions in the table maintenance generator which includes key fields.
    does it going to affect 'Position' functionality? because position button is not taking me to correct positions now.
    please suggest....

    Did you change the key field order in the table structure in SE11 or did you manipulate the table maintenance screens by changing the key column order?
    In either case, you can regenerate table maintenance by clicking the change button in SE55 and selecting all check boxes. This will correct the issue. However, check if you have any custom events written or modified screens, as those changes will have to be restored after regeneration

  • Disabling fields in table Maintenance generator

    Hi Experts,
    I would like to restrict some fields in table maintenance generator dynamically/ statically.
    Here is the situation.
    I have generated table maintenance for the table ZMARA and I have created three transactions for the above single table maintenance generator.
    i.e .. Transaction      ---        Table
              ZT1                  ---         ZMARA
              ZT2                  ---          ZMARA
              ZT3                  ---          ZMARA
    I am using above three transactions in my module pool program. Based on the certain conditions I am calling different transactions i.e ZT1, ZT2, etc
    Here is my requirement:
    Suppose if I call ZT1 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZPRODH.
    or remaining fields should disable. User should not allow to change the content, even if it is new entries/existing entries. only ZMATNR, ZMTART, ZPRODH.
    Suppose if I call ZT2 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZHTSCODE
    How can we restrict dynamically when you call table maintenance generator table through transaction
    or
    How can we generate table maintenance for few fields?
    Edited by: r badveli on Mar 16, 2009 4:27 PM
    Edited by: r badveli on Mar 16, 2009 4:27 PM
    Edited by: r badveli on Mar 16, 2009 4:28 PM

    Hi ,
    go to Se11->Table maintenace generation. Double click on screen to edit and assign the field you want to display/hide to groups. In PBO , after the following lines..
    LOOP AT EXTRACT WITH CONTROL
    TCTRL_ZMARA                         CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    Write a new module in PBO and edit the SCREEN as per the Tcode, you are calling,,'
    Hope this helps you
    Rj

Maybe you are looking for