<?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: No Filtering  while using PNP DB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413422#M1048657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Rajesh,,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; the value in PN-BEGDA &amp;amp; PN-ENDDA...is the same which is i m entering in the selection screen...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;  Could you please post the values of pn-begda, pn-endda and the values of the key fields in the records returned by the LDB into the internal table P0002&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2008 09:15:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-19T09:15:00Z</dc:date>
    <item>
      <title>No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413408#M1048643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using PNP DB to get the HR data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m giving the data range in the std selection screen ...&lt;/P&gt;&lt;P&gt;but it is not filtering the data on the basis of data range....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is giving all the data which are present in the DB...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me in trobleshooting the problemm....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 06:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413408#M1048643</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-10T06:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413409#M1048644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any expert ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 10:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413409#M1048644</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-10T10:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413410#M1048645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Make sure that, Master Data field is empty or not in Attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto attributes,  click on 'HR Report category'&lt;/P&gt;&lt;P&gt;now make sure that, 'Master Data (Infotype)' is empty or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its value is : ______03, some data retrieval is not done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopefull, it will be helpfull to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 10:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413410#M1048645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-10T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413411#M1048646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no man its still not working.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 10:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413411#M1048646</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-11T10:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413412#M1048647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnx experts for not repling.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 10:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413412#M1048647</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-17T10:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413413#M1048648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your code? So we can look and suggest you something .. hmmmm &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

Example 

In your prog attr : PNP 

REPORT  Ypnp.
tables:pernr.

infotypes:0001,
          0002.

START-OF-SELECTION.
*reading logical database PNP with pernr node

GET PERNR .


* Reading pa0001 using macro

  RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.

  IF PNP-SW-FOUND  = 1. " if found = 1, otheriwse '0'

    YOURTAB-FIELD = P0001-PERSK.

  ENDIF.


  RP_PROVIDE_FROM_LAST P0002 SPACE PN-BEGDA PN-ENDDA.

  IF PNP-SW-FOUND  = 1. " if found = 1, otheriwse '0'

    YOURTAB-FIELD1 = P0002-NACHN.

  ENDIF.

  APPEND YOURTAB .

END-OF-SELECTION.
Perform write_output.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;^ Saquib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 12:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413413#M1048648</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2008-09-17T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413414#M1048649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pass ur selection screen data like p_begda, p_endda to PN-BEGDA, PN-ENDDA before get pernr event.&lt;/P&gt;&lt;P&gt;It will restrict get pernr event from fetching all the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 12:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413414#M1048649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T12:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413415#M1048650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx for replying SK....&lt;/P&gt;&lt;P&gt;my code is like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INFOTYPES: 0000, "Action&lt;/P&gt;&lt;P&gt;           0001,&lt;/P&gt;&lt;P&gt;           0002, "Personal Data&lt;/P&gt;&lt;P&gt;           0006, "Address&lt;/P&gt;&lt;P&gt;           0008,&lt;/P&gt;&lt;P&gt;           1001,&lt;/P&gt;&lt;P&gt;           0105, "Communication&lt;/P&gt;&lt;P&gt;           0041. "Date Specification&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          9000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;TABLES: "pernr,                            "Standard Selections for HR Master Dat&lt;/P&gt;&lt;P&gt;        t510,&lt;/P&gt;&lt;P&gt;        pa0000,&lt;/P&gt;&lt;P&gt;        hrp1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION .&lt;/P&gt;&lt;P&gt;*Fetch Data from LDAP / Active Directory Server for reconcilation&lt;/P&gt;&lt;P&gt;  PERFORM get_ldap_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get SAP HR data&lt;/P&gt;&lt;P&gt;  rp_set_data_interval 'P0002' PN-BEGDA PN-endda.&lt;/P&gt;&lt;P&gt;  rp-set-name-format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET pernr.&lt;/P&gt;&lt;P&gt;  PERFORM get_sap_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rp_provide_from_last p0002 space PN-BEGDA pn-endda.&lt;/P&gt;&lt;P&gt;  IF PNP-SW-FOUND  = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get last name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MOVE p0002-nachn TO g_nachn.&lt;/P&gt;&lt;P&gt;*get first name&lt;/P&gt;&lt;P&gt;    MOVE p0002-vorna TO g_vorna.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....do  the selection screen makes any differance....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m using std one.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and amit Gupta ---i am passing the values as shown above....as it is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rohit Kumar on Sep 17, 2008 6:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 12:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413415#M1048650</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-17T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413416#M1048651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Comment the following and try .. &lt;/P&gt;&lt;P&gt;*Get SAP HR data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rp_set_data_interval 'P0002' PN-BEGDA PN-endda.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019ve seen wired behavior with above macro in past .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Iu2019m assuming that you are selecting all of the data after &lt;STRONG&gt;Get pernr event.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck !&lt;/P&gt;&lt;P&gt;^ Saquib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 13:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413416#M1048651</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2008-09-17T13:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413417#M1048652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THIS CODE CAN BE USED TO RESTRICT GET PERNR EVENT TO LOOP ONLY FOR PERNR MENTIONED IN SELECT OPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: PERNR.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: R_PERNR FOR PERNR-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;PNPPERNR = R_PERNR.&lt;/P&gt;&lt;P&gt;GET PERNR.&lt;/P&gt;&lt;P&gt;WRITE: / PERNR-PERNR.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 14:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413417#M1048652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413418#M1048653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Thnx for replying SK....&lt;/P&gt;&lt;P&gt;&amp;gt; my code is like this...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; INFOTYPES: 0000, "Action&lt;/P&gt;&lt;P&gt;&amp;gt;            0001,&lt;/P&gt;&lt;P&gt;&amp;gt;            0002, "Personal Data&lt;/P&gt;&lt;P&gt;&amp;gt;            0006, "Address&lt;/P&gt;&lt;P&gt;&amp;gt;            0008,&lt;/P&gt;&lt;P&gt;&amp;gt;            1001,&lt;/P&gt;&lt;P&gt;&amp;gt;            0105, "Communication&lt;/P&gt;&lt;P&gt;&amp;gt;            0041. "Date Specification&lt;/P&gt;&lt;P&gt;&amp;gt; *           9000.&lt;/P&gt;&lt;P&gt;&amp;gt; *----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;gt; * TABLES&lt;/P&gt;&lt;P&gt;&amp;gt; *----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&amp;gt; TABLES: "pernr,                            "Standard Selections for HR Master Dat&lt;/P&gt;&lt;P&gt;&amp;gt;         t510,&lt;/P&gt;&lt;P&gt;&amp;gt;         pa0000,&lt;/P&gt;&lt;P&gt;&amp;gt;         hrp1001.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&amp;gt; -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&amp;gt; -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;gt; ..........&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; START-OF-SELECTION .&lt;/P&gt;&lt;P&gt;&amp;gt; *Fetch Data from LDAP / Active Directory Server for reconcilation&lt;/P&gt;&lt;P&gt;&amp;gt;   PERFORM get_ldap_data.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; *Get SAP HR data&lt;/P&gt;&lt;P&gt;&amp;gt;   rp_set_data_interval 'P0002' PN-BEGDA PN-endda.&lt;/P&gt;&lt;P&gt;&amp;gt;   rp-set-name-format.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; GET pernr.&lt;/P&gt;&lt;P&gt;&amp;gt;   PERFORM get_sap_data.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; rp_provide_from_last p0002 space PN-BEGDA pn-endda.&lt;/P&gt;&lt;P&gt;&amp;gt;   IF PNP-SW-FOUND  = 1.&lt;/P&gt;&lt;P&gt;&amp;gt; * get last name&lt;/P&gt;&lt;P&gt;&amp;gt;     MOVE p0002-nachn TO g_nachn.&lt;/P&gt;&lt;P&gt;&amp;gt; *get first name&lt;/P&gt;&lt;P&gt;&amp;gt;     MOVE p0002-vorna TO g_vorna.&lt;/P&gt;&lt;P&gt;&amp;gt;   endif.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; ....do  the selection screen makes any differance....&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; i m using std one.....&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; plz suggest...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; and amit Gupta ---i am passing the values as shown above....as it is...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Rohit Kumar on Sep 17, 2008 6:26 PM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rohit&lt;/P&gt;&lt;P&gt;  The code is working fine for me, could you please post the values of pn-begda and pn-endda and the data(key fields) returned by LDB into the internal table P0002 and let us know as why you think LDB is not restricting the data. Here is the code that i've tested&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zytest.
INFOTYPES: 0000, " Actions
0001,            " Org Assignment
0002,            " Personal Data
0006,            " Address
0008,            " Basic Pay
1001,            " Relationships
0070,            " Court orders
0105,            " Communication
0041.            " Date Specification

*9000.
*---------------------------------------------------------------------

*TABLES
*---------------------------------------------------------------------
TABLES: pernr, "Standard Selections for HR Master Dat
t510,
pa0000,
hrp1001.

TYPE-POOLS: slis.

START-OF-SELECTION .
*Fetch Data from LDAP / Active Directory Server for reconcilation
*PERFORM get_ldap_data.

*Get SAP HR data
  rp_set_data_interval 'P0002' pn-begda pn-endda.
  rp-set-name-format.

GET pernr.
*PERFORM get_sap_data.

  rp_provide_from_last p0002 space pn-begda pn-endda.
  IF pnp-sw-found = 1.

*get last name
*MOVE p0002-nachn TO g_nachn.
**get first name
*MOVE p0002-vorna TO g_vorna.
  ENDIF.REPORT zytest.
INFOTYPES: 0000, " Actions
0001,            " Org Assignment
0002,            " Personal Data
0006,            " Address
0008,            " Basic Pay
1001,            " Relationships
0070,            " Court orders
0105,            " Communication
0041.            " Date Specification

*9000.
*---------------------------------------------------------------------

*TABLES
*---------------------------------------------------------------------
TABLES: pernr, "Standard Selections for HR Master Dat
t510,
pa0000,
hrp1001.

TYPE-POOLS: slis.

START-OF-SELECTION .
*Fetch Data from LDAP / Active Directory Server for reconcilation
*PERFORM get_ldap_data.

*Get SAP HR data
  rp_set_data_interval 'P0002' pn-begda pn-endda.
  rp-set-name-format.

GET pernr.
*PERFORM get_sap_data.

  rp_provide_from_last p0002 space pn-begda pn-endda.
  IF pnp-sw-found = 1.

*get last name
*MOVE p0002-nachn TO g_nachn.
**get first name
*MOVE p0002-vorna TO g_vorna.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 04:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413418#M1048653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T04:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413419#M1048654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value in PN-BEGDA &amp;amp; PN-ENDDA...is the same which is i m entering in the selection screen...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413419#M1048654</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-19T05:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413420#M1048655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i commented it but didnt work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413420#M1048655</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-19T05:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413421#M1048656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;i tried that also...&lt;/P&gt;&lt;P&gt;i jst copied ur code and tried alone ....bt still there is problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think ther must be some problem with  sonfig...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 05:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413421#M1048656</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-19T05:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413422#M1048657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Rajesh,,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; the value in PN-BEGDA &amp;amp; PN-ENDDA...is the same which is i m entering in the selection screen...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;  Could you please post the values of pn-begda, pn-endda and the values of the key fields in the records returned by the LDB into the internal table P0002&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 09:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413422#M1048657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413423#M1048658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as shown while debugging...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value which i have entered in selection screen :&lt;/P&gt;&lt;P&gt;PN-BEGDA                       20080901&lt;/P&gt;&lt;P&gt;PN-endda                         20080919     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in p0002:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERNR    INFTY SUBTY OBJPS SPRPS ENDDA    BEGDA    SEQNR AEDTM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;00000010|0002      |      |             |            |99991231|19670522| 000  |&lt;/P&gt;&lt;P&gt;00000010|0002 |          |     |                     |99991231|19670522| 000  | 20030&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is problem it is taking begda from begining....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz suggest ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 10:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413423#M1048658</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2008-09-19T10:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413424#M1048659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rohit,&lt;/P&gt;&lt;P&gt;Retrieving the Data by 'Get Pernr' will not restrict the data.&lt;/P&gt;&lt;P&gt;The whole data for a pernr will be retrieved at the Get pernr event no matter of ur pn-begda and pn-endda.&lt;/P&gt;&lt;P&gt;if u want to filter the data u have to use the macro's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 10:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413424#M1048659</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2008-09-19T10:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413425#M1048660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iu2019d say perform the following checks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Take employee # and run it for other period option &lt;/P&gt;&lt;P&gt;~ Look at employee data (all ITs you are accessing in your program one by one closely with open eyes, pay attention to dates u201C.&lt;/P&gt;&lt;P&gt;~ Run report and debug it and look data for every IT and make sure it is picking up all the records as period specified in report . Compare them with PA20/PA30 . &lt;/P&gt;&lt;P&gt;~ At last , see what you are getting in internal table . &lt;/P&gt;&lt;P&gt;~ If problem still exist , Comment any code before START-OF-SELECTION event . &lt;/P&gt;&lt;P&gt;~ Just use "Get Pernr" and write statement . Comment ALL ITs and just run it for one IT at a time . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iu2019m sure , youu2019ll find what is really going wrong . &lt;/P&gt;&lt;P&gt;Good Luck !&lt;/P&gt;&lt;P&gt;^Saquib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 10:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413425#M1048660</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2008-09-19T10:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: No Filtering  while using PNP DB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413426#M1048661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; as shown while debugging...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; the value which i have entered in selection screen :&lt;/P&gt;&lt;P&gt;&amp;gt; PN-BEGDA                       20080901&lt;/P&gt;&lt;P&gt;&amp;gt; PN-endda                         20080919     &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; and in p0002:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; PERNR    INFTY SUBTY OBJPS SPRPS ENDDA    BEGDA    SEQNR AEDTM&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; 00000010|0002      |      |             |            |99991231|19670522| 000  |&lt;/P&gt;&lt;P&gt;&amp;gt; 00000010|0002 |          |     |                     |99991231|19670522| 000  | 20030&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; there is problem it is taking begda from begining....&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; plz suggest ....&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Rohit&lt;/P&gt;&lt;P&gt;  The records returned by the LDB are absolutely fine, i don't see any issue with them,  since the 2 records  are valid in the date range given in the selection screen(pn-begda, pn-endda) the LDB returned those 2 records this is the expected behaviour of the system and the macro &lt;/P&gt;&lt;P&gt;rp_set_data_interval is working as it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to analyze the macro(rp_set_data_interval), delimit any of the 2 records returned by the LDB such that the enddate of the record is before pn-begda(20080901), now the LDB will not return the delimited record as the enddate of the record does not fall in the interval pn-begda, pn-endda.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;@Krishna Kishore : I totally agree with you, here in the example provided by Rohit as we are using the macro rp_set_data_interval we expect that the LDB should limit the records returned to the date range given in the selection screen(pn-begda, pn-endda) instead of returning all the records of the pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more option to totally restrict the records returned by the LDB is to add "MODE N" in the Infotypes declaration&lt;/P&gt;&lt;P&gt;itself. Please, check the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/4f/d527fb575e11d189270000e8322f96/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/4f/d527fb575e11d189270000e8322f96/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2008 09:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-filtering-while-using-pnp-db/m-p/4413426#M1048661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-21T09:56:03Z</dc:date>
    </item>
  </channel>
</rss>

