<?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: Problem in delete and save data in web dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294271#M1917240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you debug a bit the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; NODE&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GET_STATIC_ATTRIBUTES_TABLE&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GT_EMPLOYEE_WAGES&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and here you get your table, nice&lt;STRONG&gt; (1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; NUM &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;NODE&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GET_LEAD_SELECTION_INDEX&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;This i guess retrieve a selected row, correct?&lt;STRONG&gt;(2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DELETE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GT_EMPLOYEE_WAGES &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;INDEX &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Here you delete the internal row selected&lt;STRONG&gt;(3)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp; **************** &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DELETE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ZEMPLOYEE_WAGES &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GT_EMPLOYEE_WAGES &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With this you want to delete the selected row from db too, correct? &lt;STRONG&gt;(4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If i understood all correctly, i see a couple of problems in this code at the following points:&lt;/P&gt;&lt;P&gt;2-&amp;gt; if the user did not select a row, num got 0 and you'll get a bunch of problems! You should check it before going on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3-&amp;gt;ok, but you should place it AFTER point 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4-&amp;gt;this point delete from DB all the rows EXCEPT the one marked for deletion since GT_EMPLOYEE_WAGES contains ALL the rows from you WD table &lt;STRONG&gt;minus&lt;/STRONG&gt; the selected one that you already deleted!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my suggestion is:&lt;/P&gt;&lt;P&gt;2-&amp;gt;ok, but with checks&lt;/P&gt;&lt;P&gt;2.5-&amp;gt; read table gt_employee_wages into wa_wages indexc num&lt;/P&gt;&lt;P&gt;3-&amp;gt;like now&lt;/P&gt;&lt;P&gt;4-&amp;gt; delete ZEMPLOYEE_WAGES from wa_wages. commit work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 10:41:12 GMT</pubDate>
    <dc:creator>SimoneMilesi</dc:creator>
    <dc:date>2015-09-17T10:41:12Z</dc:date>
    <item>
      <title>Problem in delete and save data in web dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294268#M1917237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing a problem. i created a webdynpro program in which it saves and delete the data. when i press delete button it will delete only internal table data. but i want also delete in database table. and how can i save the data in database table please suggest me to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am uploading my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;METHOD ONACTIONDELETE &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;LO_ND_EMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;IF_WD_CONTEXT_NODE&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;LO_EL_EMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;IF_WD_CONTEXT_ELEMENT&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;LS_EMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;WD_THIS&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;ELEMENT_EMPLOYEE_WAGES&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;GT_EMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;WD_THIS&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;ELEMENT_EMPLOYE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA GS_EMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;WD_THIS&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;ELEMENT_EMPLOYEE_WAGES&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;NODE &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;IF_WD_CONTEXT_NODE&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gt_employee_wages TYPE TABLE OF if_main=&amp;gt;ELEMENT_employee_wages.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NODE &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;WD_CONTEXT&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;GET_CHILD_NODE&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;NAME &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EMPLOYEE_WAGES' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NODE&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;GET_STATIC_ATTRIBUTES_TABLE&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IMPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;GT_EMPLOYEE_WAGES&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NUM &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;NODE&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;GET_LEAD_SELECTION_INDEX&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;GT_EMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;INDEX &lt;/SPAN&gt;NUM&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; **************** &lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;ZEMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;GT_EMPLOYEE_WAGES &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NODE&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;BIND_TABLE&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;GT_EMPLOYEE_WAGES &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;when i delete data using this code it will delete all data of databse table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;if i use &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;ZEMPLOYEE_WAGES &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;GT_EMPLOYEE_WAGES&amp;nbsp; this code.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 08:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294268#M1917237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-17T08:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in delete and save data in web dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294269#M1917238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;A _jive_internal="true" href="https://answers.sap.com/people/chirag.barasiya"&gt;chirag barasiya&lt;/A&gt;&lt;/P&gt;&lt;P&gt;u can add where clause to your delete statement.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-weight: normal; font-style: normal; font-size: 12px; font-family: arial, helvetica, sans-serif; color: #333333; text-align: left; text-indent: 0px; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; background: transparent;"&gt;&lt;SPAN class="Apple-converted-space"&gt;=&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: normal; font-style: normal; font-size: 12px; font-family: arial, helvetica, sans-serif; color: #333333; text-align: left; text-indent: 0px; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; background: transparent;"&gt;DELETE&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;ZEMPLOYEE_WAGES&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; background: transparent;"&gt;FROM&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; background: transparent;"&gt;TABLE&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;GT_EMPLOYEE_WAGES where .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-weight: normal; font-style: normal; font-size: 12px; font-family: arial, helvetica, sans-serif; color: #333333; text-align: left; text-indent: 0px; background: #ffffff;"&gt;to specify the deleted records to not delete all table content .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 08:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294269#M1917238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-17T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in delete and save data in web dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294270#M1917239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi peter,&lt;/P&gt;&lt;P&gt;i used where condition but it shows an error like "." expected after gt_employee_wages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 10:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294270#M1917239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-17T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in delete and save data in web dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294271#M1917240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you debug a bit the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; NODE&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GET_STATIC_ATTRIBUTES_TABLE&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GT_EMPLOYEE_WAGES&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and here you get your table, nice&lt;STRONG&gt; (1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; NUM &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;NODE&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GET_LEAD_SELECTION_INDEX&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;This i guess retrieve a selected row, correct?&lt;STRONG&gt;(2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DELETE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GT_EMPLOYEE_WAGES &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;INDEX &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Here you delete the internal row selected&lt;STRONG&gt;(3)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp; **************** &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DELETE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ZEMPLOYEE_WAGES &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;GT_EMPLOYEE_WAGES &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With this you want to delete the selected row from db too, correct? &lt;STRONG&gt;(4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If i understood all correctly, i see a couple of problems in this code at the following points:&lt;/P&gt;&lt;P&gt;2-&amp;gt; if the user did not select a row, num got 0 and you'll get a bunch of problems! You should check it before going on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3-&amp;gt;ok, but you should place it AFTER point 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4-&amp;gt;this point delete from DB all the rows EXCEPT the one marked for deletion since GT_EMPLOYEE_WAGES contains ALL the rows from you WD table &lt;STRONG&gt;minus&lt;/STRONG&gt; the selected one that you already deleted!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my suggestion is:&lt;/P&gt;&lt;P&gt;2-&amp;gt;ok, but with checks&lt;/P&gt;&lt;P&gt;2.5-&amp;gt; read table gt_employee_wages into wa_wages indexc num&lt;/P&gt;&lt;P&gt;3-&amp;gt;like now&lt;/P&gt;&lt;P&gt;4-&amp;gt; delete ZEMPLOYEE_WAGES from wa_wages. commit work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 10:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294271#M1917240</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2015-09-17T10:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in delete and save data in web dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294272#M1917241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Chirag,&lt;/P&gt;&lt;P&gt;it suppose to be like that :&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;table name&amp;gt; WHERE &amp;lt;conditions&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-delete-and-save-data-in-web-dynpro/m-p/11294272#M1917241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-18T14:20:24Z</dc:date>
    </item>
  </channel>
</rss>

