<?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: Passing internal table from a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018160#M412737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've only declared authtab under the table tab w/o any typing or associated type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2007 03:15:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-22T03:15:16Z</dc:date>
    <item>
      <title>Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018154#M412731</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 am trying to pass an internal table from a function module to a calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the internal table structure in my function module.&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF authtab OCCURS 0,&lt;/P&gt;&lt;P&gt;        seqnr like sy-tabix,&lt;/P&gt;&lt;P&gt;        field_1 type XUFIELD,&lt;/P&gt;&lt;P&gt;        fieldval type XUVAL,&lt;/P&gt;&lt;P&gt;        END OF authtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The passing parameters are &lt;/P&gt;&lt;P&gt;*"     REFERENCE(DATE) TYPE  DATS&lt;/P&gt;&lt;P&gt;*"      TABLES&lt;/P&gt;&lt;P&gt;*"      AUTHTAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my calling function is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION XXX&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   XXX         =  XXX&lt;/P&gt;&lt;P&gt;    XXX         =  XXX&lt;/P&gt;&lt;P&gt;    XXX          =  XXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    AUTHTAB      =  authentab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authentab is an internal table i declared in my calling program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF authentab OCCURS 0,&lt;/P&gt;&lt;P&gt;        seqnr like sy-tabix,&lt;/P&gt;&lt;P&gt;        field type XUFIELD,&lt;/P&gt;&lt;P&gt;        fieldval type XUVAL,&lt;/P&gt;&lt;P&gt;        END OF authentab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM works fine. But i cant pass the content of the internal table over to the calling program for display. Anyone know how to go abt solving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 02:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018154#M412731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T02:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018155#M412732</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 think you cann't declare internal table in the FM for Table parameter.&lt;/P&gt;&lt;P&gt;You should do this:&lt;/P&gt;&lt;P&gt;1. Create Structure in SE11 for Table Parameter (ex. Z_AUTH ).  &lt;/P&gt;&lt;P&gt;2. Insert your Table Parameter at tab TABLES in your FM:&lt;/P&gt;&lt;P&gt;    Parameter Name: &amp;lt;b&amp;gt;TAB_AUTHTAB&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;    Type Spec: LIKE&lt;/P&gt;&lt;P&gt;    Associated Type: Z_AUTH ( Your Sturcture Name that you created in SE11).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in calling program, cretate the internal table, like this:&lt;/P&gt;&lt;P&gt;DATA: IT_AUTHTAB TYPE STANDARD TABLE OF Z_AUTH OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION XXX&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;XXX = XXX&lt;/P&gt;&lt;P&gt;XXX = XXX&lt;/P&gt;&lt;P&gt;XXX = XXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TAB_AUTHTAB&amp;lt;/b&amp;gt; = IT_AUTHTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 02:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018155#M412732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T02:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018156#M412733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;r3venant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Check 2 things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.In your function module is the internal table getting filled with some data ?.&lt;/P&gt;&lt;P&gt;    Have you checked it in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Is the date passing date value through parameter is available in function&lt;/P&gt;&lt;P&gt;   module?.Check in debugg mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 02:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018156#M412733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T02:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018157#M412734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jatra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok i understand where u are coming from. I think that might be the last option i would try becoz i dun want to create a table just for that. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018157#M412734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018158#M412735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you give the attributes from tables tab of your fm for this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:10:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018158#M412735</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-22T03:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018159#M412736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaipha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module works fine, the internal table "authtab" is filled with data that i want to pass to the calling program. But i cant seem to display the data. Its empty over at the calling program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018159#M412736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018160#M412737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've only declared authtab under the table tab w/o any typing or associated type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018160#M412737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018161#M412738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a strcuture in SE11 for authtab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in tables declaration TAB of fm define LIKE structure your created in SE11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018161#M412738</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-22T03:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018162#M412739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inside the function module code, declare an internal table with the same structure and move the contents of the tables parameter internal table to this one. After that you will be able to work with the individual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in other words, I will declare an internal table inside the function module code that is exactly similar to what you declared in your calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION XXXXX.&lt;/P&gt;&lt;P&gt;*TABLES&lt;/P&gt;&lt;P&gt;*ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF local_authtab OCCURS 0,&lt;/P&gt;&lt;P&gt;seqnr like sy-tabix,&lt;/P&gt;&lt;P&gt;field_1 type XUFIELD,&lt;/P&gt;&lt;P&gt;fieldval type XUVAL,&lt;/P&gt;&lt;P&gt;END OF local_authtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;local_authtab[] = itab[].&lt;/P&gt;&lt;P&gt;*-- do whatever you want to do with local_authtab. if you modify local_authtab, then add this statement at the end, just before ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab[].&lt;/P&gt;&lt;P&gt;itab[] = local_authtab[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018162#M412739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018163#M412740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cant under stand 1 thing in your tables paramenter you declare AUTHTAB and in source code also you are dclaring like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF authtab OCCURS 0,&lt;/P&gt;&lt;P&gt;seqnr like sy-tabix,&lt;/P&gt;&lt;P&gt;field_1 type XUFIELD,&lt;/P&gt;&lt;P&gt;fieldval type XUVAL,&lt;/P&gt;&lt;P&gt;END OF authtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and system does not give any error .....&lt;/P&gt;&lt;P&gt;as per i can understand you did not define any tables parameter in the tab tables?&lt;/P&gt;&lt;P&gt;if i am right then declare in the tables tab (after changing tab) AUTHTAB and delete the declaration of authtab in source code .. and do the modification or any thing with AUTHTAB it will automatically assign the value to your prog ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 03:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018163#M412740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T03:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018164#M412741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas, Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi SHIBA, yep you are correct there was error in the codes i gave sorry this is the new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM : i declare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authtab TYPE STANDARD TABLE OF ust12 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under table tab : parameter name : authtab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end of the FM i did a &lt;/P&gt;&lt;P&gt;authtab1[] = authtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now all my content is held in authtab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the calling program, i declare authtab again.&lt;/P&gt;&lt;P&gt;authtab TYPE STANDARD TABLE OF ust12 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the calling :&lt;/P&gt;&lt;P&gt;CALL FUNCTION XXX&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    UNAME          =  sy-uname&lt;/P&gt;&lt;P&gt;    OBJECT         =  XXX'&lt;/P&gt;&lt;P&gt;    FIELD          =  XXX&lt;/P&gt;&lt;P&gt;    DATE           =  sy-datum&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    AUTHTAB1       =  authtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by here, when debugging, there is no data in authtab1 i think... there is no data. Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 04:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018164#M412741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T04:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018165#M412742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry again i cant get you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end of the FM i did a &lt;/P&gt;&lt;P&gt;authtab1[] = authtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the source code also you are declaring authtab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is so&lt;/P&gt;&lt;P&gt;authtab1[] = authtab[].&lt;/P&gt;&lt;P&gt;just put a break point in the fn module and check before endfunction statement if authtab1 containing any value or not if it is containing any value then your itab in prog should also get the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check in above statement authtab1[] = authtab[]. authtab[] what value it contains?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 05:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018165#M412742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T05:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018166#M412743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its contains data like "department 07"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 06:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018166#M412743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T06:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018167#M412744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Hi Srinivas, Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Hi SHIBA, yep you are correct there was error in the&lt;/P&gt;&lt;P&gt;&amp;gt; codes i gave sorry this is the new one.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; FM : i declare&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; authtab TYPE STANDARD TABLE OF ust12 WITH HEADER&lt;/P&gt;&lt;P&gt;&amp;gt; LINE.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; under table tab : parameter name : authtab1&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; end of the FM i did a &lt;/P&gt;&lt;P&gt;&amp;gt; authtab1[] = authtab. &amp;lt;b&amp;gt;&amp;lt;-- this has to be authtab1[] = authtab[].&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; now all my content is held in authtab1.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; In the calling program, i declare authtab again.&lt;/P&gt;&lt;P&gt;&amp;gt; authtab TYPE STANDARD TABLE OF ust12 WITH HEADER&lt;/P&gt;&lt;P&gt;&amp;gt; LINE.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; with the calling :&lt;/P&gt;&lt;P&gt;&amp;gt; CALL FUNCTION XXX&lt;/P&gt;&lt;P&gt;&amp;gt;   EXPORTING&lt;/P&gt;&lt;P&gt;&amp;gt;   UNAME          =  sy-uname&lt;/P&gt;&lt;P&gt;&amp;gt;   OBJECT         =  XXX'&lt;/P&gt;&lt;P&gt;&amp;gt;   FIELD          =  XXX&lt;/P&gt;&lt;P&gt;&amp;gt;   DATE           =  sy-datum&lt;/P&gt;&lt;P&gt;&amp;gt; TABLES&lt;/P&gt;&lt;P&gt;&amp;gt;     AUTHTAB1       =  authtab.&lt;/P&gt;&lt;P&gt;&amp;gt; here, when debugging, there is no data in authtab1 i&lt;/P&gt;&lt;P&gt;&amp;gt;  think... there is no data. Any idea?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; regards,&lt;/P&gt;&lt;P&gt;&amp;gt; r3venant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 13:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018167#M412744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T13:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal table from a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018168#M412745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;you try once by using the squarebrackets for the internal table you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;AUTHTAB = authentab[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 13:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-table-from-a-function-module/m-p/2018168#M412745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T13:20:42Z</dc:date>
    </item>
  </channel>
</rss>

