<?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: Import statement .. what does it do ?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824894#M660924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu, Prashant and Tree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your inputs. I got it now. &lt;/P&gt;&lt;P&gt;I have tried using example code given by Seshu and worked out fine. &lt;/P&gt;&lt;P&gt;Thank you all. This is really great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question, If I am in my second program and not getting any value after export statement, meaning no value has passed from first program, I want to go to my first program and see why data is not comming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the best way to search and go to first program. I am having problem with using Where-Used funtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I keep m,y cursor on memory ID, or Submit export ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;Points awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        venkat Kumbham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2007 14:13:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-28T14:13:57Z</dc:date>
    <item>
      <title>Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824886#M660916</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;What is IMPORT statement doing ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT order_items_in to w_order_items_in from MEMORY ID&lt;/P&gt;&lt;P&gt;'FREEGOODSTERMS'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you kindly explain what this statement is doing ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was by my friend that this is used to pass order_items from one session to this sesssion, but when I searched for FREEGOODSTERMS, I could find export after this statment. I was wondering how can import me first and then export. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 19:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824886#M660916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T19:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824887#M660917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is like ABAP Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing the data from one program to other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first program you can use export memory and second program you can use Import the data based on memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 19:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824887#M660917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T19:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824888#M660918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In My program, When I searched with 'FREEGOODSTERMS' as this is memory ID. I should get only one export and one import both of them are in same include program, more over import statement appears before export statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have realised that, w_order_items_in is Internal table with header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Why import statment appeard first.&lt;/P&gt;&lt;P&gt;2) after import statement, w_order_items_in table is not having any value. please let me know, how to check values before this import statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you. &lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 19:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824888#M660918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T19:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824889#M660919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible that they assigned values to the memory id in some other program. Hence in this program u are importing it..doing some changes and exporting it back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 19:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824889#M660919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T19:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824890#M660920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the program which other program submitting somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are using multiple purpose then export and import statement may possible in one include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best way just use where used list for that include and other programs searching like export and submit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding about export and import then see the below sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one program and paste below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_AMEM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_lfa1 occurs 0 ,&lt;/P&gt;&lt;P&gt;       lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;       end of i_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr&lt;/P&gt;&lt;P&gt;       name1&lt;/P&gt;&lt;P&gt;       land1 from lfa1&lt;/P&gt;&lt;P&gt;       into table i_lfa1 up to 100 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Export&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;export i_lfa1 to memory id 'SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit ztest_amem2 and return.&lt;/P&gt;&lt;P&gt;write:/ 'hello'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create one more program  and paste below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_AMEM2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of j_lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;       lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;       end of j_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import i_lfa1 to j_lfa1 from memory id 'SAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at j_lfa1.&lt;/P&gt;&lt;P&gt;write:/ j_lfa1-lifnr,j_lfa1-name1,j_lfa1-land1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 00:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824890#M660920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T00:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824891#M660921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Import would be to import data from some other program which has EXPORTED the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Export would be to export data to some other program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can check which program has been using IMPORT EXPORT with this string search program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto SE38 &amp;amp; type RPR_ABAP_SOURCE_SCAN&lt;/P&gt;&lt;P&gt;Execute &amp;amp; Enter the search string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 04:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824891#M660921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T04:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824892#M660922</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;Check this. You may get the Idea..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP MEMORY:&lt;/P&gt;&lt;P&gt;To transfer the Data between the Programs Running in the Same Session We can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;Calling Report.&lt;/P&gt;&lt;P&gt;REPORT ZREP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB TYPE TABLE OF MARA.&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TEMPTAB FROM ITAB TO MEMORY ID 'M1'.&lt;/P&gt;&lt;P&gt;SUBMIT ZREP2 AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Called report&lt;/P&gt;&lt;P&gt;REPORT ZREP2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_MARA TYPE TABLE OF MARA.&lt;/P&gt;&lt;P&gt;DATA WA TYPE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TEMPTAB TO IT_MARA FROM MEMORY ID 'M1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_MARA INTO WA.&lt;/P&gt;&lt;P&gt;WRITE:/ WA-MATNR.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SAP Memory:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;It is used to pass the Data to Screen fields or Read data from Screen Fields.&lt;/P&gt;&lt;P&gt;It can be used to Transfer data from one Session(window) to another within the Login.&lt;/P&gt;&lt;P&gt;DATA : V_KUNNR TYPE KNA1-KUNNR VALUE 1000. &lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'KUN' FIELD V_KUNNR.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 04:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824892#M660922</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-28T04:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824893#M660923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sri, &lt;/P&gt;&lt;P&gt;This reply is definitely helpful. &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;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 14:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824893#M660923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824894#M660924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshu, Prashant and Tree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your inputs. I got it now. &lt;/P&gt;&lt;P&gt;I have tried using example code given by Seshu and worked out fine. &lt;/P&gt;&lt;P&gt;Thank you all. This is really great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question, If I am in my second program and not getting any value after export statement, meaning no value has passed from first program, I want to go to my first program and see why data is not comming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the best way to search and go to first program. I am having problem with using Where-Used funtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I keep m,y cursor on memory ID, or Submit export ?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;Points awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        venkat Kumbham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 14:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824894#M660924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T14:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import statement .. what does it do ??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824895#M660925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if where use function is not working then use Program RSRSCAN1(4.6C Version) ( Search string would be memory id and program name is Z* or what ever).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you are not getting the data then issue might be at first program,so keep break point first program then see the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either you can set break point submit area or import statement once you get the data using export statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 17:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement-what-does-it-do/m-p/2824895#M660925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T17:06:39Z</dc:date>
    </item>
  </channel>
</rss>

