<?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 save in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873348#M674221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In the loop..endloop  of the table control table&lt;/P&gt;&lt;P&gt;read the database table with the key fields of the table control and compare the records that are there in Table or not,&lt;/P&gt;&lt;P&gt;if there no update or if not there Update the record into the database table with that record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2007 07:16:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-02T07:16:13Z</dc:date>
    <item>
      <title>table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873347#M674220</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 enter some records in the table control. i want to save the records to my database. How can i write it to my database as i'm using table control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any code to reference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873347#M674220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T07:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873348#M674221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In the loop..endloop  of the table control table&lt;/P&gt;&lt;P&gt;read the database table with the key fields of the table control and compare the records that are there in Table or not,&lt;/P&gt;&lt;P&gt;if there no update or if not there Update the record into the database table with that record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873348#M674221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873349#M674222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some code samples on table control,&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1499ec90-0201-0010-769f-860989655f7e" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1499ec90-0201-0010-769f-860989655f7e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2165e990-0201-0010-5cbb-b5c2ad436140" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2165e990-0201-0010-5cbb-b5c2ad436140&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be useful&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/Tips_and_Tricks.htm#setattr" target="test_blank"&gt;http://www.planetsap.com/Tips_and_Tricks.htm#setattr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873349#M674222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873350#M674223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table control once we entered the records in PAI we can transfer the records to the database on clicking the custom 'SAVE'(PF status) or other buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance consider the foillowing code ::::::::&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL FLIGHTS.&lt;/P&gt;&lt;P&gt;    module read_table_control.&lt;/P&gt;&lt;P&gt;"updating internal table from the tablecontrol&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;*at this point we have the updated table control records&lt;/P&gt;&lt;P&gt;  module user_command_0100.&lt;/P&gt;&lt;P&gt;in this PAI after the loop...endloop of table control &lt;/P&gt;&lt;P&gt;write code to capture the sy-ucomm(user action) and update the table&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;Case Sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt;read the data stored from the table control in the internal table&lt;/P&gt;&lt;P&gt;and update the required table or loop at the internal table and save&lt;/P&gt;&lt;P&gt;Please always note that the key fields are different if it is a new record insertion&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check,revert and rewards if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873350#M674223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873351#M674224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thank for yr reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u have any sample coding? i can modify the code easily as i stil new to table control. Thk advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873351#M674224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873352#M674225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go to se38 and see the program DEMO_DYNPRO_TABCONT_LOOP&lt;/P&gt;&lt;P&gt;to understand the flow of data.. after that in the screen for table control in PAI write a module to capture the Sy-ucomm and update or insert or modify the required table...if you still need clarification pls revert and reward all useful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873352#M674225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T07:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873353#M674226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should there be a button on the screen to tell it to SAVE the records in the table control right?&lt;/P&gt;&lt;P&gt;Ok now in the module user_command of the screen write a module to save the records of the table control when SAVE button is clicked&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Case sy-ucomm
when 'SAVE'.
MODIFY dbtab FROM TABLE itab. " itab is the internal table that holds the data on the screen.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In order to know of how to handle the table control, just check this simple example under ABAPDOCU &lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop&lt;/P&gt;&lt;P&gt;demo_dynpro_tabcont_loop_at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 07:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873353#M674226</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-10-02T07:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873354#M674227</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;u have surely created save button in ur status, so in PAI's User_command_1000 module write like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODULE user_command_1000 INPUT.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ok_code.(Or sy-ucomm).&lt;/P&gt;&lt;P&gt;       WHEN 'SAVE' .(Fcode for Save Button)&lt;/P&gt;&lt;P&gt;             itab_mast-clnt = sy-mandt.&lt;/P&gt;&lt;P&gt;             itab_mast-srno = srn.&lt;/P&gt;&lt;P&gt;             itab_mast-comp_code = zform_track_mast-comp_code.&lt;/P&gt;&lt;P&gt;             itab_mast-form_type = ifmtp-form_type.&lt;/P&gt;&lt;P&gt;             itab_mast-form_series = form_series.&lt;/P&gt;&lt;P&gt;             itab_mast-form_no = form_no.&lt;/P&gt;&lt;P&gt;             itab_mast-form_date = zform_track_mast-form_date.&lt;/P&gt;&lt;P&gt;             itab_mast-rcvd_issu = 'R'.&lt;/P&gt;&lt;P&gt;             itab_mast-form_amt = fm_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             INSERT INTO zform_track_mast VALUES itab_mast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDMODULE.                 " USER_COMMAND_1000  INPUT&amp;lt;/b&amp;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;Here &amp;lt;b&amp;gt;itab_mast&amp;lt;/b&amp;gt; is my internal table and right end side values are screen fields.And &amp;lt;b&amp;gt;zform_track_mast&amp;lt;/b&amp;gt; is my Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will b useful.&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 12:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873354#M674227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873355#M674228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i using the control table. how to declare a internal table that able to store in the control table record?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 01:21:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873355#M674228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T01:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: table control save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873356#M674229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer programs "RSDEMO02" &amp;amp; "RSDEMO_TABLE_CONTROL ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 03:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-save/m-p/2873356#M674229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T03:53:05Z</dc:date>
    </item>
  </channel>
</rss>

