<?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: HR ABAP Doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615399#M1087483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if you've given validity time on the selection screen, if not that simply the actual data is selected only, if yes, than accordingly to the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2008 15:24:58 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-10-23T15:24:58Z</dc:date>
    <item>
      <title>HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615393#M1087477</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;I have two pieces of code and i thought they will do the same , but they have different outputs. Please let me know why i get different outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZBALAHRTEST.
data i type i.
nodes pernr.
INFOTYPES : 0000,0001,0002,0003,0004,0005,0006,0007.

get pernr.

if p0001-pernr = '0000001'.
   write : p0001-begda , p0001-endda.  
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;23.09.2008 31.12.9999 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZBALAHRTEST1.

tables pa0001.

SELECT * from pa0001 where pernr = '00000001'.
  write :/, pa0001-begda,pa0001-endda.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01.06.2008 22.09.2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;23.09.2008 31.12.9999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this mean get pernr retrieves only the latest record from the infotype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 14:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615393#M1087477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615394#M1087478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the first case the program works with logical DB (Menu: Goto ==&amp;gt; Attributes), pls. have a look how the ldb selects the data!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615394#M1087478</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-23T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615395#M1087479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Eric...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you help me find out how ldb works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will tell my understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LDB uses joins to combine data from several tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that so Eric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615395#M1087479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615396#M1087480</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; LDB uses joins to combine data from several tables.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not necessary the case (and I am almost 100% sure, that it is not the case here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First check in the programm attributes, the name of the LDB. Display it in SE36 and have a look what it is doing. If stucked, just let me know, but I'll need the name of the LDB!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615396#M1087480</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-23T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615397#M1087481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LDB i am using is PNP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615397#M1087481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T15:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615398#M1087482</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,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have two pieces of code and i thought they will do the same , but they have different outputs. Please let me know why i get different outputs.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;code 1:&lt;/STRONG&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; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;REPORT  ZBALAHRTEST.
&amp;gt; data i type i.
&amp;gt; nodes pernr.
&amp;gt; INFOTYPES : 0000,0001,0002,0003,0004,0005,0006,0007.
&amp;gt; 
&amp;gt; get pernr.
&amp;gt; 
&amp;gt; if p0001-pernr = '0000001'.
&amp;gt;    write : p0001-begda , p0001-endda.  
&amp;gt; endif.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; 23.09.2008 31.12.9999 &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The second code.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZBALAHRTEST1.
&amp;gt; 
&amp;gt; tables pa0001.
&amp;gt; 
&amp;gt; SELECT * from pa0001 where pernr = '00000001'.
&amp;gt;   write :/, pa0001-begda,pa0001-endda.
&amp;gt; ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;Output:&lt;/STRONG&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; 01.06.2008 22.09.2008&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; 23.09.2008 31.12.9999&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; does this mean get pernr retrieves only the latest record from the infotype.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Kindly help gurus.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;gt; Bala&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data i type i.
 nodes pernr.
 INFOTYPES : 0000,0001,0002,0003,0004,0005,0006,0007.
  get pernr.
     LOOP AT p0001.
       write:/  p0001-begda , p0001-endda. 
     ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make this above change to your first code and check the results&lt;/P&gt;&lt;P&gt;the LDB populates the table P0001 with all the records of PA0001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615398#M1087482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615399#M1087483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if you've given validity time on the selection screen, if not that simply the actual data is selected only, if yes, than accordingly to the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615399#M1087483</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-23T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615400#M1087484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The INFOTYPES:0001 statement declares an internal table p0001 of the dd structure p0001 with a header line.&lt;/P&gt;&lt;P&gt;The GET PERNR event loads the itab p0001 for each pernr, with all the relevant records that satisfy the selection screen crtireia &amp;amp; the inherent authorization checks built into the  PNP.&lt;/P&gt;&lt;P&gt;When you simply access p0001-begda after get pernr, you will in fact get what is in the header.&lt;/P&gt;&lt;P&gt;If you loop at P0001, you will see all the records, that you got using the SELECT on PA0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 15:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615400#M1087484</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2008-10-23T15:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615401#M1087485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi see the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZBALAHRINFOTYPES.

nodes pernr.

INFOTYPES : 0000.

get pernr.

write p0000-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case i should get only one pernr as output here. but in the output i get all pernr's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 04:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615401#M1087485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T04:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615402#M1087486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi eric ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is i want to know what actually is what get pernr does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET pernr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think it populates the tables p0000,p0001, ....... alone ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but populates and loops through them&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;because the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;nodes pernr.
INFOTYPES :0000.
get pernr.
WRITE p0000-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives all the pernr in the system..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont worry about the output here or selections i make. i just want to know what &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get pernr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does.I am a very much a beginner in abap. please help gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Bala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 04:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615402#M1087486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T04:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: HR ABAP Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615403#M1087487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bala: Suresh is right, I overlooked. The statement INFOTYPES 0001 defines an internal table (p0001) with header line, and the statement WRITE p0000-pernr actually prints the header line of this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"nodes pernr.&lt;/P&gt;&lt;P&gt;INFOTYPES :0000.&lt;/P&gt;&lt;P&gt;get pernr.&lt;/P&gt;&lt;P&gt;WRITE p0000-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives all the pernr in the system.."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is true, but it gives only one pernr at a time (works like a LOOP, the code after GET will run as many times, as number of employees are selected), you can check this easily in debug, just put a breakpoint on the WRITE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 06:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-abap-doubt/m-p/4615403#M1087487</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-24T06:58:28Z</dc:date>
    </item>
  </channel>
</rss>

