Doubts in Table Maintenance.

Hi All.
I have to create the entries in Ztable maintenance.
Fields as follows in table
PERSK, ZDIST, ZCOT.
While creating new entries in table, need to populate search help for the field PERSK.
Search help of PERSK is need to get values  if PA0001-WERKS = u2018EAAAu2019.
How to do this?
Shall I use table events?
If yes How to do the code in routine in table events?
Please guide me.
Thanks.
Regards.
Jay

Hi,
It is possible with a minor change .....
In the table declare the field PERSK...
In the Data Element part declare a custom Data Element with domain PERSA, and maintain other attributres as instructed to u.
After all fields are ready, assign Foreign Key relationship with table T500P for the field PERSK.
Regards,
Pulokesh

Similar Messages

  • Doubt in Table maintenance  Generator

    Hi all
    I have created one table.  That table contains following fields
    MANDT     MANDT
    ALERTID     CHAR6
    COUNTRY     LAND1_GP
    IDNO     INT1
    ROLE     CHAR30
    MODUL     CHAR2
    LASTCREATEDON     DATE
    LASTCREATEDBY     CHAR12
    LASTCHANGEDON     DATE
    LASTCHANGEDBY     CHAR12
    when i creating table maintenance generator, the following log occured
    " Field ZMMIN_ALERT_ROLE-ROLE shortened (new visible length: 000015)"
    System Response
    The generation continues, but field ZMMIN_ALERT_ROLE-ROLE is a rollable field with visible length 000015 on screen 0110.
    meanwhile, i want to change field caption in sm30 for that table?

    Hi,
    Delete the table maintance generator once and regenerate the same.
    for changing caption: you have to follow the below procedure:
    In the table maintanance screen:
      click on 'OVER VIEW CREEN'.
                       click on ELEMENT LIST
                             click on 'TEXT I/O TEMPLATES'
                  here enter the title what ever you want. this will be reflected in the SM30.
    i hope your problem will be solved,
    Reward me if i gave right solution.
    Thanks
    Murali

  • Is table maintenance generator only for custom table?

    hi ,
    i have doubt is table maintenance generator only for custom table?

    hi swamya,
    Table Maintanance Generator is used to create/change/delete table entries in a particular table.
    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. 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.
    The second reason is, we can edit or create multiple entries at a time, using tablemaintenance generator.
    Apart from that we have options like 'Enter conditions' in table maintenance screen SM30.
    hope this helps in clearing ur doubt.
    Regards
    Saurabh

  • Table maintenance: T526

    Dear All,
    I have a very basic doubt about table maintenance generator.
    Is table maintenance usually used to maintain standard tables?
    Or only custom tables usually maintained?
    For example, I required to generate table maintenance for the table T526.
    When I see utilities->Table maintenance, I observe that it is already maintained.
    Is this the way standard sap works? Do I need to now generate table maintenance?
    Thanks,
    nsp

    Hi,
    For some tables, for which it makes sense to allow maintainance, standard SAP already has maintainance views.
    Going to transaction sm30 and giving the table/view name and pressing display will let you know whether SAP has a view for this table already.
    Generally Standard SAP has maintainence view for customizing tables.
    Any Z table created by you, will not have its own maintainance. You can generate a view depending on whether it makes sense to do so. For instance you would not want a maintenance view for a history log. But you will want a maintanence view which maps a company code to a plant for example.
    Hope this helps you.

  • Generate table maintenance dialog

    Hi,
    Hi created one table.
    But it has one field ZCOUNT type NUMC with 10 and it is key. The other fields are one KEYFIELD type Char 10 positions, and others PARM1 until PARM17 type CHAR with 18 positions.
    After I want one view for maintain this table.
    I already have one view with the same name of the table and I created one transaction with transaction with variant.
    Now starts my doubt, because I don't want to see the field ZCOUNT, but I want put values when SAVE/delete/change.
    I know this should be done in SE54 with events, but How do I do this? Because I don't want to see this field, but when is new entry, I want save ZCOUNT with the total of  records of table. And when is for delete one record, I need to fill this field with number of records of table.
    Other things I don't want the text of the data element in the header, but another text like 'aaa' for parm1. Is this possible?
    All helps are welcome.
    Thanks in advanced.
    Best regrads,
    Ana

    Hi Ana,
    Is your view a 'maintenance view'? If so, then there is a column in there that you need to set it to 'H' for this field.
    Go to SE11. Enter your view name in the view field. Choose 'Change'. Once you are inside, check if your view is a maintenance view(text right before your view name tells you the type). If not you need to change it to a maintenance view by choosing the "Change view type" under "Extras" in the menu.
    Once your view is a maintenance view, then in the tab where you have the view fields, there is a column for "maintenance attribute for view field". Set this value to 'H' for ZCOUNT. This way it will not be displayed in the maintenance transaction(provided you have the maintenance through this view not through the table directly).
    Then you can generate the "table maintenance generator module". Goto SE54 and use event 01 to fill this field.
    Regards,
    Srinivas

  • How to use table maintenance view in module pool screen

    hi ,
    want to use table maintenance view in a module pool screen so that i can edit, insert, delete and update date in to the ztable.please help.

    You can simply call it via SM30.   Or you can call the table maintence view from any program(report or module pool) using a function module.
      call function 'VIEW_MAINTENANCE_CALL'
           exporting
                action                       = 'U'
                view_name                    = 'Z_Table_Name'
           exceptions
                client_reference             = 1
                foreign_lock                 = 2
                invalid_action               = 3
                no_clientindependent_auth    = 4
                no_database_function         = 5
                no_editor_function           = 6
                no_show_auth                 = 7
                no_tvdir_entry               = 8
                no_upd_auth                  = 9
                only_show_allowed            = 10
                system_failure               = 11
                unknown_field_in_dba_sellist = 12
                view_not_found               = 13
                others                       = 14.
    Regards,
    RIch Heilman

  • Fieldname in not being displayed in the table maintenance

    Hi Experts,
                     I have created a table maintenance for a custom table.The table contains 10 fields out of which first 3 are key fields.
    on the 3rd key field i have supplied F4 help so as to populate the 4th field automatically based on the selection of 3rd field.
    everything is working fine but last 6 'fieldname' is not being displayed on the column bar.instead of fieldname there is '+' sign on the column. And i have checked in layout(screen) also only first four fields being displayed.
    plz help.
    Thanks n Regards,
    Mukesh

    Hello Mukesh,
    As you know, data element or pre-defined data type will be assigned as field type to the fields in a table. If you are assigning the data element, then the data element has the option to give the field label.
    If you are assigning the data element and the field label is empty, then + sign will come. In other case -  if you assigning the pre-defined data type also, the screeen column header will be shown as + sign.
    In both the above cases, you can change the column header manually in the layout.
    Regards,
    Selva K.

  • Open T-code on double click of field in table maintenance

    Hi Gurus,
    I have one scenario, I have to show a transaction on double click event on a field of Table Maintence.
    Please guide me in this .
    Is there is any event in Table Maintenance Events to capture double_click of a field.
    Regards,
    Sowmen

    1. In the field attributes of the particular field there is a chechbox  in display tab which says respond to double click, check that.
    2. Assign the fuction code "PICK" for function code F2 in GUI status.
    3.Now whenver you double click the field function code "PICK" gettes triggeed.
    Now you can wrie yyou code based on this function code.
    CASE sy-comm.
    WHEN 'PICK'.
    *If you want the name of the field and the value in that field use the below code.
    GET CURSOR FIELD gv_field VALUE gv_cursor_value.
    *DO your operation based on the field and the value.
    ENDCASE.
    Regards,
    Smithesh

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    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.
    Regards,
    Joy.

  • 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

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

  • Table maintenance events

    Hello,
    Does anyone has a code example of table maintenance events?
    I have a custom table ( zitab ) , with a maintenance view in SM30. I would like to use the table maintenance events for some authorisation check before the data is displayed, then, depending on the authorisation, display what the user is authorised to see. After data input, perform validation, if errors occur, inform the user what the problem is, if not, save in tha z table.
    Can this be done in sm30 or I need to write a new program?
    Thank you!

    Can someone please explain me why I have this short dump (before save event)?
    Error analysis
        The statement
          "MOVE src TO dst"
        requires the operands "dst" and "src" to be comvertible.
        Since this statement occurs in a Unicode program, the special
        convertibility rules for Unicode programs apply. In this case, the
        following rules have been broken:
    Source Code Extract
    Line  SourceCde
        1 ----
        2 ***INCLUDE LYTableF04 .
        3 ----
        4
        5 form before_save.
        6
        7 DATA: l_field_is_blank.
        8   DATA: BEGIN OF s_ytable.
        9           INCLUDE STRUCTURE ytable.
       10           INCLUDE STRUCTURE vimtbflags.
       11   DATA: END OF s_ytable.
       12
       13   LOOP AT total.
       14     CLEAR s_ytable.
    >>>>>     MOVE total TO s_table.
       16
       17   ENDLOOP.
       18
       19 endform.
    In all examples that i read on this forum this code works, I don't know why it fails for me.

  • Using an event in table maintenance view to populate a field

    I have a table maintenance view, and I would like to populate one field of the table with derived data. I am trying to do this by coding a routine for one of the events, but so far no luck. I have been able to chege the data in the TOTAL table, but still it does not populate the field on the screen.
    Note this is not for one row as it is entered, but I want all rows of the table displayed to show this field with derived data.
    So the question is: what is the correct event to use, and what is the correct internal table to update? Can I make changes to EXTRACT or TOTAL to do this?
    Kind Regards,
    Tony.

    Hi Rob,
    Sorry for being lazy; I'll close this and off and search :-}
    BR,
    Tony.

  • Refresh data in Table Maintenance view

    Hi,
    I have created a table maintenance view for db table A and added my function button to this view. When I click the button I append  a few records to the table A from table B. But this recoreds are not displaied in the view.
    If I rerun the view I can see added records.
    How I have to refresh the view to display added records?
    Regards,
    Ilya

    Hi Jesus,
    COMMIT WORK isn't help me.
    I found that I have to use TOTAL and EXTRACT structures to modify data in maintenance view.
    It's fine. I do something like this in my FM
    MODULE 9CUSTOM_PF_BUTTON INPUT.
    lt_total[] = total[].
    lt_extract[] = extract[].
    CASE function.
          WHEN '9DOWNSH'.
             modify lt_total from wa_total.
             modify lt_extract from wa_extract
    ENDCASE.
    total[]   = lt_total[].
    extract[] = lt_extract[].
    ENDMODULE.                 " 9CUSTOM_PF_BUTTON  INPUT
    But TOTL and EXTRACT tables contain data of  the current maintenance view.
    I work with a view cluster and I have to append or delete records from one view if I do something in other view.
    How I can modify data one view from another maintenance view?
    If I have modified database tables directly I don't see changes in the view cluster.
    Regards,
    Malnor
    Edited by: Malnor on Nov 23, 2010 9:19 AM
    Edited by: Malnor on Nov 23, 2010 9:38 AM

Maybe you are looking for

  • New event in ical

    I'm really struggling with the new iCal in lion. Is there any way to go back to the tried and true ⌘+N to create a new event (not an all day) and enter a time and date in a dialog box? There is more and more I'm not liking about Lion, but I press on

  • Data Guard Configuration Issue / ORA-16047

    So last night I decided to setup a test Physical Standby database. I had everything working correctly and when I started playing around with the Data Guard Broker I started having some problems. Now I can't get the logs to ship from the primary to th

  • Scarey problem when running anything in 3D mode

    Hi, I own a MSI KT4 Ultra motherboard, have done for years and it worked flawlessly with my Voodoo3 3000 PCI graphics card. However, a while ago I retired the old beast in favour of a (then new) Nvidia FX 5950 Ultra AGP card. After a while, I noticed

  • Detail Info on How SEM-BCS and NewGL Are Integrated

    Dear Experts, I need help. Do you have any detail documentation (functional & technical documents) on how NewGL integrate with SEM-BCS? We need the documents to make sure that we get the benefits on implementing both NewGL and SEM-BCS. Thank you for

  • Trying to Connect Wireless Printer

    Seems like a silly question to me...but I can't for the life of me figure out how to do this. I just bought a Lexmark X6570 Wireless Printer, in hopes that it would wirelessly connect to my Airport Extreme. However, the only printer configurations I