<?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 calling other program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263808#M491046</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;I have a scenario like i have to call another secondary program from  main program and when the control returns from that secondary i need some which has to carried from there back to main program. how to achive this i tried with &amp;lt;b&amp;gt;SUBMIT &amp;lt;/b&amp;gt; command but i am unable to get the data or do i need to use,&amp;lt;b&amp;gt;EXPORT and IMPORT&amp;lt;/b&amp;gt;, please help me.&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>Wed, 30 May 2007 11:17:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-30T11:17:22Z</dc:date>
    <item>
      <title>calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263808#M491046</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;I have a scenario like i have to call another secondary program from  main program and when the control returns from that secondary i need some which has to carried from there back to main program. how to achive this i tried with &amp;lt;b&amp;gt;SUBMIT &amp;lt;/b&amp;gt; command but i am unable to get the data or do i need to use,&amp;lt;b&amp;gt;EXPORT and IMPORT&amp;lt;/b&amp;gt;, please help me.&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>Wed, 30 May 2007 11:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263808#M491046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T11:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263809#M491047</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;You use Submit to call an ABAP report from within another report. &lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit 'ZREPORT1' using pernr = g_pernr&lt;/P&gt;&lt;P&gt;exporting list to memory&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case we are submitting the report ZREPORT1, passing the parameter pernr a value of g_pernr (from the calling program) sending the output list to ABAP memory, and returning to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can retrieve the list using the function module LIST_FROM_MEMORY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 11:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263809#M491047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T11:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263810#M491048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right, you can use EXPORT &amp;amp; IMPORT  to transfer data from calling program to called program &amp;amp; vice-versa...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rengaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 11:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263810#M491048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T11:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263811#M491049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Calling program&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;prog&amp;gt; AND RETURN.&lt;/P&gt;&lt;P&gt;IMPORT TEXT3 FROM MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;WRITE: / SY-SUBRC, TEXT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT itab TO jtab FROM MEMORY ID 'table'.&lt;/P&gt;&lt;P&gt;WRITE: / SY-SUBRC, TEXT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Called Program&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TEXT1&lt;/P&gt;&lt;P&gt;       TEXT2 FROM 'Literal' &lt;/P&gt;&lt;P&gt;  TO MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT ITAB&lt;/P&gt;&lt;P&gt;  TO MEMORY ID 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indrajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 11:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263811#M491049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T11:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263812#M491050</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;the called program is a SAP standard program.&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;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 11:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263812#M491050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263813#M491051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U have one option in SUBMIT which is  EXPORTING LIST TO MEMORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This addition stores the basic list for the program accessed in the ABAP Memory. It can only be used together with the addition AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list is stored in the ABAP Memory as an internal table of the row type ABAPLIST, ABAPLIST being a structured data type in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calling program can access the list stored once program access is completed, using function modules belonging to the function group SLST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g:&lt;/P&gt;&lt;P&gt;Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA list_tab TYPE TABLE OF abaplist. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;              AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_FROM_MEMORY' &lt;/P&gt;&lt;P&gt;  TABLES &lt;/P&gt;&lt;P&gt;    listobject = list_tab &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    not_found  = 1 &lt;/P&gt;&lt;P&gt;    OTHERS     = 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WRITE_LIST' &lt;/P&gt;&lt;P&gt;    TABLES &lt;/P&gt;&lt;P&gt;      listobject = list_tab. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 11:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263813#M491051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T11:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: calling other program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263814#M491052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could u please specify the name of the secondary program u r trying to call from ur program...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 12:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-other-program/m-p/2263814#M491052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T12:11:27Z</dc:date>
    </item>
  </channel>
</rss>

