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

control checkbox in basic list

Former Member
0 Likes
637

I have write a checkbox in basic list and i have created a status for the list, and when i click the checkbox it doesn´t works to the event at line-selection, i have tried with the hide command too, but it doesnt goes to the event, i think that it goes before creating the status and write the checkbox, does anybody know how to resolve it?,

Thanks in advance

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
572

I do not believe that you can fire an event when checking a checkbox in a list display. Please see the following program as it allows the user to click a "DISPLAY" button and then it will read all of the select lines.



report zrich_0001 no standard page heading.

data: begin of ivbak occurs 0,
      check type char01,
      vbeln type vbak-vbeln,
      end of ivbak.

data: lines type i.

select-options: s_vbeln for ivbak-vbeln.

start-of-selection.

set pf-status 'LIST'.

  select vbeln into corresponding fields of table ivbak
      from vbak
          where vbeln in s_vbeln.

  loop at ivbak.
    write:/ ivbak-check as checkbox, ivbak-vbeln.
  endloop.

at user-command.

  case sy-ucomm.

    when 'DISPLAY'.

* Mark the internal table for the checkboxes selected on list
      describe table ivbak lines lines.
      do lines times.
        read line sy-index field value ivbak-check.
        if  ivbak-check = 'X'.
          read table ivbak index sy-index.
          if sy-subrc  = 0.
            ivbak-check = 'X'.
            modify ivbak index sy-index.
          endif.
        endif.
      enddo.

* Now display the sales order for all select SD docs
      loop at ivbak where check = 'X'.
        set parameter id 'AUN' field ivbak-vbeln.
        call transaction 'VA03' and skip first screen..
      endloop.

  endcase.

Regards,

Rich Heilman

Read only

0 Likes
572

I have had to create a status for the button select_all.

Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.

regards

Read only

Former Member
0 Likes
572

HI Carlson,

YO do not need to craete a PF-STATUS for that.

Probably that is causing a problem.

Regards,

Ravi

Read only

0 Likes
572

I have had to create a status for the button select_all.

Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.

regards

Read only

0 Likes
572

I have had to create a status for the button select_all.

Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.

regards