<?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 Checking FM table entries against database table entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992845#M706895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a function module with table input parameters IT_OBJECT and output parameters IT_OBJECT_INS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i'm creating ZTABLE with 6 fields. Some of these are the POBJECT and POBJECT_REF which are key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If input parameter IT_OBJECT is populated, the process in the FM would be: &lt;/P&gt;&lt;P&gt;        - to check if the data in the input parameter table exists in ZTABLE, that is  ZTABLE-POBJECT IN IT_OBJECT&lt;/P&gt;&lt;P&gt;        - ZTABLE-POBJECT_REF EQ '   '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the above conditions are satisfied I have to retrieve POBJECTS from ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUESTION: I'm just not sure on how will I do the checking of the entries in IT_OBJECT against the entries in ZTABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2007 11:43:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-09T11:43:50Z</dc:date>
    <item>
      <title>Checking FM table entries against database table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992845#M706895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a function module with table input parameters IT_OBJECT and output parameters IT_OBJECT_INS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i'm creating ZTABLE with 6 fields. Some of these are the POBJECT and POBJECT_REF which are key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If input parameter IT_OBJECT is populated, the process in the FM would be: &lt;/P&gt;&lt;P&gt;        - to check if the data in the input parameter table exists in ZTABLE, that is  ZTABLE-POBJECT IN IT_OBJECT&lt;/P&gt;&lt;P&gt;        - ZTABLE-POBJECT_REF EQ '   '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the above conditions are satisfied I have to retrieve POBJECTS from ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUESTION: I'm just not sure on how will I do the checking of the entries in IT_OBJECT against the entries in ZTABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 11:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992845#M706895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Checking FM table entries against database table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992846#M706896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DO like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one more internal table which can store the data from the ZTABLE like IT_ZTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than, code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM ZTABLE
INTO IT_ZTAB
FOR ALL ENTRIES IN IT_OBJECT
WHERE POBJECT = IT_OBJECT-POBJECT
AND POBJECT_REF EQ ' '.

LOOP AT IT_OBJECT.
READ TABLE IT_ZTAB WITH KEY POBJECT = IT_OBJECT-POBJECT.
IF SY-SUBRC = 0.
*** ENTRY FOUND
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 14:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992846#M706896</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-09T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Checking FM table entries against database table entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992847#M706897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Naimesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got points from me. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;Bay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 06:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-fm-table-entries-against-database-table-entries/m-p/2992847#M706897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T06:12:32Z</dc:date>
    </item>
  </channel>
</rss>

