<?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: abap statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321796#M509803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query seems right.&lt;/P&gt;&lt;P&gt;What is the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Atish Sarda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 02:02:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T02:02:07Z</dc:date>
    <item>
      <title>abap statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321795#M509802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have to write a statement in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where i need to extract data from REGUH and PAYR table comparing company code, housebank and few more conditions.&lt;/P&gt;&lt;P&gt;even if there are no records in PAYR we have to extract the records from REGUH.&lt;/P&gt;&lt;P&gt;PAYR entries will be empty then.&lt;/P&gt;&lt;P&gt;that means if there are 10 records in REGUH and 5 records in PAYR.&lt;/P&gt;&lt;P&gt;all 5 records in payr have key field in REGUH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 entries should be extracted. 5 wiht combination of REGUh and PAYR other 5 wihtout cmbination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the query i wrote pls check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;zbukr a&lt;/SUB&gt;hbkid a&lt;SUB&gt;hktid a&lt;/SUB&gt;vblnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;zaldt a&lt;/SUB&gt;znme1 a&lt;SUB&gt;rwbtr a&lt;/SUB&gt;ubhkt&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;waers a&lt;/SUB&gt;zbnkl a~rzawe&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;chect b&lt;/SUB&gt;checf b~gjahr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itreguh&lt;/P&gt;&lt;P&gt;FROM reguh AS a&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN payr AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;vblnr = b&lt;/SUB&gt;vblnr&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;zbukr = b&lt;/SUB&gt;zbukr&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;hbkid = b&lt;/SUB&gt;hbkid&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;hktid = b&lt;/SUB&gt;hktid&lt;/P&gt;&lt;P&gt;WHERE a~zbukr = cmp_code&lt;/P&gt;&lt;P&gt;AND a~hbkid = hse_bank&lt;/P&gt;&lt;P&gt;AND a~hktid = acc_id&lt;/P&gt;&lt;P&gt;AND a~vblnr &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM itreguh COMPARING chect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 01:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321795#M509802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T01:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: abap statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321796#M509803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query seems right.&lt;/P&gt;&lt;P&gt;What is the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Atish Sarda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 02:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321796#M509803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T02:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: abap statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321797#M509804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there are no records in payr we are unable to extract the reguh details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 02:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321797#M509804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T02:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: abap statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321798#M509805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No it should not happen. The query is perfectly write.&lt;/P&gt;&lt;P&gt;Can you please recheck if there are entries in REGUH for the criteria you are giving.&lt;/P&gt;&lt;P&gt;Also for checking what you can do is just write a query on reguh and see if it is giving the output or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT zbukr hbkid hktid vblnr&lt;/P&gt;&lt;P&gt;zaldt znme1 rwbtr ubhkt&lt;/P&gt;&lt;P&gt;waers zbnkl rzawe&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itreguh&lt;/P&gt;&lt;P&gt;FROM reguh&lt;/P&gt;&lt;P&gt;WHERE zbukr = cmp_code&lt;/P&gt;&lt;P&gt;AND hbkid = hse_bank&lt;/P&gt;&lt;P&gt;AND hktid = acc_id&lt;/P&gt;&lt;P&gt;AND vblnr &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if it is giving the output or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 02:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321798#M509805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T02:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: abap statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321799#M509806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe put a break-point before:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM itreguh COMPARING chect &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check what's in the internal table - you should really sort itreguh by chect prior to doing the delete adjacent duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if there is no PAYR, then your CHECT will be blank and all these will get removed, bar one row, by the delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Jonathan Coleman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 02:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-statement/m-p/2321799#M509806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T02:22:11Z</dc:date>
    </item>
  </channel>
</rss>

