<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251183#M1720835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Import or Export statements didn't access the data base tables, instead they access the memory area called as 'ABAP Memory' where the internal sessions of a program can communicate with each other. For Memory structure of ABAP Memory see the following link..&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm" title="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are passing data to abap memory so that in future you can access to that memory area and use it in anoter inernal session.&lt;/P&gt;&lt;P&gt;For example say you are having two programs p1 and p2 with T1 and T2 as transaction code assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In P1 i'm Exporting a internal table ITAB1 to ABAP Memory area. Inside the Program P1 I'll call the transaction T2, In turn it'll executes program P2. In-fact I'll import the ITAB1 from ABAP Memory for some calculations. After the execution of the Tcode T2, the control will come back to the execution of Program P1 to execute the remaining code of P1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code looks like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REport P1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: Itab1 &amp;lt;some internal table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export itab to &lt;SPAN style="color: #000000; font-family: Arial; background-color: #ffffff;"&gt;MEMORY ID&lt;/SPAN&gt; &amp;lt;some memory id&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction T2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remaing code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2012 07:34:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-24T07:34:52Z</dc:date>
    <item>
      <title>Import Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251180#M1720832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small question. Please consider the following two piece of code from an actual ABAP program in R/3:&amp;nbsp; '&lt;STRONG&gt;rqdses20&lt;/STRONG&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;SPAN class="L0S52"&gt;IMPORT &lt;/SPAN&gt;prlst_tmp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qmhutab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;g_qmhutab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_qals&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;qals&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_first_print&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;g_first_print&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_print_message&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;g_print_message &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'QM_PRT01'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&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;SPAN class="L0S52"&gt;PERFORM &lt;/SPAN&gt;&lt;STRONG&gt;badi_set_qals&lt;/STRONG&gt; &lt;SPAN class="L0S52"&gt;USING &lt;/SPAN&gt;&lt;STRONG&gt;qals&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&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;SPAN class="L0S55"&gt;'&lt;STRONG&gt;qals&lt;/STRONG&gt;' is a Transparent global table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When the data / information is IMPORTED from the Memory ID as mentioned above, is it being read into the actual database &lt;STRONG&gt;qals&lt;/STRONG&gt; table. Does this update the actual database ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The perform statement passes the table &lt;STRONG&gt;qals&lt;/STRONG&gt; to the function module&amp;nbsp; &lt;STRONG&gt;badi_set_qals&lt;/STRONG&gt;. Is the entire table getting passed to the FM ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the table is already a global transparent entity, why does the PERFORM statement need to pass it ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new to ABAP and therefore request you assistance to understand some basics of such code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please accept my heartist greetings for the Festive Season. Merry Christmas and Happy New Year&amp;nbsp; to all &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1115/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 18:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251180#M1720832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-22T18:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251181#M1720833</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;Use the f1 key when you need it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When the data / information is IMPORTED from the Memory ID as mentioned above, is it being read into the actual database qals table. Does this update the actual database ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import is importing to internal memory.&lt;/P&gt;&lt;P&gt;Note the use of TABLES: at RQDSES20 .&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;2. The perform statement passes the table qals to the function module&amp;nbsp; badi_set_qals. Is the entire table getting passed to the FM ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the table is already a global transparent entity, why does the PERFORM statement need to pass it ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems as design consideration since this form is used in many programs (click on the form name)&amp;nbsp; so the developer choose to use parameter even though QALS is global (I personally dislike global variables. see &lt;A href="http://en.wikipedia.org/wiki/Global_variable"&gt;http://en.wikipedia.org/wiki/Global_variable&lt;/A&gt;) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 06:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251181#M1720833</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2012-12-24T06:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Import Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251182#M1720834</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;1) For he First ques , data may or may not be read from the DB, Depends upon from where its being exported.And NO UPDATE of DB table QALS is happening in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; badi_set_qals is passing only the structure of the table QALS is being passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 06:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251182#M1720834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-24T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Import Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251183#M1720835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Import or Export statements didn't access the data base tables, instead they access the memory area called as 'ABAP Memory' where the internal sessions of a program can communicate with each other. For Memory structure of ABAP Memory see the following link..&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm" title="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are passing data to abap memory so that in future you can access to that memory area and use it in anoter inernal session.&lt;/P&gt;&lt;P&gt;For example say you are having two programs p1 and p2 with T1 and T2 as transaction code assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In P1 i'm Exporting a internal table ITAB1 to ABAP Memory area. Inside the Program P1 I'll call the transaction T2, In turn it'll executes program P2. In-fact I'll import the ITAB1 from ABAP Memory for some calculations. After the execution of the Tcode T2, the control will come back to the execution of Program P1 to execute the remaining code of P1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code looks like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REport P1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: Itab1 &amp;lt;some internal table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export itab to &lt;SPAN style="color: #000000; font-family: Arial; background-color: #ffffff;"&gt;MEMORY ID&lt;/SPAN&gt; &amp;lt;some memory id&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction T2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remaing code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 07:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/import-statement/m-p/9251183#M1720835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-24T07:34:52Z</dc:date>
    </item>
  </channel>
</rss>

