<?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: problems to update internal table in module pool . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656698#M1573661</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;Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In PAI

loop at itab.
" Place all your FIELD and CHAIN statements before you call the below module
   module modify_tab. " This should not be linked up with any field statements and be an independent module
" The above should execute irrespective of any changes to the screen fields
endloop.

in Program

module modify_tab.
   describe table itab lines tc-lines.
      if tc-current_line &amp;gt; tc-lines.
          append itab.
      else.
          modify itab index tc-current_line.
     endif.
endmodule&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz.&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 08:54:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-17T08:54:33Z</dc:date>
    <item>
      <title>problems to update internal table in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656693#M1573656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys , I m trying to update the internal table that I use to drive the fields of a table control , but it doesnt modify the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some code is easier i guess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the include to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types : begin of ty_zrc006,
         zrc_cond type  zrc_c006_c-zrc_cond,
         zrc_period_i type  zrc_c006_c-zrc_period_i,
         zrc_period_f type  zrc_c006_c-zrc_period_f,
         knumh type zrc_c006_c-knumh,
         aedat type zrc_c006_c-aedat,
         aezet type zrc_c006_c-aezet,
         aenam type zrc_c006_c-aenam,
         kostl type zrc_c006_i-kostl,
         zrc_perc type zrc_c006_i-zrc_perc,
         MARK TYPE C.
types : end of  ty_zrc006.
data: ti_zrc006 type standard table of ty_zrc006 initial size 0." with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in other include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module MODIFY_LIN input.
read table ti_zrc006 into wa_zrc006 index tabc_ctocusto-CURRENT_LINE.

move:   zrc_c006_i-kostl  to  wa_zrc006-kostl,
        zrc_c006_i-zrc_perc to wa_zrc006-zrc_perc,
        'X'            to wa_zrc006-mark.
modify  ti_zrc006  INDEX  tabc_ctocusto-CURRENT_LINE  from  wa_zrc006 ."  transporting   . "


endmodule.                 " MODIFY_ITAB_REG  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I execute after PAI  it never update  ti_zrc006  even when wa_zrc006  is filled.  any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 17:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656693#M1573656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T17:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: problems to update internal table in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656694#M1573657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just remove following line.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table ti_zrc006 into wa_zrc006 index tabc_ctocusto-CURRENT_LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that the module MODIFY_LIN is called between Loop. Endloop. of PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 18:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656694#M1573657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T18:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: problems to update internal table in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656695#M1573658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Aditya , I ve already try that, but it doesnt work   : my  PBO PAI are this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;process before output.
  module fill_list_condic.
  module status_0100.
  loop at ti_zrc006 into wa_zrc006 with control tabc_ctocusto.
    module modify_lin .
  endloop.

process after input.

  loop at ti_zrc006 .
    chain.
      field:  ZRC_C006_I-kostl,
              ZRC_C006_I-zrc_perc.
      module update_line  on chain-request.
    endchain.
  endloop.
  chain.
    field :     ti_zrc006-bukrs,
                ti_zrc006-desc_cond,
                ti_zrc006-zrc_period_i,
                ti_zrc006-zrc_period_f.
    module modify_cab on chain-request.
  endchain.

  module user_command_0100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 18:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656695#M1573658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T18:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: problems to update internal table in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656696#M1573659</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;as you are getting the values ZRC_C006_I-kostl and  ZRC_C006_I-zrc_perc from input, modify your internal table in your PAI. because PBO only displays the data in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO write the code as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at ti_zrc006 with control tabc_ctocusto cursor tabc_ctocusto-current_line.

module display_int_table.

endloop.


Module display_int_table.

tabc_ctocusto-kostl = ti_zrc006-kostl.
..
..
..n whatever the other fields are.

endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more thing, when you are modifying an internal table inside the loop , INDEX is not needed, it automatically updates the current line in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mbd2186 on Feb 17, 2011 4:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 02:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656696#M1573659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T02:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: problems to update internal table in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656697#M1573660</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;I guess the Internal table might have updated with the new values but the table control in the screen would have not refreshed in the PAI. So I suggest you to see in the debug mode whether the Internal table which you are modifying is updated with the new values or not. I guess it might have updated but you also need to REFRESH the table control used for displaying the data in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please implement this and let me know in case of any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SRinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 07:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656697#M1573660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T07:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: problems to update internal table in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656698#M1573661</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;Try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In PAI

loop at itab.
" Place all your FIELD and CHAIN statements before you call the below module
   module modify_tab. " This should not be linked up with any field statements and be an independent module
" The above should execute irrespective of any changes to the screen fields
endloop.

in Program

module modify_tab.
   describe table itab lines tc-lines.
      if tc-current_line &amp;gt; tc-lines.
          append itab.
      else.
          modify itab index tc-current_line.
     endif.
endmodule&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz.&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 08:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-to-update-internal-table-in-module-pool/m-p/7656698#M1573661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T08:54:33Z</dc:date>
    </item>
  </channel>
</rss>

