Current Position:Home > How to set ALV properties?

How to set ALV properties?

Update:10-11Source: network consolidation
Advertisement
Hi,
I have some difficulties with an ALV grid report.
The program is too difficult for using the alv refresh method then we use the submit method to the program.
Using the submmit method users will lost their layout (filters,...). I found a FM REUSE_ALV_GRID_LAYOUT_INFO_GET which return all the properties of an ALV.
All this informations are sent in memory using export to memory. The informations are well returned.
I create the event END_OF_LIST in which I call the FM REUSE_ALV_GRID_LAYOUT_INFO_SET after importing the ALV properties. But no change on the ALV have been done... (no filter...)
Must i use an other event or an other FM?
Help!
Thanks.
END_OF_LIST:
   CLEAR    :  ws_layout,
               wt_fieldcat,
               wt_sort,
               wt_filter,
               ws_grid_scroll,
               ws_variant,
               wt_marked_columns,
               wt_filtered_entries,
               wt_fieldcat_backend,
               ws_print.
   REFRESH  :  wt_fieldcat,
               wt_sort,
               wt_filter,
               wt_marked_columns,
               wt_filtered_entries,
               wt_fieldcat_backend.
   IMPORT ws_layout = ws_layout FROM MEMORY ID 'ZLAYOUT'.
   CHECK sy-subrc EQ 0.
   IMPORT wt_fieldcat = wt_fieldcat FROM MEMORY ID 'ZFIELDCAT'.
     FROM MEMORY ID 'ZFILTERED_ENTRIES'.
   IMPORT wt_fieldcat_backend = wt_fieldcat_backend
     FROM MEMORY ID 'ZFIELDCAT_BACKEND'.
   CLEAR  gs_layout.
   gs_layout  =  ws_layout.
   CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET'
     EXPORTING
       is_layout      = gs_layout
       it_fieldcat    = wt_fieldcat
       it_sort        = wt_sort
       it_filter      = wt_filter
       is_grid_scroll = ws_grid_scroll
       is_print       = ws_print.

The Best Answer

Advertisement
Hi,
the post you indicates to me is the good way to refresh an ALV but this not my case. We can not use the good way that is the problem.
The way you put me in is not so wrong!
I try to use an event with a sy-ucomm and refresh the ALV with the rs_selfield-refresh = 'X' and its worksssssssss.
The the question now how to refresh an ALV by this way:
EVENT sy-ucomm.
form f_command_alv using fip_ucomm
                           fip_selfield type kkblo_selfield.
   case fip_ucomm.
     when 'ZREFRESH'.
       perform f_refresh.
     when 'TEST'.
       perform f_set_alv using rs_selfield.
   endcase.
EVENT ENDOF_LIST:_
form end_of_list.
    PERFORM f_set_alv.
endform.                    "end_of_list
The difficulty is how to set rs_selfield-refresh to X in the second case or another way to refresh!
David31
Edited by: David31 on Apr 3, 2009 11:33 AM
  • How to set ALV properties? Update:10-11

    Hi, I have some difficulties with an ALV grid report. The program is too difficult for using the alv refresh method then we use the submit method to the program. Using the submmit method users will lost their layout (filters,...). I found a FM REUSE_

  • Seperate ALV  Properties in Blocked ALV Update:10-11

    Hi All, I have created a blocked ALV. The standard ALV functionalities like Sort ,Filter etc is working only for the first list. Is there any techniques to give seperate functionalities for each list? Iam using reuse_alv_grid_display . and  LAYOUT-LI

  • Problem while setting the property of column in ALV Update:11-30

    Hi , I have created a alv dynamically and setting the properties of the column like column header text but its not getting updated . see the below code for ref. lr_column_settings ?= lr_config_table.   data:     lt_columns type salv_wd_t_column_ref.

  • Deep structure to XML and saving in SAP tables Update:10-11

    Hi all, ich habe filled an internal table (deep strucure) with mutiple fields. Most of these fields are defined as structure. Example: 1st field ist document number, 2nd field is defined as TLINETAB, 3rd field ist another document number, 4th field i

  • Setting ALV grid Graphic properties from program Update:11-30

    Hi all, Could any one tell me how to set the properties of the histogram generated by ALV output from program. I want to display the value on top of the bar, by setting this property from program. Manually i can do this by selecting the graph icon fr

  • About setting color properties to alv table.... Update:11-30

    Hi experts, I have scenario in which i have created one node with two columns..one for data and othr for cell design...both dis node attributed are bind to standard table's column's value property and cell design properties respectively... Bt now..di

  • Modify ALV row properties Update:11-30

    Hi everyone. I'm working on this ALV report wich rows must be editable or not depending on a field's value. This is: if a certain field is different from 0, the ALV row should be editable. Otherwise, it shouldn't. Is this possible? If it is, how can

  • Field Editing in ALV Report Update:10-11

    hello everyone, I have created an alv report using MARA table. but i am unable to edit any field and save the changes back to the table in the database. IHi Ravi, Check out the below demo program for editable ALV . REPORT  ZDEMO_ALVGRID_EDIT         

  • ** Filtering is not working correctly in ALV (REUSE_ALV_GRID_DISPLAY) Update:10-11

    Hi Friends, We have one Z report that output is displayed in ALV. We are using the standard FM 'REUSE_ALV_GRID_DISPLAY.  We have requirement to remove leading zeros for the field like Material Number (MATNR), Equipment Number (EQUNR) etc. We did the

  • Issue in ALV List display Update:10-11

    Issue in ALV List display   Posted: Apr 5, 2008 10:25 AM     Edit      E-mail this message      Reply  Hi Friends, Can any one help me out in the logic to display the output in the ALV list. i want to get the out put as based on the field4 i have to