<?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: table internal in a module function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001509#M1164595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.... could you please explain your issue more clearly ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I understand is that there are some values u want to take from program to your functio module and update the table .... is this what ur looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2009 14:12:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-08T14:12:09Z</dc:date>
    <item>
      <title>table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001508#M1164594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want use the values of my table internal in my function module; then in my module funtion add the table internal in the tab TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call to my function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;num = 3.
      CALL FUNCTION 'ZMF1'
              EXPORTING
                NOM_TABLA    = 'YXS2'
                NUM = num
             TABLES
                I_TABLA      = I_YXS2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I want obtain in my function module the values of the table internal, it is emplty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordial greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001508#M1164594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001509#M1164595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.... could you please explain your issue more clearly ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I understand is that there are some values u want to take from program to your functio module and update the table .... is this what ur looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001509#M1164595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001510#M1164596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernandez,&lt;/P&gt;&lt;P&gt;Most likely when you call your function module your internal table "I_YXS2" does not contain any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please put a break point at CALL FUNCTION and check if the internal table contains anything and then check inside the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert if u still face the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001510#M1164596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001511#M1164597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adytya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes I want take values from program and then later use it in my function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program the values of the table internal are correct, but when I want use it in my function module, the table internal is empty and I need modify the value of the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE OF MY PROGRAM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF I_YXS2 OCCURS 0.
        INCLUDE STRUCTURE YXS2.
DATA: END OF I_YXS2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZMF1'
              EXPORTING
                NOM_TABLA    = 'YXS2'
              TABLES
                I_TABLA      = I_YXS2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE OF MY FUNCTION MODULE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: YXS2.
...

LOOP AT I_YXS2.
    MOVE-CORRESPONDING I_YXS2 TO YXS2.
    MODIFY YXS2.
*  commit work and wait.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordial greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001511#M1164597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001512#M1164598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES: YXS2.
...
 
LOOP AT I_YXS2.
    INSERT INTO YXS2 VALUES I_YXS2.
*  commit work and wait.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001512#M1164598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001513#M1164599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table internal I_XS2 contain data (in the program), and then when I go to the table internal (in my function module) I view that the table internal no contain data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001513#M1164599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001514#M1164600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's because your redefining the internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF I_YXS2 OCCURS 0.
        INCLUDE STRUCTURE YXS2.
DATA: END OF I_YXS2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already define the structure of the FM parameters...So you now must delete that DATA declaration...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001514#M1164600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001515#M1164601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I change in the tab TABLES of the function module the parameter I_YXS2 for I_TABLA; I change the code of the funtion module too and now all is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE OF MY PROGRAM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF I_YXS2 OCCURS 0.
        INCLUDE STRUCTURE YXS2.
DATA: END OF I_YXS2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZMF1'
              EXPORTING
                NOM_TABLA    = 'YXS2'
              TABLES
                I_TABLA      = I_YXS2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE OF MY FUNCTION MODULE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: YXS2.
...
 
LOOP AT I_TABLA.
    INSERT INTO YXS2 VALUES I_TABLA.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you at all for your attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 15:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001515#M1164601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T15:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001516#M1164602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! I'm glad I could help you -;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 15:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001516#M1164602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T15:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: table internal in a module function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001517#M1164603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fernandez,&lt;/P&gt;&lt;P&gt; First check the code written inside the Function Module - Its import, export and tables parameters. &lt;/P&gt;&lt;P&gt;Check the type which you declared for the Internal tabels both in the import, export and tables parameters of the Function Module. Also check whether the number of fields and their order when assigning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravikiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 16:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-internal-in-a-module-function/m-p/5001517#M1164603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T16:57:32Z</dc:date>
    </item>
  </channel>
</rss>

