check box in alv

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Guest

check box in alv

Post by Guest » Tue May 20, 2003 1:24 am

Hi All,
Can any body tell me how can we add check box in alv list.
when we use 'reuse_alv_list_display' F.M.
e.g-
**********
checkbox - customer - name
? - 100 - abc
? - 200 - xyz.

**********

plz help me.
thanks in advance
psa

bdelporte
Posts: 151
Joined: Mon Oct 21, 2002 2:16 am

Post by bdelporte » Tue May 20, 2003 3:53 am

Hi psa
Use parameters

Code: Select all

is_layout          = s_layout
of function REUSE_ALV_LIST_DISPLAY
where

Code: Select all

*LAYOUT
  CLEAR s_layout.
  s_layout-box_fieldname = 'FLAG'.
  s_layout-box_tabname = 'INTTAB'.
and

Code: Select all

DATA : BEGIN OF inttab OCCURS 0,
  flag(1),
  ...
end of inttab.
Here are your chechboxes... :D
Have a nice day!
Benoît

Guest

Post by Guest » Tue May 20, 2003 4:50 am

Thanks Benoit, We have got the checkboxes. For selected checkbox we want to retrieve the record information.
again thankyou very much.
psa

Post Reply