SM30: table Maintenance - appropriate event while changing existing entries

Can anyone please let me know which event is appropriate to validate data while changing existing entries in database table using SM30.
Thanks & Regards,
Nilesh Kumar

Hallo,
You have to create two events for sm30.
05 FETCH_VALUE_NEW
21 FETCH_VALUE_CHANGE
The first event-05 triggers when you create new entry where you can update created by/created date etc.,
and in the second event-21 you can update Changed by/Changed date.
Please let me know if you need any further information in this regards.
BR,
Rajesh Gupta.

Similar Messages

  • Using a change document for Z table maintenance generatro to log changes

    Hi Forum,
    I have created a a change document for one of the Z tables now I want to use it in the table maintenance generator of this table so that any changes made to this table using maintenance generator are logged in table CDHDR and CDPOS.
    I am using the event 02     After saving the data in the database
    and have created a new FORM..ENDFORM for this event and it is working fine till here.
    But I am unable to find any table or structure where the information of the action performed in maintenance generator is kept for eg. what action was performed like add, delete or change and on how many records and contents of those records.
    I can update the tables CDHDR and CDPOS only if I have the above information.
    Please guide me as to where can I find all this information within the maintenenace generator program?
    Thank you,
    Anubhav

    Hello Anubhav,
    Are you calling the change document function module in your save event ? The function module needs to be first created using SCDO for your Z table, select the fields on which you want to track the changes.  Auto generate the programs for this change object. Once the FM is generated, you will have to call this FM in your SM30 event.
    The change document tracking also needs to be enabled at the data element level..
    Regards,
    Jay

  • Table maintenance generator events

    Hi,
    I have created a table maintenance generator and want to populate sy-uname and sy-datum into two fields during SAVE. So I went to Environment -> Modification -> Events and selected "01" event i.e. "Before saving the data in the database" and entered Form routine as "F_UPDATE_UNAME_UDATE". Then if I go to SM30 transaction it goes to dump.
    Could you please tell whether I am missing any point?
    Regards,
    Balaji Viswanath.

    Hi,
    Pasted it below.
    Runtime Error          PERFORM_NOT_FOUND
    Except.                CX_SY_DYN_CALL_ILLEGAL_FORM
    Date and Time          01/31/2008 09:26:52
    ShrtText
         Call (PERFORM) to a non-existent routine.
    What happened?
         The current program attempted to call an externally defined routine
         that does not exist.
         Error in ABAP application program.
         The current ABAP program "SAPLZTEST321" had to be terminated because one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
         The current ABAP program had to be terminated because the
         ABAP processor detected an internal system error.
         The current ABAP program "SAPLZTEST321" had to be terminated because the ABAP
         processor discovered an invalid system state.
    What can you do?
         Print out the error message (using the "Print" function)
         and make a note of the actions and input that caused the
         error.
         To resolve the problem, contact your SAP system administrator.
         You can use transaction ST22 (ABAP Dump Analysis) to view and administer
          termination messages, especially those beyond their normal deletion
         date.
        is especially useful if you want to keep a particular message.
    Error analysis
        An exception occurred. This exception is dealt with in more detail below
        . The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_FORM',
         was neither
        caught nor passed along using a RAISING clause, in the procedure
         "PREPARE_SAVING" "(FORM)"
        Since the caller of the procedure could not have expected this exception
         to occur, the running program was terminated.
        The reason for the exception is:
        The program "SAPLZTEST321" is meant to execute an external PERFORM,
        namely the routine "F_UPDATE_UNAME_UDATE " of the program "SAPLZTEST321 ", but
        this routine does not exist.
        This may be due to any of the following reasons:
        1. One of the programs "SAPLZTEST321" or "SAPLZTEST321 " is currently being
         developed.
        The name "F_UPDATE_UNAME_UDATE " of the called routine may be incorrect, or
        the routine "F_UPDATE_UNAME_UDATE " is not yet implemented in the program
         "SAPLZTEST321 ".
        2. If the program SAPMSSY1 is involved in the runtime error, one of
        the function modules called via RFC is not flagged as remote-capable.
        (see Transaction SE37  Goto->Administration->RFC flag)
        3. There is an inconsistency in the system. The versions of the
        programs "SAPLZTEST321" and "SAPLZTEST321 " do not match.
    How to correct the error
        - Check that transports to the system are complete.
        - Conclude any developments already begun ("SAPLZTEST321" and/or "SAPLZTEST321
        - Check routine names
        You may able to find an interim solution to the problem
        in the SAP note system. If you have access to the note system yourself,
        use the following search criteria:
        "PERFORM_NOT_FOUND" CX_SY_DYN_CALL_ILLEGAL_FORMC
        "SAPLZTEST321" or "LSVIMF14"
        "PREPARE_SAVING"
        If you cannot solve the problem yourself and you wish to send
        an error message to SAP, include the following documents:
        1. A printout of the problem description (short dump)
           To obtain this, select in the current display "System->List->
           Save->Local File (unconverted)".
        2. A suitable printout of the system log
           To obtain this, call the system log through transaction SM21.
           Limit the time interval to 10 minutes before and 5 minutes
           after the short dump. In the display, then select the function
           "System->List->Save->Local File (unconverted)".

  • Table maintenance dialog event to modify the screen

    Hello All,
    Can anyone tell the Event in table maintenance generator where I can grayout the few fields of the SM30 screen dynamically?
    Thanks in advance.
    Best Regards,
    Sasidhar Reddy Matli.

    Hello Vijay,
    If I change the properties of the fields as output only in the screen, when ever they regenerate the table maintenance screen, these properties will go off. Could you please suggest any other method for this?
    Thanks in advance.
    Best Regards,
    Sasidhar Reddy Matli.

  • Table maintenance view Events

    Hi
    In My Z Table maintenance view i  had implemented a new event 01- Before save. But my table entry's are not getting saved now and also i am not getting any error message.
    Please help me on this.
    Regards,
    Naidu Vecahalapu.

    Hi Naidu,
    In the event code of the table maintenance view, please ensure that the SY-SUBRC is ZERO before exiting the sub-routine. Otherwise your changes (insert, update or delete) won't get updated and also you won't get any error message.
    Regards
    Suresh

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

  • SM30 Table Maintenance Generator in Webdynpro ABAP

    Hi Experts,
    I am new to Webdynpro.
    Can someone explain me the steps in having the Table maintenace feature in Webdynpro ABAP ?
    We are having a custom table in ECC for which the entries will be updated from Webdynpro.
    Thanks in Advance,
    Regards,
    Vivek K

    Hi,
    for table maintenance in WD4A I prefer ALV grids. Lazy as I am, I'll just point you to this step-by-step scenario ) :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1?quicklink=index&overridelayout=true
    Alternatively you can also make a transaction for the Maintenance view and include the Transaction in the Web Dynpro, but I wouldn't  reccomend this..
    regards, Lukas

  • Clock-in Clock-out corrections - change existing entry

    Hi,
    The employee's clock-in clock-out records are updated from the time recording terminal to Infotype 2011 via an interface. Now, when we try to use the SAP's clock-in clock-out corrections application to change the existing clock-in or clock-out time for any particular day, the application is not giving the date and time fields to change. However, when we create a new clock-in clock-out entry from ess, we are able to change the date and time for that entry but not for any entry that is transferred from the time recording terminal.
    Any idea if the standard application can be used to change existing clock-in clock-out record or how can this scenario be met in ESS?
    Thanks,
    Deepa Balani

    to ensure entries can be changed refer customisation in table V_PTCOR_WFATTR.
    SPRO->Personell Managment->ESS->Service Specific Settings->CLOK in CLock
    out Corrections->Processing Processes->Define Processing Process's docu
    ment which reads:
    Define Processing Processes (V_PTCOR_WFATTR)
    this should be unchecked
    Clock-In/Out Entries Cannot Be Changed
    Specifies whether employees are permitted to change original clock-in/out postings (time events in the TEVEN table).
    Note:
    Time events that have been processed by a time administrator in the Time Events infotype (2011) cannot be changed or deleted in the Web application. >>>>>>>>>>> note this so you cant change, of course one can change already entered ESS time entries
    This is a clock in clock corrections application where
    in you can correct the Clock ins but cannot delete
    the times entered through the terminal, but can
    delete those corrections done through the application
    itself. So in your case you can see
    the difference, this application is not meant to
    replace the recording terminal but to enhance it

  • Table maintenance generator event

    Hi experts,
    I have a req. in which I need to create events in the TMG.
    I implemented the event in case the user entres some specific values, and the fields user name, time and date are automatically populated.
    Now there is another requirement in which once the user changes any already existing enty, then the changed by user name, change date and change time should be updated automatically.
    How can I achieve this functionality?
    Thanks,
    Mohit.

    The following event can fulfil your requirement :
    - [Event 01: Before Saving the Data in the Database|http://help.sap.com/saphelp_470/helpdata/en/91/ca9f0ba9d111d1a5690000e82deaaa/frameset.htm]
    - [Event 21: Fill Hidden Fields|http://help.sap.com/saphelp_470/helpdata/en/91/ca9f4aa9d111d1a5690000e82deaaa/frameset.htm]
    FORM event01.
      DATA: f_index LIKE sy-tabix.
      FIELD-SYMBOLS <fs> TYPE ANY.
      LOOP AT total.
        READ TABLE extract WITH KEY <vim_xtotal_key>.
        IF sy-subrc EQ 0.
          f_index = sy-tabix.
        ELSE.
          CLEAR f_index.
        ENDIF.
        CASE <action>.
          WHEN neuer_eintrag.
            ASSIGN COMPONENT 'CREATEDBY' OF STRUCTURE total TO <fs>.
          WHEN aendern.
            ASSIGN COMPONENT 'CHANGEDBY' OF STRUCTURE total TO <fs>.
          WHEN OTHERS.
            CONTINUE.
        ENDCASE.
        CHECK <fs> IS ASSIGNED.
        <fs> = sy-uname.
        MODIFY total.
        CHECK f_index GT 0.
        extract = total.
        MODIFY extract INDEX f_index.
      ENDLOOP.
      sy-subrc = 0.
    ENDFORM.
    Regards,
    Raymond

  • Table maintenance view not saving changes

    Hi experts
      I have created a Z table with corresponding maintenance view (with transaction). Also, there is a Z program to insert records into the table from xls file.
      When accesing the maintenance view, I can add and remove entries, but the problem is:
           when I update a record, if the records has been created using the maintenance view, then changes are saved to database, but if I try to modify a record added by using the Z program, none of the modifications are saved to DB.
      I have re-created maintenance view, and table properties (delivery class A, display/maintenance allowed ...) seem to be OK.
    Can someone provide some help with this?.
    Many thanks in advance for your help.
    Best  regards,
    Carlos.

    HI
      Thanks for your answer, but didn't work.
      Below my program (
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_fin
          i_begin_col             = 1
          i_begin_row             = 2
          i_end_col               = 9
          i_end_row               = 9999
        TABLES
          intern                  = gt_fichero
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      LOOP AT gt_fichero INTO gs_fichero.
        CASE gs_fichero-col.
          WHEN 1. "Proyecto
            "Validaciones
            gs_unidades-proyecto = gs_fichero-value.
          WHEN 2. "Tipología
            "Validaciones
            gs_unidades-tipologia = gs_fichero-value.
          WHEN 3. "Alias
            "Validaciones
            gs_unidades-identificador = gs_fichero-value.
          WHEN 4. "Superficie
            "Validaciones
            TRANSLATE gs_fichero-value USING ',.'.
            gs_unidades-superficie = gs_fichero-value.
          WHEN 5. "Estado
            "Validaciones
            gs_unidades-estado = gs_fichero-value.
          WHEN 6. "Entrega
            "Validaciones
            gs_unidades-entrega = gs_fichero-value.
          WHEN 7. "PVPCoste
            "Validaciones
            TRANSLATE gs_fichero-value USING ',.'.
            gs_unidades-pvpcoste = gs_fichero-value.
            "Se añade el registro a la tabla de datos maestros
            INSERT ztt_fi_unidades FROM gs_unidades.
            CLEAR gs_unidades.
            IF sy-subrc EQ 0.
              gv_total_correctos = gv_total_correctos + 1.
            ELSE.
              gv_total_erroneos = gv_total_erroneos + 1.
            ENDIF.
            gv_total_registros = gv_total_registros + 1.
          WHEN OTHERS.
        ENDCASE.
      ENDLOOP.

  • Error  - While changing existing leave request from ESS

    We are trying to use the standard leave request application in ESS/MSS. The basic required standard configurations are done. Since we wanted custom notifications, the related workflow is copied into custom workflow and we have included required custom notifications. The custom workflow is also configured properly.
    Now, the standard functionalities like making leave request, triggering notifications, approving leave request and posting information into backend are working fine from the ESS/MSS.
    When the employee tries to change the existing leave request (before approval) from ESS, at the 2nd step (Review and Send), it is displaying one error message General task: can be edited by all users. But, it still allows submitting the records.
    Once it is submitted, the system throws one java error at the final step (after pressing SEND button) u2013 Failed to process request. Please contact your system administrator. - java.lang.NullPointerException. The complete error information is provided in the attached word document. Even though, it throws error the submitted data is getting saved into the backend.
    Please help to solve this issue.
    Thanks,
    Prabhu
    Edited by: Prabhu T on May 18, 2011 1:53 PM
    Edited by: Prabhu T on May 18, 2011 1:54 PM

    What custom notifications you require in leave request? We have all available in standard using Rptarqemail
    First of all, the WF task should be set as
    General task: can be edited by all users, which you have done presumably under task classification
    Now, for checking purposes, can you check with standard WF in table v_t554s_web for one absence only?
    ie WS12300111.
    Please test this and let us know if you have errors
    Also please check your custom WF whether it is working correctly or not?

  • "Buffer table not upto date" while creating Service entry via BAPI

    Hi All,
    I am facing the same issue while creating and accepting a service entry sheet via BAPI_ENTRYSHEET_CREATE in a report . I get a pop up message S001 (Buffer table not upto date) in ML81N. Though, it is not an error message it delays the further processing. I have checked the relevant threads for this message but since there is no SRM involved, I couldn't track the exact solution.
    Regards,
    Garima

    Hi ,
    Please close all the applications and re-check your rquirement.
    Also, check for any information from SM21 logs.
    Some times, it can be due to program /report not correctly maintained.
    Finally, Basis people need to validate & may re-start (cautios of Production system) system.
    Regards
    Nagaraju

  • Calculations while entering data into table via table maintenance generator

    Hi all,
    This is the following requirement.
    I created a ztable and also I created the table maintenance generator.  I have two fields which accept integer data.
    The requirement is when I enter value in the first field from the tcode SM30 the data should be populated into the second field automatically by subtracting the first value from 100.
    Can anyone explain me how I can do that.
    Thanks,
    Daniel

    hi,
    take the help of events in TMG and write the code in that event
    like field2 = field1 - 100
    steps to create events
    Step: 1: Create a table
    Step: 2: In SE11, go to Utilities --> table maintenance generator.
    Step: 3: Follow the path Environment --> Modification --> Events.
    Step: 4: Click new entries, select a table maintenance dialog event which suits your requirement.
    Step: 5: Create a form routine.
    Step: 6: Include your logic in the routine created in step 5.
    Hope this helps you.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    Re: bdc
    reward if helpful
    prasanth

  • Can we change key field values in table maintenance

    Hi,
      I have created Z-table and table maintenance for the same...
    In table maintenance..Can we change key field values??
    Is there any posibility????
    Rayudu

    you can do it in this way.
    open sm30->tablname->edit
    snow select the row(s)->copy->change the keyfield values-back->save.
    no in that sm30, select records with old primary key and delete->save.
    so you got all field similar for those record under modification, only the key field changed.

  • ABAP Table Maintenance Events

    Hello All ,
    I have created the Table Maintenance with Events .
    When the user enter the sales order number  & item in the Txn code screen of the table  .The Event  05  triggers & pulls out information for Sales Order Customer ,Material ,Plant  & show it in the  screen .
    There are two more fields for user input Valid to & Valid from , the user now fills in these fields & then press Save button in the screen .
    Now He gets the Short dump related to duplicate entries .
    I checked the standard code & it  is trying to enter data into the Internal table
    MOD_ELEM_TAB  & since already the same entry exsist in this table so program dumps out .
    Kindly suggest the way to solve this issue .
    Best regards,
    Anurag Goel .

    Check with table primary keys and if you are creating same data again and again,
    then you will get short dump..
    so keep the validation like if record already exits then give message.
    else you want to create same data again and again then create one more field and it is like count (keep as primary key ).
    Reward Points if it is helpful
    thanks
    Seshu

Maybe you are looking for

  • Php issue with IE, but works with Chrome & Safari

    In Dreamweaver CS6 I created a html & a php file for an online employment application to be sent via email.  The html file views fine in Internet Explorer but when you select the button that runs the php it thinks for a minute then brings back applic

  • Read modified ALV Cell Data - REUSE_ALV_LIST_DISPLAY

    Hi, I am using REUSE_ALV_LIST_DISPLAY to display my ALV List. There is one editable field in this ALV output. When user changes any value, In the ALV User Command, the updated value is not reflected. I know, we use 'GET_GLOBALS_FROM_SLVC_FULLSCR' Fun

  • Move Selection Shape, Not Contents, To Another Layer

    I understand that after creating any selection, CTRL-J copies the selection to a new layer, but that's not what I want to do. I want to copy just the selection shape (i.e. its outline), not its contents, so that I can then apply that selection shape

  • WLAN WPA2 crashes finder

    I have a problem in our company network, whenever I connect to the WLAN with my MacBookPro, OS X 10.4.10 with WPA2 Personal it works fine for the first time, however when my MacBook goes to sleep or standby and I try to reconnect, the finder crashes

  • Html + css editor

    I am a java programmer who was told to design a jsp page using html + css. i dont know css. is there a free WYSIWYG editor out there which takes into an account your css files and lets you use it somehow to make what you need. keep in mind that when