<?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: Atrributes Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401576#M1046255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not good idea to analog the Attribute to FM's parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can think like: &lt;/P&gt;&lt;P&gt;Class could have multiple Methods with Import / Export parameter and with some Attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group could have mutliple Function Modules with parameters and with some Global data declaration. Now, if you want to access this global data from outside the FG, than you need to wrap it up in another FM and pass it to calling application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In class, you can set the attribute and access them from your application, provided it has Public Visibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, assume that you have a class ZCL_ORDER. This has the method GET_ORDER which can accept the Sales Order and give back the Item data (VBAP). It has one attribute for VBAK to save the header data. This attribute is being set in the same method GET_ORDER.&lt;/P&gt;&lt;P&gt;From your application, you have created an instance of the object. After calling the GET_ORDER method, later in the application you need to know the Header data of the same Order. Here you can just acess the VBAK attribute of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2008 20:25:37 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-08-28T20:25:37Z</dc:date>
    <item>
      <title>Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401575#M1046254</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;i learn now Abap OO and i little  confused (i search in the forum),&lt;/P&gt;&lt;P&gt;what i use  in attributes  .&lt;/P&gt;&lt;P&gt;Maybe someone can give me Example from the FM world.&lt;/P&gt;&lt;P&gt;in fm i declare import Export Tables ...Data Types ....&lt;/P&gt;&lt;P&gt;What is &lt;STRONG&gt;analogous&lt;/STRONG&gt; to Attributes ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 19:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401575#M1046254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T19:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401576#M1046255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not good idea to analog the Attribute to FM's parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can think like: &lt;/P&gt;&lt;P&gt;Class could have multiple Methods with Import / Export parameter and with some Attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group could have mutliple Function Modules with parameters and with some Global data declaration. Now, if you want to access this global data from outside the FG, than you need to wrap it up in another FM and pass it to calling application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In class, you can set the attribute and access them from your application, provided it has Public Visibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, assume that you have a class ZCL_ORDER. This has the method GET_ORDER which can accept the Sales Order and give back the Item data (VBAP). It has one attribute for VBAK to save the header data. This attribute is being set in the same method GET_ORDER.&lt;/P&gt;&lt;P&gt;From your application, you have created an instance of the object. After calling the GET_ORDER method, later in the application you need to know the Header data of the same Order. Here you can just acess the VBAK attribute of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 20:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401576#M1046255</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-28T20:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401577#M1046256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Attributes describe the data that can be stored in the objects of a class. They also determine the status of an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 04:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401577#M1046256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T04:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401578#M1046257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cosmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Attributes|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5733883"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 04:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401578#M1046257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T04:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401579#M1046258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;If you read the OOABAP documentation it is mentioned that the OOABAP is introduced to work with data objects(Data types ) and functions ( Methods) together&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanna compare classes with FM the function group can be considered as Class and the Function modules as Methods in the class and the parameters like Importing Exporting, Tables Ect are Known as attributes. These attributes again classified into Importing Exporting Returning( Public, Private, Protected )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 04:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401579#M1046258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T04:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401580#M1046259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks pavan kanike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u write: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables Ect are Known as attributes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are u sure? u can give e.g. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401580#M1046259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Atrributes Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401581#M1046260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kosmo Cramer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this regarding Attributes in OOABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Attributesu2026 
...store the internal state of an object (data) 
...can be references to other objects 
u2026can be: read-only, virtual, class attributes 
u2026can be constants 
Virtual attributes: u2018Attributeu2019 from the outside, inside the object Set- and Get-methods. 
Dynamic control of Set-/Get-methods. 
 
{DATA|CLASS-DATA} attr TYPE type 
  [ VALUE val ] 
  [ READ-ONLY ]
  [ VIRTUAL [ SET-METHOD set-method] [GET-METHOD get-method] ].
 
CONSTANTS const TYPE type VALUE val.
Component  Definitions 
Methodsu2026 
u2026are operations on objects (the u2018functionalityu2019) 
u2026are the only way to change the state of an object  
    (other than public attributes) 
...have parameters and can raise exceptions 
   (similar to function modules) 
...can pass back a return value 
No method-name overloading! 
 
{METHODS|CLASS-METHODS} method
  [ IMPORTING    ...&amp;lt;list of import parameters&amp;gt; ]
  [ EXPORTING    ...&amp;lt;list of export parameters&amp;gt; ]
  [ CHANGING     ...&amp;lt;list of import/export parameters&amp;gt; ]
  [ EXCEPTIONS   ...&amp;lt;list of exceptions&amp;gt; ]
  [ RETURNING result TYPE t ].
 
 
 
Using Attributes and Methods 
CLASS c1 DEFINITION.
  PUBLIC SECTION.
    DATA: v1 TYPE I,
          o1 TYPE REF TO c1.
    METHODS: m1 IMPORTING a1 TYPE REF TO c1,
             m2 IMPORTING a1 TYPE REF TO c1
                RETURNING result TYPE I.
  PRIVATE SECTION.
    DATA: v2 TYPE I.
ENDCLASS. 
PROGRAM xy.
  DATA o1 TYPE REF TO c1.
  u2026 
  u201C--- attribute can occur anywhere a u2018normal variableu2019 can occur
  CREATE OBJECT o1.
  x = o1-&amp;gt;v1 + sin( o1-&amp;gt; v1 ).
  CALL FUNCTION 'abc' EXPORTING p1 = o1-&amp;gt;v1 u2026 . 
  u201C--- some method calls u2026  
  CALL METHOD o1-&amp;gt;m1 EXPORTING a1 = o1.
  CALL METHOD o1-&amp;gt;m1( o1 ).   u201C-- short form for 1 exporting arg
  u2026 
  y = obj1-&amp;gt;m2( x ). u201C-- result can be used in expressions

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Importing , Exporting and so on... TABLES are not attributes related to OOABAP.. &lt;/P&gt;&lt;P&gt;They are related to Function modules only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through this link which would give you an overview about OOABAP parameters..&lt;/P&gt;&lt;P&gt;&lt;A href="http://beingkedar.googlepages.com/ooabapo" target="test_blank"&gt;http://beingkedar.googlepages.com/ooabapo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Please close your other threads if they are solved...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atrributes-issue/m-p/4401581#M1046260</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-08-29T06:47:14Z</dc:date>
    </item>
  </channel>
</rss>

