<?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 Problem while using a methid or class in ABAP code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970955#M948503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to fetch the personalization data for a user from SU01. I guess there is method called get_data of class CL_PERS_ADMIN which I can use to fetch the data. How can I use this in my custom program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I directly used like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at I_KEYROLEUSERS.&lt;/P&gt;&lt;P&gt;call method CL_PERS_ADMIN-&amp;gt;GET_OBJECT&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      p_pers_key          = 'LAW_PERS'&lt;/P&gt;&lt;P&gt;      p_uname             = I_KEYROLEUSERS-UNAME&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     p_rfc               = p_rfc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      p_object            = p_object&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      default_not_set     = 1&lt;/P&gt;&lt;P&gt;      internal_error      = 2&lt;/P&gt;&lt;P&gt;      user_does_not_exist = 3&lt;/P&gt;&lt;P&gt;      pers_key_not_found  = 4&lt;/P&gt;&lt;P&gt;      rfc_connection_failed = 5&lt;/P&gt;&lt;P&gt;      others              = 6.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get an error saying "Field CL_PERS_ADMIN-&amp;gt;GET_OBJECT" is unknown. It is  niether one of specified table nor defined by 'DATA' statement.&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 15:10:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T15:10:42Z</dc:date>
    <item>
      <title>Problem while using a methid or class in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970955#M948503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to fetch the personalization data for a user from SU01. I guess there is method called get_data of class CL_PERS_ADMIN which I can use to fetch the data. How can I use this in my custom program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I directly used like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at I_KEYROLEUSERS.&lt;/P&gt;&lt;P&gt;call method CL_PERS_ADMIN-&amp;gt;GET_OBJECT&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      p_pers_key          = 'LAW_PERS'&lt;/P&gt;&lt;P&gt;      p_uname             = I_KEYROLEUSERS-UNAME&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     p_rfc               = p_rfc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      p_object            = p_object&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      default_not_set     = 1&lt;/P&gt;&lt;P&gt;      internal_error      = 2&lt;/P&gt;&lt;P&gt;      user_does_not_exist = 3&lt;/P&gt;&lt;P&gt;      pers_key_not_found  = 4&lt;/P&gt;&lt;P&gt;      rfc_connection_failed = 5&lt;/P&gt;&lt;P&gt;      others              = 6.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get an error saying "Field CL_PERS_ADMIN-&amp;gt;GET_OBJECT" is unknown. It is  niether one of specified table nor defined by 'DATA' statement.&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 15:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970955#M948503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T15:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using a methid or class in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970956#M948504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh Thomas,&lt;/P&gt;&lt;P&gt;                                 You need to create a reference  variable for the class that you are trying make use a method. and call the method  using the variabe like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;DATA: lr_typedesc TYPE REF TO CL_PERS_ADMIN.&lt;/P&gt;&lt;P&gt;lr_typedesc-&amp;gt;GET_OBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 15:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970956#M948504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using a methid or class in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970957#M948505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you create object reference as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: object_ref  type ref CL_PERS_ADMIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT object_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 15:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970957#M948505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T15:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using a methid or class in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970958#M948506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data: lcl_pers_adm TYPE REF TO CL_PERS_ADMIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREAT OBJECT lcl_pers_adm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at I_KEYROLEUSERS.&lt;/P&gt;&lt;P&gt;call method lcl_pers_adm-&amp;gt;GET_OBJECT&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;p_pers_key = 'LAW_PERS'&lt;/P&gt;&lt;P&gt;p_uname = I_KEYROLEUSERS-UNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_rfc = p_rfc &lt;/P&gt;&lt;P&gt;receiving&lt;/P&gt;&lt;P&gt;p_object = p_object&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;default_not_set = 1&lt;/P&gt;&lt;P&gt;internal_error = 2&lt;/P&gt;&lt;P&gt;user_does_not_exist = 3&lt;/P&gt;&lt;P&gt;pers_key_not_found = 4&lt;/P&gt;&lt;P&gt;rfc_connection_failed = 5&lt;/P&gt;&lt;P&gt;others = 6.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jun 23, 2008 10:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 15:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970958#M948506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using a methid or class in ABAP code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970959#M948507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Try to use like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at I_KEYROLEUSERS.&lt;/P&gt;&lt;P&gt;call method CL_PERS_ADMIN=&amp;gt;GET_OBJECT&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;p_pers_key = 'LAW_PERS'&lt;/P&gt;&lt;P&gt;p_uname = I_KEYROLEUSERS-UNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_rfc = p_rfc &lt;/P&gt;&lt;P&gt;receiving&lt;/P&gt;&lt;P&gt;p_object = p_object&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;default_not_set = 1&lt;/P&gt;&lt;P&gt;internal_error = 2&lt;/P&gt;&lt;P&gt;user_does_not_exist = 3&lt;/P&gt;&lt;P&gt;pers_key_not_found = 4&lt;/P&gt;&lt;P&gt;rfc_connection_failed = 5&lt;/P&gt;&lt;P&gt;others = 6.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 22:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-using-a-methid-or-class-in-abap-code/m-p/3970959#M948507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T22:52:36Z</dc:date>
    </item>
  </channel>
</rss>

