<?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: dialog programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437170#M208308</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;Top_line : Top row at next PBO. Set at PAI by position of the vertical slider box. Can be changed in the ABAP program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;itab&amp;gt; with control &amp;lt;name&amp;gt; cursor &amp;lt;name&amp;gt;-top_line.&lt;/P&gt;&lt;P&gt;module &amp;lt;mod_name&amp;gt;.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current_line :Current line in the loop.  Set automatically in the LOOP loop to the value SY-STEPL +(TOP_LINE-1). No changes allowed in the ABAP program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can set the cursor field or you can read the contents in the current line like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set cursor field 'name of the field' line table_control_name-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&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;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jul 2006 07:32:46 GMT</pubDate>
    <dc:creator>Laxmana_Appana_</dc:creator>
    <dc:date>2006-07-15T07:32:46Z</dc:date>
    <item>
      <title>dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437169#M208307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;differrnce between current_line and top_line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 05:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437169#M208307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T05:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437170#M208308</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;Top_line : Top row at next PBO. Set at PAI by position of the vertical slider box. Can be changed in the ABAP program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at &amp;lt;itab&amp;gt; with control &amp;lt;name&amp;gt; cursor &amp;lt;name&amp;gt;-top_line.&lt;/P&gt;&lt;P&gt;module &amp;lt;mod_name&amp;gt;.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current_line :Current line in the loop.  Set automatically in the LOOP loop to the value SY-STEPL +(TOP_LINE-1). No changes allowed in the ABAP program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can set the cursor field or you can read the contents in the current line like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set cursor field 'name of the field' line table_control_name-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac9f35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&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;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 07:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437170#M208308</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-15T07:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437171#M208309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Also go through the link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 07:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437171#M208309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437172#M208310</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;When you create a table control you have to manage a screen table (the table control) and an internal table (where you store the data to be listed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table control is a table with only N records, where N is the number of the rows disegned by screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can know this parameter by system variable SY-LOOPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the LOOP of PBO and PAI while looping table control the index can be from 1 to N, you can know its value by sistem variable SY-STEPL:&lt;/P&gt;&lt;P&gt;so it can be from 1 to SY-LOOPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when a record of internal table has to be listed in table control, it need to know the link beetween this record and the record of tc where it'll be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can know the link by the variable top_line and current_line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- TOP_LINE is the index of the first record of internal table is shown in table control;&lt;/P&gt;&lt;P&gt;- CURRENT_LINE is the index of the record of internal table is looping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but just as I said above, SY-STEPL is the index of record of table control is looping, so the system obteins the value of CURRENT_LINE by this rule:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENT_LINE = TOP_LINE + SY-STEPL - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you have an internal table with 100 hits and a table control can be displayed only 10 records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- SY-LOOPC = 10&lt;/P&gt;&lt;P&gt;- 1 &amp;lt;= SY-STEPL &amp;lt;= 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the record of internal table on the top of tc is 15:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index of TC     Record of internal table&lt;/P&gt;&lt;P&gt;1&amp;lt;&lt;DEL&gt;-SY-STEPL 15 &amp;lt;&lt;/DEL&gt;TOP_LINE&lt;/P&gt;&lt;P&gt;2             16 &amp;lt;--CURREN_LINE = TOP_LINE + SY-STEPL - 1&lt;/P&gt;&lt;P&gt;3             17&lt;/P&gt;&lt;P&gt;4             18&lt;/P&gt;&lt;P&gt;5             19&lt;/P&gt;&lt;P&gt;6             20&lt;/P&gt;&lt;P&gt;7             21&lt;/P&gt;&lt;P&gt;8             22&lt;/P&gt;&lt;P&gt;9             23 &lt;/P&gt;&lt;P&gt;10            24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 08:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437172#M208310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T08:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437173#M208311</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;TOP_LINE:Top row at next PBO. Set at PAI by position of the vertical slider box. Can be changed in the ABAP program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENT_LINE:Current line in the loop. Set automatically in the LOOP loop to the value SY-STEPL +(TOP_LINE-1). No changes allowed in the ABAP program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Shakuntala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 12:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming/m-p/1437173#M208311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T12:05:10Z</dc:date>
    </item>
  </channel>
</rss>

