<?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: Clear data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524945#M847954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as soon as i click to select ranges the output is diplayed in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 10:35:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T10:35:37Z</dc:date>
    <item>
      <title>Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524941#M847950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As user enter selection cretiria Like plant &amp;amp; year.If the condtion is not satisfied a information msg is dispalyed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when he click ok user return to selection screen at this level the data remains on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to clear this plant &amp;amp; year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables :  zmm_isslip.    "Material issue slip data is stored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_zmm_isslip occurs 0.&lt;/P&gt;&lt;P&gt;        include structure zmm_isslip.&lt;/P&gt;&lt;P&gt;data : flag(1).&lt;/P&gt;&lt;P&gt;data : end of it_zmm_isslip.&lt;/P&gt;&lt;P&gt;controls : tab201 type tableview using screen '0100'.&lt;/P&gt;&lt;P&gt;data: ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;      save_ok like ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block skk with frame title text-011.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : DJAHR1 like ZMM_ISSLIP-DJAHR obligatory default '2008'.&lt;/P&gt;&lt;P&gt;select-options: belnr1 for ZMM_ISSLIP-belnr.&lt;/P&gt;&lt;P&gt;select-options: werks1 for ZMM_ISSLIP-werks.&lt;/P&gt;&lt;P&gt;select-options: KOSTL1 for ZMM_ISSLIP-kostl.&lt;/P&gt;&lt;P&gt;select-options: ANLN11 for ZMM_ISSLIP-anln1.&lt;/P&gt;&lt;P&gt;select-options: AUFNR1 for ZMM_ISSLIP-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;selection-screen end of block skk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;  perform select_release_data.&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;FORM select_release_data .&lt;/P&gt;&lt;P&gt;  refresh it_zmm_isslip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * into table it_zmm_isslip&lt;/P&gt;&lt;P&gt;    from zmm_isslip&lt;/P&gt;&lt;P&gt;    where djahr = djahr1&lt;/P&gt;&lt;P&gt;          and belnr in belnr1&lt;/P&gt;&lt;P&gt;          and werks in werks1&lt;/P&gt;&lt;P&gt;          and KOSTL in kostl1&lt;/P&gt;&lt;P&gt;          and ANLN1 in anln11&lt;/P&gt;&lt;P&gt;          and AUFNR in aufnr1&lt;/P&gt;&lt;P&gt;          and bstat = ''.&lt;/P&gt;&lt;P&gt;  if sy-subrc is not initial.&lt;/P&gt;&lt;P&gt;    message i333.&lt;/P&gt;&lt;P&gt;    clear : belnr1,werks1,kostl1,anln11,aufnr1.&lt;/P&gt;&lt;P&gt;    refresh : belnr1,werks1,kostl1,anln11,aufnr1.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    call screen 0100.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;but as i click anything the output is genearted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this i modified the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables :  zmm_isslip.    "Material issue slip data is stored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_zmm_isslip occurs 0.&lt;/P&gt;&lt;P&gt;        include structure zmm_isslip.&lt;/P&gt;&lt;P&gt;data : flag(1).&lt;/P&gt;&lt;P&gt;data : end of it_zmm_isslip.&lt;/P&gt;&lt;P&gt;controls : tab201 type tableview using screen '0100'.&lt;/P&gt;&lt;P&gt;data: ok_code type sy-ucomm,&lt;/P&gt;&lt;P&gt;      save_ok like ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block skk with frame title text-011.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : DJAHR1 like ZMM_ISSLIP-DJAHR obligatory default '2008'.&lt;/P&gt;&lt;P&gt;select-options: belnr1 for ZMM_ISSLIP-belnr.&lt;/P&gt;&lt;P&gt;select-options: werks1 for ZMM_ISSLIP-werks.&lt;/P&gt;&lt;P&gt;select-options: KOSTL1 for ZMM_ISSLIP-kostl.&lt;/P&gt;&lt;P&gt;select-options: ANLN11 for ZMM_ISSLIP-anln1.&lt;/P&gt;&lt;P&gt;select-options: AUFNR1 for ZMM_ISSLIP-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;selection-screen end of block skk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*initialization.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   clear : belnr1,werks1,kostl1,anln11,aufnr1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   refresh : belnr1,werks1,kostl1,anln11,aufnr1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  perform select_release_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using this my data is not cleared as i return to output screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz guide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524941#M847950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524942#M847951</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 do as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen.

select fields from &amp;lt;table_name&amp;gt; into itab where field = selection_parameters.

if sy-subrc ne 0.
message 'Error message' type 'E'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524942#M847951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524943#M847952</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;Try to put the clear statements in AT SELECTION-SCREEN OUTPUT event.Clear all the selection screen variables which you do want to be cleared here in this event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524943#M847952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524944#M847953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write the coding as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table it_zmm_isslip&lt;/P&gt;&lt;P&gt;from zmm_isslip&lt;/P&gt;&lt;P&gt;where djahr = djahr1&lt;/P&gt;&lt;P&gt;and belnr in belnr1&lt;/P&gt;&lt;P&gt;and werks in werks1&lt;/P&gt;&lt;P&gt;and KOSTL in kostl1&lt;/P&gt;&lt;P&gt;and ANLN1 in anln11&lt;/P&gt;&lt;P&gt;and AUFNR in aufnr1&lt;/P&gt;&lt;P&gt;and bstat = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : belnr1,werks1,kostl1,anln11,aufnr1.  &amp;lt;--  put these statements&lt;/P&gt;&lt;P&gt;                                                                     before message .. &lt;/P&gt;&lt;P&gt;refresh : belnr1,werks1,kostl1,anln11,aufnr1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message i333.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call screen 0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524944#M847953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524945#M847954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as soon as i click to select ranges the output is diplayed in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524945#M847954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524946#M847955</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;In at selection screen event,after throwing the required error,you can clear or refresh the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524946#M847955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524947#M847956</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 are using select options, you need to put [] this in the end where you are clearing the select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So modify your code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table it_zmm_isslip&lt;/P&gt;&lt;P&gt;from zmm_isslip&lt;/P&gt;&lt;P&gt;where djahr = djahr1&lt;/P&gt;&lt;P&gt;and belnr in belnr1&lt;/P&gt;&lt;P&gt;and werks in werks1&lt;/P&gt;&lt;P&gt;and KOSTL in kostl1&lt;/P&gt;&lt;P&gt;and ANLN1 in anln11&lt;/P&gt;&lt;P&gt;and AUFNR in aufnr1&lt;/P&gt;&lt;P&gt;and bstat = ''.&lt;/P&gt;&lt;P&gt;if sy-subrc is not initial.&lt;/P&gt;&lt;P&gt;message i333.&lt;/P&gt;&lt;P&gt;clear : belnr1[],werks1[],kostl1[],anln11[],aufnr1[].&lt;/P&gt;&lt;P&gt;refresh : belnr1[],werks1[],kostl1[],anln11[],aufnr1[].&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;call screen 0100.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524947#M847956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524948#M847957</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;Modify the clear statements by adding [].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : belnr1[], &lt;/P&gt;&lt;P&gt;werks1[], &lt;/P&gt;&lt;P&gt;kostl1[], &lt;/P&gt;&lt;P&gt;anln11[], &lt;/P&gt;&lt;P&gt;aufnr1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh : belnr[],&lt;/P&gt;&lt;P&gt;werks1[], &lt;/P&gt;&lt;P&gt;kostl1[], &lt;/P&gt;&lt;P&gt;anln11[], &lt;/P&gt;&lt;P&gt;aufnr1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524948#M847957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524949#M847958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is not working as soon as i return to selection screen my previous data remains thr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524949#M847958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524950#M847959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write clear statements before giving information message ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524950#M847959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524951#M847960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: vbak.

SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                s_vkorg FOR vbak-vkorg,
                s_auart FOR vbak-auart.

AT SELECTION-SCREEN.

  SELECT SINGLE * FROM vbak WHERE vbeln IN s_vbeln AND
                                  vkorg IN s_vkorg AND
                                  auart IN s_auart.
  IF sy-subrc NE 0.
    CLEAR: s_vbeln[], s_vkorg[], s_auart[].
    MESSAGE i000(zz) WITH 'Invalid Input'.
    LEAVE LIST-PROCESSING.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked for me. Reward points for all helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524951#M847960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524952#M847961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz check the codeeeeeee its giving error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as soon as i click for range its shows the output.On enter the data is getting cleared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 11:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524952#M847961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T11:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524953#M847962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: vbak.

DATA: gv_ucomm_vbeln TYPE sy-ucomm,
      gv_ucomm_vkorg TYPE sy-ucomm,
      gv_ucomm_auart TYPE sy-ucomm.


SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                s_vkorg FOR vbak-vkorg,
                s_auart FOR vbak-auart.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'S_VBELN-LOW'.
      CONCATENATE '%' screen-group4 INTO gv_ucomm_vbeln.
    ENDIF.
    IF screen-name = 'S_VKORF-LOW'.
      CONCATENATE '%' screen-group4 INTO gv_ucomm_vkorg.
    ENDIF.
    IF screen-name = 'S_AUART-LOW'.
      CONCATENATE '%' screen-group4 INTO gv_ucomm_auart.
    ENDIF.


  ENDLOOP.

AT SELECTION-SCREEN.

  IF sy-ucomm NE gv_ucomm_vbeln AND
     sy-ucomm NE gv_ucomm_vkorg AND
     sy-ucomm NE gv_ucomm_auart.

    SELECT SINGLE * FROM vbak WHERE vbeln IN s_vbeln AND
                                    vkorg IN s_vkorg AND
                                    auart IN s_auart.
    IF sy-subrc NE 0.
      CLEAR: s_vbeln[], s_vkorg[], s_auart[].
      MESSAGE i000(zz) WITH 'Invalid Input'.
      LEAVE LIST-PROCESSING.
    ENDIF.

  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 11:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524953#M847962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524954#M847963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u plz expain with sum example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 12:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524954#M847963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T12:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clear data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524955#M847964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think in your code you missed out CLEAR:  DJAHR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 13:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-data/m-p/3524955#M847964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T13:08:33Z</dc:date>
    </item>
  </channel>
</rss>

