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
Similar Messages
-
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 -
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. -
How to create universe for sap bw cubes in Business objects
Hi all,
can anybody tell me the steps to create universe for SAP BW CUBES from Business objects software.
Thanks.
Cheta.Hi,
In a SAP-BW and BO environment using Business Object Universe generator, it appears that BO requires direct data base connectivity to read data from BW.
In XI/XI R2 , it use an RFC connection (MDX driver, which makes BAPI, SAP API calls) to SAP BW to obtain the details of the BW Query or Info Cube for building the Universe using the XI/XIR2 Business Objects designer application. The request for the query or cube details is done VIA BAPI function calls. For the SAP BW Query we must have allow External Access to this query checked under the Query Property window.
Our Integrated Solution Kits do not access the SAP BWs data source.
Hope this helps,
Regards
CSM Reddy -
Is there any function module for getting distribution list name
Hi all,
Is there any function module for getting distribution list name when there is same description for two distribution list name.
or
help me how to fetch the correct distribution name when there is same description.
In order to send mails.
Tell me ASAP.
thanks
sagar.http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
list of Fms -
Setting up of an RFC for getting the SNOTES downloaded to my R/3 system
hi All Experts,
How to Set up an RFC for getting the SNOTES downloaded to my R/3 system. Is the any particular SAP maintained IP thru which we get the SNOTES.
Thanks in advance,
Shyam.Hello,
For RFC based traffic the SAP gateway port is important, check also the message server and dispatcher ports.
This document is a good reference point, I recommend you store it somewhere:
[http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4e515a43-0e01-0010-2da1-9bcc452c280b|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4e515a43-0e01-0010-2da1-9bcc452c280b]
[http://help.sap.com/saphelp_nw70/helpdata/en/43/3464ec8b631c1ce10000000a1553f7/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/43/3464ec8b631c1ce10000000a1553f7/content.htm]
I hope this is usefull.
Wim -
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... -
Need Ideas for creating and using Custom Business Object
Hello Guys,
I am developing an application which uses a Request->Approve->Create approach for creating Purchase documents.
Now I am a little puzzled about how to make use of the Business Object BUS2014.
The application I am developing has its own unique 'Request Number' (say REQID) which will point to the Request for Creation of a purchase order.
Whenever a Request is created (from a Z-Tcode) a workflow needs to be initiated and it has to be sent to the approver.
The Purchase Document will be created once the approver approves.
Now my confusion here is, if I use BUS2014, the object will be instantiated only during the final step of the workflow. But I need an instance during the beginning of the Requestor ->Approver negotiations as I am playing with events. These events needs an Object_key.
How should I proceed here?
Should I create a new logical Business Object like ZPOREQ where I have the above mentioned REQID as the key?
And should I have an attribute of type BUS2014 inside the custom BO?
How will I make use of the methods like BUS2014.Create etc which I may need to create the purchase document?
Any small direction will be a huge help for me to get used to this wilderness.Hi,
You should continue with the ABAP class idea. The business objects are kind of "obsolete" already, and if there is a need to create a new "object", ABAP classes are the way to go. Business objects are still useful, but I normally use them only when an existing standard business object fulfills the requirements (possibly with slight additions) which is almost never.
From my point of view you can use the existing class. Depending on the circumstances I normally have just one class that I use for both workflow and the possible other functionality that is required, but you have to understand that I have this goal in my mind already when starting the development process. As your class most probably has many useful features already (such as you have the header and item data as attributes etc. (if I understood correctly?), these are also useful in in workflow (class attributes will be available in WF container etc.).
If you are hesitant to use the same class directly in your workflow, you could also create a new class ZCL_REQUEST_FOR_WF (with the workflow interface), and then simply add your existing class ZCL_WF_REQUEST as an attribute to this new class. Then this new workflow class could include the pure workflow stuff, and your existing class the non-workflow stuff. But this most probably will not make much sense - just implement the if_workflow interface in your existing class (this is just one possibility that you might consider.)
Regards,
Karri -
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
HumanresourceHello
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 -
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! -bHi 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 -
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 -
Mandatory check failed for attribute process type of business object
Hi Guys,
Im facing an error with the Mandatory check failed for the attribute process type of the business object activity.
I have the subscription business transaction customizing subscription assigned
and the transaction types are visible when I create the activity but when I assign the transaction type then the following error is seenHi,
did you also synchronize the adapter object CRM_DNL_PROCTYP?
Is the CDB table CDBC_PROC_TYPE properly filled in CDB respectively in your local DB?
Regards,
Wolfhard -
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
Maybe you are looking for
-
hi, i want to set cursor on screen field. i used SET CURSOR FIELD field_name command on PBO ,but it is not working. if any body has solution then please reply me.... Thanks Regards Rakesh
-
Hi, I'm working with a client who uses sales opportunities very often and their workflow is as follows. 1. Open the sales opportunity 2. Tab to open the business partner selection screen 3. If the BP does not exist, click "New" at the bottom Problem
-
Extract text from htm page.
I am trying to perform an action in Automator to extract a single text from many htm pages. The problem is that after this single text, comes reference composed by numbers and letters. Example: I have 872 archives of htm pages which I have to extract
-
I use Firefox 'Most Visited' to access websites I use many times every day. I inadvertently clicked 'Forget About This Site' on a page listing that I need. That page is gone, apparently permanently, from my 'Most Visited' list. No matter how many tim
-
Mozilla Firefox is crashing non-stop, no matter what.
The Mozilla Crash Report appeared on my computer screen recently so I went about trying to figure out the problem. I tried to open Firefox again and it wouldn't. I opened in Safe Mode and it worked until I tried to navigate away from the start page.