<?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 Reports - Check Boxes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011335#M410527</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'm not getting idea how to approach this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is&lt;/P&gt;&lt;P&gt;I have one report with check box for each record output in the list.&lt;/P&gt;&lt;P&gt;Here in this report i'll check i.e. put tick mark in the check box, then the checked list of records should be written to the other report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeevi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 09:30:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-05T09:30:16Z</dc:date>
    <item>
      <title>Reports - Check Boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011335#M410527</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'm not getting idea how to approach this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is&lt;/P&gt;&lt;P&gt;I have one report with check box for each record output in the list.&lt;/P&gt;&lt;P&gt;Here in this report i'll check i.e. put tick mark in the check box, then the checked list of records should be written to the other report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeevi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 09:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011335#M410527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reports - Check Boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011336#M410528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;report Ztest no standard page heading.
 
data: imara type table of mara with header line.
 
data: check_box(1) type c,
      report_lines type i.
 
start-of-selection.
 
* Create the gui status with BACK button in standard place
* and a READ button in the application toolbar
  set pf-status 'CHECK'.
 
  select * into corresponding fields of table imara
           from mara up to 100 rows.
 
  loop at imara.
    write:/ check_box as checkbox, imara-matnr, imara-matkl.
    hide imara-matnr.
  endloop.
 
  report_lines  = sy-linno - 1.
 
top-of-page.
 
  write: 'List of materials'.
  uline.
 
top-of-page during line-selection.
 
  write:  'Material.....'.
  uline.
 
at user-command.
 
  case sy-ucomm.
    when 'READ'.
      check_box = space.
      set pf-status 'CHECK' excluding 'READ'.
      do report_lines times.
        read line sy-index field value check_box.
        if check_box = 'X'.
          write:/  'You have selected material', imara-matnr.
        endif.
      enddo.
  endcase.
 
DEMO_LIST_READ_LINE

**********************************************************
refer this code if u want furtehr help.


END-OF-SELECTION.
  lines = sy-linno - 1.
SET PF-STATUS 'ZSTATUS'.
 
AT USER-COMMAND.
      wa_output-cb = space.
      SET PF-STATUS 'ZSTATUS' EXCLUDING 'SAVE'.
      DO lines TIMES.
        READ LINE sy-index FIELD VALUE wa_output-cb.
          IF wa_output-cb = 'X'.
        MODIFY i_output  FROM wa_output INDEX sy-tabix TRANSPORTING cb.
        ENDIF.
      ENDDO.
 
CASE sy-ucomm.
WHEN 'SAVE'.
*      DELETE i_output WHERE cb = 'X'.
   LOOP AT i_output WHERE cb = 'X'.
    MOVE i_output TO i_fina.
   APPEND i_final.
   ENDLOOP.
 
  ULINE.
  FORMAT INTENSIFIED OFF.
  FORMAT COLOR COL_HEADING.
  WRITE:/001 'CB' ,
         003 'Material No',
         015 'Mat type',
         024 'Mat group'.
 
  FORMAT COLOR OFF.
  FORMAT INTENSIFIED ON.
  ULINE.
 
  IF NOT i_output[] IS INITIAL.
    LOOP AT i_output INTO wa_output.
      WRITE:/001 wa_output-cb AS checkbox,
             003 wa_output-matnr,
             015 wa_output-mtart,
             024 wa_output-matkl.
      CLEAR wa_output.
    ENDLOOP.
  ENDIF.
 
WHEN 'BACK'.
LEAVE SCREEN.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 09:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011336#M410528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T09:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reports - Check Boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011337#M410529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the sample demo program:&lt;/P&gt;&lt;P&gt;demo_list_read_line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 09:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011337#M410529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reports - Check Boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011338#M410530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeevi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the similar thread below,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="327374"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Reward points if it is useful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 09:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011338#M410530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T09:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reports - Check Boxes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011339#M410531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at t_spfli into wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    format color col_normal.&lt;/P&gt;&lt;P&gt;    write :&lt;/P&gt;&lt;P&gt;      /  sy-vline,&lt;/P&gt;&lt;P&gt;      3   w_box as checkbox,  5  sy-vline,&lt;/P&gt;&lt;P&gt;      8   wa_spfli-carrid,    20 sy-vline,&lt;/P&gt;&lt;P&gt;      22  wa_spfli-connid,    35 sy-vline,&lt;/P&gt;&lt;P&gt;      38  wa_spfli-cityfrom,  58 sy-vline,&lt;/P&gt;&lt;P&gt;      60  wa_spfli-cityto,    80 sy-vline.&lt;/P&gt;&lt;P&gt;    format color off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.                             " Loop at t_spfli into wa_spfli.&lt;/P&gt;&lt;P&gt;  uline.&lt;/P&gt;&lt;P&gt;  clear wa_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;    lw_lines   type i,                 " Holds no.of lines in t_spfli&lt;/P&gt;&lt;P&gt;    lw_linno   type i value 5,&lt;/P&gt;&lt;P&gt;    lw_count   type i.&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;&lt;/P&gt;&lt;P&gt;  do lw_lines times.&lt;/P&gt;&lt;P&gt;    read line lw_linno field value :&lt;/P&gt;&lt;P&gt;                       w_box into w_box,&lt;/P&gt;&lt;P&gt;                       wa_spfli-carrid into wa_tspfli-carrid,&lt;/P&gt;&lt;P&gt;                       wa_spfli-connid into wa_tspfli-connid.&lt;/P&gt;&lt;P&gt;    if w_box = 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      add 1 to lw_count.&lt;/P&gt;&lt;P&gt;      append wa_tspfli to t_tspfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.                             " If w_box = 'X' and&lt;/P&gt;&lt;P&gt;    clear : w_box, wa_tspfli.&lt;/P&gt;&lt;P&gt;    add 1 to lw_linno.&lt;/P&gt;&lt;P&gt;  enddo.                               " Do lw_lines times.&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 at least one record'(003) type 'E'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    export  t_tspfli to memory id 'YH640'.&lt;/P&gt;&lt;P&gt;    refresh t_tspfli.&lt;/P&gt;&lt;P&gt;  endif.                               " If lw_count eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it is helpful&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 09:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports-check-boxes/m-p/2011339#M410531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T09:37:00Z</dc:date>
    </item>
  </channel>
</rss>

