Skip to Content
author's profile photo Former Member
Former Member

Event for edit fields in Object ALV grid

Hi community,

I've building an ALV Grid in a SubDynpro of Tabstrip...

Any fields are edit.

I would like refresh my internal table at data changed of ALV object but if not assign a field at F4 event this result

not refresh.

Thanks everybody,

Antonello

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    Posted on Jul 08, 2005 at 09:49 AM

    Hi,

    I don't understand your message :

    to force refresh of your ALV Grid (edit mode) you could use :

        move '&REFRESH' to v_ucomm.
        call method obj_grid->set_function_code
             changing c_ucomm = v_ucomm.
    

    To refresh the display :

      call method obj_grid->refresh_table_display.
    

    Regards

    Frédéric

    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:14 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2005 at 10:57 AM

    I got probably the same problem ,

    The quetion is.. which is the method to make effective changes to the column that is editable on my grid, I can change the value but the value on my internal table is the same one before the changes...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2005 at 08:11 AM

    Hi again !! I tried to refresh the table with the relate command but the system return me this error :

    "the field xxx is not in the abap dictionary"

    ????

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 11, 2005 at 08:18 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 04:38 AM

    Hi

    I have the same problem as you , the error message says , the field is not defined in the data dictionary . I then declared the internal tale field : LIKE LIPS-LFIMG . Still the problem persists. Do I have to make any changes to the field catalog aswell.

    Thankyou

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2009 at 05:39 PM

    Hello Krish. I know that this is a very old message, but thought I would reply just in case someone else was having this same problem. I was receiving the same error and my particular error was due to the REF_FIELD & REF_TABLE having values in them within my FIELDCAT table. I removed the values for the fields that I made editable and it now works.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2009 at 04:00 AM

    Hi Antonello Didonna,

    Use this code, its working:-

    After the user edits any records and performs an action then place this code.

    Say when user presses a button with function code 'EXECUTE', and all the changes from the output screen in ALV reflects back to internal table.

     
    * handle the code execution based on the function code encountered
    CASE sy-ucomm.
    
    * when the function code is EXECUTE then process the selected records
      WHEN 'EXECUTE'.
    
    * to reflect the data changed into internal table
        DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
    
        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.
    
        " now your internal table data is changed as in ALV output
        " append your code
    
      WHEN OTHERS.
        " your code
    
    ENDCASE.
    

    Hope this solves your problem.

    Thanks & Regards,

    Tarun Gambhir

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.