<?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: Need help in OO programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389245#M1404505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I simply want to return an internal table from a method.Moreover opinions say that for every internal table you return make a Z table in your dictionary. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where do u see any Ztype declaration in the code above? Here is local table type ty_t_vector and a method returning internal table of this type. i haven't expected u are even not able to read the simpliest abap code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2009 06:48:32 GMT</pubDate>
    <dc:creator>Petr_Plenkov</dc:creator>
    <dc:date>2009-11-18T06:48:32Z</dc:date>
    <item>
      <title>Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389237#M1404497</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 am looking a way out by which i provide a single value as a parameter to a method .Assume single value is N.&lt;/P&gt;&lt;P&gt;and which could return me an internal table.I read it is not possible with returning.Any other way ?.&lt;/P&gt;&lt;P&gt;Also,What is returning then used for ?.It will be great if ii could get some examples.I could not see any example where&lt;/P&gt;&lt;P&gt;any internal table is returned.To pass though looks possible using parameter-tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 04:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389237#M1404497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T04:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389238#M1404498</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;If i compare with java, if i use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vector x;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public Vector method(int x)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;return(Vector)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;x = method(1);&lt;/P&gt;&lt;P&gt;// I will expect x getting values in Vector&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn;t this concept applicable in java using method and returning internal table.If no what is OO  abap made for ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 04:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389238#M1404498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T04:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389239#M1404499</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;Please refer to the below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20b50a75-0330-2c10-bf86-a2e4b7ab64ba&amp;amp;overridelayout=true" target="test_blank"&gt;http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20b50a75-0330-2c10-bf86-a2e4b7ab64ba&amp;amp;overridelayout=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhanalakshmi L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389239#M1404499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389240#M1404500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know gentleman dhanlakshmi what u mean by asking me to visit this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,i tried to find forums of same issue.I got solution saying one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi urjose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the solution.&lt;/P&gt;&lt;P&gt;Just follow these steps.&lt;/P&gt;&lt;P&gt;1)In the main program, you have defined your internal table as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;include structure kna1.&lt;/P&gt;&lt;P&gt;data: end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) After creating and initializing the object , call the method of the class as:&lt;/P&gt;&lt;P&gt;call emp-&amp;gt;get_table exporting int_table = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Go to se11, create a table type of kna1 say ztabtype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) In se24, in the methods section, define the method get_table . In the parameters section,give &lt;/P&gt;&lt;P&gt;int_table importing type ztabtype.Give some description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) In the implementation, for accessing the values,&lt;/P&gt;&lt;P&gt;do as follows.&lt;/P&gt;&lt;P&gt;method get_table.&lt;/P&gt;&lt;P&gt;data: wa_itab type kna1.&lt;/P&gt;&lt;P&gt;loop at int_table into wa_itab.&lt;/P&gt;&lt;P&gt;now u can access the contents using wa_itab.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This co-mensurates to many view i got to my current problem.&lt;/P&gt;&lt;P&gt;All i need to say that if programming in OO- abap is that bit ugly that every type has to be defined in your dictionary.&lt;/P&gt;&lt;P&gt;I was much-much happy using traditional approach.I am surprised  that if i  want to return an internal table of  structure  mseg,that&lt;/P&gt;&lt;P&gt;means i goto dictionary and create some ZMSEG and give each and every entry creating duplicate mseg !!!!!!.Ins't this creating&lt;/P&gt;&lt;P&gt;junk in your dictionary.Further what is the guarantee that tomorrow , i migrate from SAP 4.7 to ECC 6.0 ,all Z Objects will be&lt;/P&gt;&lt;P&gt;taken care of !!! .This is complete **** !!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389240#M1404500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389241#M1404501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz plz plz experts, i am desperately waiting for your views as today may become a significant day in my life which will be &lt;/P&gt;&lt;P&gt;rolling back to my original approach which has been tradiitonal so long.Also ,as i have not worked on netweaver,do they use same principles !! ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389241#M1404501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389242#M1404502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cant even i define table types in global subroutines ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389242#M1404502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389243#M1404503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;As i understand u need to get something like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;program zjdtest.

types: begin of ty_s_vector,
         a type c,
         b type c,
*        ....
       end of ty_s_vector,
       ty_t_vector type standard table of ty_s_vector
         with default key.

data: lt_vector type ty_t_vector.

class lcl_report definition.
  public section.
    class-methods: method1 importing id_parameter type i
                           returning value(rt_vector) type ty_t_vector.
endclass.

class lcl_report implementation.
  method method1.
*    rt_vector = " something that have been calculated.
  endmethod.
endclass.

start-of-selection.

  lt_vector = lcl_report=&amp;gt;method1( 1 ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Petr.Plenkov on Nov 18, 2009 7:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389243#M1404503</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-11-18T06:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389244#M1404504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no petr,i quoted Vector just as an example from Java - OO perspective. I simply want to return an internal table from &lt;/P&gt;&lt;P&gt;a method.Moreover opinions say that for every internal table you return make a Z table in your dictionary.This is not&lt;/P&gt;&lt;P&gt;acceptable to us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389244#M1404504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389245#M1404505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I simply want to return an internal table from a method.Moreover opinions say that for every internal table you return make a Z table in your dictionary. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where do u see any Ztype declaration in the code above? Here is local table type ty_t_vector and a method returning internal table of this type. i haven't expected u are even not able to read the simpliest abap code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389245#M1404505</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-11-18T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389246#M1404506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i correct myself Z tabletype not z table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389246#M1404506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389247#M1404507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry petr, i give it a try .Believe me i got a little disturbed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 06:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389247#M1404507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T06:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in OO programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389248#M1404508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx petr your techniqe has worked.This means lot of misconception is there between consultants who have been guiding each other in a way like creating Z objects on SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for my comments which were dipped in ignorance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr you deserve full marks here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 07:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-in-oo-programming/m-p/6389248#M1404508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T07:36:33Z</dc:date>
    </item>
  </channel>
</rss>

