<?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 Module pool table control problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175180#M461854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI friends &lt;/P&gt;&lt;P&gt;I have to clear the table control concept with one object.&lt;/P&gt;&lt;P&gt;I will explain you all the object and the coding what i m using .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one ztable zdummydelivery and had made fields inside it and out of them i m using four fields ie ebelp,txz01,menge and meins in my table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my layout editor i have created one tablecontrol through tablecontrol wizard and in that i have used this ztable for input with the above fields and table control is created and automatically coding  has come in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is a listbox field on the screen that is purchase order no.&lt;/P&gt;&lt;P&gt;So the task is that when i select any purchase order no from the listbox then corressponding to that no it shows item details in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for this i have given one function code to field purchase order no and in pai module i put the following code to reterive the data for the following po number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'PO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF NOT it_EKPO-EBELN IS INITIAL .&lt;/P&gt;&lt;P&gt;        SELECT ebelp&lt;/P&gt;&lt;P&gt;               txz01&lt;/P&gt;&lt;P&gt;               menge&lt;/P&gt;&lt;P&gt;               meins&lt;/P&gt;&lt;P&gt;               FROM ekpo INTO (IT_MATR-EBELP,IT_MATR-TXZ01,IT_MATR-menge,IT_MATR-meins) WHERE ebeln = it_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;        append it_matr.&lt;/P&gt;&lt;P&gt;        ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this it_matr is my internal table to store the data and data is coming properly in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem comes now that its not displaying the cotents properly in the table control .&lt;/P&gt;&lt;P&gt;I m not getting the logic where to write the code in the standard coding of table wizard to display the contents properly.&lt;/P&gt;&lt;P&gt;Its only displaying the last record if i put the following code in the module that is present in the PBO event ie MODULE TC_DUMMY1_MOVE.&lt;/P&gt;&lt;P&gt;Code is&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-EBELP TO  G_TC_DUMMY1_WA-EBELP.&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-TXZ01 TO  G_TC_DUMMY1_WA-TXZ01.&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-MENGE TO  G_TC_DUMMY1_WA-MENGE.&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-MEINS TO  G_TC_DUMMY1_WA-MEINS.&lt;/P&gt;&lt;P&gt;and the &lt;/P&gt;&lt;P&gt;default code that is given in this module is &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING G_TC_DUMMY1_WA TO ZDUMMYDELIVERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please help me to clear the concept of the table control according to my object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that my data that is moving to zdummydelivery is not getting appending that is it is overwriting ,so at the last ,last record is repeatedly displayed in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explain me the flow how it will goes after selecting the PO number.&lt;/P&gt;&lt;P&gt;It will first move to PAI and then to PBO to display the tablecontrol or tablecontrol loop in pbo will be executed first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please answer as soon as possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2007 05:38:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-04T05:38:13Z</dc:date>
    <item>
      <title>Module pool table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175180#M461854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI friends &lt;/P&gt;&lt;P&gt;I have to clear the table control concept with one object.&lt;/P&gt;&lt;P&gt;I will explain you all the object and the coding what i m using .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one ztable zdummydelivery and had made fields inside it and out of them i m using four fields ie ebelp,txz01,menge and meins in my table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my layout editor i have created one tablecontrol through tablecontrol wizard and in that i have used this ztable for input with the above fields and table control is created and automatically coding  has come in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is a listbox field on the screen that is purchase order no.&lt;/P&gt;&lt;P&gt;So the task is that when i select any purchase order no from the listbox then corressponding to that no it shows item details in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for this i have given one function code to field purchase order no and in pai module i put the following code to reterive the data for the following po number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'PO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF NOT it_EKPO-EBELN IS INITIAL .&lt;/P&gt;&lt;P&gt;        SELECT ebelp&lt;/P&gt;&lt;P&gt;               txz01&lt;/P&gt;&lt;P&gt;               menge&lt;/P&gt;&lt;P&gt;               meins&lt;/P&gt;&lt;P&gt;               FROM ekpo INTO (IT_MATR-EBELP,IT_MATR-TXZ01,IT_MATR-menge,IT_MATR-meins) WHERE ebeln = it_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;        append it_matr.&lt;/P&gt;&lt;P&gt;        ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this it_matr is my internal table to store the data and data is coming properly in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem comes now that its not displaying the cotents properly in the table control .&lt;/P&gt;&lt;P&gt;I m not getting the logic where to write the code in the standard coding of table wizard to display the contents properly.&lt;/P&gt;&lt;P&gt;Its only displaying the last record if i put the following code in the module that is present in the PBO event ie MODULE TC_DUMMY1_MOVE.&lt;/P&gt;&lt;P&gt;Code is&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-EBELP TO  G_TC_DUMMY1_WA-EBELP.&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-TXZ01 TO  G_TC_DUMMY1_WA-TXZ01.&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-MENGE TO  G_TC_DUMMY1_WA-MENGE.&lt;/P&gt;&lt;P&gt;MOVE IT_MATR-MEINS TO  G_TC_DUMMY1_WA-MEINS.&lt;/P&gt;&lt;P&gt;and the &lt;/P&gt;&lt;P&gt;default code that is given in this module is &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING G_TC_DUMMY1_WA TO ZDUMMYDELIVERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please help me to clear the concept of the table control according to my object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that my data that is moving to zdummydelivery is not getting appending that is it is overwriting ,so at the last ,last record is repeatedly displayed in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explain me the flow how it will goes after selecting the PO number.&lt;/P&gt;&lt;P&gt;It will first move to PAI and then to PBO to display the tablecontrol or tablecontrol loop in pbo will be executed first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please answer as soon as possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 05:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175180#M461854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T05:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175181#M461855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use this after move-corresponding use append also.&lt;/P&gt;&lt;P&gt;append G_TC_DUMMY1_WA to ZDUMMYDELIVERY .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 05:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175181#M461855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T05:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175182#M461856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i BELIEVE this is happening because you are not reading the appropraite table entry in your module. The 'MOVE IT_MATR-EBELP ' etc statements operate on the current contents of the table header which is the last record read in. Your code is in a loop but you need to read table it_MATR each time to position on the correwct entry in it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try 'read table it_matr index sy-loopc.' before you do your moves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 06:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175182#M461856</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2007-05-04T06:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool table control problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175183#M461857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ONE STRANGE DOUBT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE TELL ME THE SOLUTION.&lt;/P&gt;&lt;P&gt;I HAVE CREATED LIFNR ONE FIELD AS A LIST BOX IN MODULE POOL AND UNDER FLOW LOGIC I HAVE CALL &lt;/P&gt;&lt;P&gt;THE POV EVENT AND UNDER THAT FIELD STATEMENT WITH ONE MODULE AND IN THIS MODULE &lt;/P&gt;&lt;P&gt;CALL THE FUNCTION F4IF_INT_TAB_VALUE_REQUEST.&lt;/P&gt;&lt;P&gt;AND PASS THE RESPECTIVE ATTRIBUTES OF THE FUNCTION MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT AFTER THIS I MADE ANOTHER FIELD EBELN IN THE MODULE POOL AND LAYOUT EDITOR JUST DONE THE FIELD PARAMETER AS LISTBOX.&lt;/P&gt;&lt;P&gt;AND NO CODING HAS DONE FOR IT ,THEN ALSO ITS GETTING RIGHT VALUES DURING OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why is it so,please tell me the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 11:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-problem/m-p/2175183#M461857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T11:48:53Z</dc:date>
    </item>
  </channel>
</rss>

