<?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: regarding checkbox in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-checkbox/m-p/2441348#M546473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES v_lines.&lt;/P&gt;&lt;P&gt;this will give the number of records in the internal table.&lt;/P&gt;&lt;P&gt;So the aim here is you have to change all these records with the read data from ITAB.&lt;/P&gt;&lt;P&gt;In the output first 2 lines there won't be data displayed, which are displayed top of page.so taking the count from 3rd line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_cnt = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab WITH KEY mandt = sy-lisel+2(3).&lt;/P&gt;&lt;P&gt;reading the internal table with the MANDT field  which are displayed in 2,3,4 characterers.&lt;/P&gt;&lt;P&gt;and taking the first char field value which is nothing but check box and appending/modifing the itab for each line&lt;/P&gt;&lt;P&gt;this will be done for all records of internal table.&lt;/P&gt;&lt;P&gt;itab-check = sy-lisel(1).&lt;/P&gt;&lt;P&gt;MODIFY itab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2007 11:39:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-28T11:39:43Z</dc:date>
    <item>
      <title>regarding checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-checkbox/m-p/2441347#M546472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;                     in the below program i have some doubts..help me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          TYPES: BEGIN OF ttab  ,&lt;/P&gt;&lt;P&gt;           check TYPE char1,&lt;/P&gt;&lt;P&gt;           mandt TYPE t000-mandt,&lt;/P&gt;&lt;P&gt;           mtext TYPE t000-mtext,&lt;/P&gt;&lt;P&gt;           ort01 TYPE t000-ort01,&lt;/P&gt;&lt;P&gt;           MWAER TYPE T000-MWAER,&lt;/P&gt;&lt;P&gt;          END OF ttab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE TABLE OF ttab WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_lines TYPE i.&lt;/P&gt;&lt;P&gt;DATA: v_cnt TYPE i.&lt;/P&gt;&lt;P&gt;DATA: v_counter TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF TABLE itab FROM t000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;  WRITE:/ itab-check AS CHECKBOX,&lt;/P&gt;&lt;P&gt;          itab-mandt,&lt;/P&gt;&lt;P&gt;          itab-mtext,&lt;/P&gt;&lt;P&gt;          ITAB-MWAER.&lt;/P&gt;&lt;P&gt;ENDLOOP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Press F8 after selecting the checkbox, this code&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;will tell you which records where selected.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF8.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-lsind = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DESCRIBE TABLE itab LINES v_lines.&lt;/P&gt;&lt;P&gt;    v_cnt = 3. " Initiate value for Count 3 if you're including page header.&lt;/P&gt;&lt;P&gt;    DO v_lines TIMES.&lt;/P&gt;&lt;P&gt;      READ LINE v_cnt. " Above counter...&lt;/P&gt;&lt;P&gt;      READ TABLE itab WITH KEY mandt = sy-lisel+2(3)..&lt;/P&gt;&lt;P&gt;      itab-check = sy-lisel(1).&lt;/P&gt;&lt;P&gt;      MODIFY itab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      v_counter = v_counter - 1.&lt;/P&gt;&lt;P&gt;      v_cnt = v_cnt + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/ 'SELECTED RECORDS:'.&lt;/P&gt;&lt;P&gt;    LOOP AT itab WHERE check = 'X'.&lt;/P&gt;&lt;P&gt;      WRITE:/ itab-check, itab-mandt, itab-mtext, itab-ort01.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this why  we use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DESCRIBE TABLE itab LINES v_lines.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    v_cnt = 3. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    READ TABLE itab WITH KEY mandt = sy-lisel+2(3)..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  itab-check = sy-lisel(1).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODIFY itab INDEX sy-tabix.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 11:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-checkbox/m-p/2441347#M546472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T11:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-checkbox/m-p/2441348#M546473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES v_lines.&lt;/P&gt;&lt;P&gt;this will give the number of records in the internal table.&lt;/P&gt;&lt;P&gt;So the aim here is you have to change all these records with the read data from ITAB.&lt;/P&gt;&lt;P&gt;In the output first 2 lines there won't be data displayed, which are displayed top of page.so taking the count from 3rd line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_cnt = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab WITH KEY mandt = sy-lisel+2(3).&lt;/P&gt;&lt;P&gt;reading the internal table with the MANDT field  which are displayed in 2,3,4 characterers.&lt;/P&gt;&lt;P&gt;and taking the first char field value which is nothing but check box and appending/modifing the itab for each line&lt;/P&gt;&lt;P&gt;this will be done for all records of internal table.&lt;/P&gt;&lt;P&gt;itab-check = sy-lisel(1).&lt;/P&gt;&lt;P&gt;MODIFY itab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 11:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-checkbox/m-p/2441348#M546473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T11:39:43Z</dc:date>
    </item>
  </channel>
</rss>

