Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to EDIT a particular Row in ALV using normal function module Reuse_alv_grid_display

vamsilakshman_pendurti
Active Participant
0 Kudos

Hi experts..

i got one requirement like i need to edit some rows particularly in alv....

Edit in alv output....is it possible to get  that .....using normal function module with out using oops concept...

could any one pls help me...

3 REPLIES 3

yogendra_bhaskar
Contributor
0 Kudos

Hi Pendurti ,

If you want a particular field to be editable , simply define the fieldcatalog as

wa_fieldcatalog-edit          = 'X'.

wa_fieldcatalog-input         = 'X'.

for that field.

and

Now when you use FM ' Reuse alv grid display '

define USER_COMMAND

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

      i_callback_program       = v_repid

      i_callback_pf_status_set = 'SET_PF_STATUS'

      i_callback_user_command  = 'USER_COMMAND'

      it_fieldcat              = int_fieldcatalog

      is_layout                = wa_layout

    TABLES

      t_outtab                 = t_disp.

and now in form USER_COMMAND ; code as per following

FORM user_command  USING r_ucomm LIKE sy-ucomm

                            rs_selfield TYPE slis_selfield.

 

     DATA ref1 TYPE REF TO cl_gui_alv_grid.

     CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

       IMPORTING

         e_grid = ref1.

     CALL METHOD ref1->check_changed_data.

 

endform.


Regards,


Yogendra Bhaskar

0 Kudos

Hi Yogendra,

Thanks for respond my question...

i dont want to edit alv in field wise .....

i want to edit alv in row wise....in normal alv with out using class....

for example : in alv output particular rows i need to edit .....

is it possible to get that requirement using normal alv grid......

Regards,

vamsilakshman.p

0 Kudos

In clean REUSE_ALV.. it's not possible but you can get what you want if you'll follow instructions from this tread  : http://scn.sap.com/thread/3532187

Regards

Łukasz