<?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 Table Control in Modulepool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571703#M1078708</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 want to get the field value of table control in modulepool. I have used get cursor field field value val, but it didn't give the correct fieldname and no value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use get cursor line line statement it gives the line no of displayed rows only, after scrolling the value will not give correct. How to resolve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkateswararao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Oct 2008 06:18:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-05T06:18:07Z</dc:date>
    <item>
      <title>Table Control in Modulepool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571703#M1078708</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 want to get the field value of table control in modulepool. I have used get cursor field field value val, but it didn't give the correct fieldname and no value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use get cursor line line statement it gives the line no of displayed rows only, after scrolling the value will not give correct. How to resolve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkateswararao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2008 06:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571703#M1078708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-05T06:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control in Modulepool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571704#M1078709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkateswara Rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a column selected in a table control, then we can find it out using its properties. For this, &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
     ZTC-COLS[n]-SELECTED
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this field is set, then that column is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, just place the cursor in any column, check out this property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding LINE value, always it will return the position in VISIBLE ORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just add ZTC-TOP_LINE with that LINE value and reduce one. Now you can get the absolute INDEX of the record in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;The 'GET CURSOR' statement does not give absolute COLUMN NAME. Instead it will give the SCREEN FIELD NAME. i.e. workarea hyphen field name. Then we have to extract column name alone with the specification of OFFSET because the workarea and hyphen will have a constant length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    DATA : W_FNAM         TYPE CHAR61,      " Screen Field Name
           W_CNAM         TYPE CHAR30,      " Column name
           W_LINE         TYPE I.           " Visible Record Number
    GET CURSOR FIELD W_FNAM LINE W_LINE.
    W_LINE = W_LINE + ZTC-TOP_LINE - 1.     " Actual Record Number
    W_CNAM = W_FNAM+12.                     " Column Name&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, W_FNAM conatains the value as 'WA_TC_TSTCT-SNO'. W_CNAM will have the column name as 'SNO'. The offset is 12, because the workarea 'WA_TC_TSTCT' and Hyphen has a length of 12.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.Nagarajan.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; We can -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nagarajan Ramamoorthy on Oct 6, 2008 9:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2008 07:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571704#M1078709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-05T07:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control in Modulepool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571705#M1078710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the LINE lin addition incase of table control&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET CURSOR ... LINE lin&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details read the F1 help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2008 08:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571705#M1078710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-05T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control in Modulepool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571706#M1078711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get cursor line line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF  TC-TOP_LINE &amp;gt; 1.&lt;/P&gt;&lt;P&gt;    LINE = LINE + ( TC-TOP_LINE - 1 ).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give you correct Line no after Scroll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use it It will definitely Work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-in-modulepool/m-p/4571706#M1078711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:54:18Z</dc:date>
    </item>
  </channel>
</rss>

