<?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: Creating global class in runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099872#M1814910</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;It is possible, but it is not best practice. You can check how the ABAP workbench does it: go to SE93, enter SE24, check which package it belongs to and then explore that package for suitable function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Feb 2014 21:48:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-16T21:48:51Z</dc:date>
    <item>
      <title>Creating global class in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099871#M1814909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it posible to create a global class in runtime? I have read that it is posible to create a perform in runtime, but i d´ont know if it is posible the creation of a global class in runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 18:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099871#M1814909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-16T18:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating global class in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099872#M1814910</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;It is possible, but it is not best practice. You can check how the ABAP workbench does it: go to SE93, enter SE24, check which package it belongs to and then explore that package for suitable function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 21:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099872#M1814910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-16T21:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating global class in runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099873#M1814911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is possible to create a local class in runtime. The same way you can generate a routine, you can also generate a class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the itab1 you push your class definition (texts). In prog you will fetch the generated programname and in mess, the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab1 TYPE TABLE OF string. &lt;/P&gt;&lt;P&gt;DATA prog TYPE string. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;GENERATE SUBROUTINE POOL itab1 NAME prog MESSAGE mess. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And then you can call it by combining the programname and the class name which is defined in you itab1, you can call a method.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONCATENATE `\PROGRAM=` prog `\CLASS=&amp;lt;yourclassname&amp;gt;` INTO class. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD (class)=&amp;gt;meth &lt;/P&gt;&lt;P&gt; PARAMETER-TABLE &lt;/P&gt;&lt;P&gt; ptab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best, &lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 21:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-global-class-in-runtime/m-p/10099873#M1814911</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-02-16T21:53:01Z</dc:date>
    </item>
  </channel>
</rss>

