<?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: Delete an Entry, Selected in a WebDynpro Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868413#M1476757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys i thought this is basic stuff, isnt it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 May 2010 17:19:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-15T17:19:41Z</dc:date>
    <item>
      <title>Delete an Entry, Selected in a WebDynpro Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868412#M1476756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm doing my first exercises programming in WebDynpro Abap and stuck at the following point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented a database-table containing customer data, created a function module which returns all entries, and a webdynpro view which displays this in a table.&lt;/P&gt;&lt;P&gt;i also added a "delete" button without any function jet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my difficulty is that i did not understand yet:&lt;/P&gt;&lt;P&gt;- which parameters i need to perform the delete in a functionModule, since i could not find an object ID jet&lt;/P&gt;&lt;P&gt;- how to "ask" the table which entry is selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me some tipps, or refere to a appropriate tutorial?&lt;/P&gt;&lt;P&gt;Thanks a lot!&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;Philipp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Philipp.Heinemann on May 15, 2010 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 May 2010 09:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868412#M1476756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-15T09:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete an Entry, Selected in a WebDynpro Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868413#M1476757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys i thought this is basic stuff, isnt it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 May 2010 17:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868413#M1476757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-15T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete an Entry, Selected in a WebDynpro Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868414#M1476758</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;As you have created a button, just create action for the button, you can set that in buttons&lt;/P&gt;&lt;P&gt;properties table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating action to the DELETE BUTTON.&lt;/P&gt;&lt;P&gt;add this sample code, here i have employee data.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

   DATA lo_nd_zemp TYPE REF TO if_wd_context_node.
   DATA lo_el_zemp TYPE REF TO if_wd_context_element.
   DATA ls_zemp TYPE wd_this-&amp;gt;element_zemp.
   data: it_tab type table of wd_this-&amp;gt;element_zemp.

   lo_nd_zemp = wd_context-&amp;gt;get_child_node( name = wd_this-&amp;gt;wdctx_zemp ).


   lo_el_zemp = lo_nd_zemp-&amp;gt;get_element(  ).

   lo_el_zemp-&amp;gt;get_static_attributes(
     IMPORTING
       static_attributes = ls_zemp ).

lo_nd_zemp-&amp;gt;get_static_attributes_table(
      importing
        table = it_tab ).
DELETE it_tab where empid eq ls_zemp-empid.
lo_nd_zemp-&amp;gt;bind_table(  it_tab[] ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 May 2010 17:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868414#M1476758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-15T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete an Entry, Selected in a WebDynpro Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868415#M1476759</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 use &amp;lt;node&amp;gt;-&amp;gt;get_lead_selection_index( ). Node must be reference of table node context. this method returns the value of the row that is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 04:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868415#M1476759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-17T04:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete an Entry, Selected in a WebDynpro Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868416#M1476760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kiran Kumars tipp worked for me the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method ONACTIONZSS10_15_ONDELETE .  
  DATA ls_cust type wd_this-&amp;gt;element_IT_Cust.
  DATA lo_nd_cust TYPE REF TO if_wd_context_node.
  DATA lo_el_cust TYPE REF TO if_wd_context_element.

  " Get the selected element
  lo_nd_cust = wd_context-&amp;gt;get_child_node( name = 'IT_CUST' ).
  lo_el_cust = lo_nd_cust-&amp;gt;get_element( ).

  " Get the attributes of the node-element
  lo_el_cust-&amp;gt;get_static_attributes(
    IMPORTING
      static_attributes = ls_cust ).

  " Call the delete-function
  CALL FUNCTION 'ZSS10_15_CUST_FM_DELETE'
    EXPORTING
      custid        = ls_cust-ID
            .
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 13:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-an-entry-selected-in-a-webdynpro-table/m-p/6868416#M1476760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-17T13:33:54Z</dc:date>
    </item>
  </channel>
</rss>

