<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007319#M957306</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;Use the this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM table WHERE &amp;lt;keyfield&amp;gt; = &amp;lt;internaltable value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kinjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 21:23:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T21:23:36Z</dc:date>
    <item>
      <title>table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007316#M957303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had created table control for ztable.in  that table control i have added 2 pushbuttons (add and delete).whenever i hit 'add' the record shuld be added in the database table and whenever  i hit 'delete' selected records should be deleted in database also.add is working properly but delete is deleting records in table control but it is not deleting the records in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code i had written for delete is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FORM fcode_delete_row&lt;/P&gt;&lt;P&gt;               USING    p_tc_name           TYPE dynfnam&lt;/P&gt;&lt;P&gt;                        p_table_name&lt;/P&gt;&lt;P&gt;                        p_mark_name   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;SPWIZARD: BEGIN OF LOCAL DATA----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DATA l_table_name       LIKE feld-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   FIELD-SYMBOLS &amp;lt;tc&amp;gt;         TYPE cxtab_control.&lt;/P&gt;&lt;P&gt;   FIELD-SYMBOLS &amp;lt;table&amp;gt;      TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;   FIELD-SYMBOLS &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;   FIELD-SYMBOLS &amp;lt;mark_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;SPWIZARD: END OF LOCAL DATA----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ASSIGN (p_tc_name) TO &amp;lt;tc&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: get the table, which belongs to the tc                     *&lt;/P&gt;&lt;P&gt;   CONCATENATE p_table_name '[]' INTO l_table_name. "table body&lt;/P&gt;&lt;P&gt;   ASSIGN (l_table_name) TO &amp;lt;table&amp;gt;.                "not headerline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: delete marked lines                                        *&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE &amp;lt;table&amp;gt; LINES &amp;lt;tc&amp;gt;-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   LOOP AT &amp;lt;table&amp;gt; ASSIGNING &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;SPWIZARD: access to the component 'FLAG' of the table header         *&lt;/P&gt;&lt;P&gt;     ASSIGN COMPONENT p_mark_name OF STRUCTURE &amp;lt;wa&amp;gt; TO &amp;lt;mark_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF &amp;lt;mark_field&amp;gt; = 'X'.&lt;/P&gt;&lt;P&gt;       DELETE &amp;lt;table&amp;gt; INDEX syst-tabix.&lt;/P&gt;&lt;P&gt;       MODIFY zctf_as400intpro FROM TABLE g_tc_as400intpro_itab.&lt;/P&gt;&lt;P&gt;       IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;         &amp;lt;tc&amp;gt;-lines = &amp;lt;tc&amp;gt;-lines - 1.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 15:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007316#M957303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T15:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007317#M957304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;modify will not work.&lt;/P&gt;&lt;P&gt;You need to use delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick the line that is being deleted from the table control, put it in a work area and then delete that line from the DB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007317#M957304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007318#M957305</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;Use the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a fieldsymbol (&amp;lt;fs&amp;gt;) of type any.&lt;/P&gt;&lt;P&gt;Move the key field of the table row to be deleted to this fieldsymbol.&lt;/P&gt;&lt;P&gt;assign component &amp;lt;keyfield&amp;gt; of structure &amp;lt;wa&amp;gt; to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;DELETE FROM zctf_as400intpro WHERE &amp;lt;keyfield&amp;gt; = &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 16:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007318#M957305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007319#M957306</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;Use the this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM table WHERE &amp;lt;keyfield&amp;gt; = &amp;lt;internaltable value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kinjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 21:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4007319#M957306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T21:23:36Z</dc:date>
    </item>
  </channel>
</rss>

