Skip to Content
author's profile photo Former Member
Former Member

Programmatically retrieve all data for a Business Object Type


I want to retrieve all data for a Business Object Type and send it to an external applications.

I think the correct way to do this is via an IDOC.

How do I generate such an IDOC programmatically. I want to use some Remote Enabled Function Module to do this.

Any suggestions?


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 07, 2008 at 01:57 PM

    Hi Simon,

    What data of the BO are you talking about,

    Simply the definitions of the BO, (all the methods, attributes and events, plus the abap code) in that case activate the trace

    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

    Or are you interested in the attributes of the BO once it is instantiated? (check include <CNTN01> 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

    Also what is the exact functional requirement which lead to this question, there could be other solutions to it.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Simon,

      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)

      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.

      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.

      Either instantiate business object EMPLOYEET, or BUS1065

      Kind regards, Rob Dielemans

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.