<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: control checkbox in basic list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370861#M182645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2006 15:41:23 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-05-24T15:41:23Z</dc:date>
    <item>
      <title>control checkbox in basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370860#M182644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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?,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 15:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370860#M182644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T15:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: control checkbox in basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370861#M182645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 15:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370861#M182645</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-24T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: control checkbox in basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370862#M182646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Carlson,&lt;/P&gt;&lt;P&gt;   YO do not need to craete a PF-STATUS for that.&lt;/P&gt;&lt;P&gt;Probably that is causing a problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 15:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370862#M182646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T15:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: control checkbox in basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370863#M182647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had to create a status for the button select_all.&lt;/P&gt;&lt;P&gt;Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 16:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370863#M182647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T16:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: control checkbox in basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370864#M182648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had to create a status for the button select_all.&lt;/P&gt;&lt;P&gt;Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 16:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370864#M182648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T16:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: control checkbox in basic list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370865#M182649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had to create a status for the button select_all.&lt;/P&gt;&lt;P&gt;Hi Rich, i am using the sentence read line, but it doesn´t take me the checkbox value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 16:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-checkbox-in-basic-list/m-p/1370865#M182649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T16:16:50Z</dc:date>
    </item>
  </channel>
</rss>

