<?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: User tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664644#M294346</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;for a standard organisation they will be storing all employee/personal data for communication in "communications Infotype" where different subtype shows mail id,phone number etc....usually it is a custom developed infotype ...it will be starting with PAxxxx....&lt;/P&gt;&lt;P&gt;eg:pa9006...its a very large place to hunt down......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Oct 2006 08:13:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-22T08:13:38Z</dc:date>
    <item>
      <title>User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664640#M294342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Frenz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in which tables i can find username, user's address, phone number, email id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have user ID... i need to print other details also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 18:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664640#M294342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T18:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664641#M294343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the user address information from the ADRC, and ADR6 tables.   Check ADRC to get the relevant fields for address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, here is how to join the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: begin of user_info,
      bname type usr21-bname,
      name_text type adrp-name_text,
      tel_number type adcp-tel_number,
      tel_extens type adcp-tel_extens,
      smtp_addr type adr6-smtp_addr,
      end of user_info.


* Get User Data
clear user_info.
select single  usr21~bname adrp~name_text adcp~tel_number
        adcp~tel_extens adr6~smtp_addr
                into corresponding fields of  user_info
                  from usr21
                  inner join adrc
                    on  usr21~addrnumber = adrc~addrnumber
                  inner join adrp
                    on  usr21~persnumber = adrp~persnumber
                  inner join adcp
                    on  usr21~addrnumber = adcp~addrnumber
                    and usr21~persnumber = adcp~persnumber
                  inner join adr6
                    on  adcp~addrnumber = adr6~addrnumber
                    and adcp~persnumber = adr6~persnumber
                            where usr21~bname = sy-uname.


write:/ user_info-bname, user_info-name_text, user_info-tel_number,
        user_info-tel_extens, user_info-smtp_addr.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 18:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664641#M294343</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-20T18:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664642#M294344</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;Check the following tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USR01&lt;/P&gt;&lt;P&gt;USR02&lt;/P&gt;&lt;P&gt;USR03..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the BAPI BAPI_USER_GET_DETAIL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 18:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664642#M294344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T18:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664643#M294345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use FM SUSR_USER_ADDRESS_GET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 18:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664643#M294345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664644#M294346</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;for a standard organisation they will be storing all employee/personal data for communication in "communications Infotype" where different subtype shows mail id,phone number etc....usually it is a custom developed infotype ...it will be starting with PAxxxx....&lt;/P&gt;&lt;P&gt;eg:pa9006...its a very large place to hunt down......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Oct 2006 08:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664644#M294346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-22T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664645#M294347</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;one more point----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try &amp;lt;b&amp;gt;pa0105&amp;lt;/b&amp;gt; table with subtype &amp;lt;u&amp;gt;20&amp;lt;/u&amp;gt; for &amp;lt;u&amp;gt;phone number&amp;lt;/u&amp;gt;field =&amp;gt;usrid&lt;/P&gt;&lt;P&gt;pa0105 table with subtype &amp;lt;u&amp;gt;10&amp;lt;/u&amp;gt; for &amp;lt;u&amp;gt;mail id&amp;lt;/u&amp;gt;field =&amp;gt;usrid_long&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is a communication table and a standard infotype..varying subtypes could give you your desired results  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Oct 2006 11:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664645#M294347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-22T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: User tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664646#M294348</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;Check this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single pernr uname&lt;/P&gt;&lt;P&gt;from pa0105&lt;/P&gt;&lt;P&gt;into ( l_pernr, l_user )&lt;/P&gt;&lt;P&gt;where subty = '0001'&lt;/P&gt;&lt;P&gt;and   usrid = sy-user.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for subty 0010 in pa0105, you will get the e-mail id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the help of this pernr, do a select on pa0006 to get the details like address and phone number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (fields required)&lt;/P&gt;&lt;P&gt;from pa0006&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;where pernr = l_pernr&lt;/P&gt;&lt;P&gt;and   subty = '1'&lt;/P&gt;&lt;P&gt;and endda = '99991231'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Navneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 21:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-tables/m-p/1664646#M294348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T21:20:43Z</dc:date>
    </item>
  </channel>
</rss>

