<?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: Deleting the values from table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009728#M1166180</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 did as u said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i couls delete the record&lt;/P&gt;&lt;P&gt;and the records are in i_details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to display in PBO &lt;/P&gt;&lt;P&gt;flow logic is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where bank_table is my table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROCESS BEFORE OUTPUT.

  LOOP WITH CONTROL bank_table .
    MODULE status_9005.

  ENDLOOP.
  
PROCESS AFTER INPUT.

  LOOP WITH CONTROL bank_table .
    CHAIN.

      FIELD:  /miga/org_bankdl-banks ,
              /miga/org_bankdl-bankl,
              /miga/org_bankdl-bankn,
              /miga/org_bankdl-bkont,
              /miga/org_bankdl-xezer,
              /miga/org_bankdl-bkref,
              /miga/org_bankdl-koinh.

      MODULE delete_row.

    ENDCHAIN.
  ENDLOOP.

  MODULE user_command_9005.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2009 12:00:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-07T12:00:57Z</dc:date>
    <item>
      <title>Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009719#M1166171</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 need to remove the selected line from the Table control on my screen.&lt;/P&gt;&lt;P&gt;The point is that the Internal table does not have any records,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example in the Customer Create screen,&lt;/P&gt;&lt;P&gt;while entering the bank details we will enter it in a tbale contraol.&lt;/P&gt;&lt;P&gt;but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009719#M1166171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009720#M1166172</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;   Whenever you are entering the details in the table control that details will be present in the internal table of that table control. write a code in the PAI based on the index to delete the record which you are selected by pressing the delete button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009720#M1166172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009721#M1166173</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 this program which will suite your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEMO_DYNPRO_TABCONT_LOOP_AT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009721#M1166173</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-01-07T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009722#M1166174</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;jus have a look at sample program RSDEMO_TABLE_CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would definitely help you out&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;Aakash Banga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009722#M1166174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009723#M1166175</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;The solution to your problem - deleting values from table control.&lt;/P&gt;&lt;P&gt;Here: it_wizard is the internal table which is holding the value of table control.&lt;/P&gt;&lt;P&gt;         wa_wizard is the work are of the internal table it_wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         it_delete is the internal table which holds the deleted record of table control.&lt;/P&gt;&lt;P&gt;         wa_delete is the work area of the internal table it_delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also here the field &lt;STRONG&gt;ZSEL&lt;/STRONG&gt; is the character field which is used to select the entire record in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
       MOVE-CORRESPONDING wa_wizard TO wa_delete.
       APPEND wa_delete TO it_delete.
       delete table it_wizard from wa_wizard.
 DELETE  FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
ENDLOOP
 if sy-subrc eq 0.
Message 'Delete Successful' type 'S'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code will delete the record from both the table control.internal table and the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will help you to great extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ward regards, &lt;/P&gt;&lt;P&gt;Bhuvaneswari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009723#M1166175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009724#M1166176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be entering the cvalues on the Table Control and then must save to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that scenario after entering the values I user press delete after placing the cursor in a line the line must get deleted from screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not be having the display of values befor hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009724#M1166176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009725#M1166177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be entering the cvalues on the Table Control and then must save to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that scenario after entering the values I user press delete after placing the cursor in a line the line must get deleted from screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not be having the display of values befor the .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009725#M1166177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009726#M1166178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be entering the cvalues on the Table Control and then must save to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that scenario after entering the values I user press delete after placing the cursor in a line the line must get deleted from screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will not be having the display of values befor hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009726#M1166178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009727#M1166179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAPLEARNER,&lt;/P&gt;&lt;P&gt;The above which I have given will solve this problem.  &lt;/P&gt;&lt;P&gt;Even before saving the record you can delete them using that code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such cases use proper flags to give the appropriate message after deleting for user convenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhuvaneswari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 09:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009727#M1166179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T09:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009728#M1166180</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 did as u said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i couls delete the record&lt;/P&gt;&lt;P&gt;and the records are in i_details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to display in PBO &lt;/P&gt;&lt;P&gt;flow logic is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where bank_table is my table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROCESS BEFORE OUTPUT.

  LOOP WITH CONTROL bank_table .
    MODULE status_9005.

  ENDLOOP.
  
PROCESS AFTER INPUT.

  LOOP WITH CONTROL bank_table .
    CHAIN.

      FIELD:  /miga/org_bankdl-banks ,
              /miga/org_bankdl-bankl,
              /miga/org_bankdl-bankn,
              /miga/org_bankdl-bkont,
              /miga/org_bankdl-xezer,
              /miga/org_bankdl-bkref,
              /miga/org_bankdl-koinh.

      MODULE delete_row.

    ENDCHAIN.
  ENDLOOP.

  MODULE user_command_9005.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 12:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009728#M1166180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009729#M1166181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to know whether you have created the table control with wizard or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 12:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009729#M1166181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting the values from table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009730#M1166182</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;No I created without wizard.&lt;/P&gt;&lt;P&gt;Whats the point in creating?&lt;/P&gt;&lt;P&gt; it will be the same right in any method !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 14:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-the-values-from-table-control/m-p/5009730#M1166182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-07T14:30:11Z</dc:date>
    </item>
  </channel>
</rss>

