<?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: how to modify data in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611399#M1569384</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 the user command of the screen you can put the logic for modifying your internal table from the fields in the table control.&lt;/P&gt;&lt;P&gt;and from that modify the databse table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Feb 2011 05:17:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-02T05:17:42Z</dc:date>
    <item>
      <title>how to modify data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611398#M1569383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i have created table control where i have displayed  data into table control&lt;/P&gt;&lt;P&gt;logic used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen 200 &lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE SELECT_RECORD.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TBC_200'&lt;/P&gt;&lt;P&gt;  MODULE TBC_200_CHANGE_TC_ATTR.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.&lt;/P&gt;&lt;P&gt;  LOOP AT   IT_MARA&lt;/P&gt;&lt;P&gt;       INTO WA_MARA&lt;/P&gt;&lt;P&gt;       WITH CONTROL TBC_200&lt;/P&gt;&lt;P&gt;       CURSOR TBC_200-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;    MODULE TBC_200_GET_LINES.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD:   MODULE TBC_200_CHANGE_FIELD_ATTR&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE STATUS_0200.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 'TBC_200'&lt;/P&gt;&lt;P&gt;  LOOP AT IT_MARA.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD WA_MARA-MATNR.&lt;/P&gt;&lt;P&gt;      FIELD WA_MARA-ERSDA.&lt;/P&gt;&lt;P&gt;      FIELD WA_MARA-ERNAM.&lt;/P&gt;&lt;P&gt;      MODULE TBC_200_MODIFY ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;    FIELD WA_MARA-MARK&lt;/P&gt;&lt;P&gt;      MODULE TBC_200_MARK ON REQUEST.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  MODULE TBC_200_USER_COMMAND.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: MODULE TBC_200_CHANGE_TC_ATTR.&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: MODULE TBC_200_CHANGE_COL_ATTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;module -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;MODULE SELECT_RECORD.&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SELECT_RECORD OUTPUT.&lt;/P&gt;&lt;P&gt;SELECT MATNR ERSDA ERNAM&lt;/P&gt;&lt;P&gt;        FROM MARA&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE it_mara.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " SELECT_RECORD  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;another thing &lt;/P&gt;&lt;P&gt;i have made  field  MARA-ERSDA. and  FIELD WA_MARA-ERNAM editable by &lt;/P&gt;&lt;P&gt;input possible using layout&lt;/P&gt;&lt;P&gt;so &lt;/P&gt;&lt;P&gt;now those 2 fields contents  are editable&lt;/P&gt;&lt;P&gt;i want to know how to edit and save the data&lt;/P&gt;&lt;P&gt;some body guide.&lt;/P&gt;&lt;P&gt;and i want to put the lock so that i can update&lt;/P&gt;&lt;P&gt;can tell how to implement lock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: viju bangalore on Jan 27, 2011 10:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 09:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611398#M1569383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-27T09:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611399#M1569384</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 the user command of the screen you can put the logic for modifying your internal table from the fields in the table control.&lt;/P&gt;&lt;P&gt;and from that modify the databse table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 05:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611399#M1569384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-02T05:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify data in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611400#M1569385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT itab.
    MODULE mod_table_control.
ENDLOOP.
MODULE user_command_0100.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at module mod_table_control put this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE mod_table_control INPUT.
  MODIFY itab FROM demo_conn INDEX flights-current_line.
  if sy-subrc ne 0.
       insert itab.
  endif.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for saving you can create at custom gui status with a save button, and at MODULE user_command_0100 save the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 19:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modify-data-in-table-control/m-p/7611400#M1569385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-05T19:04:55Z</dc:date>
    </item>
  </channel>
</rss>

