Application Development and Automation 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: 
Read only

REFRESH in ALV

Former Member
0 Likes
517

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
484

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

Read only

Former Member
0 Likes
484

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.