Query on objects
Hi Friends,
My query is what ever we develop in ABAP i.e reportr,BDC,scripts,smart forms,BAPI's etc will be called as objects. why we are calling them as Objects?
Regards,
Kishore
Thanks in advamce
The type of a variable is the 'Datatype'.
The value in the variable with proper data type is a 'Data object'
The variables with data are allocated memory and these can be transported from one place to another in the repository.
We call them as 'Objects' only because now that they are independent and can be transported if necessary.
with regards,
Hema Sundara.
Similar Messages
-
Querying deleted objects container in Active Directory using JNDI
Hi,
I am trying to query deleted objects container using JNDI which fails with error 64.
Has anyone seen this or knows how to query AD using binary data in JNDI.
Seems to me there is some problem with the search base.
search base: <GUID=18E2EA80684F11D2B9AA00C04F79F805,dc=engserver,dc=com>.
filter: objectclass=*
search scope: subtree
This is the error:
Search example failed.
javax.naming.InvalidNameException: <GUID=18E2EA80684F11D2B9AA00C04F79F805,dc=eng
server,dc=com>: [LDAP: error code 64 - 00000057: LdapErr: DSID-0C090563, comment
: Error processing name, data 0, v893 ]; remaining name '<GUID=18E2EA80684F11D2B
9AA00C04F79F805,dc=engserver,dc=com>'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2802)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2616)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1744)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1667)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirCon
text.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCom
positeDirContext.java:328)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCom
positeDirContext.java:313)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.jav
a:245)
at jSearch.main(jSearch.java, Compiled Code)
Thanks,
ChetanI thought I had posted one of these. How remiss of me !/**
* deleted.java
* 5 July 2001
* Sample JNDI application to search for deleted objects
* Modified December 2004 to add Win2K3 lastKnownParent
import java.util.Hashtable;
import javax.naming.*;
import javax.naming.ldap.*;
import javax.naming.directory.*;
import com.sun.jndi.ldap.ctl.*;
class DeletedControl implements Control {
public byte[] getEncodedValue() {
return new byte[] {};
public String getID() {
return "1.2.840.113556.1.4.417";
public boolean isCritical() {
return true;
public class deleted {
public static void main (String[] args) {
Hashtable env = new Hashtable();
String adminName = "CN=Administrator,CN=Users,DC=ANTIPODES,DC=COM";
String adminPassword = "XXXXXX";
String ldapURL = "ldap://mydc.antipodes.com:389";
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
//set security credentials, note using simple cleartext authentication
env.put(Context.SECURITY_AUTHENTICATION,"simple");
env.put(Context.SECURITY_PRINCIPAL,adminName);
env.put(Context.SECURITY_CREDENTIALS,adminPassword);
//connect to my domain controller
env.put(Context.PROVIDER_URL,ldapURL);
try {
//Create the initial directory context
LdapContext ctx = new InitialLdapContext(env,null);
//Create the search controls
SearchControls searchCtls = new SearchControls();
//Specify the attributes to return
String returnedAtts[]={"distinguishedName","lastKnownParent"};
searchCtls.setReturningAttributes(returnedAtts);
//Specify the search scope
searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
//specify the LDAP search filter
String searchFilter = "(&(objectClass=user)(isDeleted=TRUE))";
//Specify the Base for the search
String searchBase = "DC=antipodes,DC=com";
//initialize counter to total the results
int totalResults = 0;
//specify the Deleted control
Control[] rqstCtls = new Control[] {new DeletedControl()};
ctx.setRequestControls(rqstCtls);
//Search for objects using the filter
NamingEnumeration answer = ctx.search(searchBase, searchFilter, searchCtls);
//Loop through the search results
while (answer.hasMoreElements()) {
SearchResult sr = (SearchResult)answer.next();
totalResults++;
System.out.println(totalResults + ". " + sr.getName().toString());
// Print out some of the attributes, catch the exception if the attributes have no values
Attributes attrs = sr.getAttributes();
if (attrs != null) {
try {
for (NamingEnumeration ae = attrs.getAll();ae.hasMore();) {
Attribute attr = (Attribute)ae.next();
System.out.println("Attribute: " + attr.getID());
for (NamingEnumeration e = attr.getAll();e.hasMore();System.out.println(" " + e.next().toString()));
catch (NullPointerException e) {
System.err.println("Problem listing attributes: " + e);
System.out.println("Deleted objects: " + totalResults);
ctx.close();
catch (NamingException e) {
System.err.println("Problem searching directory: " + e);
} -
What are the query types,Objects CRM provides for third party
What are the query types,Objects provided by the CRM so that it can be called by third party for integartion pupose.
First, that statement - and those materials - refer to the "legacy" StreamInsight query/adapter model. They do not refer to how things work with the Reactive model introduced in version 2.1. Specifically, it talks about Dynamic Query Composition (DQC).
You cannot use a deployed Observable in another instance of StreamInsight. You may be able to use them across applications in the same instance - off the top of my head, I'm not sure. I'm getting ready to get on a plane but will take a look at it later.
Typically, however, applications act as containers (comparable to .NET AppDomains) so I don't think that you'd be able to do this easily. That said, the code and assemblies
can be reused across multiple instances/applications. You would have separate instances of the classes involved but you would be able to reuse the query logic. That's a common use case.
Can you be more specific about your use case and what you are trying to accomplish here? It's possible that there are alternative ways to do what you are trying to do.
DevBiker (aka J Sawyer)
Microsoft MVP - Sql Server (StreamInsight)
If I answered your question, please mark as answer.
If my post was helpful, please mark as helpful. -
Query SCOM Objects state by class
Hi,
I want to perform an SQL Query by Object class, that will show me the object name, its path, and its current state (same as discovered inventory on scom console).
Query that will return me same output as this powershell command:
Get-SCOMClass -Name "$classtype" | Get-SCOMClassInstance | Sort-Object HealthState,Path -Descending | select-object {$_.Path + " " + $_.displayname + "" + $_.HealthState + ""}
The thing is that powershell command takes 30 secs to run, thus I want to do it through SQL Query which is much faster.
I've wrote the query above:
SELECT distinct
BME.BaseManagedEntityId,
TBME.DisplayName AS Path,
BME.DisplayName,
TYPE.TypeName AS Class,
CASE S.HealthState WHEN 3 THEN 'Critical' WHEN 2 THEN 'Warning' WHEN 1 THEN 'Success' WHEN 0 THEN 'Uninitialized' ELSE 'Unknown' END AS STATE,
S.LastModified
FROM BaseManagedEntity BME WITH(NOLOCK)
INNER JOIN TypedManagedEntity TME WITH(NOLOCK) ON BME.BaseManagedEntityId = TME.BaseManagedEntityId AND BME.IsDeleted = 0 AND TME.IsDeleted = 0
INNER JOIN BaseManagedEntity TBME WITH(NOLOCK) ON BME.TopLevelHostEntityId = TBME.BaseManagedEntityId AND TBME.IsDeleted = 0
INNER JOIN ManagedType TYPE WITH(NOLOCK) ON TME.ManagedTypeID = TYPE.ManagedTypeID
INNER JOIN State AS S ON S.LastModified = (select max(LastModified) from State where bme.basemanagedentityid=BaseManagedEntityId)
where type.TypeName like 'Microsoft.Linux.Computer'
order by STATE
the problem is that most of queried servers' state isshown as 'Uninitialized' while on scom console it is shown as helathy.
What am I doing wrong?The Health state of the ManagedEntity is determined by monitor system.health.enetitystate. rather than using latest modified health state.
It is better to rewrite the SQL statement as
SELECT distinct
BME.BaseManagedEntityId,
TBME.DisplayName AS Path,
BME.DisplayName,
TYPE.TypeName AS Class,
CASE S.HealthState WHEN 3 THEN 'Critical' WHEN 2 THEN 'Warning' WHEN 1 THEN 'Success' WHEN 0 THEN 'Uninitialized' ELSE 'Unknown' END AS STATE
FROM BaseManagedEntity BME WITH(NOLOCK)
INNER JOIN TypedManagedEntity TME WITH(NOLOCK) ON BME.BaseManagedEntityId = TME.BaseManagedEntityId AND BME.IsDeleted = 0 AND TME.IsDeleted = 0
INNER JOIN BaseManagedEntity TBME WITH(NOLOCK) ON BME.TopLevelHostEntityId = TBME.BaseManagedEntityId AND TBME.IsDeleted = 0
INNER JOIN ManagedType TYPE WITH(NOLOCK) ON TME.ManagedTypeID = TYPE.ManagedTypeID
INNER JOIN State AS S ON S.BaseManagedentityid=BME.BaseManagedentityid
INNER JOIN Monitor M ON M.MonitorId=S.MonitorID
where M.MonitorName='System.Health.EntityState' like 'Microsoft.Linux.Computer'
order by STATE
Roger -
Error in LIME Query-Authorization object C_Lime_Loc cannot be checked..
hi,
I am very new to SAP Basis. i am facing the subject mentioned error in one of the user in a client when i run MM03 T.code.Su53 is showing Successful.
Temporaily ,I have provided the user with Profile SAP_ALL along with roles specified for the user and things are working fine.
i have tried assigning this object to all the Roles in the user but still in vain. Request some guidance to resolve this problem and thus removing the SAP_ALL profile to the concern user.Thanks in advance.
Edited by: Selva kannan on May 5, 2008 2:13 PMHi,
Heartly thanks for your feedback.
Actally the error reads: Error in Lime Query:Authrization object C_Lime_Loc cannot be checked.
SU53 is displaying last authorization is successful.
i have already added the object C_LIME_Loc to all the roles and checked the T.code MM03 without SAP_ALL profile.but failed.
I had compared the t.code su24 output in the user once with SAP_ALL profile and once without SAP_ALL and found both has same(identical) checked value. need help as i can feel that there is some authrization in SAP_ALL which is missing in my roles. how do i detect this....how do i check the objects in SAP_ALL related to this error. -
Web service 2.0 query child object
Hi,
This is sathis.
I need help with some basic webservice 2.0 query child object in CRM On Demand R17
following is my sample SOAP message but it will return error.
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ContactQueryPage_Input xmlns="urn:crmondemand/ws/ecbs/contact/10/2004">
<ListOfContact pagesize="100" startrownum="0" recordcountneeded="true">
<Contact>
<Id>='AAPA-4I0UCG'</Id>
<ListOfCustomObject3Query>
<CustomObject3>
<Id />
</CustomObject3>
</ListOfCustomObject3Query>
</Contact>
</ListOfContact>
</ContactQueryPage_Input>
</soap:Body>
</soap:Envelope>
This is the Error:
Element with XML tag 'ListOfCustomObject3Query' is not found in the definition of EAI Integration Component 'Contact'(SBL-EAI-04127)
please help me how to query child object using Web Service 2.0 with R17
Thanks in Advance...
regards,
Sathis KumarHi Sathis,
Try replacing:
<ListOfCustomObject3Query>
<CustomObject3>
<Id />
</CustomObject3>
</ListOfCustomObject3Query>
with:
<ListOfCustomObject3>
<CustomObject3>
<Id />
</CustomObject3>
</ListOfCustomObject3>
The tags should match those you see when you download the Contact WSDL file.
Thanks,
Sean -
How to create 'Query Result Object' entity?
Hi Gurus,
I have come across a situation where i need to create an entity [not a value node] of object type 'Query Result Object', and set the values.
Its possible to create an entity of type 'Root object', but was not able to find a way to create other object types.
Please find below, the details of the query result object:
Component: CRMAUI
Object: AUIHANAQR
Object type: Query Result
Attribute Structure: CRMS_AUI_SRCH_RESULT_HANA
The above entity is part of the collection which in turn is the result set of a dynamic query search. Due to a particular requirement, we need to add some more entries of the same object type in the result in the 'search event' itself.
Please find below, the details of the corresponding dynamic query object:
Object: AUIQueryHANA
Object type: Dynamic Query
Kindly let me know if you have come across such situation before and please share the solution if you have any.
Your help will be much appreciated.
Thanks and regards,
Arun N K.Hello,
In fact there is not really entities for query result object, it's entries in the result table.
So you need to modify the search to add more results, usually there are some badi to do so, or maybe you can extend the class used to perform the query in order to add some results.
Regards,
Benoît -
SQL query with object function
I want to write a function, which returns more than one value and to include those values into a SQL statement. For example I want to query the RDB with....
select t.id, my_function(t.id).value1 name, my_function(t.id).value2 address ....
from table_x t
where t.id between 1 and 10
and bitand(my_function(t,id)).sec_id,2)>3
Is it possible to do something like this?
I tried to use object and table of objects(my_type) to return value of my_type but when I used
select ......my_function(t.id).name,my_function(t.id).address ...
from table_x
where t.id=some_value;
the function was called twice(i expected this result, but i don't know how to avoid it).
Simple example
CREATE OR REPLACE TYPE l_test AS OBJECT
id NUMBER(10),
name varchar2(100),
a_date date
CREATE OR REPLACE FUNCTION test_f2(test_number IN NUMBER)
RETURN l_test
IS
a number;
BEGIN
select t_seq.nextval into a from dual;
return l_test(a,'test value ='||test_number,sysdate+test_number);
END;
select test_f2(i.id).id client_id, test_f2(i.id).name client_name from r_owners i
CLIENT_ID CLIENT_NAME
1 test value =1
3 test value =2
I want to be able to loop in cursor and use those values
All ideas are welcome!
Thanks,
Iassen HoubenovCheck it out...
SQL> CREATE OR REPLACE TYPE emp_add AS OBJECT
2 ( office VARCHAR2(50),
3 location VARCHAR2(50),
4 MEMBER FUNCTION get_office RETURN VARCHAR2,
5 MEMBER FUNCTION get_location RETURN VARCHAR2,
6 CONSTRUCTOR FUNCTION emp_add(id NUMBER) RETURN SELF AS RESULT,
7 CONSTRUCTOR FUNCTION emp_add(id NUMBER, office VARCHAR2,location VARCHAR2) RETURN
8 SELF AS RESULT
9 ) NOT FINAL;
10 /
Type created.
SQL> CREATE OR REPLACE TYPE BODY emp_add IS
2 MEMBER FUNCTION get_office RETURN VARCHAR2
3 IS
4 BEGIN
5 RETURN SELF.office;
6 END;
7 MEMBER FUNCTION get_location RETURN VARCHAR2
8 IS
9 BEGIN
10 RETURN SELF.location;
11 END;
12 CONSTRUCTOR FUNCTION emp_add(id NUMBER)
13 RETURN SELF AS RESULT
14 IS
15 BEGIN
16 SELECT dname, loc
17 INTO SELF.office, SELF.location
18 FROM dept
19 WHERE deptno = id;
20 RETURN;
21 END;
22 CONSTRUCTOR FUNCTION emp_add(id NUMBER, office VARCHAR2,location VARCHAR2)
23 RETURN SELF AS RESULT
24 IS
25 BEGIN
26 SELF.office := office;
27 SELF.location := location;
28 RETURN;
29 END;
30 END;
31 /
Type body created.
SQL> SELECT e.ename, e.d.office, e.d.location
2 FROM ( SELECT ename
3 , (SELECT emp_add(emp.deptno) FROM dual ) d
4 FROM emp ) e
5 /
ENAME D.OFFICE
D.LOCATION
SMITH RESEARCH
DALLAS
ALLEN SALES
CHICAGO
WARD SALES
CHICAGO
....Smoke me a kipper I'll be back before breakfast.
Cheers, APC -
Mapping and querying Custom Objects for a Contact with REST Api
Hello All,
We are hoping to get some details on managing DataCard set through REST APIs. Our implementation goal is to create Contacts and add Custom object for each Contact, or to be precise, add a DataCard Set for each Contact.
At the moment, to associate a DataCard Set (or Custom Object) to an existing contact, we are supplying following custom object fields during creation of Custom Object:
new CustomObjectField
name = "MappedEntityType",
dataType = Enum.GetName(typeof(DataType), DataType.numeric),
type = "CustomObjectField",
defaultValue = "0"
new CustomObjectField
name = "MappedEntityID",
dataType = Enum.GetName(typeof(DataType), DataType.numeric),
type = "CustomObjectField",
defaultValue = "<ContactId>"
Is this the correct approach? This is Based on the information provided here: http://topliners.eloqua.com/community/code_it/blog/2012/05/31/eloqua-api-how-to-mapping-a-data-card-to-an-entity.
Would the REST API allow us to query the CustomObjects using the MappedEntityId value for later updates? If so, any pointers on how we approach that?
Thanks in ad.Either the MappedEntityID field is not available or I do it wrong, Eloqua is ignoring the field and does not map the custom record with the unique Contact ID
{"type":"CustomObjectData","ContactID":"8829509","fieldValues":[{"id":"195","value":"[email protected]"},{"id":"220","value":"a0KJ000000387QvMAI"},{"id":"191","value":"001J000001OrL77IAF"},{"id":"193","value":"NowTV MPP"},{"id":"194","value":"8829509"},{"id":"196","value":"Andreas"},{"id":"197","value":"Wolf"},{"id":"198","value":"003J00000145lkBIAQ"},{"id":"210","value":"777666555"},{"id":"199","value":"gbp"},{"id":"200","value":"0"},{"id":"215","value":"0"},{"id":"201","value":"999111999"},{"id":"214","value":"111111"},{"id":"202","value":"222222"},{"id":"204","value":"now"},{"id":"203","value":"xmas"},{"id":"205","value":"no description"},{"id":"206","value":"test"},{"id":"218","value":"holidays"},{"id":"219","value":"PPV-0878545"},{"id":"213","value":"N"},{"id":"212","value":"myself"},{"id":"209","value":"now tv"},{"id":"192","value":"1417542120"},{"id":"207","value":"1417542120"},{"id":"216","value":"1417542240"},{"id":"217","value":"1417542240"},{"id":"211","value":"1417542240"}]},"MappedEntityID":"003J00000145lkBIAQ"}
Response
DEBUG|Response------{"type":"CustomObjectData","id":"81720","fieldValues":[{"id":"195","value":"[email protected]"},{"id":"220","value":"a0KJ000000387QvMAI"},{"id":"191","value":"001J000001OrL77IAF"},{"id":"193","value":"NowTV MPP"},{"id":"194","value":"8829509"},{"id":"196","value":"Andreas"},{"id":"197","value":"Wolf"},{"id":"198","value":"003J00000145lkBIAQ"},{"id":"210","value":"777666555"},{"id":"199","value":"gbp"},{"id":"200","value":"0"},{"id":"215","value":"0"},{"id":"201","value":"999111999"},{"id":"214","value":"111111"},{"id":"202","value":"222222"},{"id":"204","value":"now"},{"id":"203","value":"xmas"},{"id":"205","value":"no description"},{"id":"206","value":"test"},{"id":"218","value":"holidays"},{"id":"219","value":"PPV-0878545"},{"id":"213","value":"N"},{"id":"212","value":"myself"},{"id":"209","value":"now tv"},{"id":"192","value":"1417542120"},{"id":"207","value":"1417542120"},{"id":"216","value":"1417542240"},{"id":"217","value":"1417542240"},{"id":"211","value":"1417542240"}]}
Eloqua:
Name: PPV-0878545
Unique Code: a0KJ000000387QvMAI
Status Registered
Created Date 12/22/2014 12:44:49 PM
Mapped NO
Any Idea how to map this to a contact
Entity Type is Contacts
Entity Field is SFDC Contact ID -
Hi, there
I was doing something following the example on this link:
http://www.solarmetric.com/Software/Documentation/3.4.0/docs/jdo_overview_query_advfilter.html
the codes (simplified from original):
PersistenceManager pm = ...;
Company comp = ...;
Query query = pm.newQuery (Magazine.class,
"publisher == :pub");
Collection mags = (Collection) query.execute (comp);
Caused kodo to generate a select:
SELECT .... FROM MagazineTBL t0, PublisherTBL t1 WHERE (t0.publisherID IS
NULL) AND t0.publisherID = t1.publisherID(+)
This of course does not work. Any ideas?Thomas,
We're asking for the actual code as this should work (and does in our
internal tests). Most likely there is some small error in how you are
constructing and executing the query which is causing the odd behavior.
If you are uncomfortable posting your code here, send us a complete
compilable/runnable test case to [email protected]
Thomas wrote:
>
Other than different "names". I pretty much have the exactly same codes.
The idea is simple, straightforward. Magazine HAS A publisher so in
Magazine table there is a column referencing to a row in the publisher
table. In SQL, you join on the foreign key. I am just wondering if it's
possible (it should be according to the docs) to join on the object in
JDOQL. i.e. when querying for magazines: "piblisher =
:aParticularPublisher".
What already works for me is: "piblisher.ID = " +
aParticularPublisher.getID()
Which is fine. whatever works - just kind of dispointed that after all
these big talks we just end up doing the same. It's embeding sql anyway. -
How to Query Sdo_Geometry Object of ORACLE SPATIAL in PHP?
Hi,
I am trying to Query the Oracle Spatial's Geometry object in the PHP page but its giving me the ADT Error. How can i see the GEOMETRY object information on the web using PHP. Thanking you in advance and waiting for ur prompt reply.
Adnan!Hi Ana,
In the Query below its returning the result as each value of one row in diffrent rows i wanna ask from u is:
1- May i get all these values in one row ?
2- Second, i want to query more than one row values from the table? as this is a single row subquery.
Thanks for your help and i m looking forward for a positive reply from you.
Regards,
Adnan!
The following select lists all ordinate-values from ONE object in the table:
select *
from table(select a.<column_name>.sdo_ordinates
from <table_name> a
where ID = xxxx
******************************************************************* -
Query on object-relational data takes forever
hello all
i have a problem with a query performance... it seems like whenever i call a specific object function, the query executes very very slow. The results though are correct.
let me explain what i do... I have some relational tables, and i recreate the schema into an object relational one. Then i insert data from relational tables to object tables. I follow this tutorial: [A Sample Application Using Object-Relational Features|http://download.oracle.com/docs/cd/B12037_01/appdev.101/b10799/adobjxmp.htm]
these are the types that make up the transaction object table.
CREATE OR REPLACE TYPE TransactionItem_objtyp AS OBJECT
transItemID NUMBER,
Quantity NUMBER,
iValue NUMBER,
item_ref REF Item_objtyp
CREATE TYPE TransactionItemList_ntabtyp AS TABLE OF TransactionItem_objtyp;
CREATE OR REPLACE TYPE Transaction_objtyp AS OBJECT
transID NUMBER,
cust_ref REF Customer_objtyp,
transTameio NUMBER,
transDateTime DATE,
isStoreCustomer CHAR(1),
store_ref REF Store_objtyp,
transItemList_ntab TransactionItemList_ntabtyp,
MAP MEMBER FUNCTION
getTransID RETURN NUMBER,
MEMBER FUNCTION
getTotalCost RETURN NUMBER
);the function that causes the query to run very slow (fetching 10 rows per sec in a query that should return 130.000 rows) is the getTotalCost:
CREATE OR REPLACE TYPE BODY Transaction_objtyp AS
MAP MEMBER FUNCTION getTransID RETURN NUMBER IS
BEGIN
RETURN transID;
END;
MEMBER FUNCTION getTotalCost RETURN NUMBER IS
i INTEGER;
Total NUMBER := 0;
BEGIN
IF(UTL_COLL.IS_LOCATOR(transItemList_ntab))
THEN
SELECT SUM(L.Quantity * L.iValue) INTO Total
FROM TABLE(CAST(transItemList_ntab AS TransactionItemList_ntabtyp)) L;
ELSE
FOR i IN 1..SELF.transItemList_ntab.COUNT LOOP
Total := Total + SELF.transItemList_ntab(i).Quantity * SELF.transItemList_ntab(i).iValue;
END LOOP;
END IF;
RETURN ROUND(Total,2);
END;
END;the table transaction_objtab that contains the nested table is this
CREATE TABLE Transaction_objtab OF Transaction_objtyp(
PRIMARY KEY(transID),
FOREIGN KEY(cust_ref) REFERENCING Customer_objtab,
FOREIGN KEY(store_ref) REFERENCING Store_objtab)
OBJECT IDENTIFIER IS PRIMARY KEY
NESTED TABLE transItemList_ntab STORE AS TransItem_ntab (
(PRIMARY KEY(transItemID))
ORGANIZATION INDEX)
RETURN AS LOCATOR
ALTER TABLE TransItem_ntab ADD (SCOPE FOR (item_ref) IS Item_objtab);and this is how i insert the values into the transaction_objtab and the nested tables from the relational ones:
INSERT INTO Transaction_objtab
SELECT t.transID,
REF(c),
t.transTameio,
t.transDateTime,
t.isStoreCustomer,
REF(s),
TransactionItemList_ntabtyp()
FROM transactions t, Customer_objtab c, store_objtab s
WHERE t.transCustomer = c.custCode AND t.transStore = s.storeCode;
BEGIN
FOR i IN (SELECT DISTINCT transID FROM transactionItems) LOOP
INSERT INTO TABLE( SELECT p.TransItemList_ntab
FROM Transaction_objtab p
WHERE p.transID = i.transID)
SELECT transItemIDseq.nextval, t.Quantity, t.iValue, REF(i)
FROM transactionItems t, item_objtab i
WHERE t.transID = i.transID AND t.itemID = i.itemID;
END LOOP;
END;so whenever i use transaction_objtab t, t.getTotalCount() query takes for ever.
is there anything i do wrong?
sorry for this long post.
thanks in advanceSo, how many transactions? How many items? There is a whole series of questions I would normally ask at this point, because performance tuning is - to a certain extent - largely a matter of rote. But there's a more fundamental issue.
You are experiencing the problem with objects. They are cool enough when handling individual "things" but they suck when it comes to set-based processing. SQL and relational programming, on the other hand, excels at that sort of thing. So the question which has to asked is, why are you using objects for this project?
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
Hi,
We have WebI reports build on BEX using BAPI connectivity. When we are trying to add a object in query panel in a existing report we are getting this ProcessdpCommandEx error. But error does not appear when we add at the end of the list of objects already added.
Can you calrify whether this could be some setting issue or it is a known bug?
Can you share SAP Note No in case it is a known bug?Hi Avijit,
This error occurs in case of any failure in the connectivity. It is like the data providers are not getting processed.
You have mentioned that the issue does not come with newly created reports
Are you creating new reports on migrated universe or a newly created universe?
If issue only comes with migrated universe, please check if the connection has been migrated properly and required middleware and database connectors are in place.
If connections are in place, try importing and exporting the universe once and check.
In case, new report works fine with migrated universe, then you can simply try to re-point the universe by editing the query and can run it again and check.
Regards,
Yuvraj -
Description of 0TCTBWOBJCT (Query Runtime Object in Technical Content)
Hello,
who can explain to me the meaning of $-objects in the masterdata of the characteristic 0TCTBWOBJCT? The object type is ELEM. So what special kind of queries are these?
Examples:
$!1<infoprovider>,
$<infoprovider>,
$1|<infoprovider>
$VIRTUAL-00001, etc.
Thank you,
IngoHi,
!<infoprovidername> is default query
Best Regards,
Rajani -
Hi. In the Photoshop SDK, is it possible to iterate through each character of a "text object" and query for it's absolute position in the image file? Also, is it possible to extract the font information, ie. font name, point size, etc.
I've never used the SDK before. I've scanned through the documentation PDF, but I can't see anything that would do this. I'm probably just being blind though! :)
Cheers for any info,
Dan.See the automation plug-in type and the listener and getter examples. The getter example will show you how to retrieve information about all things in photoshop. See classDocument. The listener will show you how to create things.
Maybe you are looking for
-
Hello I 've recently put a flash video on my site and used this code: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0" height="240" width="360
-
Broken Charger - Genius Bar Appointment
I had had my mac for about 18 months and I have apple care. The charger has frayed and no longer works, I have a genius bar appoitment tomorrow on my break from work. I have been told to bring both the charger and laptop, however I am wary of doing s
-
Group condition calulation error
Hi Gurus I am facing a problem while applying a group condition as discount at item level. Tried to search in the existing threads but no luck. We have marked a discount condition as group condition with quantity scales. Now if there are multiple lin
-
Master-Detail_! with Detail_2 fails to update. Detail_2 is a Ajax
I can run Detail_2 page by itself and the SUBMIT (and update) works. When done with the Master- Detail_1 (tabular form) linked to Detail_2 (showing on same page but really a pull thru tabular form) then the SUBMIT on Detail_2 does nothing. Detail_2 i
-
Hi I am thinking of moving my wifes site to iWeb. I setup a test account for her and she is currently updating a couple of pages to get a feel of the software. All in all she quite likes it. We are going on holiday in October and she would like to be