Table maintenance generator updation

Hi,
I created a table maintenance generator, in that table maintenace generator when ever a record was created, a idoc will be generated, in that idoc,  a field will be updated with
value 'C'.
Simultaniously when I change the existing record 'U' will be updated in IDOC field.
Problem is how to know whether it is ia created record or update record?
Please
Thaks in advance.

Check CDHDR and CDPOS tables . So whenever you do changes for a particular record or insert a new record . all the changes will be tracked in these tables.
In these table you have one field to identify wether it is updated or createe record .
That field will hold the values I(fir insert) U (for update)
Reward Points if useful
Regards,
Nageswar

Similar Messages

  • Fields update on Table maintenance generator screen

    HI All..
    I have a custom table with five fields. I did table maintenance generator on it. It has Screen 1 as overview screen and scree 2 as single screen.
    Now of the five fields two fields are user name and date. When i enter data on the other three fields and save it on the second screen - iam able to update the two fields for username and date and display on the screen two itself.
    But if iam not saving the data on the screen 2 and going back to screen 1 and then save it - iam not able to update the user name and date and also to display the username and date on the screen.
    Any suggestions are helpful..
    Thanks and will reward helpful answers.

    In this case..
    Iam having the functionality of SM30 through table maintenance generator.
    On Screen 2- single screen - user name and date is working as i had written the logic in the relevant PBO and PAI module.
    But if user is not saving the data in screen screen2 and coming back to screen 1- which is overview screen and then try to save it-- all other fields are getting saved except the username and date..
    Thanks.

  • 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

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

  • Reg. TABLE MAINTENANCE GENERATOR

    hi ,
    can anyone pls detail me on TMG.....
    and also how to create a t.code for my table...
    thanks,
    CAPC

    To create Table maintenance genetrator,
    Go to Utilities->Table maintenance generator
    Then Enter Authorisation group(For eg &NC&)
    Function group ( You can create function group in SE37. Here in the menu GOTO->Function group-> Create group)
    Then you can select either one step or two step. Assign Screen numbers (To assign Screen numbers click on the button 'Find Scr no' . It will propose screen no:s)
    Then Create.Save
    Table maintenance is created.
    To create Tcode, Go to Se93
    Enter A tcode name
    Create
    Select Transaction with parametrs
    Enter some transaction text.
    Transaction is SM30
    Check Skip initial screen
    Check Inherit GUI attribtes
    gui SUPPORT - Select all check boxes
    Under default values, enter
    NAME OF SCREEN FIELD       VALUE
    VIEWNAME                           ZTABLE NAME
    UPDATE                                 X
    save it
    and try to use the TCode.

  • Table maintenance generator problem

    Hi Experts,
        I a table maintenance  generator I have to check for authorization in plant level before deleting an entry. I have created a routine which is of "03-Before deleting the data displayed". But in that if I read ytable-plant it has null. It doesn't point out which row I have selected. But for updation, it takes the exact row values which I have selected.
       How can I read the line which I have selected.
    Thanks and regards,
    Venkat

    Hello Venat
    It will be very confusing for users if there are deletable and non-deletable entries side by side in your maintenance view. Instead, you should do the AUTH-CHECK at the beginning and restrict the selectable data accordingly. All data that are now displayed can be treated the same way (including DELETION).
    Regards
      Uwe

  • Table Maintenance Generator for the table "J_1ISTATECD"

    Hi,
    How to create Table Maintenance Generator for the table "J_1ISTATECD". Can anyone please explain the steps for this.
    Thanks in advance....
    Regards,
    Sriram.

    Hi Sriram,
    -->Create view in SE11
    -->Goto transcation SE11 ABAP Dictionary
    -->Select View and type in the name of the view you want to create.
    -->Press the Create button
    -->In the dialog box that appears, choose Maintenance View
    -->Select tables and fields for the view
    -->Activate the view
    or
    -->Create view in SE11
    -->Goto transcation SE11 ABAP Dictionary
    -->enter table name
    -->go to Utilities
    -->select table maintainance Genarator
    -->Enter single step
    --> enter Function Group(all the code for Table mainaitenace is stored here)
    -->eneter single step
    -->enter Authorization gorup(we can restrict some user,s not tot update data)
    Activate the view
    function Group  -->goto se37 -- > menu bar goto->create function group with five letters ..
    add the same function group in table maintainenece generatoror enter the sane table name in Function group Place..
    if you dont know the Authorization group ( not given by Function design) put &NA&
    or if you want to know the maintainence View already exists go to table TSTCV
    enter Table name you can get the view available for the table name..
    Regards,
    Prabhudas

  • Table maintenance generator : EVENTS : please help me

    I need to use table maintenance generator to maintain a custom table through a custom transaction.
    I am using  event  BEFORE SAVE (01). It is working fine but small issues.
    1)After entering new entries for some fields(KEY FIELDS), when I press save button, remaining fields values to be populated. Seletion statements have written in FORM of the EVENT 01 (BEFORE SAVE).
    But the values for remaining fieldsare not populating immediately and but populating when I press BACK (F3). My requirement is with out presssing BACK  or F3 , fields to be populated.
    (note: SAP internal code..values are coming into TOTAL  structure..then I manipulated this internal table)
    PLEASE GUIDE ME, WHICH EVENT TO BE USED. importantly, which internal table/structure (like TOTAL we used for this requirement ) to be used for the proposed new EVENT? (Because lot of R&D to be done to find SAP structure)
    2) second requirement is: even after entering new entries, if we press ENTER, then also it should behave like SAVE like in the previous requirement. Please help me to find the EVENT and Internal SAP generated structure (like TOTAL we used for this requirement ).

    Hi Glen Anthony,
        Thanks for replay,
         I used foreign key relationship between those 2 internal tables....
    I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
    Thanks Glen.

  • Table maintenance generator in webdypro abap

    Hi Experts,
    Please can you suggest how to implemnt Table maintenance generator in webdypro abap.
    Regards,
    BBC

    Hi,
    Thanks for your inputs,
    Now I have included add, modify, delete and save functionalities to ALV table.
    Here What I did, fist it shows the list of records from data base table with ALV table as ready only mode.
    Then
    If we click on add button then last row will add with editable mode,
    If we select a row and click on modify button then in that row fourth field only editable (because first three are primary key fields).
    If we select row and click on delete then record deleted and updated in database table.
    If click on save button, it captures the modified ones then saved.
    if we test individual functionality, it is working fine.
    If we do fist add functionality then after saving if we click on modify row then it is showing total row as in editable mode.
    Here as per modify fyctionlaity in that row fourth field only have to show editable.
    Please can you suggest how to resolve this issue?
    Regards,
    BBC
    Edited by: BBC Achari on Sep 7, 2011 9:23 AM

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

  • Table Mainenace generator updates problem

    Dear All,
      I have created table maintenance generator for custome table,but now while i'm trying to maintain the data from SM30,its not updating my ztable,
    means: while m trying to change the information and click on save its showing me record saved successfuly ,
    but when i'm try to check it again its not updating my changes,
    Please tell me how to update my ztable mannualy using TMG.
    Tanks in Advanced,
    Regards,
    Somnath Kalamkar.

    No Tanks for me
    I would check in system logs(sm21) why the entries are not getting updated and also check if you have appropriate access.
    Also check if the table needs some validations and this is making it to fail.
    Cheers Sam

  • Can you please help me with validation logic for Events in Table maintenance generator

    Can you please help me with validation logic for Events in Table maintenance generator,i.e if i enter record in 1st internal table then automatically 2nd internal table should be updated.

    Hi Glen Anthony,
        Thanks for replay,
         I used foreign key relationship between those 2 internal tables....
    I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
    Thanks Glen.

  • Reagarding table maintenance generator

    hi abapers,
                   my problem iam unable to creater table maintenance generator for my ztable
    i careted ztable ,then i go for table maintenance generator give the authorization group&nc&
    my function group zXX.package .two step screen no's.no recording routinee
    i go se93 ->parmeter transaction ,in tcode-sm30,in bootom screen viewname = ztable
                                                                                    update   = x.
    but iam gtting messge
                'The maintenance dialog for ZLOCATION is incom
    or not defined'.

    Hi Ajay,
    Try to regenerate the maintaineance generator for the table once again.
    Use tcode SE11, enter the table name click change. In the next screen, click Utitlies-->table maintenance generator.
    Enter &NC& as the auth group.
    Enter the function group to use (ex. Z_TABMAINT)
    click One Step, enter '1' as the screen number. Click the create button.
    i think you are using the Two Step..
    did you mentioned the Display/Maintanance Allowed  for that table in the tab Delivary and Maintanance..
    Regards

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

  • 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

  • How to put records in database from java coding?

    I want to insert records in the database from java code. Please help me out. Can i get a sample code for that.

  • My macbook pro fell and now it won't boot - superdrive issue?

    Hi everyone, I had a dreadful accident today. My macbook pro (mid 2007) model fell from the table; the lid opened up a little bit but thankfully the display wasn't damaged. The thing is that it won't boot; the screen remains black. The superdrive mak

  • SSH connections not logged on wtmpx

    Hello, which patch enables ssh to log connections to wtmpx? Actually the "last" command only shows login data about assigned pts, but if i connect using: ssh -T root@sunbox no record is logged on wtmpx. Also the "w" and "last" command doesn't show th

  • Album sorting by folders

    Hello. I am using t2 ultra.  I don't like album app.. Because all photos shows together.  So can't get privacy for what's app non sense photos.. Please add sorting by folders by default on page.. Thanks in advance 

  • Help downloading & using Illustrator for Windows Vista 32 bit laptop

    Hello everyone: I'm new to Adobe forums and would like to ask if anyone knows how to work around using Illustrator for Windows Vista 32 bit laptop. I tried twice, yet won't allow download due to "system requirements." I'm trying to start with a free