<?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: problem with method cl_os_system=&amp;gt;get_class_agent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885132#M1479194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aahh.. stupid.. I just overlooked this information when looking up SEOCLSKEY in se11.. &lt;/P&gt;&lt;P&gt;Thx. Problem solved!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 14:18:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-06T14:18:03Z</dc:date>
    <item>
      <title>problem with method cl_os_system=&gt;get_class_agent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885130#M1479192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey everybody,&lt;/P&gt;&lt;P&gt;maybe this is a silly question (I apologize in advance), but I'm just wondering about method get_class_agent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why doesn't it work like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA lo_gp_agent TYPE REF TO ZCL_SAMPLE1.

lo_agent ?= cl_os_system=&amp;gt;get_class_agent( 'ZCL_SAMPLE1' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i declare a variable  of type seoclskey and put the name of the variable into brackets it will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_gp_agent TYPE REF TO ZCL_SAMPLE1,
                      lv_clsname TYPE seoclskey. 

lo_agent ?= cl_os_system=&amp;gt;get_class_agent( lv_clsname ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this is very comfortable.. whenever I want to reference to another class agent I have to set lv_clsname?! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have an idea why the first coding doesn't work?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx. Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 13:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885130#M1479192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T13:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem with method cl_os_system=&gt;get_class_agent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885131#M1479193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is because SEOCLSKEY is the structure, not a Data Element. If it could be data element you can directly use the Class name in the I_CLASS_NAME. I guess, we don't have any other option other than taking the helper variable (LV_CLS_NAME type SEOCLSKEY) for the Class Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 14:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885131#M1479193</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2010-05-06T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with method cl_os_system=&gt;get_class_agent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885132#M1479194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aahh.. stupid.. I just overlooked this information when looking up SEOCLSKEY in se11.. &lt;/P&gt;&lt;P&gt;Thx. Problem solved!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 14:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-method-cl-os-system-gt-get-class-agent/m-p/6885132#M1479194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T14:18:03Z</dc:date>
    </item>
  </channel>
</rss>

