Event at change field

i want to enter date and user at change field
there is a method or event that doing it.

Can you please preprae your question and present it in detail?
A good way is first discuss it with someone.
Thank you,
Clemens

Similar Messages

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Raise event on Change document STUE

    Hi,
    when I add a document to a doc. structure in tx. CV12, a change document is created with change object STUE. When I try to raise an event on this document structure, i get an error "Key for change doc. object STUE and business object type DRAW are incompatible". I get this, no matter what Business object i try to use.
    I have tried to make a new business object with the key from STUZ, which should be the leading table in the change document.
    Still i get no events, when changing the document structure. Any ideas, or other solutions?
    Kind regards
    Mikkel

    Hi Mikkel,
    If your key matches the table STUZ's key fields exactly then it should work. In other words two key fields STLTY STLNR. If not or if this is not what you want then you have two options:
    1. Use SWED to define the key for STUE to have a structure DRAW. You will need to create and enter a FM to read/convert the changedoc data and supply the correct key for your DRAW object at runtime since it's differetn from STUZ.
    2. As above, but try explicitly defining the structure for your custom object. Alternatively a dummy FM in here is useful to try to debug what's going on.
    Hope that helps,
    Mike

  • Getting the name of the previous event of a field in another event of the same field?

    How to get the previous event that has occured on the same field?
    For example when we click a text box click event occurs then the enter event occurs.so want to know how to write a code in enter event of the text box to check that the click event has occured before the current event in java script.?
    Please give an idea.
    Regards,
    Sugan.

    Any changes (like adding new fields, deleting existing field, change field properties of existing fields) applied to the database table has to adjust to changes to their definition in the ABAP Dictionary. So everytime when you make any new change on a database table, table conversion is required to refresh the exisiting entries in  the ABAP dictionary so as to synchronize Database &  Data Dictionary.
    Thanks,
    Rakhi
    Edited by: Rakhi Nair on Oct 4, 2011 7:21 PM

  • Get value of changed field of create_decision_popup window in lineedit mode

    Hi there,
    i'm calling a create_decision_popup popup in lineedit mode.
    So i could edit the values of the selected line.
    How could i acces the value of the changed fields after closing the popup window in the event_sel event.
    Here my code:
    v_popup = comp_controller->window_manager->create_decision_popup( iv_title = 'Window title'
                                                                        iv_selection_mode    = 'LINEEDIT'
                                                                        iv_display_table     = gt_table
                                                                        iv_visible_columns   = lt_visible_columns
                                                                        iv_visible_row_count = lv_row_count ).
    v_popup->set_on_close_event( iv_event_name = 'event_sel' iv_view = me ).
    v_popup->open( ).
    DATA: lr_outputnode TYPE REF TO  cl_bsp_wd_context_node.
    lr_outputnode ?= v_popup->get_context_node( 'OUTPUTNODE' )
    Thanks,
    Regards TomSd

    You want to edit the selected value from popup, so first populate the selected row in table and then edit in the table.
    Open the popup using :
    CALL METHOD me->comp_controller->window_manager->create_decision_popup
           EXPORTING
             iv_title             = 'Route'
             iv_description       = 'Route' 
             iv_selection_mode    = 'SINGLE'
             iv_visible_row_count = '10'
             iv_display_table     = gt_route
             iv_visible_columns   = lt_table
           RECEIVING
             rv_result            = gr_popup.
    gr_popup->set_on_close_event( iv_event_name = 'DEC_POPUP_CLOSED' iv_view = me ).
    gr_popup->open( ).
    Now on close event i.e. DEC_POPUP_CLOSED write the code to transfer the selected row into the table.
    lv_outputnode ?= gr_popup->get_context_node( 'OUTPUTNODE' ).
    lv_index = lv_outputnode->get_selectedrowindex( ).
         IF lv_index IS NOT INITIAL.
           READ TABLE gt_route INTO ls_route INDEX lv_index.
           lr_col ?= me->typed_context->zroute->collection_wrapper.
           CREATE DATA lr_tab_data.
           CREATE OBJECT lr_valuenode
             EXPORTING
               iv_data_ref = lr_tab_data.
           lr_valuenode->set_properties( is_attributes = ls_route ).
           lr_col->add( EXPORTING iv_entity    = lr_valuenode ).
           REFRESH: gt_route.
           CLEAR: gr_popup.
    endif.
    Now you can see the selected row in your table view and the popup will be closed.
    To make the row editable go to htm page on which table view is created, and then modify
    editMode              = "ALL"
    in  <chtmlb:configCellerator>

  • Start events via change documents (BUS2009)

    Hi All,
    I'm currently working on ECC 6.0 and need help for starting events via change documents.
    I want to restart a workflow whenever a cost centre in the PR is changed. So I have created an entry in SWEC with Change doc. object as BANF  and triggering event as On Change.
    In the field restriction I have entered EBKN-KOSTL. I want trigger two events SIGNIFICANTLYCHANGED to end previously started workflow and RELEASESTEPCREATED to start the new workflow.
    But whenever these events are triggered the new workflow starts with an error status and the old one remains as it is. The error for new workflow seems like there is no binding between triggered event object and started workflow.
    Please suggest. m i missing something ?
    Thanks,
    Shounak

    It's the same old bug. I think you have already configured the release strategy which triggers all the necessary events, now when you make entries in SWEC, this also triggers the event and the overlapping takes place resulting in the error you are getting. Either you remove the release strategy or the entries in SWEC. Further make sure you have terminating event "Changed" or "SignificantlyChanged" in the approval task based on your requirement.
    For the conditions, you can either control using start conditions or using the release strategy Characteristic FRG_EBAN_KOSTL if you want to stick to release settings.
    Regards, IA
    Edited by: Imthiaz Ahmed on Jul 29, 2008 10:51 AM

  • Assignment Date Track History-Changed Field Summary

    Hi all,
    We have Oracle HR 11.5.7 FP.G.
    In the HRMS there is a for the Employee's Assignment Date Track History showing the Changed Field Summary.
    We want to specify the exact field(s) changed in Assignment for a period using SQL or Discoverer for Reporting Purposes.
    Does anyone have any sample coding or idea on how to perform this?That is to specify exactly what fields changed in an assignment change.
    What I can think of is to compare values but I'm not sure how I can get the desired result.
    I would appreciate any feedback.
    Thanking you in advance
    Elena

    Elena,
    To meet you're requirement: changes per person during a period
    - done this before using audit trail, be aware that the reports that comes out standard, does not resemble anything a HR user can read. Quite often it says this ID has change to that ID. Building a reports that changes this into something meaning full for a HR/Payroll person does require a considerable effort.
    - using the change event log (system extract) or the retro notification report (payroll) will give you're results in a better format. Problem you may encounter here, is that not all entities are available (by default). You may have to add some dynamic triggers.
    - if you want to understand how the datetrack functionality is deriving the data, this paper on metalink may help : Create and Modify DateTrack History Views Note:177734.1

  • Changing field length of a standard field in standard table VBEP

    Hi,
    Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
    Thanks & Rgds,
    Pradeep

    No you cannot change the field length
    thanks
    G. Lakshmipathi

  • [BUG] iCal reverts Google Calender recurring events when changed.

    When in Apple Calendar and drag a recurring event to a new time and the pop-up asks if I want to do this for this event or all future events and choose only this event it changes, then moments later it reverts back to the original time. These events were originally created on Google Calendar.
    It seems that Google Calendar is taking preference over Apple Calandar and not updating or acknowledging Apple Calandar's comand to change.
    Has anyone seen this happen or have a recommended fix?

    https://developer.apple.com/bugreporter/
    You can also try http://www.apple.com/feedback/macosx.html but I don't think that's as useful.

  • How do i get my events to change colors when i add new ones in my calendar

    How do I get my events to change colors when I add a new event in my calendar?

    When you add an event and you see the heading "Calendar", do you see a name to the right of it such as "Work"?  If you tap on the heading "Calendar" does it show you a list of calendars?
    I'm basing this on my experience using iCal on a Mac to sync with my iPad.  I created a number of calendars on the Mac and assigned them different colors.  Those appear on my iPad.  I don't know how to create additional calendars on the iPad alone - I must create them in iCal or MobileMe then they show up on the iPad.  Are you using a Mac or MobileMe?

  • How to find out Last Changed Fields for a line item of a PO

    Dear All,
    Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?

    Hello,
    Check the table CDHDR,CDPOS for PO items,
    Check this code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'EINKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.  " Purchase order number
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 2
    *   OTHERS                        = 3
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    Vasanth

  • How to change field VBAK-CMNUP using VA02

    Hi EXPERTS,
    How to change field VBAK-CMNUP (Date of next credit check of document) using VA02?
    Seems it is hard to find it on the screen of VA02.
    Thanks in advance.

    Hi,
    Check these notes:
    Note 635727 - VBAK is filled with date only if block is set
    Note 588649 - Next date (CMNGV) - meaning and function
    Regards,
    Eduardo
    PD: I forgot the Note 588649 - Next date (CMNGV) - meaning and function.
    Edited by: Eduardo Hinojosa on Jun 11, 2009 11:39 AM

  • Changing fields color in CL_GUI_ALV_GRID using class

    Hi,
    I've written a lot of posts but still I have problem with changing color for CL_GUI_ALV_GRID.
    I have class ZKSL_CL_4_17_ALV_GRID_OO with 3 methods : SELECT, HANDLE_DBL_CLICK AND DISPLAY_ALV
    I want to change fields color every time I double click on IT.
    METHOD SELECT.
       DATA:
             lt_sflight                TYPE TABLE OF           zkslt_sflight,
             ls_layout                 TYPE                    lvc_s_layo,
             lr_custom_container       TYPE REF TO             cl_gui_custom_container,
             lr_my_class               TYPE REF TO             zksl_cl_4_17_alv_grid_oo.
       SELECT *  FROM zkslt_sflight  INTO TABLE mt_sflight
          WHERE carrid    = iv_carrid AND
              ( fldate    IN it_date  OR
                price     IN it_price OR
                planetype IN it_type )
    CALL FUNCTION 'Z_KSL_SCREEN'.
    ENDMETHOD.
    from FM z_ksl_screen i call screen 400 and from status_400 output  I call method DISPLAY_ALV
    METHOD display_alv.
       DATA:
              lr_custom_container       TYPE REF TO             cl_gui_custom_container,
              lt_sflight                TYPE TABLE OF           zkslt_sflight,
              lt_catalog                TYPE STANDARD TABLE OF  lvc_s_fcat,
              ls_catalog                LIKE LINE OF            lt_catalog,
              ls_layout                 type                    slis_layout_alv,
              lr_my_class               TYPE REF TO             zksl_cl_4_17_alv_grid_oo.
       CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
         EXPORTING
           i_structure_name = 'ZKSLT_SFLIGHT'
         CHANGING
           ct_fieldcat      = lt_catalog[].
    ************BULID LAYOUT
       ls_layout-no_input = 'X'.
       ls_layout-colwidth_optimize = 'X'.
       ls_layout-totals_text       = 'Totals(201)'.
       ls_layout-info_fieldname    = 'LINE_COLOR'.
       IF mr_gui_alv_grid IS INITIAL.  "-----------------------------------if----------------------&
         CREATE OBJECT: lr_custom_container
           EXPORTING
             container_name = 'DISPLAY',
             lr_my_class.
         CREATE OBJECT mr_gui_alv_grid
           EXPORTING
             i_parent = lr_custom_container.
         SET HANDLER lr_my_class->handle_dbl_click FOR mr_gui_alv_grid.
         CALL METHOD mr_gui_alv_grid->set_table_for_first_display
           EXPORTING
             i_structure_name = 'ZKSLT_SFLIGHT'
            is_layout        =   ls_layout
             i_save           = 'A'
           CHANGING
             it_outtab        = Mt_sflight
             it_fieldcatalog  = lt_catalog.
       ELSE.     "-------------------------------------------------ELSE---------------------&
         mr_gui_alv_grid->refresh_table_display( ) .
       ENDIF.
    ENDMETHOD.
    In handler i am trying to change fields color and call method display sending new out_table
    CALL METHOD me->display_alv
         CHANGING
           ct_fieldcat = lt_fieldcat.
    Please give me some easy advice how to do that.
    thank you in advice.

    Thank you Klaus for your reply,
    The problem is that I need to make this using classes.
    I tried to make my structure data with LVC_T_SCOL as you wrote,
    a field of table type LVC_T_SCOL in the structure of your output table
    DATA BEGIN OF lt_data. 
           INCLUDE STRUCTURE sflight.
           DATA cellcolors  TYPE lvc_t_scol .
       DATA END OF lt_data.
    TYPES: BEGIN OF mtt_tab.
    *         INCLUDE STRUCTURE ZKLST_sflight.  " I get error that I cannot use ref to abap dic
               INCLUDE TYPE ZKSLT_SFLIGHT.
               TYPES: cellcolors  TYPE lvc_t_scol ,
                 END OF mtt_tab.
    After making type mtt_tab
    i declare data   lt_tab                    TYPE STANDARD TABLE OF  mtt_tab.
    and when I try to copy table mt_sflight (it is atribut of calss) like below
    LOOP AT mt_sflight INTO ls_mt .
    *   READ TABLE lt_tab INDEX sy-tabix ASSIGNING <ls_tab>.
    *   MOVE-CORRESPONDING <ls_mt> TO <ls_tab>.
    *    UPDATE lt_tab FROM TABLE mt_sflight.
         MOVE-CORRESPONDING ls_mt to lt_tab.
       ENDLOOP.
    I am getting error "lt_tab is not internal str or table with header"
    Can you help me with this? 

  • In sets (t-code GS01-04): How to change Field name

    HI,
    I have created sets for rule in validation by t-code GS01. Where I have given Tbale name BSEG and Field name KOSTL(Cost Center No). Now, I want to change field name SAKNR (GL NO) instead of cost center. When I am trying to change field name t-code GS02, there is field name is in display mode and no way to change it.
    As I have lot of entries in each set, so that creation of new sets is very hard job again. Further when I trying to create new sets by reference it didnt change the table name and field name.
    Please provide me a solution.
    Khalid

    Hi,
    Hope it is not possible, logically total field is changing and the dependent entrie will not stay as it is. I don't think this is possible.
    Eventhough the values are same but the fields are different.
    VVR

  • Changing Field Labels of module pool screen dynamically

    Hi All,
    Can anybody tell me how to change field label of text field in dialog screen dynamically.
    The Screen/Transaction is standard one.
    I have created a Enhancement point for this change in one of PBO module's subroutine for this screen.
    This Field label is defined as a 'Text' field only. We can't change it any more as it is standard one.
    Can anybody tell me the solution for the same.
    I have to change this label value as per some validations and its corresponding text field value will remain as is.
    Thanks,
    Deep.

    Hello,
    I think it is not possible, but try changing the name by Looping on screen table on PBO,
    Bye
    Gabriel

Maybe you are looking for

  • Q1: Secondary Index. Q2: Fiscal Year /Period

    Hi gurus, I have two questions need your explain: Q1: To improve the query performance I am going to create some secondary indexes on an ODS, I am wondering whether this action will remove the data from the ODS therefore I have to reset the data load

  • Multiple subject area in one RPD

    Hi guys first of all sorry if i am asking stupid questions we just installed OBIEE 10G and now all of department will use obiee . we will have now more then 50 subjects areas .. my question is can we have all these subject areas in one rpd or they wi

  • Error while saving sales order2

    Hi expert: I encountered below message when I am saving the sales order: Missing data: Profitab. Segmt No. What is segmt No.? I just used ship to with country code CN, then I encountered above issue, but If I choose ship to or sold to with country DE

  • Is there a way to take the code form my iweb site and put in into iweb on a different mac?

    I had built my website on an old laptop - the hard drive shattered - and yes i was bad and didnt back up..... I want to update my site - but i dont want to start all over  - i just want to make some changes and re publish - Can i get the current code

  • 10.6.2 screwed up logic express

    Hi guys, I bought a MacBook pro from Apple with Logic Express preinstalled. Last week I upgraded to 10.6.2 and then to 10.6.3. Now Logic Express won't run. I want to download the updated version, but this requires a serial number which I don't have (