<?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 Records from selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232021#M1209370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On click of that radio button you can simply CLEAR/REFRESH all fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 17:09:35 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2009-02-12T17:09:35Z</dc:date>
    <item>
      <title>Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232020#M1209369</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 built a report with a selection screen, and it has 2 radio buttons.  First button is just to display the records, but the second button, when selected will deleted the records displayed in the fields on the selection screen, but I cannot seem to figure out the logic or the code I need to make that functionality working.  Can anybody help me out here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232020#M1209369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T17:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232021#M1209370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On click of that radio button you can simply CLEAR/REFRESH all fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232021#M1209370</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2009-02-12T17:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232022#M1209371</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 code, if it is as per your requirement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options:
s_field for spfli-carrid.

AT SELECTION-SCREEN OUTPUT.
IF P_RAD2 EQ 'X'.

IF SCREEN-NAME CS 'S_FIELD'.
REFRESH S_FIELD. " If s_field is a select-options on the selection screen
CLEAR S_FIELD.     " Refresh and clear delete the entries exiting in the s_field from table and header
ENDIF.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232022#M1209371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232023#M1209372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing is happening, what could be wrong?&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232023#M1209372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T17:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232024#M1209373</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;Are you using USER-COMMAND addition with you radio button like in the following Sample code if not than please try after adding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameter: rb1 radiobutton group radi default 'X' user-command ucomm,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope will solve out,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232024#M1209373</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-12T17:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232025#M1209374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Can you post your code here so that i can have a look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the parameter declaration,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:
p_rad1 radiobutton group g1 user command 'ONLI',
p_rad2 radiobutton group g1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have been maintained..??&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232025#M1209374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T17:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232026#M1209375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of that sample code made anything work....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-b02.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_delete RADIOBUTTON GROUP g1 user-command ucomm,    "Delete Records&lt;/P&gt;&lt;P&gt;                         p_show   RADIOBUTTON GROUP g1.                                       "Show Records&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF  BLOCK blk2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 17:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232026#M1209375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T17:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232027#M1209376</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;PRE&gt;&lt;CODE&gt;
Tables spfli.
Parameters:
p_delete radiobutton group rad1 user-command 'ONLI',
p_record radiobutton group rad1.
select-options:
s_field for spfli-carrid.
 
AT SELECTION-SCREEN OUTPUT.
IF P_DELETE  EQ 'X'.

REFRESH S_FIELD. 
CLEAR S_FIELD.     

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working for the field S_FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this code .&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 18:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232027#M1209376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T18:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232028#M1209377</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;Test my Sample code in the following Thread hope will help to get the point of solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Selection-Screen|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1210522"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope My Sample Code in the following Thread will be more Useful for you Please test this too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[selection-screen|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6918338"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Above Link are not exactly according to your requirement but after testing above code you will be able to under stand the functionality and Hopefully solve out your problem, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, one thing more you must have to take care if you are using Parameters than use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;clear: p_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and if you are using Select-option than to clear the body of the select-option which is in fact a internal table use like following.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Clear: s_name[], " To clear the Body of the internal table which select option is using.
         s_name. To clear the Header of internal table which select option is using.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Feb 12, 2009 11:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 18:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232028#M1209377</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-12T18:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232029#M1209378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : p_vbeln type vbap-vbeln,
       p_posnr type vbap-posnr.

DATA : p_rb1 radiobutton group gp1 default 'X',
       p_rb2 radiobutton group gp1.

AT SELECTION-SCREEN OUTPUT.
  if p_rb2 = 'X'.
    "clear screen fields
    "like:-
    clear : p_vbeln,
            p_posnr.
  endif.
START-OF-SELECTION.
  "your code/concept
END-OF-SELECTION.
  "your code/concept
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 05:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232029#M1209378</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-13T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232030#M1209379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameter: p_rbut1 radiobutton group radi default 'X' user-command ucomm,&lt;/P&gt;&lt;P&gt;                p_rbut2 radiobutton group radi. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;IF P_RBUT2 EQ 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF SCREEN-NAME CS 'S_FNAME'.&lt;/P&gt;&lt;P&gt;REFRESH s_fname&lt;/P&gt;&lt;P&gt; CLEAR s_fname.     &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232030#M1209379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Records from selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232031#M1209380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the below code will clear the selection when the second radio button is chosen,&lt;/P&gt;&lt;P&gt;check it out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: mara.

SELECT-OPTIONS:
so_matnr FOR mara-matnr.

PARAMETERS:
p_rad1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND clear,
p_rad2 RADIOBUTTON GROUP g1.


AT SELECTION-SCREEN.
  IF p_rad2 EQ 'X'.
    REFRESH so_matnr[]. "Clear all values
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-records-from-selection-screen/m-p/5232031#M1209380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:38:00Z</dc:date>
    </item>
  </channel>
</rss>

