Get hierarchal list of business objects

Hi,
  I'm using SWO_QUERY_OBJTYPES to get a list of business objects, but I need to display a hierarchy similar to the BAPI explorer. What business object can I use to browse business objects? If no business object is available, what function calls are available to get at the data?

Hi Chris,
this is an excerpt from the SDK Help file.
It works on other object too, of course.
Private Sub DataBrowserOperations()
    '// A Data Browser object can not be created, it is invoked
    '// as a property of a business object.
    '// The BusinessPartners object is used to demonstrate the
    '// use of a DataBrowser object
    Dim BusinessPartners As SAPbobsCOM.BusinessPartners
    '// A DataBrowser object contains a Recordset object.
    '// Because a DataBrowser Object can not be created,
    '// a Recordset Object should be created and then assigned
    '// (linked) to the Recordset Property of the DataBrowser
    Dim oRecordSet As SAPbobsCOM.Recordset
    '// Get a new BusinessPartners object
    Set BusinessPartners = oCompany.GetBusinessObject(oBusinessPartners)
    '// Get a new Recordset object
    Set oRecordSet = oCompany.GetBusinessObject(BoRecordset)
    '// Perform the SELECT statement.
    '// The query result will be loaded
    '// into the Recordset object
    oRecordSet.DoQuery ("Select cardcode from ocrd where cardtype = 'C'")
    '// Asign (link) the Recordset object
    '// to the Browser.Recordset property
    BusinessPartners.Browser.Recordset = oRecordSet
    '// Access the data
    '// Once the Browser points to a row in the
    '// result set you can use the properties directly
    BusinessPartners.CardCode
    BusinessPartners.CardName
    '//Get the next Business Partner
    If BusinessPartners.Browser.EOF = False Then
        BusinessPartners.Browser.MoveNext
    End If
    '//Get the previous Business Partner
    If BusinessPartners.Browser.BoF = False Then
        BusinessPartners.Browser.MovePrevious
    End If
End Sub

Similar Messages

  • RFC for getting a list of business objects.

    Hi!
    I'm currently using the RFC "RPY_BOR_TREE_INIT" (I am setting the "ALLOBJTYPS" column in the "FILTER_OBJECT_TYPES" input structure to "X") to retrieve a list of all business objects along with the hierachy.
    I get back a table having nearly 2000 rows. I now want to display these in a hierarchical fashion similar to how the BAPI explorer does it. However, I see that for a number of rows in the table returned via the RFC above, the BAPI explorer does not show those categories/objects.
    I wanted to know how does the BAPI explorer decide whether a category/object needs to be displayed or not. In my application, I want to display the <i>exact</i> same hierarchy as the BAPI explorer, and currently my app is displaying a lot of extra stuff.
    Any help will be greatly appreciated. I have no idea who else to ask. My SAP consultants dont have any idea, and so we raised a help request with SAP, but they've said that since RPY_BOR_TREE_INIT is meant only for internal use, they wont help us.
    Is there any other RFC (meant for public use) which I can use to display the exact same tree as the BAPI explorer?
    Thanks,
    Mustansir

    ...at least not to the extent that you are looking for.
    Please check the E-learning:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d78ab1f9-0901-0010-8495-8ca0facaea2e?prtmode=navigate
    at: https://www.sdn.sap.com/irj/sdn/businessone-elearning
    ...or go the sample code for the DataBrowser (sub-)object in the "SDK Help Center"...
    ...or go to the DI API sample (no. 2 I think I remember).
    ...to find out how you can navigate between the records of the result of your SQL query; from there you could e.g. export the objects to XML...
    HTH

  • List of business objects

    Hi all,
    Is it possible in the DI API to get a list of business objects (for example business partners) from the Company object or do I have to use a recordset with an SQL statement? If so, how. And if not, where do I find a translation of tablenames (e.g.: AACP, INV6 etc.) to business objects.
    This seems a pretty generic question, but I cannot seem to find the answer. Does anyone have a pointer to good reading on the DI API subject?
    Thanks!
    Best regards.
    Chris G.

    Hi Chris,
    this is an excerpt from the SDK Help file.
    It works on other object too, of course.
    Private Sub DataBrowserOperations()
        '// A Data Browser object can not be created, it is invoked
        '// as a property of a business object.
        '// The BusinessPartners object is used to demonstrate the
        '// use of a DataBrowser object
        Dim BusinessPartners As SAPbobsCOM.BusinessPartners
        '// A DataBrowser object contains a Recordset object.
        '// Because a DataBrowser Object can not be created,
        '// a Recordset Object should be created and then assigned
        '// (linked) to the Recordset Property of the DataBrowser
        Dim oRecordSet As SAPbobsCOM.Recordset
        '// Get a new BusinessPartners object
        Set BusinessPartners = oCompany.GetBusinessObject(oBusinessPartners)
        '// Get a new Recordset object
        Set oRecordSet = oCompany.GetBusinessObject(BoRecordset)
        '// Perform the SELECT statement.
        '// The query result will be loaded
        '// into the Recordset object
        oRecordSet.DoQuery ("Select cardcode from ocrd where cardtype = 'C'")
        '// Asign (link) the Recordset object
        '// to the Browser.Recordset property
        BusinessPartners.Browser.Recordset = oRecordSet
        '// Access the data
        '// Once the Browser points to a row in the
        '// result set you can use the properties directly
        BusinessPartners.CardCode
        BusinessPartners.CardName
        '//Get the next Business Partner
        If BusinessPartners.Browser.EOF = False Then
            BusinessPartners.Browser.MoveNext
        End If
        '//Get the previous Business Partner
        If BusinessPartners.Browser.BoF = False Then
            BusinessPartners.Browser.MovePrevious
        End If
    End Sub

  • How to Retrieve a List of Business Objects using DI Server?

    In DI Server (and DI-API) I could not find how I can get a list of business objects, for instance ServiceCall objects.
    and more - say i need the list with a filter on customer code and call status?

    ...at least not to the extent that you are looking for.
    Please check the E-learning:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d78ab1f9-0901-0010-8495-8ca0facaea2e?prtmode=navigate
    at: https://www.sdn.sap.com/irj/sdn/businessone-elearning
    ...or go the sample code for the DataBrowser (sub-)object in the "SDK Help Center"...
    ...or go to the DI API sample (no. 2 I think I remember).
    ...to find out how you can navigate between the records of the result of your SQL query; from there you could e.g. export the objects to XML...
    HTH

  • How do i get a list of all objects in a combo box

    I want to get the list of all Objects in a JComboBox. I appreciate your help! Thanks!

    I already know the solution with getItemCount and
    then the for loop with getItemAt. I'm curios if there
    exist somethig like Object[] getAllItems()If it's not in the API, then it's not available. You can create your own ComboBoxModel that will return an Object[] of elements and call setModel on your combobox.

  • Attachment list for business objects is not visible

    Dear all
    I have connected an external server to SAP.
    Created repository and created Doc types (say for ex : ZFIINV,  ZMM DRW) and created entries using tcode OAC3
    now i have assigned my doc type to corresponding Business Objects (BKPF for accounting doc,BUS2105 for purchase requisition ,MKPF for MM related docs)
    now i have created entries for my scanned docs in table TOA01.
    i can search an display these docs which are already placed  there in my content server. but i can not see these documents links entries in the attachment list of corresponding Business objects entries.
    for example in BO : BKPF  attachment list i cant see al the link entries .
    please suggest whether any BO is not published or R/3 application connection to the generic object service is not done?
    thanks sandeep

    Hi Sandeep,
    I am not totallt getting your point but can suggest following points:
    1. Check whether these object are displaying in DIR's as object links.
    2. If it is there then it shoud be displayed in document data of those objects.
    3. Check that documents are properly checked-in.
    Hope this may help.
    Regards,
    Ravindra

  • How do i get information about a business object?

    By using reflection i am able to get the list of objects and properties in SAPbobsCOM.BoObjectTypes.
    How can i get a classified list of all objects from the same.
    I mean classified with respect to modules.
    DI API business objects are grouped to the following modules of SAP Business One application :
    Administration
    Finance
    Marketing Documents and Receipts (Sales - A/R and Purchasing - A/P)
    Business Partners
    Inventory and Production
    MRP
    Banking
    Service
    Humanresource

    Hello
    If you read more in the help, you can see which modules holds the corresponding objects...
    Example:
    Marketing Documents and Receipts (Sales - A/R and Purchasing - A/P)
    object called: documents and you may track the correct object types (oOrders, oInvoices, etc)
    if you see the help on Documents object, you can find detailed description there
    Regards
    János

  • How to get  meta data of business objects  in BOR

    i need to get all the meta data information of  business objects present in BOR.
    for example purchase order BUS2012
    1.  I need to get for example  the attributes information how to get it?
    2. if  business object contains further child business objects then how to get attributes of those child business objects  also? 
    I am writing ABAP code,  i want to retrieve all attributes with help of ABAP program .
    any ideas?

    Hi..
    You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
    All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
    Hope to help...

  • Where used list for business objects in TM

    Hi,
    There is a where used list framework in TM7 for
    Transportation Zone, Lane etc.  Is it possible to include the same for TCM business objects like
    FA, Tariff, TCCS, Rate Table, Scale etc.  Is it possible to do the customization?
    Thanks and regards,
    Suresh.

    Hi
    The following may of useful to you.
    https://wiki.sdn.sap.com/wiki/display/ESpackages/IntegrationofTransportationManagementSystemBusinessObjects
    Regards
    Shan

  • Get a list of all objects in a document by type?

    Is there a method somewhere that i can retrieve all objects,
    children, grandchildren, etc., by passing it's type? say i want to
    get all TextArea's in a document- i imagine something like
    getObjectsByType('TextArea') or something similar. Does this method
    exist? If not, would the only way to do this is to make a recursing
    function go through all children? Thank you! -b

    Hi all,
    I found a way to get what I was looking for.  I am sure its not a supported way, but as a SQL DBA,  I used the only way I know, which is hitting the tables.
    I used the AllLists to get the list title, last updated, and item counts and I joined it to the AllUserData to get the directory of the list.
    Joe

  • How do i get a price on Business Objects Edge?

    I have tried the following numbers
    866-681-3435x1
    Products and Services
    800-872-1727
    main office
    610-661-1000
    And I still can't get anyone on the phone. I need to find out how much it will cost me to buy Business Objects edge before i waste any time trying to use it.

    Hello Casey,
    You can call 1-800-877-2340 and select Option 4 and then Option 1.  This is the Tele-Sales number.  They should be able to assist you or point you in the correct direction.
    Sincerely,
    Dan Kelleher

  • Where get the Version trials Business Object with all your components?

    How get the version trial the Business Object Enterprise XI 3.1 or the ultimate version, I need with all components for example: Business View manage, Desinger, Central cofiguration manager, Desktop Web Intelligence, Universe Builder, etc.

    You need to login to SAP Service Market Place (SMP) and visit the download section i.e https://service.sap.com/swdc
    Once there you need to navigate to Installations and Upgrades > SAP BusinessObjects portfolio  > SAP BusinessObjects Business Intelligence platform (SBOP Enterprise) > BOBJ ENTERPRISE XI 3.1 > Installation > Choose OS platform > SBOP ENTER SERVER XI 3.1 SP3 WINDOWS > Download all three parts.
    Similarly, you can obtain temp license key from https://service.sap.com/licensekey
    Thanks

  • How to get the List of Database Objects (Table/View) for a given APEX Page.

    Hi,
    I have an application and that consist of pages like page1,2,3,.....
    *1.* I want a report which can give me the list of all the Pages1,2,3,....
    I am using the following query to acheive this.... THIS IS FINE..
    select a.workspace, a.owner, a.application_name, b.page_id, b.page_name
      from apex_applications a,
           apex_application_pages b
    where a.workspace = b.workspace
       and a.application_id = b.application_id*2. Now, I want for each individual page*, the list all the database objects (tables/views), which that page is using.
    I am using ALL_DEPENDENCIES , but I am not getting the result.
    So, want to know if there any view/table, where I can get the Application Pages & there database object list...
    Thanks,
    Deepak

    Hari,
    Thanks for the response.
    The view APEX_APPLICATION_PAGE_DB_ITEMS will only give me the table name related to any Page Items defined to that page..It will not give me all the database objects..
    suppose we have a Page, having a report based on multiple tables and there is no Page items defined on that page, we will not have any value in this ....DB_ITEMS table. same thing if we have define some PL|SQL(using some table/view) in a Process, that will not be populated in .....DB_ITEMS table. I want some thing like all the database objects (table/views/function/procedure/.....) for a particular Page ID.
    Thanks,
    Deepak

  • How to get the list of instanciated object in the JVM ?

    Hi,
    Is there a way to build a HashMap containing:
    key: class name
    value: array of Objects references containing all instance of this class name
    Thank's
    John

    With others words, this questions were here to investigate if there is a tricky way to write a pure java code to that can identify and references objects living in the heap (debugging and performance purpose).
    Yeap, somewhere this question is not interesting as there is no pointers in java, so no way to read a single bit in the heap.
    I were just hopping that somewhere there is a way to enumerate the object living in the heap, either through a hashmap containing the reference of these object and managed by an obscur java.lang class or a kind of class that will load "manually" any application to troubleshoot (much more realistic as such hashmap should exist and by managed by the jvm only).
    Now, using jni, is it possible to access in a very simple way this "jvm hashmap" ?

  • How to get the list of object that are going to modify during the upgrade?

    We are upgrading sap 4.OB to ECC 6, is there any place we will get the list of standard object which are going to modify in service market place? Please let me know the link to get those details.
    Thanks

    Usually you get this list when upgrading first system (sandbox type) via SPDD and SPAU. (useful for objects modified in your system - SNOTE or mofications) - The whole list of modified objects will be huge,  many (most) objects were modified (created, even deleted) those last 13 years.
    There are also tools that may help you like [panaya|http://www.panayainc.com/] (but i'm not sure for a 4.0B, it worked fine for a 46c) - look for tools/vendor at [Partner Information Center: Search|http://www.sap.com/partners/directories/SearchSolution.epx]
    Regards,
    Raymond

Maybe you are looking for

  • Number of times a service order has been printed

    Hi, Is there a standard report in SAP that allows you to see how many times service orders have been printed? I know you can look in the action log for each individual order and count the 'Printed' entries, but is there a more efficient way of doing

  • CcBPM queue blocked related to certain correlations being "busy"

    The symptoms of the error is SYSFAIL on queue XBQ0 with StatusText: "Permanent error in BPE inbound processing" This ccBPM bundles CREMAS idocs with a correlation on RCVPRN. There are 11 different RCVPRN, but the correlation is only working on 5 of t

  • DW CC 2014: Undo switches between files.

    Scenario: I'm editing a HTML file with a styles.css related file. So I have one tab open and on top i have 'Source code' and 'styles.css' (as the css file is automatically detected and shown). Say I edit some text in the html file, switch to styles.c

  • Windows 8.1 Alt + F4 key stops working

    After waking a new Samsung laptop from sleep, the Alt F4 key combination fails to close the desktop window with the focus.  The correct behaviour can be restored by carring out a full shutdown (shutdown.exe /s /f /t 00) and restart.  I am unable to t

  • ITunes for Windows services

    I just downloaded the latest version of iTunes. As usual with iTunes, there is another service that starts with the program. This one is for the iPhone. Now, as I do not have an iPhone, nor is one in the immediate future, there is no reason for this