<?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: Problem with Read Line in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379736#M1041972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

start-of-selection.
   perform f_write_output.
   v_lines = sy-linno.  "&amp;lt;-----

at user-Command.
case sy-ucomm.
when 'exec'.
DO v_lines times.       "&amp;lt;-----
read line sy-index field value itab-check.
IF sy-subrc NE 0.
EXIT.
ENDIF.
CHECK itab-check = 'X'.
MODIFY itab INDEX sy-index TRANSPORTING check.
ENDDO.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2008 16:20:45 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-08-18T16:20:45Z</dc:date>
    <item>
      <title>Problem with Read Line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379734#M1041970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;i have internal table with header line.&lt;/P&gt;&lt;P&gt;displaying them on the screen with check box defaulted under certain conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the screen user want to uncheck certain records. so i have quoted as below. it is working if user unchecks the records other than the last record.&lt;/P&gt;&lt;P&gt;if user unchecks the last record still the last record is picking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one give me reson why? is it becasue i haven't cleared the itab before DO? am bit puzzled..&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 'exec'.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;   read line sy-index field value itab-check.                             &lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CHECK itab-check = 'X'.&lt;/P&gt;&lt;P&gt;    MODIFY itab INDEX sy-index TRANSPORTING check.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 16:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379734#M1041970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T16:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Read Line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379735#M1041971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must update the CHECK field if the user un-selects that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Statment must be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* CHECK itab-check = 'X'.
* MODIFY itab INDEX sy-index TRANSPORTING check.

MODIFY ITAB INDEX SY-INDEX TRANSPORTING CHECK.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 16:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379735#M1041971</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-18T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Read Line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379736#M1041972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

start-of-selection.
   perform f_write_output.
   v_lines = sy-linno.  "&amp;lt;-----

at user-Command.
case sy-ucomm.
when 'exec'.
DO v_lines times.       "&amp;lt;-----
read line sy-index field value itab-check.
IF sy-subrc NE 0.
EXIT.
ENDIF.
CHECK itab-check = 'X'.
MODIFY itab INDEX sy-index TRANSPORTING check.
ENDDO.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 16:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379736#M1041972</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-08-18T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Read Line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379737#M1041973</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;Thanks for prompt reply. &lt;/P&gt;&lt;P&gt;But why this peculiarity happening if only the last record from itab  unchecked..&lt;/P&gt;&lt;P&gt;If the previous records unchecked, no issue with them..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 16:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379737#M1041973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Read Line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379738#M1041974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be somewhere else in the code, it is getting cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 16:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379738#M1041974</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-18T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Read Line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379739#M1041975</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;FYI&lt;/P&gt;&lt;P&gt;Issue resolved with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: LINENO TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lineno = 0.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    lineno = lineno + 1.&lt;/P&gt;&lt;P&gt;     READ LINE lineno FIELD VALUE itab-check.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To check the endpoint&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;         EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF itab-check = 'X'.&lt;/P&gt;&lt;P&gt;          READ CURRENT LINE&lt;/P&gt;&lt;P&gt;                FIELD VALUE itab-belnr INTO itab1-belnr.&lt;/P&gt;&lt;P&gt;         APPEND itab1.&lt;/P&gt;&lt;P&gt;         CLEAR itab1.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;Enddo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 15:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-line/m-p/4379739#M1041975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-19T15:52:01Z</dc:date>
    </item>
  </channel>
</rss>

