<?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: Convert perform subroutine into method using oops concepts in SAP ABAP. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795581#M2024597</link>
    <description>&lt;P&gt;Usually methods don't support TABLES parameters.&lt;/P&gt;&lt;P&gt;So wanted to know how exactly we translate the same.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 11:50:16 GMT</pubDate>
    <dc:creator>its_mkz</dc:creator>
    <dc:date>2023-08-09T11:50:16Z</dc:date>
    <item>
      <title>Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795577#M2024593</link>
      <description>&lt;P&gt;Greetings Abapers,&lt;/P&gt;
  &lt;P&gt;Need to translate-procedural subroutine call using internal table into method call using oops concepts.&lt;/P&gt;
  &lt;P&gt;Sample statement - &lt;/P&gt;
  &lt;P&gt;PERFORM f_test_subroutine TABLE lt_table .&lt;/P&gt;
  &lt;P&gt;------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt;FORM f_test_subroutine TABLES tab1 like gt_test.&lt;/P&gt;
  &lt;P&gt;ENDFORM.&lt;/P&gt;
  &lt;P&gt;------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt;Please provide definition and implementation of class as well.&lt;/P&gt;
  &lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 13:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795577#M2024593</guid>
      <dc:creator>its_mkz</dc:creator>
      <dc:date>2023-08-08T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795578#M2024594</link>
      <description>&lt;P&gt;Welcome to the SAP Community! Thank you for visiting us to get answers to your questions.&lt;/P&gt;&lt;P&gt;Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.&lt;/P&gt;&lt;P&gt;First, please see &lt;A rel="noopener noreferrer" href="https://community.sap.com/resources/questions-and-answers" target="_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as this resource page provides tips for preparing questions that draw responses from our members. Secondly, feel free to take our Q&amp;amp;A tutorial at &lt;A rel="noopener noreferrer" href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt; as well, as that will help you when submitting questions to the community.&lt;/P&gt;&lt;P&gt;Finally, I recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: &lt;A rel="noopener noreferrer" href="https://developers.sap.com/tutorials/community-profile.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 13:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795578#M2024594</guid>
      <dc:creator>moshenaveh</dc:creator>
      <dc:date>2023-08-08T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795579#M2024595</link>
      <description>&lt;P&gt;Seems quite basic, what is your problem rewriting form as method?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795579#M2024595</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-08T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795580#M2024596</link>
      <description>&lt;P&gt;Chat gpt can answer this kind of question reasonably well.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 07:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795580#M2024596</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-08-09T07:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795581#M2024597</link>
      <description>&lt;P&gt;Usually methods don't support TABLES parameters.&lt;/P&gt;&lt;P&gt;So wanted to know how exactly we translate the same.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 11:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795581#M2024597</guid>
      <dc:creator>its_mkz</dc:creator>
      <dc:date>2023-08-09T11:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795582#M2024598</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;BEGIN OF TYPE: ty_record,
  field1 TYPE i,
  field2 type char20,
END OF TYPE ty_record.

TYPE ty_records TYPE STANDARD TABLE OF ty_record WITH DEFAULT KEY.

CLASS myclass DEFINITION.
  PUBLIC SECTION.
    METHODS my_method
      IMPORTING i_records TYPE ty_records.
...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795582#M2024598</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-08-09T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert perform subroutine into method using oops concepts in SAP ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795583#M2024599</link>
      <description>&lt;P&gt;It's not "usually", "TABLES" parameter has been obsolete for a long time (at same time as subroutines I guess), and doesn't exist in methods. You pass internal tables by declaring a Table Type, and using it via IMPORTING, EXPORTING, CHANGING or RETURNING/RECEIVING.&lt;/P&gt;&lt;P&gt;TYPES your_type_name TYPE ... TABLE OF ...  (could be also a range type or a DDIC Table Type instead of TABLE OF)&lt;/P&gt;&lt;P&gt;METHODS ...&lt;/P&gt;&lt;P&gt;parameter_name TYPE your_type_name&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 14:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-perform-subroutine-into-method-using-oops-concepts-in-sap-abap/m-p/12795583#M2024599</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-09T14:01:23Z</dc:date>
    </item>
  </channel>
</rss>

