Skip to Content
0
Former Member
Apr 29, 2009 at 09:23 AM

how to read the check box value in alv report

87 Views

hi experts,

i m working on one alv report where i m using the check box for field selection in alv display.

but i don't know how to read the only selected fields.

wa_fieldcat-fieldname = 'BOX'.

wa_fieldcat-tabname = 'IT_HEADER'.

wa_fieldcat-seltext_m = 'Box'.

wa_fieldcat-checkbox = 'X'.

wa_fieldcat-input = 'X'.

wa_fieldcat-edit = 'X'.

APPEND wa_fieldcat TO i_fieldcat.

CLEAR wa_fieldcat.

wa_fieldcat-fieldname = 'AUFNR'.

wa_fieldcat-tabname = 'IT_HEADER'.

wa_fieldcat-seltext_m = 'Sales Doc'.

wa_fieldcat-hotspot = 'X'.

APPEND wa_fieldcat TO i_fieldcat.

CLEAR wa_fieldcat.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = v_repid

I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'

i_callback_user_command = 'USER_COMMAND'

i_callback_top_of_page = 'TOP_OF_PAGE'

it_fieldcat = i_fieldcat[]

i_save = 'A'

it_events = v_events

TABLES

t_outtab = it_header

  • EXCEPTIONS

  • PROGRAM_ERROR = 1

  • OTHERS = 2

.

&----


*& Form USER_COMMAND

&----


  • text

----


  • -->R_UCOMM text

  • -->, text

  • -->RS_SLEFIELDtext

----


FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

when '&RELEAS'.

??????????????

???????????????

???????????????

endcase

endform.

i gone through some already posted que for same problem i tried options like

loop at it_header.

endloop.

but i m getting box field empty.

is there i missed something? plz sugeest.. if u have any other solution plz post...