<?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: Reading checkboxes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368674#M524616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; CHECK THE DEMO PROGRAM &amp;lt;b&amp;gt;demo_list_modify_field_format&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can use check boxes for user interaction in lists. When user selects the check box the check box value will be 'X' other wise it will be '  ' .Depending on the value of check box you can run the program at execution time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 13:21:55 GMT</pubDate>
    <dc:creator>former_member673464</dc:creator>
    <dc:date>2007-06-04T13:21:55Z</dc:date>
    <item>
      <title>Reading checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368671#M524613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i have a simple report where i have displayed data using WRITE statements&lt;/P&gt;&lt;P&gt; with that i have also displayed a checkbox against each record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  now after report is displayed the user can select or deselect any of the records&lt;/P&gt;&lt;P&gt;  using checkboxes ..how can i find out whether the check box is selected or not&lt;/P&gt;&lt;P&gt; in front of each record&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 12:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368671#M524613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T12:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reading checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368672#M524614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;  spfli.                               " Flight details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"Selection screen elements............................................&lt;/P&gt;&lt;P&gt;select-options&lt;/P&gt;&lt;P&gt;   s_carrid for spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" Data declarations...................................................&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_check1 type c value ' '.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field string declaration of the structure of flight details         *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of fs_spfli,&lt;/P&gt;&lt;P&gt;        carrid type spfli-carrid,      " carrier id&lt;/P&gt;&lt;P&gt;        connid type spfli-connid,      " Connection id&lt;/P&gt;&lt;P&gt;        airpfrom type spfli-airpfrom,  " Departure airport&lt;/P&gt;&lt;P&gt;        airpto type spfli-airpto,      " Arrival airport&lt;/P&gt;&lt;P&gt;        deptime type spfli-deptime,    " Departure time&lt;/P&gt;&lt;P&gt;        arrtime type spfli-arrtime,    " arrival time&lt;/P&gt;&lt;P&gt;      end of fs_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field string declaration of the structure of flight scheduledetails *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of fs_sflight,&lt;/P&gt;&lt;P&gt;        carrid type sflight-carrid,&lt;/P&gt;&lt;P&gt;        connid type sflight-connid,&lt;/P&gt;&lt;P&gt;        fldate type sflight-fldate,&lt;/P&gt;&lt;P&gt;        seatsmax type sflight-seatsmax,&lt;/P&gt;&lt;P&gt;        seatsocc type sflight-seatsocc,&lt;/P&gt;&lt;P&gt;      end of fs_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to populate flight details                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;   t_spfli like&lt;/P&gt;&lt;P&gt;  standard table&lt;/P&gt;&lt;P&gt;        of fs_spfli.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to populate flight schedule details                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_sflight like&lt;/P&gt;&lt;P&gt;   standard table&lt;/P&gt;&lt;P&gt;         of fs_sflight.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field string for structure  to store flight schedule details        *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;   begin of fs_spflidup ,&lt;/P&gt;&lt;P&gt;     carrid like spfli-carrid,&lt;/P&gt;&lt;P&gt;     connid like spfli-connid,&lt;/P&gt;&lt;P&gt;   end of fs_spflidup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to populate to store flight schedule details         *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t_spflidup like&lt;/P&gt;&lt;P&gt;      standard table&lt;/P&gt;&lt;P&gt;            of  fs_spflidup.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  lw_lines type i,&lt;/P&gt;&lt;P&gt;  lw_lineno type i value 3,&lt;/P&gt;&lt;P&gt;  lw_count  type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      START-OF-SELECTION EVENT                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  perform list_output.&lt;/P&gt;&lt;P&gt;  set pf-status 'LIST'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      AT USER-COMMAND EVENT                         *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;"----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;  case sy-ucomm.&lt;/P&gt;&lt;P&gt;    when 'GET'.&lt;/P&gt;&lt;P&gt;      perform get_sflightdata.&lt;/P&gt;&lt;P&gt;    when 'SELECTALL'.&lt;/P&gt;&lt;P&gt;      perform select_all.&lt;/P&gt;&lt;P&gt;    when 'DESELECTAL'.&lt;/P&gt;&lt;P&gt;      perform deselect_all.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FORM GET_SFLIGHTDATA                                               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This subroutine gets the line data from the list and then gets the *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; corresponding flightdata and seats allocated.                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; There are interface parameters to be passed to this subroutine.    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;form get_sflightdata .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  describe table t_spfli lines lw_lines.&lt;/P&gt;&lt;P&gt;  do lw_lines times.&lt;/P&gt;&lt;P&gt;    read line lw_lineno&lt;/P&gt;&lt;P&gt;      field value w_check1 into w_check1&lt;/P&gt;&lt;P&gt;                  fs_spfli-carrid into fs_spfli-carrid&lt;/P&gt;&lt;P&gt;                  fs_spfli-connid into fs_spfli-connid  .&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      if w_check1 eq 'X'.&lt;/P&gt;&lt;P&gt;        add 1 to lw_count.&lt;/P&gt;&lt;P&gt;        w_check1 = ' '.&lt;/P&gt;&lt;P&gt;        sy-lisel+2(1) = '*'.&lt;/P&gt;&lt;P&gt;        modify current line field value w_check1.&lt;/P&gt;&lt;P&gt;        modify current line&lt;/P&gt;&lt;P&gt;                    field format w_check1 input off.&lt;/P&gt;&lt;P&gt;        fs_spflidup-carrid = fs_spfli-carrid.&lt;/P&gt;&lt;P&gt;        fs_spflidup-connid = fs_spfli-connid.&lt;/P&gt;&lt;P&gt;        append fs_spflidup to t_spflidup.&lt;/P&gt;&lt;P&gt;        clear fs_spfli.&lt;/P&gt;&lt;P&gt;      endif.                           " IF W_CHECK1&lt;/P&gt;&lt;P&gt;    endif.                             " IF SY-SUBRC&lt;/P&gt;&lt;P&gt;    add 1 to lw_lineno.&lt;/P&gt;&lt;P&gt;  enddo.                               " DO LW_LINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if lw_count eq 0.&lt;/P&gt;&lt;P&gt;    message 'Select atleast one record'(001) type 'I'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select sflight~carrid              " Carrier Id&lt;/P&gt;&lt;P&gt;           sflight~connid              " Connection Id&lt;/P&gt;&lt;P&gt;           sflight~fldate              " Flight Date&lt;/P&gt;&lt;P&gt;           sflight~seatsmax            " Seats Available&lt;/P&gt;&lt;P&gt;           sflight~seatsocc            " Seats occupied&lt;/P&gt;&lt;P&gt;      from sflight&lt;/P&gt;&lt;P&gt;      into table t_sflight&lt;/P&gt;&lt;P&gt;      for all entries&lt;/P&gt;&lt;P&gt;       in t_spflidup&lt;/P&gt;&lt;P&gt;    where carrid eq t_spflidup-carrid&lt;/P&gt;&lt;P&gt;      and connid eq t_spflidup-connid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      loop at t_sflight into fs_sflight.&lt;/P&gt;&lt;P&gt;        write :/20 fs_sflight-fldate,&lt;/P&gt;&lt;P&gt;                   fs_sflight-seatsmax,&lt;/P&gt;&lt;P&gt;                   fs_sflight-seatsocc.&lt;/P&gt;&lt;P&gt;      endloop.                         " IF SY-SUBRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      message 'No data found'(002) type 'S'.&lt;/P&gt;&lt;P&gt;    endif.                             " IF SY-SUBRC&lt;/P&gt;&lt;P&gt;  endif.                               " IF LW_COUNT&lt;/P&gt;&lt;P&gt;  lw_lineno = 3.&lt;/P&gt;&lt;P&gt;  clear t_spflidup[].&lt;/P&gt;&lt;P&gt;  clear t_sflight[].&lt;/P&gt;&lt;P&gt;  lw_count = 0.&lt;/P&gt;&lt;P&gt;endform.                               " GET_SFLIGHT_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FORM LIST_OUTPUT                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This subroutine gets the  table data from the flightr table        *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; There are interface parameters to be passed to this subroutine.    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;form list_output.&lt;/P&gt;&lt;P&gt;  select spfli~carrid                  " Carrier id&lt;/P&gt;&lt;P&gt;         spfli~connid                  " Connection Id&lt;/P&gt;&lt;P&gt;         spfli~airpfrom                " Departure city&lt;/P&gt;&lt;P&gt;         spfli~airpto                  " Arrival city&lt;/P&gt;&lt;P&gt;         spfli~deptime                 " Departure time&lt;/P&gt;&lt;P&gt;         spfli~arrtime                 " Arrival time&lt;/P&gt;&lt;P&gt;    from spfli&lt;/P&gt;&lt;P&gt;    into table t_spfli&lt;/P&gt;&lt;P&gt;    where carrid in s_carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at t_spfli into fs_spfli.&lt;/P&gt;&lt;P&gt;    write: /5 w_check1 as checkbox input on,&lt;/P&gt;&lt;P&gt;            10 fs_spfli-carrid,&lt;/P&gt;&lt;P&gt;            20 fs_spfli-connid,&lt;/P&gt;&lt;P&gt;            30 fs_spfli-airpfrom,&lt;/P&gt;&lt;P&gt;            40 fs_spfli-airpto,&lt;/P&gt;&lt;P&gt;            50 fs_spfli-deptime,&lt;/P&gt;&lt;P&gt;            60 fs_spfli-arrtime.&lt;/P&gt;&lt;P&gt;  endloop.                             " LOOP AT T_SPFLI&lt;/P&gt;&lt;P&gt;endform.                               " LIST_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FORM SELECT_ALL                                                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This subroutine checks all the connection ids in flight table      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; There are interface parameters to be passed to this subroutine.    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;form select_all.&lt;/P&gt;&lt;P&gt;  describe table t_spfli lines lw_lines.&lt;/P&gt;&lt;P&gt;  do lw_lines times.&lt;/P&gt;&lt;P&gt;    read line lw_lineno&lt;/P&gt;&lt;P&gt;      field value w_check1 into w_check1.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      if w_check1 ne 'X'.&lt;/P&gt;&lt;P&gt;        w_check1 = 'X'.&lt;/P&gt;&lt;P&gt;        sy-lisel+2(1) = ' '.&lt;/P&gt;&lt;P&gt;        modify line lw_lineno field value w_check1 .&lt;/P&gt;&lt;P&gt;        modify line lw_lineno field format w_check1 input on.&lt;/P&gt;&lt;P&gt;      endif.                           " IF W_CHECK1&lt;/P&gt;&lt;P&gt;    endif.                             " IF SY_SUBRC&lt;/P&gt;&lt;P&gt;    add 1 to lw_lineno.&lt;/P&gt;&lt;P&gt;  enddo.                               " DO LW_LINES&lt;/P&gt;&lt;P&gt;  lw_lineno = 3.&lt;/P&gt;&lt;P&gt;endform.                               " SELECT_ALL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FORM DeSELECT_ALL                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This subroutine dechecks all the connection ids in flight table    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; There are interface parameters to be passed to this subroutine.    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;form deselect_all.&lt;/P&gt;&lt;P&gt;  describe table t_spfli lines lw_lines.&lt;/P&gt;&lt;P&gt;  do lw_lines times.&lt;/P&gt;&lt;P&gt;    read line lw_lineno&lt;/P&gt;&lt;P&gt;      field value w_check1 into w_check1.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      if w_check1 eq 'X'.&lt;/P&gt;&lt;P&gt;        w_check1 = ' '.&lt;/P&gt;&lt;P&gt;        sy-lisel+2(1) = ' '.&lt;/P&gt;&lt;P&gt;        modify line lw_lineno field value w_check1 .&lt;/P&gt;&lt;P&gt;      endif.                           " IF W_CHECK1&lt;/P&gt;&lt;P&gt;    endif.                             " IF SY_SUBRC&lt;/P&gt;&lt;P&gt;    add 1 to lw_lineno.&lt;/P&gt;&lt;P&gt;  enddo.                               " DO LW_LINES&lt;/P&gt;&lt;P&gt;  lw_lineno = 3.&lt;/P&gt;&lt;P&gt;endform.                               " DESELECT_ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it is help ful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 12:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368672#M524614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T12:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368673#M524615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarang Shah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You simple use read line.. check this code in this cb is a check box and wa_e-e_id = first field whose value i want in further selction. declare cb1 as any length of type c. in cb1 the value of e_id of selected checkbox is come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'SUBMIT'.&lt;/P&gt;&lt;P&gt;      DO .&lt;/P&gt;&lt;P&gt;        READ LINE sy-index FIELD VALUE cb wa_e-e_id INTO cb1.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          IF cb EQ 'X'.&lt;/P&gt;&lt;P&gt;            READ TABLE itab_e INTO wa_e WITH KEY e_id = cb1.&lt;/P&gt;&lt;P&gt;            IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;              wa_e-total_sal = wa_e-total_sal + ( wa_e-total_sal * '0.10' ).&lt;/P&gt;&lt;P&gt;              MODIFY itab_e FROM wa_e INDEX sy-tabix TRANSPORTING total_sal.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Update zemployee from table itab_e.&lt;/P&gt;&lt;P&gt;       if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       message 'ROWS SUCCESSFULLY UPDATED In TABLE ZEMPLOYEE.' type 'I'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 13:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368673#M524615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading checkboxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368674#M524616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; CHECK THE DEMO PROGRAM &amp;lt;b&amp;gt;demo_list_modify_field_format&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You can use check boxes for user interaction in lists. When user selects the check box the check box value will be 'X' other wise it will be '  ' .Depending on the value of check box you can run the program at execution time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 13:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-checkboxes/m-p/2368674#M524616</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-06-04T13:21:55Z</dc:date>
    </item>
  </channel>
</rss>

