<?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 HR Abap - Using select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629237#M1864311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hello expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;I've tried provide statement and macro both work fine. Now i want to do a select statement using bedga and endda entered on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;"getting all employee personal number &amp;amp; normal hours employee only&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SELECT &lt;/SPAN&gt;pernr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FROM &lt;/SPAN&gt;pa0007&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;TABLE &lt;/SPAN&gt;gt_007&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;WHERE &lt;/SPAN&gt;begda &amp;lt;= p_begda &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;AND &lt;/SPAN&gt;endda &amp;gt; p_endda.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000; background: transparent;"&gt;Is this the right way? Because here we are dealing with with &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: Calibri, sans-serif; color: #000000; background: transparent;"&gt;period interval not just comparing date, please let me know if this is correct&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 06:10:10 GMT</pubDate>
    <dc:creator>hassimkhan</dc:creator>
    <dc:date>2014-09-18T06:10:10Z</dc:date>
    <item>
      <title>HR Abap - Using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629237#M1864311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hello expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;I've tried provide statement and macro both work fine. Now i want to do a select statement using bedga and endda entered on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;"getting all employee personal number &amp;amp; normal hours employee only&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SELECT &lt;/SPAN&gt;pernr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FROM &lt;/SPAN&gt;pa0007&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;TABLE &lt;/SPAN&gt;gt_007&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;WHERE &lt;/SPAN&gt;begda &amp;lt;= p_begda &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;AND &lt;/SPAN&gt;endda &amp;gt; p_endda.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3366ff; background: transparent;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000; background: transparent;"&gt;Is this the right way? Because here we are dealing with with &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 11pt; font-family: Calibri, sans-serif; color: #000000; background: transparent;"&gt;period interval not just comparing date, please let me know if this is correct&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 06:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629237#M1864311</guid>
      <dc:creator>hassimkhan</dc:creator>
      <dc:date>2014-09-18T06:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: HR Abap - Using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629238#M1864312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost correct.&amp;nbsp;&amp;nbsp; You need to eliminate all infotypes starting beyond the selection screen date range or ending before the selection screen date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #333333; font-size: 12px;"&gt;&lt;SPAN style="font-family: inherit; background: none transparent scroll repeat 0% 0%; color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-family: inherit; background: none transparent scroll repeat 0% 0%;"&gt;SELECT &lt;/SPAN&gt;pernr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #333333; font-size: 12px;"&gt;&lt;SPAN style="font-family: inherit; background: none transparent scroll repeat 0% 0%; color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-family: inherit; background: none transparent scroll repeat 0% 0%;"&gt;FROM &lt;/SPAN&gt;pa0007&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #333333; font-size: 12px;"&gt;&lt;SPAN style="font-family: inherit; background: none transparent scroll repeat 0% 0%; color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-family: inherit; background: none transparent scroll repeat 0% 0%;"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-family: inherit; background: none transparent scroll repeat 0% 0%;"&gt;TABLE &lt;/SPAN&gt;gt_007&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: #ffffff; color: #333333; font-size: 12px;"&gt;&lt;SPAN style="font-family: inherit; background: none transparent scroll repeat 0% 0%; color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where begda &lt;SPAN class="L0S52"&gt;le &lt;/SPAN&gt;p_endda&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;"infotype starts before screen end date&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;endda &lt;SPAN class="L0S52"&gt;ge &lt;/SPAN&gt;p_begda&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;"and ends after screen start date&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 08:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629238#M1864312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-18T08:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: HR Abap - Using select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629239#M1864313</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;The matter to look into is just the START DATE i.e BEGDA. ENDDA of screen parameter is of no importance because for few infotypes like 0015, BEGDA and ENDDA are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;Use query like this :&lt;/P&gt;&lt;P&gt;SELECT PERNR&lt;/P&gt;&lt;P&gt;INTO TABLE GT_007&lt;/P&gt;&lt;P&gt;FROM PA0007&lt;/P&gt;&lt;P&gt;WHERE BEGDA LE P_BEGDA&lt;/P&gt;&lt;P&gt;AND ENDDA GE P_BEGDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This where statement will fetch correct data for all infotypes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 09:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-using-select-query/m-p/10629239#M1864313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-18T09:09:39Z</dc:date>
    </item>
  </channel>
</rss>

