<?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: Using FORM ENDFORM in ABAP OO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422994#M1549571</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; Sorry for late late late feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its works when i remove the 'TYPE TABLE'. &lt;/P&gt;&lt;P&gt;And I am using like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 10:13:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-16T10:13:41Z</dc:date>
    <item>
      <title>Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422979#M1549556</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 wrote the code like this .I am trying to use FORM which is defined in Report programm,But I am always getting error&lt;/P&gt;&lt;P&gt;message "Error at parameter 2 ":what change should i do for this. earlier I used the same code  in ABAP ( not ABAP OO) it was working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;First Programm :&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : l_t_OTIFARR TYPE STANDARD TABLE OF /bic/aYO_SID0100,
            w_table_to_be_read(30) type c.

 w_table_to_be_read = '/bic/aYO_SID0100'.
  perform READ_ODS in program YBW1_OTIF__SI_INCLUDES
    tables SOURCE_PACKAGE
           l_t_OTIFARR
           using w_table_to_be_read.

****** REPPORT with FORM Definition

REPORT  YBW1_OTIF__SI_INCLUDES.

FORM READ_ODS
     TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
            l_t_ODS type TABLE
      USING TABLE_TO_BE_READ TYPE C.

  refresh l_t_ODS.
  select * from (TABLE_TO_BE_READ) into table l_t_ODS
     for all entries in SOURCE_PACKAGE
   where /bic/ynv_order = SOURCE_PACKAGE-/bic/ynv_order.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titled modified and code tags added by: kishan P on Oct 22, 2010 10:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 15:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422979#M1549556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422980#M1549557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, FORM parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- without type or&lt;/P&gt;&lt;P&gt;- of type ANY or&lt;/P&gt;&lt;P&gt;- of type (ANY) TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not possible in OO context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need real types also for tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to give the real structure for l_t_ODS and I think it will work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 05:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422980#M1549557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T05:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422981#M1549558</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;Here I gave l_t_ods of type table , as i want to use the same FORM for reading different table and fill it .table which are read&lt;/P&gt;&lt;P&gt;will change based on value of w_table_to_be_read.&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;mandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 06:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422981#M1549558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T06:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422982#M1549559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mandha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried testing your coding within a local class and a FORM routine within the same report and it has worked on ECC 6.0.&lt;/P&gt;&lt;P&gt;Not sure about the context (4.6c? Global class?) in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is to write a function module which executes the PERFORM statement. This fm you then call within your method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 07:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422982#M1549559</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-10-22T07:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422983#M1549560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Yes within same report ti works fine for me also.&lt;/P&gt;&lt;P&gt;Actually My context , is I wrote the first part  PERFORM  in BI Transforamtions and FORM.. END FORM in a report programm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;mandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 07:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422983#M1549560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T07:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422984#M1549561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me syntatically it looks ok, but I would try replacing &lt;EM&gt;tables&lt;/EM&gt; with &lt;EM&gt;changing&lt;/EM&gt; . Also it would be more descriptive if you provided full error message and when you receive it - during syntax check or runtime?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 08:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422984#M1549561</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-22T08:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422985#M1549562</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; Its runtime error : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error msg is : The attempt to call the subroutine READ_ODS in the program &amp;amp;PROGRAM&amp;amp; failed due to a type error involving parameter number 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mandhaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 09:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422985#M1549562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T09:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422986#M1549563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not an OO problem, and your contention that it works fine in an non-OO context I find hard to believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM READ_ODS
     TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
            l_t_ODS type TABLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are saying that you've got a table that you're calling SOURCE_PACKAGE, which has a line type of /BIC/CS8YO_IGORD, and a table you're calling l_t_ODS, which has a &lt;STRONG&gt;line&lt;/STRONG&gt; type of &lt;STRONG&gt;table&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see the discrepency?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call the form, a table with a &lt;STRONG&gt;line&lt;/STRONG&gt; type that's a STANDARD TABLE is expected. Which is a bit odd really... A table of tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the code to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM READ_ODS
     TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
         USING   l_t_ODS type TABLE
       TABLE_TO_BE_READ TYPE C.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 13:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422986#M1549563</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-22T13:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422987#M1549564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;yes its working in non oo context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 14:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422987#M1549564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422988#M1549565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong about the parameters not working. I didn't spot the TYPE keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested the idea that it's an OO problem, and still can't see that it is. With the following, I get no problem.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : l_t_otifarr type standard table of t100,
            w_table_to_be_read(30) type c.

data: source_package type standard table of t000.

*----------------------------------------------------------------------*
*       CLASS tst DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
class tst definition.
  public section.
    class-methods: main.
endclass.                    "tst DEFINITION

*----------------------------------------------------------------------*
*       CLASS tst IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
class tst implementation.
  method main.
    select * from t100 up to 10 rows into table l_t_otifarr.

    w_table_to_be_read = 'T100'.
    perform read_ods in program ymabitest1
      tables source_package
             l_t_otifarr
             using w_table_to_be_read.

  endmethod.                    "main

endclass.                    "tst IMPLEMENTATION

start-of-selection.
  tst=&amp;gt;main( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;YMABITEST1.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  READ_ODS
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;SOURCE_PACKAGE    text
*      --&amp;gt;L_T_ODS           text
*      --&amp;gt;TABLE_TO_BE_READ  text
*----------------------------------------------------------------------*
form read_ods
     tables source_package structure t100
            l_t_ods type table
      using table_to_be_read type c.



endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Oct 22, 2010 4:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 14:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422988#M1549565</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-22T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422989#M1549566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect your problem may be caused, because in BI 7.0, in start routines, the source_package is defined differently from how it is in BI 3.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your form, you give SOURCE_PACKAGE as having structure &lt;STRONG&gt;/BIC/CS8YO_IGORD&lt;/STRONG&gt;. Verifiy that the fields of /bic/cs8yo_igord &lt;EM&gt;exactly&lt;/EM&gt; match those defined in the start routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 15:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422989#M1549566</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-22T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422990#M1549567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thank you very much for your effort to help.Yes you are right , i used this same code in BW3.5,it was OK but now I am trying to use in BI 7,but its not working.&lt;/P&gt;&lt;P&gt;But I am not seeing the error for SOURCE_PACKAGE. error msg is : The attempt to call the subroutine READ_ODS in the program &amp;amp;PROGRAM&amp;amp; failed due to a type error involving parameter number 2. And i Code the parameter 2 is l_T_OTIFARR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 15:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422990#M1549567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T15:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422991#M1549568</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; The attempt to call the subroutine READ_ODS in the program &amp;amp;PROGRAM&amp;amp; failed due to a type error involving parameter number 2. And i Code the parameter 2 is l_T_OTIFARR.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; "&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Yes, I know that. There is a possibility, you know, that you've got more than one error! You may well have an issue in any case because you can no longer use the type of the communication structure. ( Which is a big deal when it comes to taking the ABAP out of a routine into a proper ABAP object like a subroutine pool, class or function module ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked and made sure they are EXACTLY the same structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried my earlier suggestion, changing the parameters of the form, so you have two under USING and one under TABLES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's all very well looking at the proposals and going "oh, it's not that". But have you &lt;STRONG&gt;actually&lt;/STRONG&gt; tried? As a developer with over 20 years experience, I can tell you that sometimes the error messages you get are misleading or even entirely wrong. You are attempting to marry object oriented technology with the old external call of forms functionality. I'm not surprised you're having trouble. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other tip. Every now and then, restart RSA1, regenerate the transformation and DTP. Sometimes the generation screws up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422991#M1549568</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-22T17:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422992#M1549569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mandtha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just leave the TYPE TABLE addition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM READ_ODS
     TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
            l_t_ODS
      USING TABLE_TO_BE_READ TYPE C.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES parameters are used to pass references to tables. The only addition that makes sense is 'STRUCTURE'. As you want it generic, just don not use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use CHANGING to make it more readable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM READ_ODS
  USING 
    SOURCE_PACKAGE 
    TABLE_TO_BE_READ TYPE tabname. 
  CHANGING 
    ct_table type TABLE.
  FIELD-SYMBOLS:
    &amp;lt;SOURCE_PACKAGE&amp;gt; TYPE /BIC/CS8YO_IGORD
  ASSIGN SOURCE_PACKAGE to &amp;lt;SOURCE_PACKAGE&amp;gt;.
  refresh ct_table.
  select * from (TABLE_TO_BE_READ) into table ct_table
     for all entries in SOURCE_PACKAGE
   where /bic/ynv_order = &amp;lt;SOURCE_PACKAGE&amp;gt;-/bic/ynv_order.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Oct 2010 11:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422992#M1549569</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-10-24T11:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422993#M1549570</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; Hi Mandtha,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; just leave the TYPE TABLE addition:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;FORM READ_ODS
&amp;gt;      TABLES SOURCE_PACKAGE structure /BIC/CS8YO_IGORD
&amp;gt;             l_t_ODS
&amp;gt;       USING TABLE_TO_BE_READ TYPE C.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; TABLES parameters are used to pass references to tables. The only addition that makes sense is 'STRUCTURE'. As you want it generic, just don not use it.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;The syntax &lt;STRONG&gt;FORM form TABLE tab TYPE tab_type&lt;/STRONG&gt; is valid, certainly in the latest version. However, the use of TABLES is discouraged now - it is only kept for backward compatability. With the introduction of table types into the ABAP Dictionary, USING and CHANGING are all that are required. As Mandha Kranthi is working on BI 7.0, I think we can safely assume he's on fairly recent ABAP release!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disagree that omitting &lt;STRONG&gt;TYPE TABLE&lt;/STRONG&gt; is a good idea. Even if the type is generic, it's worth putting it in. TYPE TABLE on its own, by the way, is a generic STANDARD TABLE. The generic type covering all tables is ANY TABLE. &lt;STRONG&gt;But&lt;/STRONG&gt; types should be specified as specifically as possible. See my blog on [type safety.|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11938] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Oct 2010 20:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422993#M1549570</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-10-24T20:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using FORM ENDFORM in ABAP OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422994#M1549571</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; Sorry for late late late feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its works when i remove the 'TYPE TABLE'. &lt;/P&gt;&lt;P&gt;And I am using like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 10:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-form-endform-in-abap-oo/m-p/7422994#M1549571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T10:13:41Z</dc:date>
    </item>
  </channel>
</rss>

