<?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 program to insert/update/delete entries in table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539296#M1657212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a program to insert/update/delete table entries(read text) as I fields are STRING type Table Maintainance is not possible.&lt;/P&gt;&lt;P&gt;I got many examples on web but nothing is working properly with string type as in some I am declaring my Z table with TABLES: keyword...it says this keyword is not valid for string type fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if I can get any sample.&lt;/P&gt;&lt;P&gt;Here are some links which I already tried:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alv/alvgrid_editable.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alv/alvgrid_editable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;link to blocked site removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have tried but not able to update when SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check function code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;DATA_SAVE'. "or what even event you want&lt;/P&gt;&lt;P&gt;      loop at it_content into wa_content.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       process each line of table including new values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;      MODIFY TABLE zdu_test_content FROM IT_CONTENT .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am getting an error at this Statement:&lt;STRONG&gt;TABLES:ZTEST.&lt;/STRONG&gt;(must be a flat structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 8, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 06:12:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-08T06:12:56Z</dc:date>
    <item>
      <title>program to insert/update/delete entries in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539296#M1657212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a program to insert/update/delete table entries(read text) as I fields are STRING type Table Maintainance is not possible.&lt;/P&gt;&lt;P&gt;I got many examples on web but nothing is working properly with string type as in some I am declaring my Z table with TABLES: keyword...it says this keyword is not valid for string type fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if I can get any sample.&lt;/P&gt;&lt;P&gt;Here are some links which I already tried:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alv/alvgrid_editable.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alv/alvgrid_editable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;link to blocked site removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have tried but not able to update when SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check function code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;DATA_SAVE'. "or what even event you want&lt;/P&gt;&lt;P&gt;      loop at it_content into wa_content.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       process each line of table including new values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;      MODIFY TABLE zdu_test_content FROM IT_CONTENT .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am getting an error at this Statement:&lt;STRONG&gt;TABLES:ZTEST.&lt;/STRONG&gt;(must be a flat structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 8, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 06:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539296#M1657212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T06:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: program to insert/update/delete entries in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539297#M1657213</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 can try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_CONTENT INTO WA_CONTENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ADD VALUES TO WA_CONTENT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE ZTABLE VALUES WA_CONTENT.&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;May be this would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Megh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 09:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539297#M1657213</guid>
      <dc:creator>meghomallar_das</dc:creator>
      <dc:date>2012-02-08T09:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: program to insert/update/delete entries in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539298#M1657214</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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODIFY TABLE zdu_test_content FROM IT_CONTENT .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;you need to use structure in place of IT_CONTENT and need to use UPDATE command not the MODIFY.&lt;/P&gt;&lt;P&gt;syntax: UPDATE ztable from ls_structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 09:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539298#M1657214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: program to insert/update/delete entries in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539299#M1657215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.Also,can you please suggest me how to make the ALV fields dynamic as my table fields are string type but in ALV fields I can only enter limited text.I have seen some examples all are using field symbols.don't want to use field symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 09:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539299#M1657215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: program to insert/update/delete entries in table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539300#M1657216</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 can also enter strings in ALV fields. &lt;/P&gt;&lt;P&gt;please find the belowlink which may help you.&lt;/P&gt;&lt;P&gt;[Dynamic Field Catalog In ALV |http://wiki.sdn.sap.com/wiki/display/ABAP/Dynamic&lt;EM&gt;Field&lt;/EM&gt;Catalog&lt;EM&gt;In&lt;/EM&gt;ALV]&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1916870"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karuna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 03:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to-insert-update-delete-entries-in-table/m-p/8539300#M1657216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T03:58:16Z</dc:date>
    </item>
  </channel>
</rss>

