<?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: calling subrotine from include program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285369#M1022326</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;this is main program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPROGCALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include ZINCLUDE.&lt;/P&gt;&lt;P&gt;  start-of-selection.&lt;/P&gt;&lt;P&gt;perform abcd IN PROGRAM ZINCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is include program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form abcd.&lt;/P&gt;&lt;P&gt;  write : 'include program'.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope Helpfull&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raghunath.S&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2008 04:06:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-11T04:06:26Z</dc:date>
    <item>
      <title>calling subrotine from include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285366#M1022323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written one subroutine(tr_stock) in the include(LYGRIFF01) program. this include is used in the function module.&lt;/P&gt;&lt;P&gt;now same subroutine functionlaty i want to use in the other program type E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written the code as below but program is giving dump with the below error msg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              PERFORM tr_stock(LYGRIFF01)&lt;/P&gt;&lt;P&gt;                      TABLES lt_item&lt;/P&gt;&lt;P&gt;                             gi_return_s&lt;/P&gt;&lt;P&gt;                       USING gw_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error msg in dump: Program "LYGRIFF01" is type I and therefore cannot be generated&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i call the above subroutine in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 01:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285366#M1022323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T01:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: calling subrotine from include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285367#M1022324</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; u can also call like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM tr_stock in program LYGRIFF01&lt;/P&gt;&lt;P&gt;TABLES lt_item&lt;/P&gt;&lt;P&gt;gi_return_s&lt;/P&gt;&lt;P&gt;USING gw_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 03:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285367#M1022324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T03:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: calling subrotine from include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285368#M1022325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to call the main program, not the include program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM tr_stock(LYGRIFF01) "&amp;lt;-----this should be main program
TABLES lt_item
gi_return_s
USING gw_head.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out the Include program's main program and use that in the perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM tr_stock(MAINPROGRAM)
TABLES lt_item
gi_return_s
USING gw_head.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 03:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285368#M1022325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T03:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: calling subrotine from include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285369#M1022326</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;this is main program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPROGCALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include ZINCLUDE.&lt;/P&gt;&lt;P&gt;  start-of-selection.&lt;/P&gt;&lt;P&gt;perform abcd IN PROGRAM ZINCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is include program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form abcd.&lt;/P&gt;&lt;P&gt;  write : 'include program'.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope Helpfull&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raghunath.S&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 04:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subrotine-from-include-program/m-p/4285369#M1022326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T04:06:26Z</dc:date>
    </item>
  </channel>
</rss>

