<?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: Urgent - Check data  exist in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451905#M549472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seem like all floc from input file (internal table)are displayed as 'does not exist'. &lt;/P&gt;&lt;P&gt;Is it the correct way to check the data exist against database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want check against my input file to determine the floc whether exist in db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if does not exist......display that records as error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Jul 2007 08:18:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-01T08:18:11Z</dc:date>
    <item>
      <title>Urgent - Check data  exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451903#M549470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I having an upload file which contains following fields in internal table. I wanna to check the Functional Location in upload file whether is exist in system database. If that record does not exist......i want to display the name of functional location which does not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below are the code....but i still not manage to check the existance of it. Please help to correct the code as i require it urgently. Appreciate ur help. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Internal Table:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF i_input OCCURS 0,&lt;/P&gt;&lt;P&gt;tplnr LIKE iflo-tplnr, "Functional Location&lt;/P&gt;&lt;P&gt;dokar LIKE draw-dokar, "Document Type&lt;/P&gt;&lt;P&gt;doknr LIKE draw-doknr, "Document&lt;/P&gt;&lt;P&gt;doktl LIKE draw-doktl, "Document Part&lt;/P&gt;&lt;P&gt;dokvr LIKE draw-dokvr, "Document Version&lt;/P&gt;&lt;P&gt;END OF i_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lwa_input like i_input, &lt;/P&gt;&lt;P&gt;        lv_tplnr like iflot-tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_input into lwa_input.&lt;/P&gt;&lt;P&gt;select single &lt;/P&gt;&lt;P&gt;tplnr &lt;/P&gt;&lt;P&gt;into lv_tplnr&lt;/P&gt;&lt;P&gt;from iflot&lt;/P&gt;&lt;P&gt;where tplnr = lwa_input-tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0 and lv_tplnr is initial.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Functional Location', lwa_input-tplnr, 'Does Not exist'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ 'records found'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: lwa_input, lv_tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2007 05:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451903#M549470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-01T05:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent - Check data  exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451904#M549471</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 change  internal table tabale field and try.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF i_input OCCURS 0,&lt;/P&gt;&lt;P&gt;               &amp;lt;b&amp;gt; tplnr LIKE iflo-tplnr, "Functional Location&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;               dokar LIKE draw-dokar, "Document Type&lt;/P&gt;&lt;P&gt;               doknr LIKE draw-doknr, "Document&lt;/P&gt;&lt;P&gt;               doktl LIKE draw-doktl, "Document Part&lt;/P&gt;&lt;P&gt;               dokvr LIKE draw-dokvr, "Document Version&lt;/P&gt;&lt;P&gt;END OF i_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you decalre that field of type &amp;lt;b&amp;gt;iflot-tplnr&amp;lt;/b&amp;gt; not like t iflo-tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF i_input OCCURS 0,&lt;/P&gt;&lt;P&gt;               &amp;lt;b&amp;gt; tplnr LIKE iflot-tplnr, "Functional Location&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;               dokar LIKE draw-dokar, "Document Type&lt;/P&gt;&lt;P&gt;               doknr LIKE draw-doknr, "Document&lt;/P&gt;&lt;P&gt;               doktl LIKE draw-doktl, "Document Part&lt;/P&gt;&lt;P&gt;               dokvr LIKE draw-dokvr, "Document Version&lt;/P&gt;&lt;P&gt;END OF i_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible create structure with TYPES statement insted of creating with DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2007 06:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451904#M549471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-01T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent - Check data  exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451905#M549472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seem like all floc from input file (internal table)are displayed as 'does not exist'. &lt;/P&gt;&lt;P&gt;Is it the correct way to check the data exist against database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want check against my input file to determine the floc whether exist in db.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if does not exist......display that records as error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2007 08:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451905#M549472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-01T08:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent - Check data  exist</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451906#M549473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sweet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is absolutely correct. But i think you are getting all values as does not exist. Just try this conversion exit Function Module  'CONVERSION_EXIT_TPLNR_INPUT'. it should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZGS_TEST1&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZGS_TEST1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF i_input OCCURS 0,&lt;/P&gt;&lt;P&gt;tplnr LIKE iflo-tplnr, "Functional Location&lt;/P&gt;&lt;P&gt;dokar LIKE draw-dokar, "Document Type&lt;/P&gt;&lt;P&gt;doknr LIKE draw-doknr, "Document&lt;/P&gt;&lt;P&gt;doktl LIKE draw-doktl, "Document Part&lt;/P&gt;&lt;P&gt;dokvr LIKE draw-dokvr, "Document Version&lt;/P&gt;&lt;P&gt;END OF i_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lwa_input like i_input,&lt;/P&gt;&lt;P&gt;lv_tplnr like iflot-tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_input into lwa_input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CONVERSION_EXIT_TPLNR_INPUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      input                      = lwa_input-tplnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_FLG_CHECK_INTERNAL       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     OUTPUT                     = lwa_input-tplnr&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;    NOT_FOUND                  = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OTHERS                     = 2&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single&lt;/P&gt;&lt;P&gt;tplnr&lt;/P&gt;&lt;P&gt;into lv_tplnr&lt;/P&gt;&lt;P&gt;from iflot&lt;/P&gt;&lt;P&gt;where tplnr = lwa_input-tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0 and lv_tplnr is initial.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Functional Location', lwa_input-tplnr, 'Does Not exist'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write:/ 'records found'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: lwa_input, lv_tplnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward sweet points,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 04:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-check-data-exist/m-p/2451906#M549473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T04:18:43Z</dc:date>
    </item>
  </channel>
</rss>

