<?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: Submitting table to a custom program from a BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197287#M469109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export doesnt work in object oriented context, and BADI are by origin object oriented base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherway round i believe , data can be inserted in Ztable and from then it can be retrieved via receiver program ( where import is written )..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mr Kapadia&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Assigning points is the way to say thanks in SDN.&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Apr 2007 11:44:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-21T11:44:45Z</dc:date>
    <item>
      <title>Submitting table to a custom program from a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197286#M469108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have successfully submit and return table from a program to another program. Ex : just as the below two program. It is working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am getting problem for submitting from BADI in the same way. it is displaying error for the following line : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT itab1 TO MEMORY id '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax error : this statement does not supported by oops. And they are suggesting something like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT param p1 from var v1 ...... param p2 from var v2... TO MEMORY . Something like this. now i am not able to understand this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone give me some light??????&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;/P&gt;&lt;P&gt;REPORT Z_82235_TEST1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tab1,&lt;/P&gt;&lt;P&gt;a(1),&lt;/P&gt;&lt;P&gt;b(1),&lt;/P&gt;&lt;P&gt;end of tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tab2,&lt;/P&gt;&lt;P&gt;c(1),&lt;/P&gt;&lt;P&gt;d(1),&lt;/P&gt;&lt;P&gt;end of tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type table of tab1,&lt;/P&gt;&lt;P&gt;wa1 like line of itab1,&lt;/P&gt;&lt;P&gt;itab2 type table of tab2,&lt;/P&gt;&lt;P&gt;wa2 like line of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1-a = '1'.&lt;/P&gt;&lt;P&gt;wa1-b = '2'.&lt;/P&gt;&lt;P&gt;append wa1 to itab1.&lt;/P&gt;&lt;P&gt;clear wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1-a = '3'.&lt;/P&gt;&lt;P&gt;wa1-b = '4'.&lt;/P&gt;&lt;P&gt;append wa1 to itab1.&lt;/P&gt;&lt;P&gt;clear wa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT itab1 TO MEMORY id '001'.&lt;/P&gt;&lt;P&gt;EXPORT itab2 TO MEMORY id '002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT Z_82235_TEST2 and return EXPORTING list TO MEMORY .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 into wa2.&lt;/P&gt;&lt;P&gt;write : wa2-c.&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;&lt;/P&gt;&lt;P&gt;REPORT Z_82235_TEST2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tab1,&lt;/P&gt;&lt;P&gt;a(1),&lt;/P&gt;&lt;P&gt;b(1),&lt;/P&gt;&lt;P&gt;end of tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of tab2,&lt;/P&gt;&lt;P&gt;c(1),&lt;/P&gt;&lt;P&gt;d(1),&lt;/P&gt;&lt;P&gt;end of tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type table of tab1,&lt;/P&gt;&lt;P&gt;wa1 like line of itab1,&lt;/P&gt;&lt;P&gt;itab2 type table of tab2,&lt;/P&gt;&lt;P&gt;wa2 like line of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT itab1 FROM MEMORY id '001'.&lt;/P&gt;&lt;P&gt;IMPORT itab2 FROM MEMORY id '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1[] = itab2[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2007 11:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197286#M469108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-21T11:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting table to a custom program from a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197287#M469109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export doesnt work in object oriented context, and BADI are by origin object oriented base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherway round i believe , data can be inserted in Ztable and from then it can be retrieved via receiver program ( where import is written )..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mr Kapadia&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Assigning points is the way to say thanks in SDN.&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Apr 2007 11:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197287#M469109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-21T11:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting table to a custom program from a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197288#M469110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Kapadia,&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;  I want to know how and by which command i can submit internal tables to a custom report from a badi.&lt;/P&gt;&lt;P&gt;   &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;        My doubt is not solved........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Apr 2007 08:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197288#M469110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-22T08:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting table to a custom program from a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197289#M469111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 Z table ztab1 , ztab2. Original code is commented and new code is written below the line which will achieve exactly same functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*EXPORT itab1 TO MEMORY id '001'.
delete from ZTAB1.
Modify ztab1 from table itab1.
*EXPORT itab2 TO MEMORY id '002'.
delete from ZTAB2.
Modify ztab2 from table itab2.

*********************************************************************************************

REPORT Z_82235_TEST2 .

*IMPORT itab1 FROM MEMORY id '001'.
select * from ztab1 into corresponding fields of itab1.
*IMPORT itab2 FROM MEMORY id '001'.
select * from ztab2 into corresponding fields of itab2.
itab1[] = itab2[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mr Kapadia&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Assigning points is the way to say thanks in SDN.&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 04:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-table-to-a-custom-program-from-a-badi/m-p/2197289#M469111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T04:59:16Z</dc:date>
    </item>
  </channel>
</rss>

