<?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: perform subroutine. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678190#M1290896</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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Hello Matt,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I will rather put it this way:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Does using TABLES in Sub-routines, Func. Modules etc. hamper the performance in any way ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; BR,&lt;/P&gt;&lt;P&gt;&amp;gt; Suhas&lt;/P&gt;&lt;P&gt;No.  It makes no difference to how quickly the program runs.  There are scenarios where you should uses TABLES still - that is in certain RFCs - search if you want more info - it's well covered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that is, most of the time, not the biggest issue for any program.  What's important is that errors can be quickly and easily fixed.  That means the program should be well designed and well written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And proper typing is part of that.  As I said in my blog - type safety enables you to discover bugs during syntax checking, rather than unit testing/ system testing /production - and so is much cheaper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All programmers need to understand that &lt;STRONG&gt;first&lt;/STRONG&gt; you write the program well &lt;STRONG&gt;then&lt;/STRONG&gt; you worry about performance, &lt;STRONG&gt;if and only if&lt;/STRONG&gt; there are performance issues.    There seems to be an idea that the faster a program runs the better it is.  95% of the time, that simply isn't true.&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, 12 Jun 2009 16:13:39 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2009-06-12T16:13:39Z</dc:date>
    <item>
      <title>perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678183#M1290889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally we people use perform like below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform zvv using table i_mara &lt;/P&gt;&lt;P&gt;                 changing .............. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now a days using table in Perform is obsolete so any guru can tell me what is new statment we use in place of using table in perform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 08:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678183#M1290889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T08:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678184#M1290890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should define all your table types using the TYPES statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: sorted_mara_type TYPE SORTED TABLE OF mara WITH UNIQUE KEY matnr.
DATA: t_mara TYPE sorted_mara_type.

PERFORM do_stuff USING t_mara.

...

FORM do_stuff USING xt_mara TYPE sorted_mara_type.
  DATA: ls_mara TYPE mara.

  LOOP AT xt_mara INTO ls_mara.
...
  ENDLOOP.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the TABLES keyword isn't needed any more.  Same applies for FUNCTION MODULES.  But in some cases there you &lt;STRONG&gt;must&lt;/STRONG&gt; use TABLES, even though they are supposedly obsolete.  I suggest also you check out my [blog on typing in forms|https://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>Fri, 12 Jun 2009 08:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678184#M1290890</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-12T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678185#M1290891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Table TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: harsh bhalla on Jun 12, 2009 1:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 08:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678185#M1290891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T08:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678186#M1290892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use perform in the following manner :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM test USING p1 TYPE string 
                p2 TYPE string 
          CHANGING value(p3) TYPE string 
                   value(p4) TYPE string. 
  ... 
ENDFORM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 08:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678186#M1290892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T08:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678187#M1290893</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;I just read your blog. The idea you are trying to put across is PERFECT !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what about TABLES?? Can you please elaborate on this one? Can i use the idea for TYPE ANY across to TABLES as well, that we may give our tables in an incorrect sequence and while executing get a DUMP !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 08:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678187#M1290893</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-12T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678188#M1290894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you insist (or need to) use generic tables, then you can just use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM my_form CHANGING xt_table TYPE ANY TABLE. &lt;/P&gt;&lt;P&gt;FORM my_form CHANGING xt_table TYPE STANDARD TABLE. &lt;/P&gt;&lt;P&gt;FORM my_form CHANGING xt_table TYPE INDEX TABLE.&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As ever, the more specific you can be in naming the type, the safer your program is.&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, 12 Jun 2009 11:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678188#M1290894</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-12T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678189#M1290895</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;I will rather put it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Does using TABLES in Sub-routines, Func. Modules etc. hamper the performance in any way ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 14:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678189#M1290895</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-12T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678190#M1290896</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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Hello Matt,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I will rather put it this way:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Does using TABLES in Sub-routines, Func. Modules etc. hamper the performance in any way ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; BR,&lt;/P&gt;&lt;P&gt;&amp;gt; Suhas&lt;/P&gt;&lt;P&gt;No.  It makes no difference to how quickly the program runs.  There are scenarios where you should uses TABLES still - that is in certain RFCs - search if you want more info - it's well covered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that is, most of the time, not the biggest issue for any program.  What's important is that errors can be quickly and easily fixed.  That means the program should be well designed and well written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And proper typing is part of that.  As I said in my blog - type safety enables you to discover bugs during syntax checking, rather than unit testing/ system testing /production - and so is much cheaper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All programmers need to understand that &lt;STRONG&gt;first&lt;/STRONG&gt; you write the program well &lt;STRONG&gt;then&lt;/STRONG&gt; you worry about performance, &lt;STRONG&gt;if and only if&lt;/STRONG&gt; there are performance issues.    There seems to be an idea that the faster a program runs the better it is.  95% of the time, that simply isn't true.&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, 12 Jun 2009 16:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678190#M1290896</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-12T16:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678191#M1290897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Matt ... One wrong piece of info i had about TABLES stmt done away with &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 17:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678191#M1290897</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-12T17:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678192#M1290898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Matt &lt;/P&gt;&lt;P&gt;i need to know whether &lt;STRONG&gt;using table&lt;/STRONG&gt; in Perform is obsolete if yes what are we using in place of table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 08:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678192#M1290898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T08:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678193#M1290899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of tables you can use changing addition for passing tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 08:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678193#M1290899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: perform subroutine.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678194#M1290900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLE in perform is not obsolete in FORMS, as far as I can tell looking at the ABAP notes.&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;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 12:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-subroutine/m-p/5678194#M1290900</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-07-22T12:14:31Z</dc:date>
    </item>
  </channel>
</rss>

