<?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 Batch input inside a ABAP Class method? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-inside-a-abap-class-method/m-p/7236735#M1525673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I do a simple batch input inside a ABAP Class method? Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to objects and I need to do a batch input (Call Transaction) that was once in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use performs inside methods, so how shoul i do it?&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;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 17:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-21T17:51:33Z</dc:date>
    <item>
      <title>Batch input inside a ABAP Class method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-inside-a-abap-class-method/m-p/7236735#M1525673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I do a simple batch input inside a ABAP Class method? Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to objects and I need to do a batch input (Call Transaction) that was once in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use performs inside methods, so how shoul i do it?&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;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 17:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-inside-a-abap-class-method/m-p/7236735#M1525673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Batch input inside a ABAP Class method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-inside-a-abap-class-method/m-p/7236736#M1525674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can do it. The &lt;EM&gt;method&lt;/EM&gt; is nothing more for class but the same which &lt;EM&gt;subroutine&lt;/EM&gt; (form) is for program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So map all the subroutines from the program to methods, all global data objects to class attributes. Make all those which have to be exposed &lt;EM&gt;public&lt;/EM&gt; and the ones to internal calculation &lt;EM&gt;private&lt;/EM&gt; . Inside write your functional code (the one which BDC program uses in subroutines) and pretty much that's it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create another local program which instantiates the class object and calls its public methods (like i.e adding new row to BDC table based on the parameters).  BTW such BDC table should be a private class attribute (not to be changed directly, but only by class methods). Then at the end call the method (i.e. &lt;EM&gt;batch_entry&lt;/EM&gt; ) which calls the transaction passing this BDC table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, by rewriting the code to OO one, you don't really gain to much in this respect. You can still work with your procedural coding, but for training I think this might be a good example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 19:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-inside-a-abap-class-method/m-p/7236736#M1525674</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-21T19:08:52Z</dc:date>
    </item>
  </channel>
</rss>

