<?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 transaction via SUBMIT and then returning back to same program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173862#M1197894</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;After &lt;STRONG&gt;Submit .... and  Return&lt;/STRONG&gt;  statement  you can start second  processing .Before starting second processing you need to import the table from the called program by  statemment follows --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Submit .... and  Return
IMPORT  t_itab  FROM MEMORY ID 'ABCD'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the called program you need to export the same -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT t_itab TO MEMORY ID 'ABCD'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 03:30:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T03:30:32Z</dc:date>
    <item>
      <title>Calling transaction via SUBMIT and then returning back to same program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173860#M1197892</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 want to process internal table from 1 page to an executable program which shall process that internal table, and I want to get the processed data in another internal table to my calling program.&lt;/P&gt;&lt;P&gt;I used SUBMIT AND RETURN.&lt;/P&gt;&lt;P&gt;But where to begin the second processing, I get struck.&lt;/P&gt;&lt;P&gt;Is there any function module to aviod it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 01:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173860#M1197892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T01:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling transaction via SUBMIT and then returning back to same program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173861#M1197893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi johny,&lt;/P&gt;&lt;P&gt;Use EXPORT and IMPORT to pass internal table . please  explain what u actualy want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek prakash on Feb 12, 2009 3:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 02:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173861#M1197893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T02:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling transaction via SUBMIT and then returning back to same program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173862#M1197894</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;After &lt;STRONG&gt;Submit .... and  Return&lt;/STRONG&gt;  statement  you can start second  processing .Before starting second processing you need to import the table from the called program by  statemment follows --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Submit .... and  Return
IMPORT  t_itab  FROM MEMORY ID 'ABCD'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the called program you need to export the same -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;PRE&gt;&lt;CODE&gt;EXPORT t_itab TO MEMORY ID 'ABCD'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 03:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173862#M1197894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T03:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling transaction via SUBMIT and then returning back to same program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173863#M1197895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*Submit report but export resultant list to memory, rather than&lt;/P&gt;&lt;P&gt;*it being displayed on screen&lt;/P&gt;&lt;P&gt; SUBMIT zreport EXPORTING LIST TO MEMORY.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Once report has finished and control has returned to calling&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; program, use function modules LIST_FROM_MEMORY, WRITE_LIST and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DISPLAY_LIST to retrieve and display report.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Example Code (Retrieving list from memory)&lt;/P&gt;&lt;P&gt;DATA  BEGIN OF itab_list OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE abaplist.&lt;/P&gt;&lt;P&gt;DATA  END OF itab_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF vlist OCCURS 0,&lt;/P&gt;&lt;P&gt;        filler1(01)   TYPE c,&lt;/P&gt;&lt;P&gt;        field1(06)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler(08)    TYPE c,&lt;/P&gt;&lt;P&gt;        field2(10)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler3(01)   TYPE c,&lt;/P&gt;&lt;P&gt;        field3(10)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler4(01)   TYPE c,&lt;/P&gt;&lt;P&gt;        field4(3)     TYPE c,&lt;/P&gt;&lt;P&gt;        filler5(02)   TYPE c,&lt;/P&gt;&lt;P&gt;        field5(15)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler6(02)   TYPE c,&lt;/P&gt;&lt;P&gt;        field6(30)    TYPE c,&lt;/P&gt;&lt;P&gt;        filler7(43)   TYPE c,&lt;/P&gt;&lt;P&gt;        field7(10)    TYPE c,&lt;/P&gt;&lt;P&gt;      END OF vlist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zreport EXPORTING LIST TO MEMORY.&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 = itab_list&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    not_found  = 4&lt;/P&gt;&lt;P&gt;    OTHERS     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    list_index         = -1&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    listasci           = vlist&lt;/P&gt;&lt;P&gt;    listobject         = itab_list&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    empty_list         = 1&lt;/P&gt;&lt;P&gt;    list_index_invalid = 2&lt;/P&gt;&lt;P&gt;    OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE '0'.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 03:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173863#M1197895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T03:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling transaction via SUBMIT and then returning back to same program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173864#M1197896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi johny,&lt;/P&gt;&lt;P&gt;     passing internal table i_tab1 to another  executable program..&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    EXPORT i_tab1 TO MEMORY ID 'AA'.
    SUBMIT &amp;lt;progname&amp;gt; AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;in called program..&lt;/P&gt;&lt;P&gt;IMPORT itab1 from memory id 'AA'.&lt;/P&gt;&lt;P&gt;loop at i_tab1 into workarea.&lt;/P&gt;&lt;P&gt;"process data....&lt;/P&gt;&lt;P&gt;append workarea to i_tab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export i_tab2 to memory id 'BB'.&lt;/P&gt;&lt;P&gt;leave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in calling program ......&lt;/P&gt;&lt;P&gt;after submit statement..&lt;/P&gt;&lt;P&gt;import i_tab2 from memory id 'BB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 and itab2 must be declared in both the programs and have same structure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 05:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-transaction-via-submit-and-then-returning-back-to-same-program/m-p/5173864#M1197896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T05:02:06Z</dc:date>
    </item>
  </channel>
</rss>

