<?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: Passing an internal to another program using SUBMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431994#M206414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code for the IMPORT/EXPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zkis1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: imara type table of mara with header line.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select * into table imara from mara up to 10 rows.&lt;/P&gt;&lt;P&gt;export imara to memory id 'YOURID'.&lt;/P&gt;&lt;P&gt;submit zkis2 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The submitted program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zkis2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: imara type table of mara with header line.&lt;/P&gt;&lt;P&gt;import imara from memory id 'YOURID'.&lt;/P&gt;&lt;P&gt;loop at imara.&lt;/P&gt;&lt;P&gt;write:/ imara-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 10:59:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T10:59:55Z</dc:date>
    <item>
      <title>Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431989#M206409</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 need to pass one internal table from one program to another which i am calling using SUBMIT. Is there any way to pass this data without using export/import or selection screen.&lt;/P&gt;&lt;P&gt;   If i do use EXPORT is there a retriction to the maximum size i can export?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431989#M206409</guid>
      <dc:creator>pankajs_dwivedi</dc:creator>
      <dc:date>2006-07-19T10:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431990#M206410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope there is no restriction to the size of the internal table that we export to memory id. memory id is the best way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431990#M206410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431991#M206411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u will get this exception if data is too large&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_SY_EXPORT_BUFFER_NO_MEMORY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: The EXPORT data cluster is too large for the application buffer. With EXPORT TO SHARED BUFFER, this error should only rarely occur since the buffer uses a replacement procedure similar to the LRU (Least Recently Used) procedure. If the error occurs nevertheless, it could be useful to increase the profile parameter rsdb/obj/buffersize (see Profile Parameter Properties). &lt;/P&gt;&lt;P&gt;Runtime Error: EXPORT_BUFFER_NO_MEMORY (catchable)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431991#M206411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431992#M206412</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 can use TRY CATCH to catch the exception, if the data is large in internal 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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431992#M206412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431993#M206413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you HAVE to use import/export or submit via selection screen there is no other alternative.(A far fetched alternative would be updating a ztable in prog1 and retrieving from it in prog2).&lt;/P&gt;&lt;P&gt;using selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in prog1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;r_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_matnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_matnr-low = itab-matnr.&lt;/P&gt;&lt;P&gt;append r_matnr.&lt;/P&gt;&lt;P&gt;clear r_matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit prog2 via selection-screen&lt;/P&gt;&lt;P&gt;with s_matnr in r_matnr and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in prog2&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_matnr.&lt;/P&gt;&lt;P&gt;itab-matnr = s_matnr-low.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431993#M206413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431994#M206414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code for the IMPORT/EXPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zkis1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: imara type table of mara with header line.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select * into table imara from mara up to 10 rows.&lt;/P&gt;&lt;P&gt;export imara to memory id 'YOURID'.&lt;/P&gt;&lt;P&gt;submit zkis2 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The submitted program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zkis2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: imara type table of mara with header line.&lt;/P&gt;&lt;P&gt;import imara from memory id 'YOURID'.&lt;/P&gt;&lt;P&gt;loop at imara.&lt;/P&gt;&lt;P&gt;write:/ imara-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 10:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431994#M206414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T10:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431995#M206415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider these two programs I have done using both WITH SELECTION-TABLE and IMPORT/EXPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Program 1(ZZTEST_ARUN_1).&lt;/P&gt;&lt;P&gt;I have two radio buttons. If I select Material the program executes its own code. If I select plant data is fetched and exported to memory. Then it gets the selection parameters of the Program 2(ZZTEST_ARUN_2) through the FM RS_REFRESH_FROM_SELECTOPTIONS. Then I populate the values for selection screen and pass using the &lt;/P&gt;&lt;P&gt;SUBMIT....WITH SELECTION-TABLE option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zztest_arun_1.
  TABLES: t001w.
  DATA : it_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE,
         it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
 
   PARAMETERS material RADIOBUTTON  GROUP  abc.     "Material General Details
 
   PARAMETERS plant RADIOBUTTON GROUP abc DEFAULT 'X'.      "Material Plant Details
 
   START-OF-SELECTION.
 
   IF material EQ 'X'.
   
*If Material selected own code executes   
 
    SELECT * FROM marc INTO TABLE it_marc UP TO 200 ROWS .
     LOOP AT it_marc.
 
     WRITE :/ it_marc-matnr,
            it_marc-werks.
     ENDLOOP.
 
   ENDIF.
 
  IF plant EQ 'X'.
 
*If Plant selected data fetched   
 
    SELECT * FROM t001w INTO TABLE it_werks UP TO 50 ROWS.
    
*Exported to Memory
    
    EXPORT it_werks[] TO MEMORY ID 'TEST'.
 
*Declare on selection table type RSPARAMS
 
    DATA :   stable	LIKE	rsparams OCCURS 0 WITH HEADER LINE.
 
*Call this FM to get the Selection screen details
*of Program ZZTEST_ARUN_2 (it returns Select Options, Parameters..)
 
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
         curr_report     = 'ZZTEST_ARUN_2'
      TABLES
         selection_table = stable
      EXCEPTIONS
         not_found       = 1
         no_report       = 2
         OTHERS          = 3.
      
    IF sy-subrc &amp;lt;&amp;gt; 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
 
   stable-sign = 'I'.
   stable-option = 'BT'.
   
* populate some selection condition
   READ TABLE it_werks INDEX 10.
   stable-low = it_werks-werks.
 
   READ TABLE it_werks INDEX 40.
   stable-high = it_werks-werks.
 
   APPEND stable.
 
*Submit it then
   SUBMIT zztest_arun_2
       WITH SELECTION-TABLE stable
       AND RETURN.
 
   ENDIF.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Second Program.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zztest_arun_2.
TABLES: t001w.
 
DATA : it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
 
SELECT-OPTIONS : s_werks FOR t001w-werks.
 
 
 
*Import the stored data.
IMPORT it_werks[] FROM MEMORY ID 'TEST'.
 
 
*Display the data based on selection criteria got
*form ZZTEST_ARUN_1
LOOP AT it_werks WHERE werks  IN s_werks.
  WRITE : / it_werks-werks,
            it_werks-name1.
 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 11:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431995#M206415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Passing an internal to another program using SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431996#M206416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &amp;lt;b&amp;gt;import/export&amp;lt;/b&amp;gt; statements.&lt;/P&gt;&lt;P&gt;Lets take a simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling program(say zprog1)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: i_tab type table of mara with header line.

start-of-selection.

select * into table i_tab from mara up to 10 rows.
&amp;lt;b&amp;gt;
export i_tab to memory id 'YOURID'.
submit zprog2 and return.
&amp;lt;/b&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Called program (zprog2)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;PRE&gt;&lt;CODE&gt;

data: i_tab type table of mara with header line.
&amp;lt;b&amp;gt;
import i_tab from memory id 'YOURID'.
&amp;lt;/b&amp;gt;
loop at i_tab.

write:/ i_tab-matnr.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anirban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 12:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-an-internal-to-another-program-using-submit/m-p/1431996#M206416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T12:29:55Z</dc:date>
    </item>
  </channel>
</rss>

