<?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: Using Includes in BW transformations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373501#M1923115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With includes in two programs, they are entirely separate. It's just as if you copy pasted the text of the includes into the programs. There is absolutely no difference between declaring an include in a TOP include and in the body of the program. With an include, when the program is run, the interpreter (the thing that runs the programs), just inserts the text of the include at the point of the INCLUDE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two uses of includes.&lt;/P&gt;&lt;P&gt;1. To organise code for ease of handling&lt;/P&gt;&lt;P&gt;2. To share code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shared includes are quite common in old program, but they are to be avoided. The reason is that if you make a change to an include, all programs that use it will be regenerated (compiled) when you import the change into your production system - and that can take quite a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Far better to create shared code that is called from within the transformation. Anything other than classes or function modules is obsolete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 18:39:45 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2015-11-03T18:39:45Z</dc:date>
    <item>
      <title>Using Includes in BW transformations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373500#M1923114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a doubt regarding the use of 'includes' in programs. I understand why includes are used and how we can create a include/call a include in a program.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I was reading this reply from Mr. &lt;A __default_attr="24079" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Matthew Billingham" href="https://community.sap.com/"&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;here &lt;/SPAN&gt;&lt;A href="https://scn.sap.com/thread/3409071" style="font-size: 13.3333px;" title="https://scn.sap.com/thread/3409071"&gt;Reuse routine for different transformation rout... | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My question is what happens when the same include is called in two different programs at the same time?Will there be two different instances of it? What about the variables declared? Will the same variable be adjusted by both the calling programs? &lt;/P&gt;&lt;P&gt;Is there a difference between declaring the variable in TOP include vs inside the include itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have mentioned BW transformation in my subject line because there are a few includes in BW transformations in my project and I just want to know if there is a downside to the include being called from two different transformation at the same time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make your answers as simple as possible. I am a BW developer with minimal knowledge of ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Benedict&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 18:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373500#M1923114</guid>
      <dc:creator>BenedictV</dc:creator>
      <dc:date>2015-11-03T18:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Includes in BW transformations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373501#M1923115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With includes in two programs, they are entirely separate. It's just as if you copy pasted the text of the includes into the programs. There is absolutely no difference between declaring an include in a TOP include and in the body of the program. With an include, when the program is run, the interpreter (the thing that runs the programs), just inserts the text of the include at the point of the INCLUDE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two uses of includes.&lt;/P&gt;&lt;P&gt;1. To organise code for ease of handling&lt;/P&gt;&lt;P&gt;2. To share code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shared includes are quite common in old program, but they are to be avoided. The reason is that if you make a change to an include, all programs that use it will be regenerated (compiled) when you import the change into your production system - and that can take quite a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Far better to create shared code that is called from within the transformation. Anything other than classes or function modules is obsolete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 18:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373501#M1923115</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-11-03T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Includes in BW transformations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373502#M1923116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Matthew that cleared a lot of my doubts about Includes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 20:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-includes-in-bw-transformations/m-p/11373502#M1923116</guid>
      <dc:creator>BenedictV</dc:creator>
      <dc:date>2015-11-03T20:35:00Z</dc:date>
    </item>
  </channel>
</rss>

