Reg: Table Maintenence Generator

Hi,
        i have 6 fields (create on, create date, create time, change on, change date, change time) which are supposed to be entered dynamically. for create details i have used 05 - Creating a new entry event. when i change a particular line, change details should get updated. how to do that and what event should be used?
Regards,

Moderator message - Welcome to SCN
This question has been asked and answered many times before in the forum. Please search the forum for answers before asking.
Thread locked.
Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob

Similar Messages

  • ADDING A NEW FIELD IN TABLE MAINTENENCE GENERATOR

    I HAVE A REQUIREMENT OF ADDING A FIELD TO DATA BASE TABLE .
    THAT ADDED FIELD SHOULD BE ABLE TO MAINTAIN IN TABLE MAINTANENCE GENERATOR WHICH IS ALREADY THERE.
    CAN YOU GUYS TELL ME HOW TO ADD NEW FIELD IN TABLE MAINTENENCE GENERATOR.
    PLEASE TELL ME HOW TO DO THIS .
    I AM USING 4.6C

    Hi
    Add a field to existing table and delete the maintenance generator and re create the same
    Regards
    Shiva

  • Table maintenence generator events

    Hi experts,
        I am having a table in which I have implemented the table maintenence generator.The requirement is as follows:
    Field A:User enters value 'aaa' using F4 help
    Field B:Automatically gets populated with the short description corresponding to 'aaa'.
    Here the short description depends on the selected value for field A.

    Hi debansu,
    No need to do your coding in events in your case. first of all you understand the internal table used in table Maintainace, The internal tables used are TOTAL and EXTRACT. These table are of string type so you will have to catch your value using offset. To write the logic to popualte the value is very simple in your case. You add one Module in PAI logic of screen of Table maintainance generator in that Module you poupalte the field. for example say for the F4 value of field MATNR you want to populate field MAKTX. then in the one custom PAI moudule you write like this.
    SELECT SINGLE FROM MAKT
                  INTO LF_MAKTX
                  WHERE MATNR = EXTARCT+3(18)(If Material is the 2nd field after MANDT).
    In PAI LOOP is done on EXTARCT internal Table which holds Records in run time.
    This will solve your requirment If you are not having F4 help then you can create it by adding one event PROCESS ON VALUE-REQUEST writeen in Flow logic of screen.
    We use event where we want to do some validation based on some reasons like Before saving the data in database or before displaying to do the validation of records from table TOTAL. there are diffrent events in Table maintaince but in your case it's not required..
    Let me know if you have any more issue.
    <b>Kindly reward points for helpfull answers..</b>
    Regards
    Tanweer Zaki
    Message was edited by:
            Tanweer Zaki

  • Table maintenence Generator

    HI,
      I created table maintenence for a table,
    when I use sm30 for new entry and when i save the record it is asking transport request every time new record inserted
    pls suggest
    thanks in advance
    karthik

    Also, if you set the 'Recording routine' in the table maintenance generator attributes to the default of 'Standard recording routine' this will link to the transport system and client settings.  If you don't want your table contents to be transported set this to 'no, or user, recording routine'.
    Regards,
    Nick

  • Reg : Table Maintanence Generator

    hi friends,
    After creating a  Z-Table,,we can create entries and diaplay the entries.
    But then Why do we go for Table Maintanence Generator.
    waiting for your answers
    Reagrds
    Vaja

    Hi,
    With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    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-> 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
    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.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    For further help look into these links
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21eb6e446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
    Table
    Hope this resolves your query.
    Regards,
    Omkar.

  • Reg:table maintance generator

    hi,
    i have one  z table with 5 fields now i added another one field .
    in sm30 previouly showing in header 5 fields description , but now why the new field description is not visible why???
    i think it should automatically added ...
    please help me regarding this issue.
    thanks

    hi,
    for ur answer.
    but i change again but no..the description (valution class) is not coming .
    i just entered the bslnr field as standard into my z table.
    but why its not displaying in my table maintance generator screen as a header..
    any process is there??
    please let me know.

  • Reg. table maintenance generator and function group

    I am trying to create a table maintenance for a custom table. It is asking for a function group. Should I create a new function group for each table maintenance I generate?
    Thanks in advance for your input.

    Hi Krishen,
    You can also assign authorization groups to tables to avoid users accessing tables using general access tools (such as transaction SE16). A user requires not only authorization to execute the tool, but must also have authorization to be permitted to access tables with the relevant group assignments. For this case, we deliver tables with predefined assignments to authorization groups. The assignments are defined in table TDDAT; the checked authorization object is S_TABU_DIS.
    You can assign a table to authorization group Z000. (Use transaction SM30 for table TDDAT) A user that wants to access this table must have authorization object S_TABU_DIS in his or her profile with the value Z000 in the field DICBERCLS (authorization group for ABAP Dictionary objects).
    Please check this link for more info.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67129f439b11d1896f0000e8322d00/content.htm
    Regards,
    Ferry Lianto

  • Table maintenence Generator for a Huge data Table.

    Hi Experts,
    I have created a Table maitenance for a Custom table which has some 80,000,000 records approx.
    Now the when i run this, it goes for a short dump saying "STORAGE_PARAMETERS_WRONG_SET".
    The basis have reported that the tcode is running a sequential read on the table & they are saying that is the reason for this dump.
    Are there any limitations that Table maintenance can't be created for table with huge data?
    Or should the program be modified to accomodate the "READ" from the tables in case of large entries?
    Please advice.
    regards,
    Kevin.

    Hi,
      I think this is because of memory overflow.
      You can create two screens for this, in on screen (Overview) screen, restrict the data selection.
      In detail screen display the data.
    With regards,
    Vamsi

  • 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

  • Table maintenance generator, header name missing

    I have recreated a table maintenance generator after adding two new fields, by the below process.
    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.
    Then the new field name changes to '+' sign, how can I give the appropriate name to the fields?
    Please help!

    hello friend,
    please follow this steps.
    1. first u maintain filedlabels
    2. then u can mainatin tmg k.
    3. then save and activate k.
    note : dont give field labes before generating tmg k
    thanks ,
    anji.

  • How to provide MASS transaction concept to table maintenece generator

    Hello ,
    Can any body provide me the solution ....for how to add MASS transaction working concept to table maintenence generator.
    In our requirement user will select some number of records from table maintenence view using MENU >SELECTIONS>SELECT BY CONTENTS .
    Based on this they will select number of records to update .
    from this step they want the same functionality of MASS transaction
    Any help is appreaciated and rewarded.
    urgent
    thanks

    hi...
    could you let us know how you solved this ?

  • Table maintenence

    what is the use for table maintenence generator and where wil we use
    plzz.
    and also how to eleminate duplicate entries in internal table ?

    the purpose of table maintainence generator is to enable the table maintenance through SM30, and to implement and validation etc on table field inputs.
    Here are the steps to create the table maitenance generator for a ZTable :-
    1.SE11.
    2.CHOOSE TABLE.
    3.UTILITIES--->TABLE MAINT GENERATOR.
    4.AUTH GRP : W/O AUTH.
    5.FUNCTION GRP: PROJ DEPENDENT (SEE CREATE FUNC GROUP).
    6.MAINT TYPE : 2 STEP.
    7.MAINT. SCR NO. : CLICK APPL BUTTON | FIND SCR. NUMBER(S) |
    8.CHOOSE PROPOSE SCREEN NO FROM POPUP.
    9.REMEMBER OVERVIEW SCR NO.
    10.CLICK CREATE BUTTON ON APPL TOOL BAR.
    11.CLICK SAVE ON FUNC TOOL BAR.
    12.GO TO SE93. TO CREATE TRANSACTION CODE.
    13.WRITE SUTIABLE TRAN NAME..CLICK CREATE
    14.CHOOSE TRANSACTION WITH PARAMETERS(LAST).
    15.FILL SHORT TEXT.
    16.OK
    17.TRANSACTION : SM30.
    18.CHECK SKIP INITAL SCREEN CHKBOX
    19.SCREEN NO : FROM STEP 9.
    20.IN TABLE BELOW
    NAME OF SCREEN FIELD VALUE.
    VIEWNAME [TABLENAME]
    UPDATE X
    21.SAVE
    22.RUN TRAN CODE IN COMMAND BOX.
    tcode is SM30
    also see this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Upload to Excel option in Table maintenence View

    Hello Gurus,
    I have a Z table, for which we have created a table maintenence view generated and then we've attached a Z taransaction code to the same.
    So if the user want, he can go to this transaction and add/edit/delete table entries right then and there.
    But now the user wants a upload from excel utility/option from the same screen.
    I have read somewhere on SDN that we can create custom routines and attach it to table maintenence generator, but i donno how to do it.
    Can anyone please guide me or point me to some links...it would be very helpful.
    Thanks in advance.
    Cheers,
    Tatvagna Shah.

    HI ALL,
    Recently I faced the same issue, I had to upload 1300 records into the table using table maintenance, First I thought of wiritng a Z program, but realised that it is not acceptable to client, because if the table is uploaded in testing servor or production servor, we have to trasport the program,and this this will only increase no of programs in the produiction servor and this many of these one are required for one time only, because we may require  to  create table miantenace for many z tables has a whole for the complete project.
    My suggestion is to upload the data from excel by pasting (if possible) or manually.
    Please correct me if I am wrong.
    Thanks,
    Vengal Rao.

  • Excel download functionality in Table maintenance generator

    Hi Friends,
    I have a requirement.
    I have to create a custom table and should have a table maintenance for that.
    I can do this via table maintenance generator.
    But after creating this, in the maintenance screen, i should have a button. On clicking the button, a popup should ask for excel file name and after specifying the file name all the data in the maintenance screen has to get downloaded to a excel file.
    So, my idea to implement is, change the code generated by table maintenance generator, to accomplish this.
    In the menu painter, create a button. and have a ok code for that.
    In the screen painter, design a screen with filename field and have a ok button. Accept the filename input and close the screen and then for that ok code in the PAI module, use GUI_DOWNLOAD function to download the excel file to the specified location.
    Please review this and please let me know if there is any alternative solution for this requirement.
    Thanks,
    Jaffer Ali.S

    Hi,
    After maintaining table maintenence generator maintain one push button in pai of the table program .
    in that when 'download'.
    call function module f4_filename it will ask file name enter that value.
    after using gui_download you can down load to excel file.
    To download from SAP to Excel:
    Transaction SE16N allows you to access any sap table and download result to Excel
    no other alternative for this.
    *reward points if usefull

  • Table maintenence logic...

    Hi,
    I am working on table maintenence generator. I have three fields in this custom table.
    Now when user goes to maintain this table in SM30, I want the data to populate in other field automatically based on the data keyed in one field.
    For example when he choses option New Entries, as soon as he keys in data in one field of the table, other field should get its data based on some code logic from standard SAP table using data of first field.
    Like, when user is entering ROLE in one of the field, the logic should fetch the description of that role in description field from SAP table AGR_USERS.
    Regards,
    Rajesh.

    hi check this....here if u enter matnr the desc will populate auto matically.
    if sy-ucomm = 'ENTR'.
    select maktx
                      from makt
                       into ztable-makt
                        where matnr = ztable-matnr
                       and spras = 'EN'.
    endif.
    regards,
    venkat.

Maybe you are looking for