<?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 Accessing Infotype data in dialog program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223957#M1379566</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;In Dialog programs attributes I didn't see any logical database field. How can I access Infotype data into dialog program without specifying the Logical database(i.e. PNP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Oct 2009 22:26:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-18T22:26:43Z</dc:date>
    <item>
      <title>Accessing Infotype data in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223957#M1379566</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;In Dialog programs attributes I didn't see any logical database field. How can I access Infotype data into dialog program without specifying the Logical database(i.e. PNP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 22:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223957#M1379566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T22:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Infotype data in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223958#M1379567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we access PA0001 PA0002 using normal SQL statements?&lt;/P&gt;&lt;P&gt;Lat me try and get back for more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 22:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223958#M1379567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T22:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Infotype data in dialog program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223959#M1379568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Vivek,
&amp;lt;li&amp;gt;You can access HR infotype tables data without LDB mentioned in Program attributes or in module or dialog program.
&amp;lt;li&amp;gt;Method - 1
    &lt;PRE&gt;&lt;CODE&gt;DATA  it_p0001 LIKE p0001 OCCURS 100 WITH HEADER LINE.
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        tclas     = 'A'        " Master Data and Time Data
        pernr     = '00001001' " Employee Number
        infty     = '0001'     " Infotype number
        begda     = '18000101' " It gets all the records existed for employee in the table PA0001
        endda     = '99991231' " It gets all the records existed for employee in the table PA0001
      TABLES
        infty_tab = it_p0001.
    "Loop your internal table and get the required information&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Method - 2
    &lt;PRE&gt;&lt;CODE&gt;
    INFOTYPES:0001.
    INCLUDE dbpnpmac.
    rp_read_infotype '00001001' '0001' p0001 '18000101' '99991231'.
    "Loop your internal table and get the required information

    " rp_read_infotype a b c d e.
    "----------------------------
    " a        Requested Personalnumber
    " b        Requested Infotypnumber
    " c        Output Table Like PNNNN
    " d        Requested Interval-Begin
    " e        Requested Interval-End&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Method - 3
    &lt;PRE&gt;&lt;CODE&gt;DATA  it_p0001 LIKE p0001 OCCURS 100 WITH HEADER LINE.
    SELECT *
      FROM pa0001
      INTO TABLE it_p0001
     WHERE  pernr = '00001001'
      AND   begda GE s_date-low  "date given on selection-screen
      AND   endda LE s_date-high."date given on selection-screen
    "Loop your internal table and get the required information&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it helps you.
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 02:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-infotype-data-in-dialog-program/m-p/6223959#M1379568</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-19T02:06:19Z</dc:date>
    </item>
  </channel>
</rss>

