Skip to Content
0
Sep 02, 2004 at 10:37 AM

ALV list - refresh single lines

17 Views

Hello all

In SAP R/3 version 40B !

Is there an alternative way to do this ?

This is what I do:

I create alv list via REUSE_ALV_LIST_DISPLAY with custom push button and user_command form.

When the user marks a line and push the pushbutton the user_command form is executed - and the internal table is modified.

To update the screen i set the flag refresh in this way:

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

.....

ENDCASE.

rs_selfield-refresh = 'X'.

ENDFORM.

However this refreshes the complete list including sort, subtotals etc.

If the sorting defined by the user is not on unique key, the sorting is partly random and when the list is re-sorted the sorting order may change. This can be very confusing.

An other problem is by very large lists the load/refresh can be very slow. This means that a very small change of one list line can have a very long response time.

Best regards

Thomas Madsen Nielsen