<?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: How to use import/Export to/from Database statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856804#M1787088</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;I think the context might be a issue choose the SHARED BUFFER thing so that it is in the SHARED context. Also check then link below. Have you defined the DB table (demo_indx_table) ? As, the context is OO you might need to do this as an Attribute to visible in scope all along.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_40b/helpdata/EN/34/8e73a36df74873e10000009b38f9b8/content.htm" title="http://help.sap.com/saphelp_40b/helpdata/EN/34/8e73a36df74873e10000009b38f9b8/content.htm"&gt;http://help.sap.com/saphelp_40b/helpdata/EN/34/8e73a36df74873e10000009b38f9b8/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 01:17:50 GMT</pubDate>
    <dc:creator>arindam_m</dc:creator>
    <dc:date>2013-11-13T01:17:50Z</dc:date>
    <item>
      <title>How to use import/Export to/from Database statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856802#M1787086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to&amp;nbsp; perform some validations during GR and to display error messages based on validations. I have performed&amp;nbsp; some checks in PAI_HEADER method of BADI mb_migo_badi, and based on these checks I have tried to display error message through Check_header method of BADI mb_migo_badi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this I have exported a parameter from the method PAI_HEADER and Imported it in Check_header method, But I did not get any value in the import parameter of check_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The lines of sample code I wrote for this is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In PAI_HEADER method-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Data: ET_BAPIret2_1 type table of&amp;nbsp; BAPIRET2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_bapiret like line of et_bapiret2_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data: ET_BAPIret2 type table of&amp;nbsp; BAPIRET2.&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;wa_bapiret-type = 'E'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wA_bapiret-ID = 'ZSCM'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wA_bapiret-NUMBER = '018'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append wa_bapiret to et_bapiret2_1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Export et_bapiret2_1 FROM et_bapiret2 to DATABASE demo_indx_table(hk) ID 'HK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Check_header Method-&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data: ET_BAPIret2_1 like ET_BAPIRET2.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; import ET_Bapiret2 to ET_BAPIret2_1 from database demo_indx_table(hk) ID 'HK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked this code in debugging mode, the table et_bapiret2_1 has values in Method PAI_HEADER&amp;nbsp; while the table is initial in CHECK_HEADER Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys Can you please tell me if I am doing something wrong here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856802#M1787086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-12T15:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use import/Export to/from Database statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856803#M1787087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arshad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should import exactly what you exported:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; import &lt;STRONG&gt;ET_Bapiret_2&lt;/STRONG&gt; to ET_BAPIret2_1 from database demo_indx_table(hk) ID 'HK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 23:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856803#M1787087</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-11-12T23:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use import/Export to/from Database statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856804#M1787088</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;I think the context might be a issue choose the SHARED BUFFER thing so that it is in the SHARED context. Also check then link below. Have you defined the DB table (demo_indx_table) ? As, the context is OO you might need to do this as an Attribute to visible in scope all along.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://help.sap.com/saphelp_40b/helpdata/EN/34/8e73a36df74873e10000009b38f9b8/content.htm" title="http://help.sap.com/saphelp_40b/helpdata/EN/34/8e73a36df74873e10000009b38f9b8/content.htm"&gt;http://help.sap.com/saphelp_40b/helpdata/EN/34/8e73a36df74873e10000009b38f9b8/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 01:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856804#M1787088</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-11-13T01:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use import/Export to/from Database statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856805#M1787089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have not given the correct names in the export and import statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data: ET_BAPIret2_1 type table of&amp;nbsp; BAPIRET2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_bapiret like line of et_bapiret2_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data: ET_BAPIret2 type table of&amp;nbsp; BAPIRET2.&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;wa_bapiret-type = 'E'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wA_bapiret-ID = 'ZSCM'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wA_bapiret-NUMBER = '018'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append wa_bapiret to et_bapiret2_1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp; Export et_bapiret2_1 to DATABASE demo_indx_table(hk) ID 'HK'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Check_header Method-&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data: ET_BAPIret2_&lt;STRONG&gt;1 type table of&amp;nbsp; BAPIRET2. &lt;/STRONG&gt; &lt;SPAN style="text-decoration: line-through;"&gt;like ET_BAPIRET2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;import et_bapiret2_1 from database demo_indx_table(hk) ID 'HK'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that you have given the table declaration statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;STRONG&gt;TABLES demo_indx_table. &lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 06:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-import-export-to-from-database-statement/m-p/9856805#M1787089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-13T06:42:29Z</dc:date>
    </item>
  </channel>
</rss>

