<?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: how to filter the data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765236#M643931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Darshana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not directly vaidated records for all those fields which are not mendetory.&lt;/P&gt;&lt;P&gt;So after getting values in internal table check each record for given selection screen value if not match for any of selection screen value then delete that record fron internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 10:24:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T10:24:22Z</dc:date>
    <item>
      <title>how to filter the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765235#M643930</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;this is my code in which vkorg is compulsory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB_VBAK TYPE TABLE OF VBAK,&lt;/P&gt;&lt;P&gt;      WA_VBAK TYPE VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB_VBAP TYPE TABLE OF VBAP,&lt;/P&gt;&lt;P&gt;      WA_VBAP TYPE VBAP.&lt;/P&gt;&lt;P&gt;DATA: P_VKORG TYPE VBAK-VKORG,&lt;/P&gt;&lt;P&gt;      P_KUNNR TYPE VBAK-KUNNR,&lt;/P&gt;&lt;P&gt;      P_VBELN TYPE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;      P_MATNR TYPE VBAP-MATNR,&lt;/P&gt;&lt;P&gt;      P_AUDAT TYPE VBAK-AUDAT,&lt;/P&gt;&lt;P&gt;      P_VDATU TYPE VBAK-VDATU,&lt;/P&gt;&lt;P&gt;      P_ERNAM TYPE VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;      P_VKAUS TYPE VBAP-VKAUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_VKORG FOR P_VKORG OBLIGATORY,         " Sales Organization&lt;/P&gt;&lt;P&gt;                s_KUNNR FOR P_KUNNR,         " Sold-to party.&lt;/P&gt;&lt;P&gt;                s_VBELN FOR P_VBELN,         " Sales Document.&lt;/P&gt;&lt;P&gt;                s_MATNR FOR P_MATNR,         " Material number.&lt;/P&gt;&lt;P&gt;                s_AUDAT FOR P_AUDAT,         " Document Date (Date Received/Sent).&lt;/P&gt;&lt;P&gt;                s_VDATU FOR P_VDATU,         " Requested delivery date.&lt;/P&gt;&lt;P&gt;                s_ERNAM FOR P_ERNAM,         " Name of Person who Created the Object.&lt;/P&gt;&lt;P&gt;                s_VKAUS FOR P_VKAUS.         " Usage indicator.&lt;/P&gt;&lt;P&gt;wa_vbak_key-vbeln = s_vbeln-low.&lt;/P&gt;&lt;P&gt;append wa_vbak_key to it_vbak_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SD_VBAK_ARRAY_READ'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_BYPASSING_BUFFER          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_REFRESH_BUFFER            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    IT_VBAK_KEY                 = IT_VBAK_KEY&lt;/P&gt;&lt;P&gt;    ET_VBAK                      = ITAB_VBAK&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RECORDS_NOT_FOUND           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RECORDS_NOT_REQUESTED       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The records are coming in the internal table itab_vbak.&lt;/P&gt;&lt;P&gt;But i want to filter the values coming in the internal table by the value whatever the user enters in select option.&lt;/P&gt;&lt;P&gt;The first field ie. VKORG is manadatory and rest is optional.&lt;/P&gt;&lt;P&gt;Please help me out to filter the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765235#M643930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765236#M643931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Darshana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not directly vaidated records for all those fields which are not mendetory.&lt;/P&gt;&lt;P&gt;So after getting values in internal table check each record for given selection screen value if not match for any of selection screen value then delete that record fron internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765236#M643931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter the data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765237#M643932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When u r putting data use where conditon in s_vkorg. it will filter the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-filter-the-data/m-p/2765237#M643932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:08:56Z</dc:date>
    </item>
  </channel>
</rss>

