<?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: Auto Generate Method in a class through report. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736343#M2020780</link>
    <description>&lt;P&gt;It's certainly possible - I've done it. But it was a while ago and I don't have access to that system. I found it through searching this site.&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 08:19:47 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2023-05-29T08:19:47Z</dc:date>
    <item>
      <title>Auto Generate Method in a class through report.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736342#M2020779</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I want to write a report in which the input parameter is the name of the class. Once the report is executed, a method should be auto generated in the class.&lt;/P&gt;
  &lt;P&gt;Can someone help me with the report.&lt;/P&gt;
  &lt;P&gt;Thanks and Regards,&lt;/P&gt;
  &lt;P&gt;Wajiha Fathima&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 06:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736342#M2020779</guid>
      <dc:creator>fathimawajiha</dc:creator>
      <dc:date>2023-05-29T06:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Generate Method in a class through report.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736343#M2020780</link>
      <description>&lt;P&gt;It's certainly possible - I've done it. But it was a while ago and I don't have access to that system. I found it through searching this site.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736343#M2020780</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-05-29T08:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Generate Method in a class through report.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736344#M2020781</link>
      <description>&lt;P&gt;You can certainly trust the way it was done in &lt;A href="https://github.com/abapGit/abapGit"&gt;abapGit&lt;/A&gt; (used by many people, code running on many ABAP versions, tool frequently updated, ...)&lt;/P&gt;&lt;P&gt;You didn't say if it was a class pool or a local class.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If it's a class pool, look at how it's done by the class &lt;A href="https://github.com/abapGit/abapGit/blob/15e755d5c512809fa1900e3e3d3cae996c29904c/src/objects/oo/zcl_abapgit_oo_class.clas.abap#L663-L764"&gt;zcl_abapgit_oo_class&lt;/A&gt; (&lt;B&gt;deserialize_source&lt;/B&gt; method and all implied methods).&lt;/LI&gt;&lt;LI&gt;If it's a local class (in an executable program, function group or class pool), &lt;STRONG&gt;the code you will have to do is probably much easier. So, even if you want to have your method generated in a class pool, you may possibly think about regenerating the method in the local part of the class pool.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The difference with what you want to achieve is that the code is oriented to create/recreate the whole objects, so either you don't bother and just reuse the existing tool, or you take just what you need.&lt;/P&gt;&lt;P&gt;Don't forget to give credits to abapGit in your source code.&lt;/P&gt;&lt;P&gt;cc author &lt;SPAN class="mention-scrubbed"&gt;lars.hvam&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 09:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736344#M2020781</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-29T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Generate Method in a class through report.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736345#M2020782</link>
      <description>&lt;P&gt;Hi Sandra Rossi,&lt;/P&gt;&lt;P&gt;Thank you for the solution but, I want to create in a local class using any function module or any class method.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wajiha Fathima&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736345#M2020782</guid>
      <dc:creator>fathimawajiha</dc:creator>
      <dc:date>2023-05-29T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Generate Method in a class through report.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736346#M2020783</link>
      <description>&lt;P&gt;In that case, I just mentioned "probably much easier" and you can still look at abapGit how it does it, as I have mentioned.&lt;/P&gt;&lt;P&gt;Whatever solution you use, it will not be supported by SAP and not recommended (the only ABAP code generation supported is GENERATE SUBROUTINE POOL), so if you really want to do it, you may use the sole ABAP statement "&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abapinsert_report.htm"&gt;INSERT REPORT&lt;/A&gt;" to replace the code of one include (in which you have your local class).&lt;/P&gt;&lt;P&gt;You also have lots of questions and answers about ABAP code generation.&lt;/P&gt;&lt;P&gt;NB: please clarify where your local class is (definition, implementation), you still didn't explain. That makes your question more difficult to answer...&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 16:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auto-generate-method-in-a-class-through-report/m-p/12736346#M2020783</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-29T16:03:23Z</dc:date>
    </item>
  </channel>
</rss>

