<?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: After Subroutine the internal table value getting cleared!!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474255#M1555489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not passing the zbdcdata tab from your main program to your routine. Probably, you are making changes to an internal table named zbdcdata in the routine just like your zbdcdata table in your main program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform fill_ck11n_screen(saplzplmbom) using wa_mast2-werks changing zbbcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form ck11n_screen(saplzplmbom) Using uv_werks type werks&lt;/P&gt;&lt;P&gt;                Changing ct_zbcdata type bdcdata_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now change all references in this routine for the zbdcdata table to ct_zbdcdata.&lt;/P&gt;&lt;P&gt;It should work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Guus Jansen on Dec 13, 2010 1:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Dec 2010 11:27:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-13T11:27:19Z</dc:date>
    <item>
      <title>After Subroutine the internal table value getting cleared!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474251#M1555485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in my program. One of my perform statment calling another program. In that program my internal table getting 28 rows of values( i checked durring debuging ), at the end of the form again its coming back to my main program. Durring that time its getting refreshed with out refresh statment. But i required the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code will be,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PERFORM fill_ck11n_screen(saplzplmbom) USING wa_mast2-werks.
  MOVE 'E' TO h_mode.
  REFRESH msg_tab.
  CALL TRANSACTION 'CK11N' USING    zbdcdata
                          MODE    h_mode
                          "OPTIONS  FROM g_s_options
                          MESSAGES INTO msg_tab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here Zbdcdata getting values in the perform, but after this perform the value getting cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest me pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474251#M1555485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-13T10:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: After Subroutine the internal table value getting cleared!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474252#M1555486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try Export/import option ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474252#M1555486</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-12-13T10:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: After Subroutine the internal table value getting cleared!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474253#M1555487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you capturing the returing internal table entries? I guess you will have to add the tables option in the perform statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474253#M1555487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-13T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: After Subroutine the internal table value getting cleared!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474254#M1555488</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;If you want the internal tables values to be reflect in the calling program, the called subroutine must have the internal table's name passed in TABLES parameter in the subroutine or should be a part of the global definitions common to both the called subroutine and the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Make sure  atleast one of these happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474254#M1555488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-13T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: After Subroutine the internal table value getting cleared!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474255#M1555489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not passing the zbdcdata tab from your main program to your routine. Probably, you are making changes to an internal table named zbdcdata in the routine just like your zbdcdata table in your main program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform fill_ck11n_screen(saplzplmbom) using wa_mast2-werks changing zbbcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form ck11n_screen(saplzplmbom) Using uv_werks type werks&lt;/P&gt;&lt;P&gt;                Changing ct_zbcdata type bdcdata_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now change all references in this routine for the zbdcdata table to ct_zbdcdata.&lt;/P&gt;&lt;P&gt;It should work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Guus Jansen on Dec 13, 2010 1:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 11:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474255#M1555489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-13T11:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: After Subroutine the internal table value getting cleared!!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474256#M1555490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Set the watchpoint on that internal table before call transaction statement during debugging, you'll find the point where this internal table values are getting are changed.&lt;/P&gt;&lt;P&gt; USING option  does not protect the variables from being changed inside the called control block unless the variable is passed by value. &lt;/P&gt;&lt;P&gt;You can make a copy of internal table before passing it further to the call transaction statement .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 17:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-subroutine-the-internal-table-value-getting-cleared/m-p/7474256#M1555490</guid>
      <dc:creator>tushar_shukla</dc:creator>
      <dc:date>2010-12-13T17:02:28Z</dc:date>
    </item>
  </channel>
</rss>

