<?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 : Values in itab not changing even after editing fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997968#M406396</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;You have to modify the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example..&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 AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE UPDATE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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 UPDATE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING SCREEN_FIELD TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the current line..where TC will be the table control name..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY ITAB INDEX TC-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If no record found then insert the record to the internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2007 18:46:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-15T18:46:13Z</dc:date>
    <item>
      <title>TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997966#M406394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have createda table control and i have the fields in it associated with &lt;/P&gt;&lt;P&gt;the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the fields of table control looks some thing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-name&lt;/P&gt;&lt;P&gt;itab-age&lt;/P&gt;&lt;P&gt;itab-salary  etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making some changes to these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI, i am trying to loop on the internal table to see if &lt;/P&gt;&lt;P&gt;i can see the changes to these records in the internal table&lt;/P&gt;&lt;P&gt;but it is not seeing the changes at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever data was there in the internal table before putting it&lt;/P&gt;&lt;P&gt;into table control still shows the same values, even though I have&lt;/P&gt;&lt;P&gt;entered new values in the internal table's fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody seen this kind of a problem before? Any feed back will&lt;/P&gt;&lt;P&gt;be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997966#M406394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997967#M406395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In other words&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on update it is not updating the fields. So i went to debug mode in PAI and saw that none of the changes were seen. Still the same old values are there. So when I update, it is updating with the same values but not the ones that I had entered in the table control before clicking on UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997967#M406395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997968#M406396</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;You have to modify the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example..&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 AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE UPDATE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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 UPDATE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING SCREEN_FIELD TO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Modify the current line..where TC will be the table control name..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MODIFY ITAB INDEX TC-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If no record found then insert the record to the internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 18:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997968#M406396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T18:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997969#M406397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;this is sample code .we must modify internal table from workarea.&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;****************************&lt;/P&gt;&lt;P&gt;LOOP AT it_distpdts.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;      MODULE update_ordertable.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE update_ordertable INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  is_distpdts-quantity = tx_quantity."this is field in screen which is passed to work area&lt;/P&gt;&lt;P&gt;  MODIFY it_distpdts&lt;/P&gt;&lt;P&gt;        FROM is_distpdts&lt;/P&gt;&lt;P&gt;        INDEX c_tc2-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;**************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;shinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 09:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997969#M406397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997970#M406398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You must pass data from internal table to the table control in pbo and back in pai.&lt;/P&gt;&lt;P&gt;check this program :&lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_GRID_EDIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;reward all heplful replies&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 09:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997970#M406398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T09:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997971#M406399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following ex:&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;*BREAK POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT G_TC1_ITAB.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD ZFG_SRNO-ZSRNO.&lt;/P&gt;&lt;P&gt;      MODULE TC1_MODIFY ON CHAIN-REQUEST.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MODULE TC1_MODIFY.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;      MODULE MESSAGE .&lt;/P&gt;&lt;P&gt;    MODULE DELETE_RECORD.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE TC1_MODIFY INPUT.&lt;/P&gt;&lt;P&gt;  MOVE-CORRESPONDING ZFG_SRNO TO G_TC1_WA.&lt;/P&gt;&lt;P&gt;  MODIFY G_TC1_ITAB&lt;/P&gt;&lt;P&gt;    FROM G_TC1_WA&lt;/P&gt;&lt;P&gt;    INDEX TC1-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 09:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997971#M406399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: TABLE CONTROL : Values in itab not changing even after editing fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997972#M406400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to every one for the responses. I appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 13:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-values-in-itab-not-changing-even-after-editing-fields/m-p/1997972#M406400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T13:09:56Z</dc:date>
    </item>
  </channel>
</rss>

