<?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 Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066837#M427716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post code for table control PBO area.  I will be able to pointout mistake if u any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;This is my maiden answer so co-operate in giving Rewards atleast 2 points.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2007 07:29:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T07:29:42Z</dc:date>
    <item>
      <title>Table control Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066836#M427715</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 created a table control using wizard. The table control displays entries from z table.&lt;/P&gt;&lt;P&gt;But the problem is that the table control is scrollable so when the user selects row from first page and than scroll down to next page the rows selected before are wiped off from the itab. How can i retrieve those rows which are selected on previous page as i have to save the details to another z table. Please guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Points to satisfactory answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat Mistry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 06:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066836#M427715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T06:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066837#M427716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post code for table control PBO area.  I will be able to pointout mistake if u any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;This is my maiden answer so co-operate in giving Rewards atleast 2 points.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 07:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066837#M427716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T07:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066838#M427717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the problem myself, still you can suggest any easy way out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the flow logic for PBO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: pbo flow logic for tablecontrol 'TC1'&lt;/P&gt;&lt;P&gt;  module TC1_change_tc_attr.&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: module TC1_change_col_attr.&lt;/P&gt;&lt;P&gt;  loop at   IT_ZDMAS&lt;/P&gt;&lt;P&gt;       with control TC1&lt;/P&gt;&lt;P&gt;       cursor TC1-current_line.&lt;/P&gt;&lt;P&gt;    module TC1_get_lines.&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard:   module TC1_change_field_attr&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module TC1_change_tc_attr output.&lt;/P&gt;&lt;P&gt;  if IT_ZDMAS-ZDPID EQ ' '.&lt;/P&gt;&lt;P&gt;    select * into corresponding fields of table it_zdmas&lt;/P&gt;&lt;P&gt;    from zdmas order by zdpid.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  describe table IT_ZDMAS lines TC1-lines.&lt;/P&gt;&lt;P&gt;endmodule.                    "TC1_change_tc_attr OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: output module for tc 'TC1'. do not change this line!&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: get lines of tablecontrol&lt;/P&gt;&lt;P&gt;module TC1_get_lines output.&lt;/P&gt;&lt;P&gt;  g_TC1_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;endmodule.                    "TC1_get_lines OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: pai flow logic for tablecontrol 'TC1'&lt;/P&gt;&lt;P&gt;  loop at IT_ZDMAS.&lt;/P&gt;&lt;P&gt;    chain.&lt;/P&gt;&lt;P&gt;      field IT_ZDMAS-ZDPNM.&lt;/P&gt;&lt;P&gt;      field IT_ZDMAS-ZDHOD.&lt;/P&gt;&lt;P&gt;    endchain.&lt;/P&gt;&lt;P&gt;    field IT_ZDMAS-ZDSEL&lt;/P&gt;&lt;P&gt;      module TC1_mark on request.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  module TC1_user_command.&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: module TC1_change_tc_attr.&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: module TC1_change_col_attr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module TC1_mark input.&lt;/P&gt;&lt;P&gt;  data: g_TC1_wa2 like line of IT_ZDMAS.&lt;/P&gt;&lt;P&gt;  if TC1-line_sel_mode = 1.&lt;/P&gt;&lt;P&gt;    loop at IT_ZDMAS into g_TC1_wa2&lt;/P&gt;&lt;P&gt;      where ZDSEL = 'X'.&lt;/P&gt;&lt;P&gt;      g_TC1_wa2-ZDSEL = ''.&lt;/P&gt;&lt;P&gt;      modify IT_ZDMAS&lt;/P&gt;&lt;P&gt;        from g_TC1_wa2&lt;/P&gt;&lt;P&gt;        transporting ZDSEL.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  modify IT_ZDMAS&lt;/P&gt;&lt;P&gt;    index TC1-current_line&lt;/P&gt;&lt;P&gt;    transporting ZDSEL.&lt;/P&gt;&lt;P&gt;endmodule.                    "TC1_mark INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: input module for tc 'TC1'. do not change this line!&lt;/P&gt;&lt;P&gt;*&amp;amp;spwizard: process user command&lt;/P&gt;&lt;P&gt;module TC1_user_command input.&lt;/P&gt;&lt;P&gt;  OK_CODE = sy-ucomm.&lt;/P&gt;&lt;P&gt;  if OK_CODE eq 'SAVE'.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_ZDMAS INTO WA_ZDMAS WHERE ZDSEL eq 'X'.&lt;/P&gt;&lt;P&gt;      ZPOMAS-ZDPID = WA_ZDMAS-ZDPID.&lt;/P&gt;&lt;P&gt;      ZPOMAS-ZPONO = '121225'.&lt;/P&gt;&lt;P&gt;      ZPOMAS-ZPODT = '20070319'.&lt;/P&gt;&lt;P&gt;      INSERT ZPOMAS.&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;      WA_ZDMAS-ZDSEL = ' '.&lt;/P&gt;&lt;P&gt;      MODIFY IT_ZDMAS&lt;/P&gt;&lt;P&gt;        FROM WA_ZDMAS&lt;/P&gt;&lt;P&gt;        TRANSPORTING ZDSEL.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  perform user_ok_tc using    'TC1'&lt;/P&gt;&lt;P&gt;                              'IT_ZDMAS'&lt;/P&gt;&lt;P&gt;                              'ZDSEL'&lt;/P&gt;&lt;P&gt;                     changing OK_CODE.&lt;/P&gt;&lt;P&gt;  sy-ucomm = OK_CODE.&lt;/P&gt;&lt;P&gt;endmodule.                    "TC1_user_command INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI code is also pasted for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat Mistry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Bharat Mistry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 08:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066838#M427717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T08:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066839#M427718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is perfact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can also be written in following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_0100.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL flights.&lt;/P&gt;&lt;P&gt;    MODULE fill_table_control.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL flights.&lt;/P&gt;&lt;P&gt;    MODULE read_table_control.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE fill_table_control OUTPUT.&lt;/P&gt;&lt;P&gt;  READ TABLE itab INTO demo_conn INDEX flights-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE read_table_control INPUT.&lt;/P&gt;&lt;P&gt;  lines = sy-loopc.&lt;/P&gt;&lt;P&gt;  MODIFY itab FROM demo_conn INDEX flights-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope we both have learned some thing new in area of TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DARSHAN PATEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Reward points if u are HAPPY &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; with the answer.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 08:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-problem/m-p/2066839#M427718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T08:46:57Z</dc:date>
    </item>
  </channel>
</rss>

