Editable ALV refreshing problem

Hello,
I have an editable ALV and i modify my db table with this alv.
when i run the report and see the alv, i can make changes and modify the db  table.
But after first change, alv doesnt see the othe changes, I change editable fields and save but when i debug i see no change at my internal table.
i refresh the internal table but after first change and save,  this code doesnt work :
CALL METHOD go_grid2->check_changed_data.
Is there a trick that i dont know?

the code which i give above is for refresh, for data change  try this declaration
    SET HANDLER event_receiver->handle_data_changed FOR g_grid.
    CALL METHOD g_grid->register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=>mc_evt_modified.
when you clicked SAVE button first you must call this method : CALL METHOD g_grid->check_changed_data .

Similar Messages

  • Editable ALV Quantity problem

    Hi all,
    In Editable ALV quanity fields store wrong result .
    Quanity is of packed type with 3 decomals.
    For eg - During display like quanity is 22.245 when i insert quantity like 9 then it makes .009.
    Any suggestion welcome.
    Regards,

    Hi Navdeep singh 
    Specify the number of decimal places for that field in field catalogue. So that your problem will be resolved.
    Venkat

  • Function ALV Refresh Problem

    Hi, everybody!
    I want change internal table data to display again using function alv. (Refresh)
    Please tell me if have a alv function may implement.
    No Class ALV.
    Thanks Advanced!

    Hi,
    for your requirement i.e you can change the internal table data after displaying by using edit functionality
    in the alv
    please check the following code
    LOOP AT IT_FIELDCAT INTO WA_FIELDCAT .
        CASE: WA_FIELDCAT-FIELDNAME.
         WHEN 'MATNR'.
            WA_FIELDCAT-NO_OUT = ' '.
          WHEN 'MEINS'.
            WA_FIELDCAT-NO_OUT = ' '.
          WHEN 'MTART'.
            WA_FIELDCAT-NO_OUT = ' '.
            WA_FIELDCAT-EDIT = 'X'.
          WHEN 'MBRSH'.
            WA_FIELDCAT-NO_OUT = ' '.
          WHEN OTHERS.
            WA_FIELDCAT-NO_OUT = 'X'.
        ENDCASE.
         MODIFY IT_FIELDCAT FROM WA_FIELDCAT.
      ENDLOOP.
    Thnaks & Regards,
    Sateesh

  • Editable ALV - Strnage problems.

    I have couple of issues which are really mind blowing:
    I am doing a module pool program using <u><b>OO ABAP.</b></u>
    I have a parameter field on my selection screen to choose the required layout variant.First execution works fine.Issues are
    1. When I go back to 1st screen from this and choose another variant using f4 or manually also... Display is still executed with the former variant only. I handled clear and refresh of all variables when i press BACK.
    2. Enter second screen by choosing some layout variant in first screen and scroll the ALV manually, it works fine. But the problem is when I scroll the ALV using the ball on the mouse, layout changes. i.e.. all the fields are displayed on the ALV.
    Did any one come across such strange problems?
    Experts, please put on your thinking cap and pass on some ideas to solve these.
    Many Thanks for your help.
    Kiran

    Hi,
    U can use g_alv_grid->refresh_table_display.
      IF g_alv_grid IS INITIAL.
    CALL METHOD g_alv_grid->set_table_for_first_display
    EXPORTING
    is_layout = g_layout
    i_save = space
    is_variant = wa_vari
    it_toolbar_excluding = i_toolbar_excl
    CHANGING
    it_fieldcatalog = i_fieldcat
    it_outtab = i_outtab.
      ELSE.
        CALL METHOD g_alv_grid->refresh_table_display.
      ENDIF.
    thanks,

  • ALV refresh problem

    Dear All,
    I have a existing alv list in which customer wants a refresh button to fetch the most recent data.
    In the report they have used LDB. Hence they are using Get LQUA statement which works as a loop along with end-of-selection.
    I have created a button in ALV  & up on pressing that button i want to perform the whole operation again. But i cannot use LDB there ( ie Get ) as system throws error.
    so i am trying with leave to current transaction , in this case the list gets refreshed but when click on back its not going to selection screen .  same as the case with submit .
    any idea how to go about this. thanks for your help in advance.
    sandeep.

    could you split the report into two?
    one that collects the data (LDB) and one that shows the list.
    so you can submit the collect report from the list.

  • Problem in editable  alv table .

    hello friends ,
    i am facing a problem in editable alv ,the problem is  while saving my data in internal table through editable alv one of my numeric field  is being  wrongly  updated  .
    for eg :  if i am entering  '2.00 ' in the field the value updated is 0.02.
    regards ,
    arpit.

    Dear Arpit
    Please check the below code and it may very useful
    TABLES: VBAK, VBAP.
    TYPE-POOLS: SLIS, ICON.
    DATA: BEGIN OF ITAB OCCURS 0,
          VBELN LIKE VBAK-VBELN,
          ERDAT LIKE VBAK-ERDAT,
          END OF ITAB.
    DATA: BEGIN OF JTAB OCCURS 0,
          VBELN LIKE VBAP-VBELN,
          MATNR LIKE VBAP-MATNR,
          KWMENG LIKE VBAP-KWMENG,
          END OF JTAB.
    DATA: TB_FCAT TYPE SLIS_T_FIELDCAT_ALV,
          WA_FCAT LIKE LINE OF TB_FCAT,
          WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
          TB_EVENT TYPE SLIS_T_EVENT,
          WA_EVENT LIKE LINE OF TB_EVENT,
          TB_HEADER TYPE SLIS_T_LISTHEADER,
          WA_HEADER LIKE LINE OF TB_HEADER,
          WA_KEYINFO TYPE SLIS_KEYINFO_ALV.
    CLEAR WA_FCAT.
    WA_FCAT-ROW_POS = '1'.
    WA_FCAT-COL_POS = '1'.
    *WA_FCAT-REF_FIELDNAME  = 'VBELN'.
    WA_FCAT-REF_TABNAME = 'VBAK'.
    *WA_FCAT-OUTPUTLEN = '10'.
    WA_FCAT-FIELDNAME = 'VBELN'.
    WA_FCAT-EDIT = 'X'.
    WA_FCAT-SELTEXT_M = 'DOCUMENT'.
    APPEND WA_FCAT TO TB_FCAT.
    CLEAR WA_FCAT.
    WA_FCAT-ROW_POS = '1'.
    WA_FCAT-COL_POS = '2'.
    *WA_FCAT-REF_FIELDNAME  = 'ERDAT'.
    WA_FCAT-REF_TABNAME = 'VBAK'.
    WA_FCAT-FIELDNAME = 'ERDAT'.
    *WA_FCAT-EDIT = 'X'.
    WA_FCAT-SELTEXT_M = 'DATE'.
    APPEND WA_FCAT TO TB_FCAT.
    CASE SY-UCOMM.
      WHEN 'VBELN'.
        WA_FCAT-SELTEXT_M = 'SURENDRA'.
        MODIFY TB_FCAT FROM WA_FCAT.
    ENDCASE.
    SELECT VBELN ERDAT FROM VBAK INTO CORRESPONDING FIELDS OF TABLE ITAB UP TO 15 ROWS.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = SY-REPID
       IS_LAYOUT                         = WA_LAYOUT
       IT_FIELDCAT                       = TB_FCAT
    TABLES
        T_OUTTAB                          = ITAB
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Surendra P

  • Problem While Saving the editable ALV GRID

    Dear Experts,
    I have a scenario in which i am display the ALV(using class) with some data in the custom container of module pool screen in the non-editable mode.Also i have save and edit buttons.If i click the edit button i have written the code to edit the some columns in the ALV grid, it is working fine.After editing it,when i click the save button then ALV has to refreshed with edited data and then it should go to non editable mode but it is not working.I have written the code for changing the editable ALv to non editable mode as follows :
      call method c_alvgd->set_ready_for_input
        exporting
          i_ready_for_input = 0.
    *****Row and column of the alv are refreshed after changing values
      stable-row = 'X'.
      stable-col = 'X'.
    *REfreshed ALV display with the changed values
    *This ALV is non editable and contains new values
      call method c_alvgd->refresh_table_display
        exporting
          is_stable = stable
        exceptions
          finished  = 1
          others    = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Could you Suggest me solution for this issue ?
    Thanks & Regards,
    R.Dhineshraj.

    Dhinesh,
    I suppose that you are able to get your changes values on screen but not able to get your field in DISPLAY mode from editable mode, let me know if this is not your problem.
    When you press SAVE, after the PAI, again PBO will run and hence the editable code for that field will overwrite which will keep it editable.
    So, do something like this.
    data: gv_edit value 'X'.....  "global variable in TOP include
    PBO....
    loop at ...
    if gv_edit = 'X'.
    CALL METHOD lo_alv->set_ready_for_input
      EXPORTING
        i_ready_for_input = 1.
    else.
    CALL METHOD lo_alv->set_ready_for_input
      EXPORTING
        i_ready_for_input = 0.
    endif.
    endloop.
    PAI.
    when 'SAVE'.
    gv_edit =  space.
    When 'EDIT'.
    gv_edit = 'X'.
    Regards,
    Diwakar

  • Urgent : Problem with Editable  ALV Grid  for Quantity and Currency Fields

    Hi All,
    I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
    When user changes these values these values are not changing properly .
    For the quantity field the domain is MENG13 with 3 deciamal places and here  if we enter 500 it takes it as 0.500   .
    The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
    Here also it takes last 2 digits after decimal places by default.
    Please advice how to get proper values in this case from ALV editable fields.
    Thanks and Regards
    Harshad
    Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AM

    for all the currency field , it will display like that only.
    u have to manipulate uin program before displaying.
    if they are giving 500, in program multiply with 100 and move it to table.
    when u are getting from table, divinde and display.
    this is what I am doing.
    Reward if helpfull.

  • Unable to display Refreshed editable alv

    hi
    I have developed editable alv which contains 7 colums. the final column is the addition of 4th n 5th cplumn. when i refresh after changing the values, the final column is not changing. but while debugging the changed values are reflected in internal table but its reflected in alv.
    help me out

    in the user_comand form you have to put rs_selfield-refresh = 'X'.
    like this:
    *& Form user_comand
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    rs_selfield-refresh = 'X'.

  • Problem with Foreign Key check in an editable ALV

    Hi,
    I've implemented an editable ALV.
    The underlying context node is referenced to a structure and within the structure the foreign keys are defined.
    In my example, I have two editable columns with different foreign key checks.
    My problem is, the foreign key check works only for one column.
    So if I enter in both columns incorret values, only a message for the first column is thrown,
    but not for the second column!
    Only if I enter two errors in one(!) column (in two rows), than I get two error messages.
    Examples:
    does not work:
    COL1 | COL2
    err1  | err2   -> only one error message is displayed (for err1)
    It works in this case:
    COL1 | COL2
    err1  |  ok
    err2  |  ok
    => two messages for err1 and err2
    and in this case
    COL1 | COL2
    err1  |  ok
    ok     |  err2
    => two messages for err1 and err2
    I've found nothing in OSS. My system is a 7.00 with SP18, so OSS 1153492 is already implemented.
    Do I somenthing wrong or is this an error in SAP?
    Thanks,
    Andreas

    Hi Lekha,
    thank you very much for your support!
    I try to give you an example.
    In general, you need an editable ALV with at least two columns.
    The node for the ALV table in the component controller has to be assigned to a dictionary structure!
    That is very important, otherwise the foreign key check will not work!
    And the two fields in this dictionary structure have to be assigned to a "check table".
    Prerequisition: NW70 SP16 or higher! See oss note 1153492.
    Maybe an easy way to reproduce it is using the WD component WDT_FLIGHTLIST_EDIT.
    So copy this component to a Z-component.
    Than create a dictionary structure for the node "NODE_FLIGHTTAB" with the same 10 fields as the node attributes.
    In your new dictionary structure, assign to the fields CARRID and CONNID the check tables SCARR and SPFLI. (see table SFLIGHT).
    Than make both columens (CARRID and CONNID) editable.
    This has to be done in the "RESULTVIEW" in the method "INIT".
    You can user the following code:
      lr_column = lr_column_settings->get_column( 'CARRID' ).
      create object lr_input_field
        exporting
          value_fieldname = 'CARRID'.
      lr_column->set_cell_editor( lr_input_field ). 
      lr_column = lr_column_settings->get_column( 'CONNID' ).
      create object lr_input_field
        exporting
          value_fieldname = 'CONNID'.
      lr_column->set_cell_editor( lr_input_field ).
    Copy this code below this code:
      lr_column_settings ?= l_value.
      lr_column = lr_column_settings->get_column( 'PRICE' ).
      create object lr_input_field
        exporting
          value_fieldname = 'PRICE'.
      lr_column->set_cell_editor( lr_input_field ).
    Than just activate all,  create a Web Dynpro Application and your are ready to test it.
    To test it, do the following:
    Append/Insert an empty row.
    Enter a CARRID and CONNID that does not exist and press ENTER.
    My result: only one error message is displayed for the wrong CARRID, but no error message for CONNID!
    Insert a new row.
    Enter in the first row, column CARRID an invalid value and in the second(!) row in column CONNNID.
    Than you get two(!) error messages. That's the behavior I expect.
    So thank you very much in advance for your help!
    Regards,
    Andreas

  • ALV Refresh Editable ALV

    Hi Friends,
    I am having one editable ALV. I have one quanity field in which i want to change the values.
    I am using FM REUSE_ALV_GRID_DISPLAY.
    When i change the values, the changed values in the ALV are not getting reflected in the internal table and the ALV.
    Any body having idea how to reflect the changed values in ALV and in internal table.
    Many thanks in advance.
    Regards,
    Tarun

    Hi Check this code.
    use the user_command form code from below code and check now.
    REPORT ZTEST_ALV_CHECK MESSAGE-ID ZZ .
    TYPE-POOLS: SLIS.
    DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
    IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    L_LAYOUT TYPE SLIS_LAYOUT_ALV,
    X_EVENTS TYPE SLIS_ALV_EVENT,
    IT_EVENTS TYPE SLIS_T_EVENT.
    DATA: BEGIN OF ITAB OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    CHK(1),
    color(4),
    END OF ITAB.
    SELECT VBELN
    POSNR
    FROM VBAP
    UP TO 20 ROWS
    INTO TABLE ITAB.
    X_FIELDCAT-FIELDNAME = 'CHK'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 1.
    X_FIELDCAT-INPUT = 'X'.
    X_FIELDCAT-EDIT = 'X'.
    X_FIELDCAT-CHECKBOX = 'X'.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'VBELN'.
    X_FIELDCAT-SELTEXT_L = 'VBELN'.
    X_FIELDCAT-HOTSPOT = 'X'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 2.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'POSNR'.
    X_FIELDCAT-SELTEXT_L = 'POSNR'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 3.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    L_LAYOUT-info_fieldname = 'COLOR'.
    *L_LAYOUT-ZEBRA = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT = L_LAYOUT
    I_CALLBACK_PF_STATUS_SET = 'STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    IT_FIELDCAT = IT_FIELDCAT
    TABLES
    T_OUTTAB = ITAB
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *& Form STATUS
    text
    -->P_EXTAB text
    FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
    Pf status
    SET PF-STATUS 'STATUS'.
    ENDFORM. " STATUS
    *& Form USER_COMMAND
    text
    -->R_UCOMM text
    -->RS_SELFIELD text
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    DATA: GD_REPID LIKE SY-REPID, "Exists
    REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
    IF REF_GRID IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = REF_GRID.
    ENDIF.
    IF NOT REF_GRID IS INITIAL.
    CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
    ENDIF.
    loop at itab where chk = 'X'.
    itab-color = 'C300'.
    modify itab index sy-tabix transporting color.
    endloop.
    RS_SELFIELD-refresh = 'X'.
    break-point.
    ENDFORM. "USER_COMMAND

  • Update ZTable from editable ALV

    Hi All,
    i'm calling a Function Module from within a Badi Class ( Workorder_Update) which uses an ALV to Add Comments in a Field of the ALV for Transportation to a ZTable. Therefore the ALV is set to editable.
    The Problem is that if the User does not press 'enter' after she/he added the Comment, the value is not send back to the internal Table wich updates the ZTab. If the User presses 'enter' ONLY the Comment is transported but the remainder of the Fields are cleared.
    This is part of the Coding:
    Before Calling FM -->
      + IF wa_header_old-pronr NE wa_header-pronr.
            CLEAR wa_zthlog.
            wa_zthlog-uzeit     = sy-uzeit.
            wa_zthlog-aufnr     = wa_header-aufnr.
            wa_zthlog-objnr     = wa_header-objnr.
            wa_zthlog-vornr     = wa_operation-vornr.
            wa_zthlog-ktext     = wa_header-ktext.
            wa_zthlog-aenam     = sy-uname.
            wa_zthlog-aedat     = sy-datum.
            wa_zthlog-larnt     = wa_operation-larnt.
            wa_zthlog-pronr     = wa_header-pronr.
            wa_zthlog-arbei     = wa_operation-arbei.
            wa_zthlog-dauno     = wa_operation-dauno.
            wa_zthlog-dauno     = wa_operation-dauno.
            wa_zthlog-ltxa1     = wa_operation-ltxa1.
            wa_zthlog-arbid     = wa_operation-arbid.
            wa_zthlog-fieldname = 'PRONR'.
            wa_zthlog-matkl     = wa_operation-matkl.
            wa_zthlog-preis     = wa_operation-preis.
            wa_zthlog-waers     = wa_header-waers.
            wa_zthlog-old_value = wa_header_old-pronr.
            wa_zthlog-new_value = wa_header-pronr.
    Fill t_zthlog - Call FM
            APPEND wa_zthlog TO t_zthlog.
          ENDIF.
        ENDLOOP.
    Secure Values before change
        MOVE t_zthlog TO y_zthlog.+
    Calling FM -->
    +function z_thlog.
      t_zthlog[] = c_zthlog[].
      call screen 0100 starting at 10 3.
      c_zthlog[] = t_zthlog[].
    endfunction.+
    ALV Grid - Processing -->
    +module output_0100 output.
    Fill Fieldcatalog
      call function 'LVC_FIELDCATALOG_MERGE'
        exporting
          i_structure_name       = 'ZTHLOG'
        changing
          ct_fieldcat            = gt_fieldcat[]
        exceptions
          inconsistent_interface = 1
          program_error          = 2
          others                 = 3.
      if g_custom_container is initial.
    Prepare ALV
        create object g_custom_container
             exporting container_name = g_container.
        create object grid1
             exporting i_parent = g_custom_container.
        g_repid = sy-repid.
        gs_layout-grid_title = 'Änderungsprotokoll'.
        gs_layout-zebra      = 'X'.
        gs_layout-cwidth_opt = 'X'.
        gs_variant-report    = g_repid.
        gs_variant           = '/default'.
    gs_layout-edit = 'X'.
    Call ALV
        call method grid1->set_table_for_first_display
          exporting
            i_structure_name = 'ZTHLOG'
            is_layout        = gs_layout
            i_save           = 'A'
            is_variant       = gs_variant
          changing
            it_outtab        = t_zthlog
            it_fieldcatalog  = gt_fieldcat[].
    Ready for Input
        call method grid1->set_ready_for_input
          exporting
            i_ready_for_input = 1.
    Eventregistration
        call method grid1->register_edit_event
          exporting
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        create object g_event_receiver.
        set handler g_event_receiver->handle_data_changed for grid1.
      else.
    Refresh, if filled
        call method grid1->refresh_table_display.
      endif.
    set Cursor
      call method cl_gui_control=>set_focus
        exporting
          control = grid1.
    endmodule.                 " output_0100  OUTPUT+
    There are alot of fields so the manual creation of the fieldcatalog should be avoided if possible.
    Any Help is appreciated!
    Best Regards
    Stefan

    Hi,
    Check this
    * Module Pai INPUT                                                     *
    * PAI module                                                           *
    module pai input.
      save_ok = ok_code.
      clear ok_code.
      call method grid1->check_changed_data
        importing
          e_valid = v_valid.
    " After this system will automatically update your changed data into
    " internal table t_zthlog
      case save_ok.
        when 'EXIT'.
          perform f_exit_program.
        when 'CANC'.
          perform f_exit_program.
        when 'BACK'.
          perform f_exit_program.
        when 'SAVE'.
          perform f_save_data.
      endcase.
    endmodule.                               " Pai INPUT
    aRs

  • Enter Key Event in Editable ALV Grid

    Hi all,
    I am trying to create and editable ALV grid using the REUSE ALV FM.
    On the grid after changing a value, if I press enter key the pai is not triggered. I have tried the various example programs (BCALV*) but could not find anything relevant.
    Basically I need similar functionality to normal module pool programming as in validations on screen done when enter key is pressed after screen entry.
    Is it possible to capture the Enter keypress on the ALV grid?

    Hello Preet
    I can only tell you how I would solve this using the ALV grid control (CL_GUI_ALV_GRID) because I have abandoned using ALV function modules.
    The problem with running through PAI is whether the focus (i.e. the cursor) is still on the control or already on the (surrounding) main program. If the control has the focus, you do not run through PAI.
    I would add a "Refresh" button to the toolbar of the ALV list. Normally, this button is already there or you only have to make it visible.
    When the user pushes this button you catch the corresponding user-command and call the CHECK_DATA_CHANGED method to see if values have been changed on the editable grid. If so, the previous method will fire event DATA_CHANGED.
    Now, in the event handler method (e.g. HANDLE_DATA_CHANGED) you receive as input a data change object (CL_ALV_CHANGED_DATA_PROTOCOL). This object contains all changed values. These values you will need to make your checks.
    I assume that the logic will be similar using ALV function modules.
    Regards
       Uwe

  • Editable ALV - editable fields after copying row

    Hi all!
    I've got a (simple?) problem. I created an editable ALV (by using class CL_GUI_ALV_GRID). There it is possible to add, delte or change entries. That's work!
    The  problem is, when the user copies an entry, the fields are not ready for input. It's the default function of the ALV. My questions is, how can I make the new line editable (including the key fields). I tried to replace the "copy line" function of the ALV with my own function code (on event TOOLBAR) and process it on event BEFORE_USER_COMMAND.
    In my own copy routine I read the selected line to create a new one with the same values, set the attributes (field table type LVC_T_STYL) for the new line and append it to my internal table. After that, I make a refresh of the ALV. Unfortunately the DATA_CHANGED event does not work anymore. So it is not possible for me to check for double entries and validitiy. It doesn't help to call method CHECK_CHANGED_DATA on the grid instance.
    Does anybody has an idea or an example??
    Thank you a lot!
    Best regards,
    Florian
    PS: I used the report BCALV_EDIT_04 as example, but unfortunatley there is no copy functionality implemented!

    Hi,
    Please check this [thread|Re: ALV Function module to Copy the  row;.
    Hope this helps.
    Regards,
    Chandravadan

  • When i press enter on my editable ALV nothing happens - Why?

    Hi,
    i have an editable alv on an tabstrip and when i press enter after changes nothing happens, although i have programmed check_changed_data.
    That´s not normal, or? Mayby somebody can give me a hint.
    Timo

    Hi,
    After changing the data use the following method to refresh the table.
        CALL METHOD W_GRID1->REFRESH_TABLE_DISPLAY.
    If it solves your problem dont forget to reward me points.
    Regards,
    --Suman

Maybe you are looking for

  • How to Create DI Discount Group for Customer Group?

    Hi All, i'm trying to create DiscountGroups for Type Customer Group in developtmnt side in sap b1. i already succed to create  Discount Group for Type Specific BP as you can see in the code i wroe below: di.BusinessPartners MyBP= GetBusinessObject (B

  • Can we have Oracle HRMS Payroll in Fusion and Core HR in R12?

    Hi, Currently we are using Oracle R12.1.3 for Oracle HRMS and Oracle Financials. We are planning to implement Oracle Compensation and Payroll Modules in the near future. We are in dilemma whether to go with Oracle fusion or not for these specific mod

  • Flash Player content debugger plugin for H.264?

    Where can I locate the updated Flash Player content debugger plugin player that supports H.264? Thanks in advance, -Conrad

  • Permissions - some items cannot be repaired

    When I repair permissions on a Macbook Pro, there are certain permissions don't get repaired. Since the laptop has been having some issues (slight performance reduction, iPhoto library needs to be rebuilt) I'm wondering if this is something about whi

  • Db startup

    Hi all! I am very new to Oracle and I am doing some selfstudy practice with Oracle XE. Today I have tried to do some changes to the startup parameters. Ufortunatelly the database could not startup after this (I have than tried to recopy the 'pre-chan