Skip to Content
0
Former Member
Jan 04, 2006 at 11:04 AM

refreshing ALV made from REUSE_ALV_LIST_DISPLAY,

595 Views

form make_alv.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
*    I_STRUCTURE_NAME               = 'VBAK'
      i_callback_program             = i_repid
      i_callback_pf_status_set       = g_status
      i_callback_user_command  = g_user_command
      it_fieldcat              = gt_fieldcat_s
      it_events               = gt_events[]
      it_sort                  = it_sort[]
      is_layout                = gs_layout_1301
    TABLES
      t_outtab                       = itab_init[]
     EXCEPTIONS
       program_error                  = 1
       OTHERS                         = 2
            .
endform.

i am calling my above user routine when a user has pressed F8 on a selection screen. clicking on the row of this alv is running a BDC and creating a PO number thru ME27. one of the col of my alv is this PO number.

now my bdc message table is having this number and i hav updated the itab_init[] table.

<b>so for so good.</b>

now ofcourse this alv will not show the po number. so in the end of bdc i am doing:

perform make_alv.

<u>but this is creating another ALV on the top of last ALV. (using back button confirms this behavior, it takes 2 back click to reach to my sel screen)</u>

<b>Experts! suggest a neat way to refresh the ALV.</b>