<?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 Using OO Abap programming optimally in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618063#M1440035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed a report purely on Object Oriented concepts.It works really fine.&lt;/P&gt;&lt;P&gt;Now my requirement is that in one of my module pool program i want to retrieve some data from that report itself&lt;/P&gt;&lt;P&gt;and show in my Input help. I deliberately made this report OO as i had anticipated that it will be required to me in future.&lt;/P&gt;&lt;P&gt;Now time has come.I want to call some method of the defined class.It is at this point that i am ignorant how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methodi want to call from different program is that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch_lc_info ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain you the structure of program which i am willing to call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;report zsammrp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include zdata_definitions.             //I definitions&lt;/P&gt;&lt;P&gt;include zselect_lc_params.         // selection screen&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;include zmainlc.                           //main logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;Class Declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data : ob_get_all_lcinfo type ref to get_lc_details.&lt;/P&gt;&lt;P&gt;data: ob_alv_print type ref to alvprint.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;Perform functionalities&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;create object ob_get_all_lcinfo.&lt;/P&gt;&lt;P&gt;ob_get_all_lcinfo-&amp;gt;fetch_lc_info( ).&lt;/P&gt;&lt;P&gt;create object ob_alv_print.&lt;/P&gt;&lt;P&gt;ob_alv_print-&amp;gt;print_details( ).&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me show the zmainlc where i defined classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;class get_lc_details definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;methods: fetch_lc_info.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class get_lc_details implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method fetch_lc_info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;werks a&lt;SUB&gt;menge a&lt;/SUB&gt;meins&lt;/P&gt;&lt;P&gt;          b&lt;SUB&gt;bedat a&lt;/SUB&gt;matnr a&lt;SUB&gt;txz01 a&lt;/SUB&gt;netwr b&lt;SUB&gt;waers b&lt;/SUB&gt;wkurs a&lt;SUB&gt;netpr a&lt;/SUB&gt;zztest a&lt;SUB&gt;zzlcbt b&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;       from ekko as b inner join ekpo as a on&lt;/P&gt;&lt;P&gt;( a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln ) into table t_all_lcs where b~bsart like 'IM%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some other manipulation on this table done..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmehod.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 11:47:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-11T11:47:40Z</dc:date>
    <item>
      <title>Using OO Abap programming optimally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618063#M1440035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed a report purely on Object Oriented concepts.It works really fine.&lt;/P&gt;&lt;P&gt;Now my requirement is that in one of my module pool program i want to retrieve some data from that report itself&lt;/P&gt;&lt;P&gt;and show in my Input help. I deliberately made this report OO as i had anticipated that it will be required to me in future.&lt;/P&gt;&lt;P&gt;Now time has come.I want to call some method of the defined class.It is at this point that i am ignorant how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methodi want to call from different program is that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch_lc_info ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain you the structure of program which i am willing to call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;report zsammrp01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include zdata_definitions.             //I definitions&lt;/P&gt;&lt;P&gt;include zselect_lc_params.         // selection screen&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;include zmainlc.                           //main logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;Class Declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;data : ob_get_all_lcinfo type ref to get_lc_details.&lt;/P&gt;&lt;P&gt;data: ob_alv_print type ref to alvprint.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;Perform functionalities&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;create object ob_get_all_lcinfo.&lt;/P&gt;&lt;P&gt;ob_get_all_lcinfo-&amp;gt;fetch_lc_info( ).&lt;/P&gt;&lt;P&gt;create object ob_alv_print.&lt;/P&gt;&lt;P&gt;ob_alv_print-&amp;gt;print_details( ).&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me show the zmainlc where i defined classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;class get_lc_details definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;methods: fetch_lc_info.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class get_lc_details implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method fetch_lc_info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;werks a&lt;SUB&gt;menge a&lt;/SUB&gt;meins&lt;/P&gt;&lt;P&gt;          b&lt;SUB&gt;bedat a&lt;/SUB&gt;matnr a&lt;SUB&gt;txz01 a&lt;/SUB&gt;netwr b&lt;SUB&gt;waers b&lt;/SUB&gt;wkurs a&lt;SUB&gt;netpr a&lt;/SUB&gt;zztest a&lt;SUB&gt;zzlcbt b&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;       from ekko as b inner join ekpo as a on&lt;/P&gt;&lt;P&gt;( a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln ) into table t_all_lcs where b~bsart like 'IM%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some other manipulation on this table done..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmehod.&lt;/P&gt;&lt;P&gt;[/code]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618063#M1440035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T11:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using OO Abap programming optimally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618064#M1440036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;from your explanation, i get that you defined and implemented your classes locally.&lt;/P&gt;&lt;P&gt;To use local classes from outside their context is not supported, (though not impossible).&lt;/P&gt;&lt;P&gt;Instead, you can convert your local classes to global ones by accessing them by  SE24 , using the import feature from the menu. Once they are globally defined, you can use them with every Program you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Besides, there is an OO Forum)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618064#M1440036</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2010-02-11T12:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using OO Abap programming optimally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618065#M1440037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if not impossible plz tell me that way as i am not interested to create any Z object in my system.Its prohibited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618065#M1440037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T12:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using OO Abap programming optimally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618066#M1440038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;the issue has been discussed in the OO forum. Take a look here&lt;/P&gt;&lt;P&gt;[]&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618066#M1440038</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2010-02-11T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using OO Abap programming optimally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618067#M1440039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition, it would be wise to put your classes into separate includes, so you'd just have to include them to ypour prog. This is the original idea of includes, to reuse them elesewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618067#M1440039</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2010-02-11T12:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using OO Abap programming optimally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618068#M1440040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for your suggestions and link is highly useful at this hour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 12:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-oo-abap-programming-optimally/m-p/6618068#M1440040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T12:26:34Z</dc:date>
    </item>
  </channel>
</rss>

