<?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: Programmatically retrieve all data for a Business Object Type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275711#M783184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say we have a SAP system containing e.g. a number of Employees (i.e. a number of instances of the Employee type). Now, I want to connect to the SAP system (probably through a RFC connection) from an external application (a C program) and retrieve all the data (keys and attributes) for these instances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be comparable to a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'select * from table employee' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in database terminology.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to move the data through my C appl. and store it elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to SAP, so maybe I use the wrong words to describe the problem.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2008 15:57:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-07T15:57:37Z</dc:date>
    <item>
      <title>Programmatically retrieve all data for a Business Object Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275709#M783182</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 want to retrieve all data for a Business Object Type and send it to an external applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the correct way to do this is via an IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I generate such an IDOC programmatically. I want to use some Remote Enabled Function Module to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 16:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275709#M783182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T16:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically retrieve all data for a Business Object Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275710#M783183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What data of the BO are you talking about,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply the definitions of the BO, (all the methods, attributes and events, plus the abap code) in that case activate the trace &lt;/P&gt;&lt;P&gt;ST03 and then display a business object to see which tables are consulted for displaying the info for a BO, probably a bapi exists which retrieves the same info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you interested in the attributes of the BO once it is instantiated? (check include &amp;lt;CNTN01&amp;gt; plus the macros swf_create_object  and swc_get_property, use these as searchstring in the workflow forum for more info on how to use them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also what is the exact functional requirement which lead to this question, there could be other solutions to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 13:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275710#M783183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically retrieve all data for a Business Object Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275711#M783184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say we have a SAP system containing e.g. a number of Employees (i.e. a number of instances of the Employee type). Now, I want to connect to the SAP system (probably through a RFC connection) from an external application (a C program) and retrieve all the data (keys and attributes) for these instances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be comparable to a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'select * from table employee' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in database terminology.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to move the data through my C appl. and store it elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to SAP, so maybe I use the wrong words to describe the problem.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 15:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275711#M783184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T15:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically retrieve all data for a Business Object Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275712#M783185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the easiest solution would be to simply identify which attributes you need of BO EMPLOYEET (I'm guessing you want info of this BO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check the abap of all of these attributes and copy that in a new remotely called function module. Most of the employee data is stored in several infotypes, these infotypes have corresponding tables, e.g. PA0000, PA0001 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other option would be to use the aforementioned method of instantiating the bo programmatically with the macro swc_create_object and retrieving the data with swc_get_property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either instantiate business object EMPLOYEET, or BUS1065&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 17:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/programmatically-retrieve-all-data-for-a-business-object-type/m-p/3275712#M783185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-07T17:09:36Z</dc:date>
    </item>
  </channel>
</rss>

