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: 

REFRESH in ALV

Former Member
0 Kudos

How can we do REFRESH Activity in ALV-Grid.(using Function Modules)

2 REPLIES 2

Former Member
0 Kudos

Hi,

In the user command subroutine you can give the field REFRESH = 'X'.

<b>Example</b>

FORM user_command USING ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

  • Refresh the ALV

SELDFIELD-REFRESH = 'X'.

ENDFORM.

Thanks,

Naren

Former Member
0 Kudos

i_callback_user_command = 'USER_COMMAND'

...

FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.

case UCOMM.

when '&IC1'. "this is for double click.

READ TABLE it_idoc INDEX selfield-tabindex.

SET PARAMETER ID 'DCN' FIELD it_idoc-docnum.

SUBMIT RSEIDOC2 WITH DOCNUM = it_idoc-docnum

WITH CREDAT = It_idoc-credat AND RETURN.

<b>selfield-refresh = 'X'.</b>

ENDCASE.