How to forbid some deletes in table maintenance generator

Hey gurus,
I'm using table maintenance generator on my table and I would like to achieve that I could check whether to allow or not allow the delete action.
In other words I would like to forbid to delete those entries, which are referenced in some other tables, but I have no idea how to do it. I don't know where in the code is the Delete button is handled, or what to write in the right event to achieve my goal.
Can you tell me how. In details would be the best Thank you very much.
Best regards,
Robert

Did you add some foreign key relation between the maintained table and the dependant one, not a bad idea to add some...
You can also use Event 03: Before Deleting the Display Data create a form in your dialog. (Look for samples with search tool, e.g. Thomas's answer at thread event 03 in table maintenance generator)
Regards,
Raymond

Similar Messages

  • How to change GUI title in Table maintenance generator?

    How to change GUI title in Table maintenance generator?
    Thanks
    Pankaj

    Hi,
    In table maintenance goto
    Environment>Modification>Maintenance screen
    Click on layout button
    Make editable form
    change the text property of column.
    save and activate it.
    check in sm30 headings.
    Pankaj

  • How can I Sort Data in table maintenance generator view

    Hi SAP Gurus,
    Please help me to know, In my view table I have data, time and open value and close value columns. In that I want to sort the data column in ascending order, how can I do that. Please suggest.
    Thanks and Regards
    Lakshmikanth

    Hi
    Thanks for the reply. That did not solved my problem.
    extract] = gt_ztest[ .
    gt_ztest] = extract[ .
    why the brackets r in this way??
    this is showing error, 'The field "EXTRACT[" is unknown, but there is a field with the similarname "EXTRACT". .'
    what can I do..
    Regards,
    Lakshmikanth

  • Table maintenance Generator used as exit ?? how to find that??

    Dear Abapers,
    While creating billing and saving a billing document, a number range is automatically generated.
    I have found that this number range is coming from a table and they have written some coding in Table maintenance generator.
    How can i find that where it is implemented in VF01.
    PLease resolve it.
    Thanks and Regards,
    Arati

    Hi,
    go to the table maintenance generator of your table.
    Go to the path Environment ->  Modification -> Events
    They might have written some events to auto generate the number

  • Delete table maintenance generator

    when i try to delete the table maintenance generator ,for a Ztable,, the system is not prompting for change request.
    how can i make system to prompt for change request,when i delete the table maintenance generator for a ztable?

    goto se30 see the Function group of that table maintaince  ...then take that   function group goto  se37  put there  in th utility Function group   change mode    delete the changes  and save  now it will give you the pop-upfor change request  .
    pelase  when the table  i maintaince generated  ... then  the   code will be saved in the Function  Group  .
    so   we need to  check wiht the Function  Group  .
    Reward  points if it is  usefull ....
    Girish

  • 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

  • Table maintenance generator with radiobuttons

    Hello,
    how can I automatically (via se11: table maintenance generator) generate from a DDIC-structure the radiobtton-fields on a dynpro?
    If I use the domaine 'X' or 'XFELD', I only get checkboxes....
    kind regards

    Hi,
    Table Maintenance Generator will create the Z Screens.
    In order modify those Z screens go to SE80 and give the
    Function group for that table maintenance generator.
    Then to find the function group go to sm30, give the table name and click on display. It show a screen with table control. Click on System -> Status .
    It gives you the Z screen information.
    Give that Z screen in SE80 and do the changes accordingly.
    I hope it helps you.
    Regards,
    Gopi

  • 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

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

  • How to validate data entered in table maintenance for Z table?

    Hi,
    I created a Z-table with table maintenance. I'd like to perform some validation on the entered data.
    I know there are events for these : "If this pre-defined time is reached in extended table maintenance, the FORM routine specified for the current view and for this time is processed. This is useful, for example, for performing consistency checks before saving or specific actions when creating new entries."
    I also found some info in the Online help:
    http://help.sap.com/saphelp_47x200/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
    However it's not clear which event I can use for validation.
    I tried event 01, however when I added a message, in the SM30 in case of message, I got the SM30 initial screen.
    Do you have any example about validation?
    Thanks in advance,
    Peter

    Hi,
    Once you are on the table maintenance generator screen.
    GOTO --> Enviornment --> Modification --> Events.
    Here specify Event as '01' and the Subroutine name that will hold the data for the validation.
    As you know we need to specify a function group.
    GOTO SE80 and Open your function group.
    Now in the PBO of the screen write a subroutine for the validation before saving an entry in the table.
    Refer the code below for validation.
    *&      Form  F9000_CHECK_BEFORE_SAVE
          Subroutine called dynamically to check values before saving
    FORM f9000_check_before_save.
      TYPES : BEGIN OF ty_flmt,
              zz_flmt_type     TYPE zz_flmt_type,
              zz_gsm_flmt_code TYPE zz_flmt_code,
              END OF ty_flmt.
    Internal Table
      DATA : lit_flmt_code TYPE TABLE OF ty_flmt,
             wa_flmt_code  LIKE LINE  OF lit_flmt_code.
      DATA: lv_subrc TYPE sy-subrc VALUE '0',
            lv_tabix TYPE sy-tabix,
            lv_total_rec TYPE i,
            lv_rec       TYPE i,
            flg_upd      TYPE flag.
      DESCRIBE TABLE total LINES lv_total_rec.
      LOOP AT total.
        lv_tabix = sy-tabix.
        READ TABLE extract WITH KEY total.
        IF sy-subrc EQ 0.
          IF extract+3(10) IS INITIAL.
            DELETE total.
            DELETE extract INDEX sy-tabix.
           DELETE extract INDEX lv_tabix.
            lv_subrc = '4'.
            flg_upd = 'X'.
            MESSAGE s119(zcrm_appl) DISPLAY LIKE 'S'.
            SET SCREEN 0.
          ENDIF.
        ENDIF.
        wa_flmt_code-zz_flmt_type = total+13(3).
        wa_flmt_code-zz_gsm_flmt_code = total+16(10).
        APPEND wa_flmt_code TO lit_flmt_code.
      ENDLOOP.
      IF flg_upd IS INITIAL.
        SORT lit_flmt_code BY zz_flmt_type zz_gsm_flmt_code.
        DELETE ADJACENT DUPLICATES FROM lit_flmt_code.
        DESCRIBE TABLE lit_flmt_code LINES lv_rec.
        IF lv_total_rec <> lv_rec.
          LOOP AT extract.
            READ TABLE total WITH KEY extract.
            IF sy-subrc EQ 0.
              DELETE total INDEX sy-tabix.
              DELETE extract INDEX 1.
              lv_subrc = '4'.
              MESSAGE s289(zcrm_appl) DISPLAY LIKE 'S'.
              SET SCREEN 0.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      sy-subrc = lv_subrc.
    ENDFORM.    
    <b>Please reward points and close the thread.</b>
    Regards,
    Amit Mishra

  • Transport Error - Deletion of Table Maintenance

    Hi Experts,
    I have been searching SDN, but I cannot find a specific problem relating to mine.
    My problem is, i am deleting a table, where a table maintenance was generated. Somehow, an error occurred during transport - it says 'Screen SAPLXXXXX 00XX: Generation error'. This is the screen for the table maintenance generated. Further on, I found that there is a syntax error, which is because it is referring to the table and its fields which were already deleted in the same transport.
    Question is, is the procedure wrong? Should I have deleted the Table Maintenance first and transport and then create transport for the deletion of table? How to correct the above error, when the table is already deleted?
    Thank you in advance for your help.
    Regards,
    Joy

    Hi ,
    Try to delete the Table maintainace first and then  try to delete Objects for Table maintainace in Transport.
    Then try to create a fresh table maintaiance with Proposed screens then it will work properly.
    Prabhduas

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

  • How to change function group in table maintenance

    Hello experts,
    I am having a problem transporting a custom table. Now, what I want to do is to just create a new function group under the table maintenance option in se11. Now, I can't seem to change my custom table's function group. How do I do that? thanks a lot and have a nice day guys!

    Hai
    You have to re-generate the table maintenance, when new fields are added, system doesn't automatically insert them in it.
    So go to MAINTENANCE TABLE GENERATOR for your table and press icon for updating.
    Here choose NEW FIELD options and press ENTER.
    Anyway I prefer to set somes parameters of EXPERT MODE as REFRESH OVERVIEW SCREEN
    goto ur table> utilities> table maintenance generator> change>press enter> reason give additional fields>expert mode--> enter...
    Thanks & Regards
    Sreenu

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

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

Maybe you are looking for

  • ITunes can't find my external hard drive music

    Hello, our computer crashed recently and I have restored Windows Vista and iTunes. All of our music is stored on an external hard drive (drive I). There is a main "iTunes music" folder, and then there are a ton of folders in there that are named by m

  • Load balancing

    Are there any load balancers with a technque that can divert alll mod operations to the master and read operations to Consumer... If we want to have the above mentioned kind of setup...what is the best way to implement tha??How can we differentiate b

  • Can't Start Pulseaudio

    Hi, I don't know why but I can't start pulseaudio or alsamixer. I used to be able to start them, but I forgot what I had to do to get them running. I was just using it as a simple volume control when I had it working. I've tried: [gulliver@myhost ~]$

  • How to set expanded conversations on Mail ?

    Hi there, I need to know how to set expanded conversations on Mail inbox. Every time I turn off/on the iMac and open again the Mail, the visualization of mail conversations are unttached again, I mean, I have to manually set to expand all conversatio

  • XML Generated using given DTD

    hi guys , i have to make a java GUI application to generate an xml file. to accomplish this the code must: 1...... ask the user to input the path of the DTD file according to which the xml file will be generated. 2........then it should parse the DTD