<?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: Help Needed on Read/Modify Line Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865251#M48849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you directly use MODIFY, which line it will take into consideration for modifying. Check the SY-INDEX value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2005 08:00:24 GMT</pubDate>
    <dc:creator>Lakshmant1</dc:creator>
    <dc:date>2005-04-04T08:00:24Z</dc:date>
    <item>
      <title>Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865248#M48846</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;I am writing a report which is having a check box as first column, followed by sales data. I am giving F4 Key to user to Select ALL the check box. I have used Modify Line to do this, but it is not working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the pseudo code which i am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report &amp;lt;report name&amp;gt;.&lt;/P&gt;&lt;P&gt;data cb1 value SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; cb1 as CHECKBOX, 'X'.&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; cb1 as CHECKBOX, 'Y'.&lt;/P&gt;&lt;P&gt;Write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; cb1 as CHECKBOX, 'Z'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF04.&lt;/P&gt;&lt;P&gt;   DO 3 times.&lt;/P&gt;&lt;P&gt;      MODIFY LINE sy-index field value cb1 from 'X'.&lt;/P&gt;&lt;P&gt;   ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working and giving weird results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following things too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trial a:&lt;/P&gt;&lt;P&gt;cb1 = 'X'.&lt;/P&gt;&lt;P&gt;modify line sy-index field value cb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trial b:&lt;/P&gt;&lt;P&gt;modify line sy-index of current page value cb1 from 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trial c:&lt;/P&gt;&lt;P&gt;read line sy-index....&lt;/P&gt;&lt;P&gt;modify line sy-index..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But none of them were working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if my approach to select all check box is correct. Is there any alternate way to select all the checkbox in the list?..What is wrong with my modify line statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 07:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865248#M48846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T07:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865249#M48847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at demo program DEMO_LIST_READ_LINE and DEMO_LIST_MODIFY_FIELD_FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 07:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865249#M48847</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2005-04-04T07:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865250#M48848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same thing before in my program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Demo program, it is &lt;/P&gt;&lt;P&gt;   box = space.&lt;/P&gt;&lt;P&gt;   MODIFY LINE sy-index FIELD VALUE  box &lt;/P&gt;&lt;P&gt;                        FIELD FORMAT box INPUT OFF&lt;/P&gt;&lt;P&gt;                        num COLOR 6 INVERSE ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program/trial it is&lt;/P&gt;&lt;P&gt;cb1 = 'X'.&lt;/P&gt;&lt;P&gt;modify line sy-index field value cb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then also its not working for me..no sure where i m wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 07:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865250#M48848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T07:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865251#M48849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you directly use MODIFY, which line it will take into consideration for modifying. Check the SY-INDEX value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 08:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865251#M48849</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2005-04-04T08:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865252#M48850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing sy-index as an parameter&lt;/P&gt;&lt;P&gt;AT PF04.&lt;/P&gt;&lt;P&gt;DO 3 times.&lt;/P&gt;&lt;P&gt;   MODIFY LINE &amp;lt;b&amp;gt;sy-index&amp;lt;/b&amp;gt; field value cb1 from 'X'.&lt;/P&gt;&lt;P&gt;ENDDO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 08:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865252#M48850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T08:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865253#M48851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the checkbox part of the internal table along with sales data. If so modify the internal table for the records which are selected and then process the records whch are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Lakshman Tandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 08:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865253#M48851</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2005-04-04T08:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865254#M48852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cb1 is the external variable defined using data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: cb1 type c value SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas other sales order information are stored in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 08:47:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865254#M48852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865255#M48853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing wrong in the code which you had written. The problem is in the SY-INDEX as I mentioned earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the report statement use No STANDARD PAGE HEADING or increase the counter t0 5 in the DO loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 09:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865255#M48853</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2005-04-04T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865256#M48854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's one important thing that I would like to mention here. Please avoid using the F1 and F4 keys for your purposes. I hope you're aware that they have a got a standard purpose throughout the SAP system - to provide for &amp;lt;i&amp;gt;Help&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;Possible Values&amp;lt;/i&amp;gt; respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second point is that the line numbers start from the report header. So using the sy-index will not help you really. You need to either :&lt;/P&gt;&lt;P&gt;1. suppress the report header.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. modify the sy-index value accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 09:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865256#M48854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T09:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865257#M48855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the list screen(GUI STATUS) set two button for select all and deselect all and on user command you can use one of the forms below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : wf_n type i ,
       box .


form select_all. 
 wf_n = 1 . 
 do.   
 read line wf_n  field value box.   
 if sy-subrc ne 0 .    
  exit.    endif.  
  if box = space .   
   box = 'X'.     
 modify line wf_n field value box .  
  endif.  
  wf_n = wf_n + 1 . 
 enddo.
endform.                    " select_allform 

deselect_all. 
 clear wf_line1. 
 clear wf_line. 
 wf_n = 1 .  
do.  
  read line wf_n  field value box.
    if sy-subrc ne 0 .  
    exit.    
endif.    
if box = 'X' .  
    box = space. 
     modify line wf_n field value box .  
    modify line  wf_n  line format color col_normal      intensified on . 
   endif.  
  wf_n = wf_n + 1 .  
enddo.
endform.                    " deselect_all
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 09:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865257#M48855</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-04-04T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865258#M48856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman, Poornanad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I guess i was not having the proper output because my program was reading lines from the page header. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today on my PC , i will try to supress the header and/or increase modify the lines accordingly  by increasing the temporary loop counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 09:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865258#M48856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T09:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865259#M48857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just posting here the coe that would wrok as well. Just try it out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT &amp;lt;report_name&amp;gt; NO STANDARD PAGE HEADING.

DATA CB1 VALUE SPACE.

WRITE :/ CB1 AS CHECKBOX, 'X'.
WRITE :/ CB1 AS CHECKBOX, 'Y'.
WRITE :/ CB1 AS CHECKBOX, 'Z'.

AT PF05.
* When the user hits F5....
  DO 3 TIMES.
    READ LINE SY-INDEX.
    MODIFY LINE SY-INDEX FIELD VALUE CB1 FROM 'X'.
  ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do get back if you have any further doubts. If not, then please reward the useful answers and mark this question as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, there's a small point of interest here. In the above code , if you omit the READ LINE SY-INDEX. statement, what would happen? And why would that happen? Try to find that out. I just did and got my memory refreshed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 09:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865259#M48857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-04T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865260#M48858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think we should worry about finding the exact line where the check box starts appearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at the code sample i have given i was trying the read the filed value of &amp;lt;b&amp;gt;box&amp;lt;/b&amp;gt; (check box filed name in the list) where i dont have check boxes it will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way we will only hit the lines with check box .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can just copy paste the above code and modify box with the corresponding filed name in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2005 10:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865260#M48858</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-04-04T10:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865261#M48859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for throwing a light on the "Read Statement". This cleared up my concept of modify line too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I dont use Read Line, the output will be:&lt;/P&gt;&lt;P&gt;Checked X&lt;/P&gt;&lt;P&gt;Checked X&lt;/P&gt;&lt;P&gt;Checked X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to answer the question as "Why it is happening".Correct me if i am wrong as i am only 15 days Old for ABAP ;-((.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how I will now defining modify line statement. Modify Line Statement modify the current line or line number n with the value of sy-lisel. With Field Addition in Modify line, you change the content of sy-lisel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in our case, the sy-lisel value is (Checked,'X').&lt;/P&gt;&lt;P&gt;So if we dont use read line, only first column will get updated , whereas second field will remain in the sy-lisel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to get the value of other lines, we use read line. This will fill up the sy-lisel with the the line content of sy-index and so modify will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if we are using AT LINE-SELECTION event to select line, in that case, there is no need to do a read line as sy-lisel is already in the buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2005 03:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865261#M48859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-06T03:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865262#M48860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code. Initially I was confused as why you need to do a read line, whereas modify line could solve the problem. But now why you use read line [Replied to Anand Problem].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another good thing i got to learn in this is that you have made the use of sy-subrc , so that the correct line will get updated. So in this case we dont have to worry as whether there is a header in page or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2005 04:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865262#M48860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-06T04:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed on Read/Modify Line Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865263#M48861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mitesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is absolutely correct. I'm I'm happy that you've understood the concept with just 15 days' experience in ABAP!! Great going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess your problem is now resolved. Now as you can see, quite a few people have tried to answer your doubt. You might want to reward the answers that have helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also mark this question as answered - &lt;/P&gt;&lt;P&gt;1. By rewarding 10 points to the answer that you think has solved your problem.&lt;/P&gt;&lt;P&gt;2. choosing the option "I have solved it on my own".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the SDN way of saying thanks !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2005 04:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-on-read-modify-line-statement/m-p/865263#M48861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-06T04:04:07Z</dc:date>
    </item>
  </channel>
</rss>

