<?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 system fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741455#M322071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we change system field values? Please give explanation on the basis of sy-lsind.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2006 06:17:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-21T06:17:18Z</dc:date>
    <item>
      <title>system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741455#M322071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we change system field values? Please give explanation on the basis of sy-lsind.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741455#M322071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741456#M322072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no u can not chnage the system field values but wht u can do is u can store them in some variabgle on some condition and then do processing based on tht variable..&lt;/P&gt;&lt;P&gt;otherwsie u can not change the sy values at runtime..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741456#M322072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741457#M322073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, few times the requirement makes us to change the system values that are populated fields at run-time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that some of these fields will be re-determined for each step execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-LSIND&amp;lt;/b&amp;gt; - This variable is for List Index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be used in Interactive lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider an example where we have generated one basic list and 3 secondary lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the users requirement is to get back to the selection screen when he/she uses the BACK(F3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, we can acheive by changing the list index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-LSIND = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the info gives you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741457#M322073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741458#M322074</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;Yes..You can change SY-LSIND..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'BASIC LIST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / 'AT LINE SELECTION'.&lt;/P&gt;&lt;P&gt;SY-LSIND = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user presses back button it will take you to the basic list..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741458#M322074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741459#M322075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP system fields are always available in your progams or system programs.  You should treat them as constants &amp;amp; not modify them directly as  important information for the flow of the program may be lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-LSIND-This system field is set by the runtime environment. Its content can be changed in the ABAP program to influence the runtime environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a complete detail on this refer the link provided by SAP below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_erp2004/helpdata/EN/7b/fb96c8882811d295a90000e8353423/frameset.htm"&amp;gt;http://help.sap.com/saphelp_erp2004/helpdata/EN/7b/fb96c8882811d295a90000e8353423/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chetan.&lt;/P&gt;&lt;P&gt;PS:Reward points if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741459#M322075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741460#M322076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;  Yes you can make changes to the system fields , you can  do that in debugging also.&lt;/P&gt;&lt;P&gt;With respect to sy-lsind , when you make chages to this you bsaically move to the level you have specified in the new value of sy-lsind.&lt;/P&gt;&lt;P&gt;Only thing you need to remeber in case of sy-lsind is that it works when you reduce the value of it , but not when you try to modify the value with a higher value.&lt;/P&gt;&lt;P&gt;Execute this code , put a breakpoint at the event AT LINE-SELECTION , change the value of sy-lsind and see the result.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : v_string(100),
       v_count type num02 .
start-of-selection.
v_string  = 'test'.
clear v_count.

write v_string.
hide v_string.



at line-selection.
v_count = v_count + 1.
concatenate v_string v_count into v_string.
write:/ v_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reward with points if found helpful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741460#M322076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741461#M322077</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;In case sy-lsind, we cann't make forward navigation, and we can make backword navigations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/1741461#M322077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:48:12Z</dc:date>
    </item>
  </channel>
</rss>

