<?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: Module pool. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237389#M482000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;    Try out the fallowing code &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In PAI &lt;/P&gt;&lt;P&gt;    Declare the module in the flow logic as below &lt;/P&gt;&lt;P&gt;        Field field3 Module value_fill.&lt;/P&gt;&lt;P&gt;   Write This logic in your program &lt;/P&gt;&lt;P&gt;      data  begin of dynpfields occurs 1.&lt;/P&gt;&lt;P&gt;          include structure dynpread.&lt;/P&gt;&lt;P&gt;      data  end   of dynpfields.&lt;/P&gt;&lt;P&gt;     dynpfields-fieldname  = 'FIELD1'.&lt;/P&gt;&lt;P&gt;     append dynpfields.&lt;/P&gt;&lt;P&gt;     dynpfields-fieldname  = 'FIELD2'.&lt;/P&gt;&lt;P&gt;     append dynpfields.&lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            dyname     = repid&lt;/P&gt;&lt;P&gt;            dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            dynpfields = dynpfields&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table dynpfields index 1.&lt;/P&gt;&lt;P&gt;  field1 = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table dynpfields index 2.&lt;/P&gt;&lt;P&gt;  field2 = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   field3 = field1 - field 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kasi S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2007 06:36:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-07T06:36:23Z</dc:date>
    <item>
      <title>Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237384#M481995</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 am making an infotype where i have 3 amount fields - field1, field2 and field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is that in the infotype, field 3 should get populated itself by the value of (&amp;lt;i&amp;gt;field2 - field3&amp;lt;/i&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to code for the same in PAI...its urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Reagrds,&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 05:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237384#M481995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T05:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237385#M481996</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; In pai write below code .&lt;/P&gt;&lt;P&gt;       select single&lt;/P&gt;&lt;P&gt;          from spfli&lt;/P&gt;&lt;P&gt;          into field3&lt;/P&gt;&lt;P&gt;        where carrid eq field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use input option to be display the field for display only.Whenever user enters data field3 will be filled automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237385#M481996</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2007-05-07T06:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237386#M481997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi veereshbabu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that &lt;/P&gt;&lt;P&gt;field3 = field2 - field 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help being more specific.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237386#M481997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T06:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237387#M481998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should write it in PBO&lt;/P&gt;&lt;P&gt;example...&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;PBO...&lt;/P&gt;&lt;P&gt;Module get_field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module-pool...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module get_field3.&lt;/P&gt;&lt;P&gt;field3 = field2 - field1.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Aabhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237387#M481998</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2007-05-07T06:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237388#M481999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Preeti,&lt;/P&gt;&lt;P&gt;Can you eloberate a bit more. Or can you pose in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI do your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;*itab is ur internal table passed to table control.  module calculate.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module calculate input.&lt;/P&gt;&lt;P&gt;itab-field3 = itab-filed2 -itab-field3.&lt;/P&gt;&lt;P&gt;modify itab transporting field3.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237388#M481999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T06:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237389#M482000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;    Try out the fallowing code &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In PAI &lt;/P&gt;&lt;P&gt;    Declare the module in the flow logic as below &lt;/P&gt;&lt;P&gt;        Field field3 Module value_fill.&lt;/P&gt;&lt;P&gt;   Write This logic in your program &lt;/P&gt;&lt;P&gt;      data  begin of dynpfields occurs 1.&lt;/P&gt;&lt;P&gt;          include structure dynpread.&lt;/P&gt;&lt;P&gt;      data  end   of dynpfields.&lt;/P&gt;&lt;P&gt;     dynpfields-fieldname  = 'FIELD1'.&lt;/P&gt;&lt;P&gt;     append dynpfields.&lt;/P&gt;&lt;P&gt;     dynpfields-fieldname  = 'FIELD2'.&lt;/P&gt;&lt;P&gt;     append dynpfields.&lt;/P&gt;&lt;P&gt;  call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            dyname     = repid&lt;/P&gt;&lt;P&gt;            dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            dynpfields = dynpfields&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table dynpfields index 1.&lt;/P&gt;&lt;P&gt;  field1 = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table dynpfields index 2.&lt;/P&gt;&lt;P&gt;  field2 = dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   field3 = field1 - field 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kasi S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 06:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237389#M482000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-07T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237390#M482001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;   In PAI try this code.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Loop at itab.&lt;/P&gt;&lt;P&gt;      itab-field3  = itab-field2 - itab-field1 .&lt;/P&gt;&lt;P&gt;      modify itab from itab.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab is internal table of  your infotype  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 05:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/2237390#M482001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T05:53:59Z</dc:date>
    </item>
  </channel>
</rss>

