Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Select and Deselect Check-Box in Output list

Hello Every1,

Can any1 give me the code for select and deselect all the check-boxes in the output list.

It's not an ALV report.

Thanks,

Siva.

Tags:
Former Member
replied

Not sure about the structure of your program, but here is a little example .



report zrich_0002 no standard page heading.

data: check(1) type c.


start-of-selection.

* Write the initial list
  do 20 times.
    write:/ check as checkbox, sy-index.
  enddo.



at user-command.

* Set the checkbox on or off
  case sy-ucomm.
    when 'SELA'.
      check = 'X'.
    when 'DELA'.
      check = space.
  endcase.

* Rewrite the list
  sy-lsind = sy-lsind - 1.

  do 20 times.
    write:/ check as checkbox, sy-index.
  enddo.

Regards,

Rich Heilman

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question