<?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 Related Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968166#M1157963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. So you want to select multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this, add one single char field say &lt;STRONG&gt;SEL&lt;/STRONG&gt; in your internal table for table control i.e &lt;STRONG&gt;it_vnd&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Then on your screen layout, table control properties add the field into w/SelName field (&lt;STRONG&gt;IT_VND-SEL&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you select records in the table control, the field SEL will have value X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the above solution works.&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;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2009 12:39:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-14T12:39:02Z</dc:date>
    <item>
      <title>Table Control Related Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968163#M1157960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created table control displaying fields from ztable and now i have created user defined structure containing the same table as structure and one more field is added as MARK for capturing row. Now the problem is when i select one row on table control and scroll down to select another row and again if i scroll up to select another row , its not showing the previous row selected Please provide me solution &lt;/P&gt;&lt;P&gt;Please follow the code for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On screen 0600.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.

  MODULE status_0600.
  MODULE fetch_data.
  MODULE vertical_scroll2.

  LOOP AT it_vnd INTO fl_vnd WITH CONTROL tbl_2.
    MODULE display_fetched_data.
  ENDLOOP.



PROCESS AFTER INPUT.

 MODULE USER_COMMAND_0600.
  LOOP AT it_vnd.

    FIELD fl_vnd-mark
    MODULE move_records ON INPUT.

  ENDLOOP.

  MODULE create_records.
  MODULE change_delete.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In TOP INCLUDE&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:   BEGIN OF zthird.
        INCLUDE STRUCTURE zfmmvndrcert.
TYPES:    mark TYPE c LENGTH 1.
TYPES:   END OF zthird.

CONTROLS :  tbl_2 TYPE TABLEVIEW USING SCREEN 0600.

DATA :         it_vnd TYPE  TABLE OF zthird,
                   it_evnd TYPE TABLE OF zthird,
                   it_strd TYPE TABLE OF zthird,
                   fl_vnd  TYPE zthird.



PROCESS BEFORE OUT.

MODULE status_0600 OUTPUT.

  DATA l_code TYPE TABLE OF sy-ucomm.
  APPEND 'SAVE' TO l_code.
  SET PF-STATUS 'ZVNDR' EXCLUDING l_code.
  SET TITLEBAR 'ZVND'.

ENDMODULE.                 " STATUS_0600  OUTPUT

MODULE fetch_data OUTPUT.
SOME  DATA FETCHING LOGIC IS THERE BUT NOT INCLUDED
  SORT it_vnd BY lifnr cert_number cert_type DESCENDING.

  LOOP AT it_strd INTO fl_vnd.
    fl_vnd-mark = c_x.
    MODIFY it_vnd FROM fl_vnd TRANSPORTING mark WHERE lifnr       = fl_vnd-lifnr
                                                AND   cert_number = fl_vnd-cert_number
                                                AND   cert_type   = fl_vnd-cert_type.
    CLEAR fl_vnd.
  ENDLOOP.

  DESCRIBE TABLE it_vnd LINES v_ln.

ENDMODULE.                 " fetch_data  OUTPUT

module vertical_scroll2 output.

describe table it_vnd
lines v_lines.
tbl_2-lines = v_lines + 2.

endmodule.                 " vertical_scroll2  OUTPUT

MODULE display_fetched_data OUTPUT.
    MOVE-CORRESPONDING fl_vnd TO zfmmvndrcert.
    CLEAR fl_vnd.
ENDMODULE.                 " display_fetched_data  OUTPUT


PROCESS AFTER INPUT.

MODULE move_records INPUT.

  IF v_fl EQ space.
    REFRESH : it_evnd,it_strd.
    v_fl = c_x.
  ENDIF.

  MOVE-CORRESPONDING zfmmvndrcert TO fl_vnd.
  fl_vnd-mark = c_x.
  MODIFY it_vnd FROM fl_vnd TRANSPORTING mark WHERE lifnr = fl_vnd-lifnr.
  APPEND fl_vnd to it_strd.
  APPEND fl_vnd TO it_evnd.
  CLEAR fl_vnd.

 DESCRIBE TABLE it_evnd
 lines v_ln.

ENDMODULE.                 " move_records  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ...&lt;/P&gt;&lt;P&gt;PARAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jan 14, 2009 2:02 PM added  tag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 10:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968163#M1157960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T10:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Related Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968164#M1157961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open the Layout screen, Double click on Table control( Open the Table Control Properties) and choose &lt;STRONG&gt;Line Sel = Single&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 11:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968164#M1157961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T11:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Related Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968165#M1157962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;But i want to select multiple lines for further processing.&lt;/P&gt;&lt;P&gt;Please help me in this issue.&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Parag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 11:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968165#M1157962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T11:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Related Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968166#M1157963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. So you want to select multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this, add one single char field say &lt;STRONG&gt;SEL&lt;/STRONG&gt; in your internal table for table control i.e &lt;STRONG&gt;it_vnd&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Then on your screen layout, table control properties add the field into w/SelName field (&lt;STRONG&gt;IT_VND-SEL&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you select records in the table control, the field SEL will have value X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the above solution works.&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;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 12:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968166#M1157963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control Related Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968167#M1157964</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;While creating the table control with wizard it is in the fifth step&lt;/P&gt;&lt;P&gt;in the Line selectabiliy  check the check box Line selection col.&lt;/P&gt;&lt;P&gt;and give the char field in the input field which hold the value of the selected row in the table control.&lt;/P&gt;&lt;P&gt;Also go with the radio button multiple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is of great help I believe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Bhuvana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 10:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-related-problem/m-p/4968167#M1157964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T10:41:47Z</dc:date>
    </item>
  </channel>
</rss>

