<?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 tables Dynamically to subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables-dynamically-to-subroutine/m-p/5402540#M1241020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;In your form...end form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;specify the table of type any.&lt;/P&gt;&lt;P&gt;i.e. type standard table any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the form, specify the work area as, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs like line of itab.&lt;/P&gt;&lt;P&gt;fs assumes the line type of that internal table or else specify a field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 09:38:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T09:38:43Z</dc:date>
    <item>
      <title>Passing internal tables Dynamically to subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables-dynamically-to-subroutine/m-p/5402539#M1241019</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;In my requirement,I am having two performs.Both are calling the same form.Perform is passing one internal table.But the structure of the internal tables in two performs are different.But I want both the perform should call the same form.&lt;/P&gt;&lt;P&gt;Problem is coming in accessing the individual field inside the form.&lt;/P&gt;&lt;P&gt;CODE&lt;/P&gt;&lt;P&gt;TYPES: begin of itab1,&lt;/P&gt;&lt;P&gt;        pernr      TYPE pa2001-pernr,&lt;/P&gt;&lt;P&gt;        begda      TYPE pa2001-begda,&lt;/P&gt;&lt;P&gt;        endda      TYPE pa2001-endda,&lt;/P&gt;&lt;P&gt;	y06halfday TYPE pa2001-y06halfday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF ITAB1.&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ITAB2,&lt;/P&gt;&lt;P&gt;        pernr      TYPE pa2003-pernr,&lt;/P&gt;&lt;P&gt;        begda      TYPE pa2003-begda,&lt;/P&gt;&lt;P&gt;        endda      TYPE pa2003-endda,&lt;/P&gt;&lt;P&gt;        subty      TYPE pa2003-subty,&lt;/P&gt;&lt;P&gt;        tprog      TYPE pa2003-tprog,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF ITAB2.&lt;/P&gt;&lt;P&gt;DATA:TB_ITAB1 TYPE STANDARD TABLE OF ITAB1.&lt;/P&gt;&lt;P&gt;DATA:TB_ITAB2 TYPE STANDARD TABLE OF ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;if p_check = '2001'.&lt;/P&gt;&lt;P&gt;perform perform_operation using TB_ITAB1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;perform perform_operation using TB_ITAB2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM perform_operation TABLES ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO ??? -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;What work area i should use.How to decide work area at runtime&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt; here i want to access all the fields of the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 09:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables-dynamically-to-subroutine/m-p/5402539#M1241019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing internal tables Dynamically to subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables-dynamically-to-subroutine/m-p/5402540#M1241020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;In your form...end form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;specify the table of type any.&lt;/P&gt;&lt;P&gt;i.e. type standard table any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the form, specify the work area as, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs like line of itab.&lt;/P&gt;&lt;P&gt;fs assumes the line type of that internal table or else specify a field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 09:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables-dynamically-to-subroutine/m-p/5402540#M1241020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T09:38:43Z</dc:date>
    </item>
  </channel>
</rss>

