Table maintenace

Hi All,
I have created a table maintenance genrator to a Z table.
Now I can maintain (create, delete, modify) the table entries from SE16 or SM30.
But on user's request I have created a Z transaction for the maintenance of this Z table.
Now if user types this  trasaction in command bar the table contents will be displayed in a tabular format in display mode
(of course we can create new entires or delete the existing entry)
this Ztable is having 3 columns, amongest one is Base Unit of measurement.
here i am facing the problem, user want to me to restrict Base Uom as "KG" only so that if user is giving some other Base Uom other than KG, i need to show an error message in status bar 'like plese give base Uom as "KG" only...
Please help. this is an urgent requirement.
Thanks in advance.

Hello,
On tcode SE11 go to your z table. Then click on Utilities -> Table Maintenance Generator, Then click on Enviroment -> Modification -> Maintenance Sceen -> double click there. Over there on the PAI you can add a new module in order to validate all the data you need.
Hope this helps,
Dont forget to reward!!
Gabriel P.

Similar Messages

  • 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

  • Table maintenace genarator

    Hi all,
            I had a strange issue i'm trying to create a maintenace view for table  SWWCNTPADD,as its delivery class is L,i had changed it to type C and tried to genarate the maintence view,it is created without errors and when i tried to maintain it in sm30 it is showing error as "ZSWWCNTPADD" must be a flat structure. You cannot use internal tables strings,references, or structures as components.even the same error is comming when i declare that in tables statement in reports,plz help me insolving that or can i know the reason why it is hapening like this.points awarded imm for all helpful answers.thank u

    HI nitha,
    1. there might be some minor operation problems.
    2. just make sure of the following :
       a) after changing the delivery class to 'C',
          ACTIVATE the table again.
       b) DELETE & RE-GENERATE
          the full table maintenance once again.
       c) in new session, check thru sm30.
    regards,
    amit m.

  • Table Maintenace validations on screen

    I would like to know as to how we can include validations while entering data into a ZTABLE.
    I create a z-table and generate table maintenance. When the user enters data in the table i would like to auto populate 1 of the table fields based on other entires. How can i put the validations on the maintenace screen?
    Thanks
    Eda

    Hi, yes lots of changes in the ABAP forum area! Blog coming soon. 
    Please check this thread for your question.
    Re: Table maintenance
    Regards,
    Rich Heilman

  • Table maintenace generator

    hi all,
    i had created table maintenance generator for my ztable.
    and now i made some changes to the table  again do i need to maintain .
    if so how?
    regards,
    siri.

    Hi,
    go to se11.
    give the table name
    press change..
    In the menu..UTILITIES -> TABLE MAINTENANCE GENERATOR...
    Press the change button..(Pencil icon)..
    In the popup select the expert mode..
    Then in there..press select all..
    Press enter..
    It will re-generate the Table maintenance..
    Thanks
    Naren

  • Table maintenace setting No Transport option.

    HI,
    I have a table maintance for a custom table, Its attribute is set to
    'Automatic Transport' no it ask for transport request for every change. I want to set it to 'No Transport' but it is not changing it.
    It gives the message <b>'The flag for the transport link was corrected'</b>  and again set the old value.
    What to do...
    Thanks.

    Go to SE11 -> Utilities -> Table Maintanance Generator
    There will be a radio button for 'REcording Routine'. Select the "no, or user, recording routine" and SAVE.
    Now it will not ask for transport request.
    Regards,
    Anish Thomas

  • 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

  • How to maintain  data in tables using maintenace view of the tables in ECC6

    Hi,
    I have  two table  SBUSPART (Business partner) and STRAVELAG (Travel agency).
    SBUSPART  is foreign key table while STRAVELAGE is a reference table.  The relationships is :
            SBUSPART-MANDANT          =     STRAVELAGE-CLIENT
            SBUSPART-BUSPARTNUM    =     STRAVELAGE-AGENCYNUM
    now, I create a maintenance view ZVI_HT_PARTNER in which SBUSPART is primary table and STRAVELAGE is secondary table. I have also created maintenace interfaces by generating maintenance modules in function group zht_fg. Authorization group is SUNI  and maintenance type is one-step, the number maintenace screen is 100.
    Now I want to maintain the data in tables SBUSPART and STRAVELAGE together in the maintenace view. If i want to enter a new partner dirctly I have to enter it in table SBUSPART first, only then could I enter the corresponding data in STRAVELAGE.
    in older version I easyly do this by the way: in maintenace screen of zvi_ht_partner ( in se11) I choose:  system/ services/table maintenace/Enhance.Tab.maintain.
    but in ECC6 when I choose:  system/ services/table maintenace, there is no Enhance.Tab.maintain instead there are two options Extended table maintenace and View cluster maintenace.
    So in this case I don't know how to tackle this problem, Please help me if you have a solution. 
    Thanks,

    Hi,
        I suppose 'Extended table maintenace ' would be same as 'Enhance.Tab.maintain'.
    Regards,
    Himanshu

  • Table data maintenace

    Hi,
    I have customized table for data maintenace and be accessed via SM30.
    Client's requirement is to have 2 steps similar to OX09, enter plant first then go in to storage location data maintenance for the selected plant.
    Is it dialog program? can we create using table maintenace generator? if so, how are the steps?
    thanks alots.
    Sonia

    Hi Alia,
    in SE11 enter your custom table name & press CHANGE. On the next screen, use the menu option Utilities--> Table Maintenance Generator. Here you cna maintain the desired 2 step process.
    Good Luck,
    Suresh Datti

  • 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

  • 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

  • Expand/Collapse feature in table maintenance view

    Hello experts,
    We have created a custom table and maintenace view.   For some table rows, the only key value difference is an EFFECTIVE DATE.   The generated table maintenace dialog by default "Collapses" the rows that only differ by Effective Date.  Using the Expand <-> Collapse button, we can see the missing detail for individual rows.
    Can the maintenace dialog be expanded by default?

    Hi,
    See the given link, It may help to you.
    maintenance view
    Regards,
    Shamma

  • Table Maintenance(SM30) not working for a custom View..

    Hi,
    I have the below case which is not working at the moment.
    we have standard table T024 and the requirement is to update the table directly in production. To update the standard table i have created a custom maintenance view on this table and created a table maintenance generator for custom view.
    In maintenace status tab of view i have maintened below information:
    Access                                                 read, change, delete and insert
    Delivery class                                       A
    Data Browser/Table View Maint.         Display/ Maintenance allowed
    The table maintenace generator has been also created but when trying to modify it is giving below message
    "Client 210 has status 'not modifiable"
    We have two clients in dev server 200 -for development
                                                            210 - for development testing
    In development it is working but in development testing client and in quality it is not working.
    Can you please help me as to why we are getting the above message?
    Best Regards,
    Rajesh

    Hi Rajesh,
    That is coming because of the Table Maintainance Generator Settings. You have to chose no, or user, recording routine then system will not generate any request and you can update the data. This is actually a BASIS settings in SCC4, so that for customizing tables system should not generate any request.
    Thanks & Regards,
    Faheem.

  • Table maintenance view - tcode

    Hi experts,
    We have a tcode (already in production) created for table maintenace view of z-table.
    Everything is working fine.
    Now I added one new field to the z-table and changed the table maintenance view accordingly. In SM30 I can maintain the table without difficulties - the new field is visible and maintenable. However, when I call the transaction code created for this view, it doesn't have the new field yet.  I tried a lot but without success to update the tcode accordingly.
    How can I get the tcode adjusted with the new field?
    Thanks for your advise and help in advance!
    Your feedback will be << appreciated >>.
    Regards,
    Sally
    Please do not offer rewards.
    Edited by: Rob Burbank on Dec 6, 2009 5:22 PM

    It's about one week you asked the question, but I answer in case you didn't understand what happened:
    First, screens 1000-1010 can't be used in a table maintenance dialog (an error is mentioned by SAP when you try to use these numbers). So, I really don't understand how you can get 1000 in your table view!
    So, I think that your transaction is linked to a custom program (not the SM30 view). So you just need to adapt manually the custom program. Note: maybe the program is a partial copy of the SM30 function group, so maybe you may just copy the dynpro 1000 of the SM30 function group  to the dynpro 1001 of your custom program...
    Note: when you want to create a transaction which is linked to a table maintenance view (SM30), you must define a Z* transaction of type parameter, with reference to SM30 transaction, select "skip initial screen", do not choose any dynpro, and choose VIEWNAME = your view and UPDATE = X as parameter values.

Maybe you are looking for

  • My iPod Classic (  iTunes 10.7.0.21) does not read Thai characters. How can I fix this? Thank you.

    Hello all, I have dowloaded songs from a Thai band, but my iPod does not read characters and I just have a blank stripe. How can I fix this? Thank you in advance.

  • During sleep my Mac mini often crashes

    If I let the mini sleep during the night it often warns me in the morning that it has restarted due to a problem. If I want I can send information to Apple. No files are lost, but it worries me that it happens so often. There is no problem with the A

  • Connect to MS Sql Server from Java Source

    Hi, Is there any way I could connect to ms sql server from Java source? I know I can call java source from function thats easy but what I really want is capability to connect to non-oracle(MS SQL server) from my java source and then call it from func

  • Screen Exit in MIGO transaction

    Hi All, My requirement is to add new tab in the item level of the transaction MIGO. For this purpose, I found the BADI MB_MIGO_BADI in which I am making use of methods PBO_DETAIL, PAI_DETAIL, LINE_MODIFY and POST_DOCUMENT in my enhancement. Now In my

  • Need help integrating flash with asp

    i am creating a dynamic site that pulls all of its content from and access database. i would like to make the entire page in flash. i have never used flash to pull any content from a datbase before. does any one know how to do this ? or know of a goo