<?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: EXPORT DATA FROM ONE PROGRAM AND IMPORT THE SAME IN ANOTHER PROGRAM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764084#M905655</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 way it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_num type i value 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export v_num to memory id 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ztest1 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_num type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import v_num from memory id 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_num.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2008 16:11:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-06T16:11:30Z</dc:date>
    <item>
      <title>EXPORT DATA FROM ONE PROGRAM AND IMPORT THE SAME IN ANOTHER PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764083#M905654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I need to export data from one program and import the same in another program. So I had used, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRG1:&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;C_ID(10) TYPE C VALUE 'TEST',&lt;/P&gt;&lt;P&gt;V_DATE TYPE SY-DATUM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;V_DATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;EXPORT V_DATE TO MEMORY ID C_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRG2:&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;C_ID(10)  TYPE C VALUE 'TEST',&lt;/P&gt;&lt;P&gt;V_DATE  TYPE SY-DATUM,&lt;/P&gt;&lt;P&gt;V_DATE1 TYPE SY-DATUM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT V_DATE TO V_DATE1 FROM MEMORY ID C_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in PRG2, my v_date1 remains empty.&lt;/P&gt;&lt;P&gt;Please correct me if I'm wrong or if I had missed something or any other alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;VV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 16:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764083#M905654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT DATA FROM ONE PROGRAM AND IMPORT THE SAME IN ANOTHER PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764084#M905655</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 way it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_num type i value 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export v_num to memory id 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ztest1 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_num type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import v_num from memory id 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ v_num.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 16:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764084#M905655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T16:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT DATA FROM ONE PROGRAM AND IMPORT THE SAME IN ANOTHER PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764085#M905656</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 call one selection screen from other selection screen program using SUBMIT command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is as follows -&lt;/P&gt;&lt;P&gt;codeSUBMIT... VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;USING SELECTION-SET &amp;lt;var&amp;gt;&lt;/P&gt;&lt;P&gt;WITH &amp;lt;sel&amp;gt; &amp;lt;criterion&amp;gt;&lt;/P&gt;&lt;P&gt;WITH FREE SELECTIONS &amp;lt;freesel&amp;gt;&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE &amp;lt;rspar&amp;gt;.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeREPORT demo_program_submit_rep1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA number TYPE i.&lt;/P&gt;&lt;P&gt;PARAMETERS paramet(14) TYPE c.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS selecto FOR number.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeREPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int TYPE i,&lt;/P&gt;&lt;P&gt;rspar TYPE TABLE OF rsparams,&lt;/P&gt;&lt;P&gt;wa_rspar LIKE LINE OF rspar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES seltab FOR int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'Select a Selection!',&lt;/P&gt;&lt;P&gt;/ '----&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT HOTSPOT COLOR 5 INVERSE ON.&lt;/P&gt;&lt;P&gt;WRITE: 'Selection 1',&lt;/P&gt;&lt;P&gt;/ 'Selection 2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;CASE sy-lilli.&lt;/P&gt;&lt;P&gt;WHEN 4.&lt;/P&gt;&lt;P&gt;seltab-sign = 'I'. seltab-option = 'BT'.&lt;/P&gt;&lt;P&gt;seltab-low = 1. seltab-high = 5.&lt;/P&gt;&lt;P&gt;APPEND seltab.&lt;/P&gt;&lt;P&gt;SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;WITH paramet eq 'Selection 1'&lt;/P&gt;&lt;P&gt;WITH selecto IN seltab&lt;/P&gt;&lt;P&gt;WITH selecto ne 3&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;WHEN 5.&lt;/P&gt;&lt;P&gt;wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.&lt;/P&gt;&lt;P&gt;wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.&lt;/P&gt;&lt;P&gt;wa_rspar-low = 14. wa_rspar-high = 17.&lt;/P&gt;&lt;P&gt;APPEND wa_rspar TO rspar.&lt;/P&gt;&lt;P&gt;wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.&lt;/P&gt;&lt;P&gt;wa_rspar-low = 'Selection 2'.&lt;/P&gt;&lt;P&gt;APPEND wa_rspar TO rspar.&lt;/P&gt;&lt;P&gt;wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.&lt;/P&gt;&lt;P&gt;wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.&lt;/P&gt;&lt;P&gt;wa_rspar-low = 10.&lt;/P&gt;&lt;P&gt;APPEND wa_rspar TO rspar.&lt;/P&gt;&lt;P&gt;SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;WITH SELECTION-TABLE rspar&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;ENDCASE.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat appikonda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 18:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764085#M905656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T18:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT DATA FROM ONE PROGRAM AND IMPORT THE SAME IN ANOTHER PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764086#M905657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the user exits an external session (/i in the command field), the corresponding ABAP memory is automatically initialized or released.&lt;/P&gt;&lt;P&gt;Export/Import to memory id uses ABAP memory.&lt;/P&gt;&lt;P&gt;If you are using different external sessions for PRG1 and PRG2&lt;/P&gt;&lt;P&gt;then you can not share data between them using export/import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using &lt;STRONG&gt;submit prg2&lt;/STRONG&gt; if you want to use ABAP memory, else i suggest go for &lt;STRONG&gt;Shared Memory Object&lt;/STRONG&gt; SHMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 18:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764086#M905657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: EXPORT DATA FROM ONE PROGRAM AND IMPORT THE SAME IN ANOTHER PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764087#M905658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vaishnavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a small change in program1 and try. Change your export statment as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
EXPORT V_DATE FROM V_DATE TO MEMORY ID C_ID.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 18:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-data-from-one-program-and-import-the-same-in-another-program/m-p/3764087#M905658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T18:53:55Z</dc:date>
    </item>
  </channel>
</rss>

