<?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 IMPORT Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678889#M1291027</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;can anyone explain the IMPORT.......FROM DATABASE.......ID...... statment and what are the values to be passed for this. Any pointer would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;uday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please search before asking basic questions - post locked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 2, 2009 9:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2009 09:48:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-02T09:48:30Z</dc:date>
    <item>
      <title>IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678889#M1291027</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;can anyone explain the IMPORT.......FROM DATABASE.......ID...... statment and what are the values to be passed for this. Any pointer would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;uday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please search before asking basic questions - post locked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 2, 2009 9:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 09:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678889#M1291027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T09:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678890#M1291028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this link - &lt;A href="http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm" target="test_blank"&gt;http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 09:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678890#M1291028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678891#M1291029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 09:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678891#M1291029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T09:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678892#M1291030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: krupa jani on Jun 2, 2009 11:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 09:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678892#M1291030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T09:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678893#M1291031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXPORT :-&lt;/P&gt;&lt;P&gt;To read data objects from an ABAP program into ABAP memory, use the following statement:&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;EXPORT &amp;lt;f1&amp;gt; [FROM &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [FROM &amp;lt;g 2&amp;gt;] ... TO MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;This statement stores the data objects specified in the list as a cluster in memory. If you do not use the option FROM &amp;lt;f i &amp;gt;, the data object &amp;lt;f i &amp;gt; is saved under its own name. If you use the FROM &amp;lt;g i &amp;gt; option, the data objet &amp;lt;g i &amp;gt; is saved under the name &amp;lt;f i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;The EXPORT statement always completely overwrites the contents of any existing data cluster with the same name &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT :-&lt;/P&gt;&lt;P&gt;To read data objects from ABAP memory into an ABAP program, use the following statement:&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... FROM MEMORY ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO &amp;lt;g i &amp;gt; option, the data object &amp;lt;f i &amp;gt; in memory is assigned to the data object in the program with the same name. If you do use the option, the data object &amp;lt;f i &amp;gt; is read from memory into the field &amp;lt;g i &amp;gt;. The name &amp;lt;key&amp;gt; identifies the cluster in memory. It may be up to 32 characters long. &lt;/P&gt;&lt;P&gt;You do not have to read all of the objects stored under a particular name &amp;lt;key&amp;gt;. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name &amp;lt;key&amp;gt;, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name &amp;lt;key&amp;gt;, SY-SUBRC is always 0, regardless of whether it contained the data object &amp;lt;f i &amp;gt;. If the cluster does not contain the data object &amp;lt;f i &amp;gt;, the target field remains unchanged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for syntax : check the link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm" target="test_blank"&gt;http://help.sap.com/abapdocu/en/ABAPIMPORT_MEDIUM.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678893#M1291031</guid>
      <dc:creator>gautam_totekar</dc:creator>
      <dc:date>2009-06-02T10:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678894#M1291032</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;IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... FROM DATABASE&lt;/P&gt;&lt;P&gt;                                    &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) [CLIENT &amp;lt;cli&amp;gt;] ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IMPORT statement reads the contents of the user fields from the database &lt;/P&gt;&lt;P&gt;  table. If the database does not contain any objects that  correspond to the key &amp;lt;ar&amp;gt;, &lt;/P&gt;&lt;P&gt;  &amp;lt;key&amp;gt;, and &amp;lt;cli&amp;gt;, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in &lt;/P&gt;&lt;P&gt;  the database with the same key, SY-SUBRC is always 0, regardless of whether it &lt;/P&gt;&lt;P&gt;  contained the data object &amp;lt;fi&amp;gt;. In this statement, the system does not check whether &lt;/P&gt;&lt;P&gt;  the structure of the object in the database is compatible with the structure into which &lt;/P&gt;&lt;P&gt;  you are reading it. If this is not the case, a runtime error occurs.&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;Dhavalshree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678894#M1291032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678895#M1291033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IMPORT &amp;lt;f1&amp;gt; [TO &amp;lt;g 1&amp;gt;] &amp;lt;f 2&amp;gt; [TO &amp;lt;g 2&amp;gt;] ... 
 FROM DATABASE &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) 
[CLIENT &amp;lt;cli&amp;gt;] ID &amp;lt;key&amp;gt;|MAJOR-ID &amp;lt;maid&amp;gt; [MINOR-ID &amp;lt;miid&amp;gt;].

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachinkumar Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 10:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678895#M1291033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T10:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: IMPORT Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678896#M1291034</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;IMPORT obj1 ... objn FROM SHARED BUFFER itab(ar) ID key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. &lt;/P&gt;&lt;P&gt;See Cannot Use Implicit Fieldnames in Clusters und Cannot Use Table Work Areas. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Imports data objects obj1 ... objn (fields or &lt;/P&gt;&lt;P&gt;tables) from the cross-transaction application buffer. The data objects are read in the application buffer using the ID key of the area ar of the buffer area for the table itab (see EXPORT TO SHARED BUFFER). You must use dbtab to specify a database table although the system reads from a memory table with an appropriate structure. &lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Import two fields and an internal table from the application buffer with the structure INDX: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ITAB3_LINE, &lt;/P&gt;&lt;P&gt;         CONT(4), &lt;/P&gt;&lt;P&gt;       END OF ITAB3_LINE. &lt;/P&gt;&lt;P&gt;DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE', &lt;/P&gt;&lt;P&gt;      F1(4), &lt;/P&gt;&lt;P&gt;      F2(8) TYPE P DECIMALS 0, &lt;/P&gt;&lt;P&gt;      ITAB3 TYPE STANDARD TABLE OF ITAB3_LINE, &lt;/P&gt;&lt;P&gt;      INDX_WA TYPE INDX. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Import data. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORT F1 = F1 F2 = F2 ITAB3 = ITAB3 &lt;/P&gt;&lt;P&gt;       FROM SHARED BUFFER INDX(ST) ID INDXKEY TO INDX_WA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;You must declare the table dbtab, named after DATABASE using a TABLES statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure of the fields, structures, and internal tables to be imported must match the structure of the objects exported to the dataset. Moreover, the objects must be imported with the same name used to export them. Otherwise, the import is not performed. &lt;/P&gt;&lt;P&gt;The maximum total key length is 64 bytes. It must include: a client if the table is client-specific (3 characters); an area (2 characters); identification; and line counter (4 bytes). This means that the number of characters available for the identification of a client-specific table is 55 characters. &lt;/P&gt;&lt;P&gt;The key, key, must be a character-type data object (but not a string).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 11:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/5678896#M1291034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T11:51:21Z</dc:date>
    </item>
  </channel>
</rss>

