<?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's current_row in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363720#M807133</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;u can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;GET CURSOR LINE lin_no.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but where u will write this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible make one button on screen.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write like this in module user_command of PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_9000 INPUT.&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR 'UP' OR 'CANCEL'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    WHEN 'DIS'.&lt;/P&gt;&lt;P&gt;      WRITE 'DEV'.&lt;/P&gt;&lt;P&gt;      CALL SCREEN 9001 STARTING AT 10 10 ENDING AT 20 20.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;WHEN 'DEL'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;GET CURSOR LINE lin_no.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;f1 = 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    WHEN ''.&lt;/P&gt;&lt;P&gt;      f = 1.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write this in the module in which u fetching data from database table into internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE get_data OUTPUT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF f1 &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;    SELECT kunnr name1&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE mytab&lt;/P&gt;&lt;P&gt;    FROM kna1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF f1 = 1.&lt;/P&gt;&lt;P&gt;    IF lin_no IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      DELETE mytab INDEX lin_no.&lt;/P&gt;&lt;P&gt;      FREE lin_no.&lt;/P&gt;&lt;P&gt;      FREE f1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDMODULE.                 " get_data  OUTPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 12:19:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T12:19:19Z</dc:date>
    <item>
      <title>Table control's current_row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363715#M807128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used an itab at table control and not specified that I want add row/delete row buttons. That is, there are no buttons to delete a row or to add a row.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;However I need to delete a row at which the cursor is on.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;How can I understand the cursor is on a row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 07:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363715#M807128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T07:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table control's current_row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363716#M807129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your table control structure there is a field called &lt;STRONG&gt;currentline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;that indicates line on which u've got ur cursor.&lt;/P&gt;&lt;P&gt;u can add a row by incrementing this field ans viz in deletion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if helpful&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 07:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363716#M807129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T07:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table control's current_row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363717#M807130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using the keyword GET CURSOR FIELD. It will get the current field where the cursor is placed and its content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363717#M807130</guid>
      <dc:creator>former_member283648</dc:creator>
      <dc:date>2008-02-06T08:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table control's current_row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363718#M807131</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;See the below syntaxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;syntax:----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method seem to work even when we scroll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here " test " is the tableview control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;CODE&lt;/STRONG&gt;*****************&lt;/P&gt;&lt;P&gt;&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: . &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;************&lt;STRONG&gt;END&lt;/STRONG&gt;********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will give u an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363718#M807131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table control's current_row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363719#M807132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can access the current line of table control with current_line.&lt;/P&gt;&lt;P&gt;if the name of ur table control is tabcon then do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab index tabcon-current_line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363719#M807132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table control's current_row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363720#M807133</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;u can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;GET CURSOR LINE lin_no.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but where u will write this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible make one button on screen.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write like this in module user_command of PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_9000 INPUT.&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR 'UP' OR 'CANCEL'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;    WHEN 'DIS'.&lt;/P&gt;&lt;P&gt;      WRITE 'DEV'.&lt;/P&gt;&lt;P&gt;      CALL SCREEN 9001 STARTING AT 10 10 ENDING AT 20 20.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;WHEN 'DEL'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;GET CURSOR LINE lin_no.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;f1 = 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    WHEN ''.&lt;/P&gt;&lt;P&gt;      f = 1.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write this in the module in which u fetching data from database table into internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE get_data OUTPUT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF f1 &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt;    SELECT kunnr name1&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE mytab&lt;/P&gt;&lt;P&gt;    FROM kna1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF f1 = 1.&lt;/P&gt;&lt;P&gt;    IF lin_no IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      DELETE mytab INDEX lin_no.&lt;/P&gt;&lt;P&gt;      FREE lin_no.&lt;/P&gt;&lt;P&gt;      FREE f1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDMODULE.                 " get_data  OUTPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 12:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-s-current-row/m-p/3363720#M807133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T12:19:19Z</dc:date>
    </item>
  </channel>
</rss>

