<?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: table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474914#M557017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;CONTROLS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.&lt;/P&gt;&lt;P&gt;Go through this urls.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.saptechnical.com" target="test_blank"&gt;www.saptechnical.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com" target="test_blank"&gt;www.sap-img.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/howdo_a.htm" target="test_blank"&gt;http://www.planetsap.com/howdo_a.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id25.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id25.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 10:22:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-22T10:22:03Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474913#M557016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to get cursor position to a field in table control&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474913#M557016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474914#M557017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;CONTROLS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.&lt;/P&gt;&lt;P&gt;Go through this urls.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.saptechnical.com" target="test_blank"&gt;www.saptechnical.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com" target="test_blank"&gt;www.sap-img.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/howdo_a.htm" target="test_blank"&gt;http://www.planetsap.com/howdo_a.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.niraj.tripod.com/id25.html" target="test_blank"&gt;http://sap.niraj.tripod.com/id25.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474914#M557017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474915#M557018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use GET CURSOR FIELD f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Basic form 2 GET CURSOR. ... &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Variants: &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. GET CURSOR FIELD f. &lt;/P&gt;&lt;P&gt;2. GET CURSOR LINE line. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Variant 1 &lt;/P&gt;&lt;P&gt;GET CURSOR FIELD f. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. ... OFFSET off &lt;/P&gt;&lt;P&gt;2. ... LINE line &lt;/P&gt;&lt;P&gt;3. ... VALUE g &lt;/P&gt;&lt;P&gt;4. ... LENGTH len &lt;/P&gt;&lt;P&gt;5. ... AREA &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Transfers the name of the field at the cursor position to the field f. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;Cursor was positioned on a field. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;Cursor was not positioned on a field. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Unlike screen processing, list processing allows you to output literals, field symbols, parameters and local variables of subroutines. Literals, local variables and VALUE parameters of subroutines are treated like fields without names (field name SPACE, return value 0). &lt;/P&gt;&lt;P&gt;Otherwise, GET CURSOR FIELD returns only names of global fields, regardless of whether they are addressed directly (i.e. by "WRITE"), by field symbols or by reference parameters. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: CURSORFIELD(20), &lt;/P&gt;&lt;P&gt;      GLOB_FIELD(20)    VALUE 'global field', &lt;/P&gt;&lt;P&gt;      REF_PARAMETER(30) VALUE 'parameter by reference', &lt;/P&gt;&lt;P&gt;      VAL_PARAMETER(30) VALUE 'parameter by value', &lt;/P&gt;&lt;P&gt;      FIELD_SYMBOL(20)  VALUE 'field symbol'. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;F&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;PERFORM WRITE_LIST USING REF_PARAMETER VAL_PARAMETER. &lt;/P&gt;&lt;P&gt;ASSIGN GLOB_FIELD TO &amp;lt;F&amp;gt;. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT LINE-SELECTION. &lt;/P&gt;&lt;P&gt;  GET CURSOR FIELD CURSORFIELD. &lt;/P&gt;&lt;P&gt;  WRITE: /   CURSORFIELD, SY-SUBRC. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM WRITE_LIST USING RP VALUE(VP). &lt;/P&gt;&lt;P&gt;  DATA: LOK_FIELD(20)  VALUE 'local field'. &lt;/P&gt;&lt;P&gt;  ASSIGN FIELD_SYMBOL TO &amp;lt;F&amp;gt;. &lt;/P&gt;&lt;P&gt;  WRITE: /  GLOB_FIELD,  /  LOC_FIELD, &lt;/P&gt;&lt;P&gt;         /  RP,          /  VP, &lt;/P&gt;&lt;P&gt;         /  'literal',   /  FIELD_SYMBOL. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When you double-click the word " global field", CURSORFIELD contains the field name GLOB_FIELD, on "parameter by reference" the field name REF_PARAMETER, on " field symbol" the field name FIELD_SYMBOL, and on "local field", "parameter by value" and "literal" the value SPACE. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... OFFSET off &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Copies the position of the cursor within the field to the field off (1st column = 0). &lt;/P&gt;&lt;P&gt;If the cursor is not somewhere within a field (SY-SUBRC = 4), the offset value is set to 0. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... LINE line &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;With step loops, lin contains the number of the loop line where the cursor stands. In list processing, this is the absolute line number (as stored in the system field SY-LILLI). &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... VALUE g &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;g contains the value of the field where the cursor stands, always in output format (character display). &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... LENGTH len &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;len contains the output length of the field where the cursor stands. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 5 &lt;/P&gt;&lt;P&gt;... AREA a &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the cursor is positioned on the field of a table view control, the name of the control is placed in the field a. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;GET CURSOR LINE line. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. ... OFFSET off &lt;/P&gt;&lt;P&gt;2. ... VALUE  g &lt;/P&gt;&lt;P&gt;3. ... LENGTH len &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;As for variant 1 with addition LINE, except that there are differences with the return code and the effect of the additions. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The return code is set as follows: &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;The cursor is on one of the list lines (list processing) or on a loop line (step loop). &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;The cursor is not on one of the list or loop lines. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... OFFSET off &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Applies to list processing only. The field off contains the position of the cursor relative to the beginning of the list line (1st column = 0). With horizontally shifted lists, the offset value can thus be greater than 0, even if the cursor is positioned on the extreme left of the window. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... VALUE g &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;List processing only. The field g contains the list line where the cursor is positioned. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... LENGTH len &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;List processing only. len contains the length of the line (LINE-SIZE). &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Related &lt;/P&gt;&lt;P&gt;SET CURSOR &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Additional help &lt;/P&gt;&lt;P&gt;Setting the Cursor Position &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Reading Lists at the Cursor Position &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474915#M557018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474916#M557019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 05:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2474916#M557019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T05:06:34Z</dc:date>
    </item>
  </channel>
</rss>

