<?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: global class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226401#M769552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Upender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Global class , we can declare a internal table using &lt;STRONG&gt;Table type&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before go to SE24(for create the global class), &lt;/P&gt;&lt;P&gt;we should create table type in SE11.&lt;/P&gt;&lt;P&gt;after that we should mention that table type in to &lt;STRONG&gt;associated type tab&lt;/STRONG&gt; in SE24.&lt;/P&gt;&lt;P&gt;after that we can use internal table in class method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay.V on Jan 4, 2008 2:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 13:50:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T13:50:37Z</dc:date>
    <item>
      <title>global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226399#M769550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;can any one tell me how to define an internal table in the global class.&lt;/P&gt;&lt;P&gt;and occurs specificataion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 09:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226399#M769550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226400#M769551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways:&lt;/P&gt;&lt;P&gt;(1) Use a table type from the DDIC&lt;/P&gt;&lt;P&gt;(2) Define a table type definition yourself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example (1): instance attribute mt_return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mt_return    TYPE bapirettab.  " table type of bapiret2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example (2): type definition in types section of class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  ty_t_kna1    TYPE STANDARD TABLE OF kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; mt_customers   TYPE ty_t_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases you will always need a corresponding workarea to read or fill the itab. Fortunately header lines are no longer possible within classes!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  ls_return        TYPE bapiret2,
  ls_customer   LIKE LINE OF mt_customers.

 LOOP AT me-&amp;gt;mt_return INTO ls_return.
...
 

  READ TABLE me-&amp;gt;mt_customers INTO ls_customer INDEX ...
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regars&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 09:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226400#M769551</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-04T09:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226401#M769552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Upender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Global class , we can declare a internal table using &lt;STRONG&gt;Table type&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before go to SE24(for create the global class), &lt;/P&gt;&lt;P&gt;we should create table type in SE11.&lt;/P&gt;&lt;P&gt;after that we should mention that table type in to &lt;STRONG&gt;associated type tab&lt;/STRONG&gt; in SE24.&lt;/P&gt;&lt;P&gt;after that we can use internal table in class method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay.V on Jan 4, 2008 2:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 13:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/3226401#M769552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T13:50:37Z</dc:date>
    </item>
  </channel>
</rss>

