<?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 row at errors in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433385#M1052284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaya Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must  reflect the changes you made in the layout (screen ) to your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PAI ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;between loop .... endloop create a module update_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in that module you update the internal table where mark = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop.

module update_itab.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write the code in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  IF wa_vbak-check = 'X'.

    MODIFY i_vbak FROM wa_vbak TRANSPORTING check WHERE vbeln = vbak-vbeln.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where wa_vbak is work area&lt;/P&gt;&lt;P&gt;          i_vbak is internal table &lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 05:25:06 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-09-15T05:25:06Z</dc:date>
    <item>
      <title>delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433383#M1052282</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;    i have created table control with 2 mandatory fields, delete functionality is working fine when data populated in those fields, but when when data was not there in those fields and when i try to select that particular row and delete it. It was not deleting and error msg is coming that 'make an entry in all required fields'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    basically i wrote code for deleting in at exit-command module and added function type for the delete button as 'E' too. Basically that functionality is triggering perfectly but my internal table - MARK is not updating with 'X' to delete it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;     delete itab where mark = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-mark is not updating with 'X' when i select the row and try to delete it since it has an error as 'make an entry in all required fields'. i need to delete a selected record even it has errors. Could any one suggest me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 13:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433383#M1052282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T13:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433384#M1052283</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;Check it out when the module for that exit command 'DELETE', is executed in PAI. If it is before 'LOOP... ENDLOOP' of your internal table that you are displaying in your table control, then change this order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put that 'LOOP... ENDLOOP' and that module next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why we want to change this order is, in that loop only whatever changes we made in the internal table that is displayed in the table control will be updated back in the internal table in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.Nagarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 01:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433384#M1052283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T01:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433385#M1052284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaya Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must  reflect the changes you made in the layout (screen ) to your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PAI ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;between loop .... endloop create a module update_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in that module you update the internal table where mark = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop.

module update_itab.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write the code in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  IF wa_vbak-check = 'X'.

    MODIFY i_vbak FROM wa_vbak TRANSPORTING check WHERE vbeln = vbak-vbeln.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where wa_vbak is work area&lt;/P&gt;&lt;P&gt;          i_vbak is internal table &lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 05:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433385#M1052284</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-09-15T05:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433386#M1052285</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;first of all if had make a field mendatory from screen painter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then without values in those field  ur sy-ucomm will not work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so do make mendatory  field if u want to process those field without values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to create a module in pai  in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at internal table &lt;/P&gt;&lt;P&gt;module check .&lt;/P&gt;&lt;P&gt;end lopp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in module check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code = &amp;lt;create&amp;gt; and fields are initial &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then error message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in pai u can work on delete  button u will not get any error message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need use fuction type e for delete &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anil chaudhary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 05:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433386#M1052285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T05:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433387#M1052286</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;   I have changed the order, even though no use since ... since i used function type E - for that delete button, without executing any other modules in the PAI - cursor coming directly to AT EXIT COMMAND module. Since that select record is not updating in the internal table, it was failing to delete that record and then error msg is coming. Anyway thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433387#M1052286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433388#M1052287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the msg was triggering by system (Standard msg), Internal table was not updating for the selected record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433388#M1052287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433389#M1052288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we dont assign function type E for the Delete button, then surely it will be triggered after 'Error msg'. So i need to avoid that error msg in case of DELETE and selected record should be deleted from the table control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433389#M1052288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433390#M1052289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can Provide Function Type 'E' to the Pushbutton And&lt;/P&gt;&lt;P&gt;write Down the Delete code in AT Exit-command &lt;/P&gt;&lt;P&gt;it will Directly Execute At EXIT-Command (Delete Row Process ) without Error Checking &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 06:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433390#M1052289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T06:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433391#M1052290</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 module addition AT EXIT-COMMAND in the above procedure I mentioned and try that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 loop.
 
module update_itab at exit-command.
 
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 06:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433391#M1052290</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-09-16T06:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433392#M1052291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 13:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433392#M1052291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433393#M1052292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasanth, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Basically it was not updating the flag for selected row to delete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 13:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433393#M1052292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433394#M1052293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alpesh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I am doing in the same way, but it was not updating the selected row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 13:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433394#M1052293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T13:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433395#M1052294</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;i have created table control with 2 mandatory fields, delete functionality is working fine when data populated in those fields, but when data was not there in those fields and when i try to select that particular row and delete it. It was not deleting and error msg is coming as 'make an entry in all required fields'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically i wrote code for deleting in at exit-command module and added function type for the delete button as 'E' too. Basically that functionality is triggering perfectly but my internal table - MARK is not updating with 'X' to delete it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     delete itab where mark = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-mark is not updating with 'X' when i select the row and try to delete it since it has an error as 'make an entry in all required fields'. i need to delete a selected record even it has errors. Could any one suggest me. I made the 2 fields mandatory in screen painter only. Is there any solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 14:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433395#M1052294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T14:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433396#M1052295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved my own&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 18:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433396#M1052295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: delete row at errors in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433397#M1052296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 13:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-row-at-errors-in-table-control/m-p/4433397#M1052296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T13:38:25Z</dc:date>
    </item>
  </channel>
</rss>

