How to query on object
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.
Similar Messages
-
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
******************************************************************* -
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 query database to retrieve code to create existing objects(nonPLSQL)
Hi,
I would like to know how to query the database so I can pull out the SQL required to create objects. I can already get the code for PL/SQL objects such as triggers and procedures by using DBA_SOURCE, however I also need to pull out code for objects like indexes, synonyms, libraries and views that are not stored in DBA_SOURCE. My colleague has suggested creating an index file from a metadata export however I only want code for broken objects and I need it to run automatically across all my databases with a single windows command script. Can anyone help me with this? TOAD manages to get the code for the objects but if it isn't stored in the DB then maybe it's creating it on the fly.
Thanks
AdamIf you run an export with rows=N, you can produce a file with all the scripts.
Otherwise you might want to look at DBMS_METADATA.
We would just reference the original scripts in our source control, but hey, we're crazy like that. -
How to get POF object's field value from query result
hi,all:
I want to get field value from the query result, my code is below
Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
for (Iterator iter = setResults.iterator(); iter.hasNext(); )
Contact c=(Contact)iter.next();
System.out.println ("firstame####=" + c.getFirstName());
* but I get error*
Exception in thread "main" java.lang.ClassCastException: com.tangosol.util.ConverterCollec
tions$ConverterEntrySet$ConverterEntry cannot be cast to com.oracle.handson.Contact
at com.oracle.handson.QueryExample.printResults(QueryExample.java:159)
at com.oracle.handson.QueryExample.query(QueryExample.java:86)
at com.oracle.handson.QueryExample.main(QueryExample.java:43)
who can tell me how to get POF object's field value from query resultHi,
If you look at the Java Doc for the entrySet method here http://download.oracle.com/docs/cd/E15357_01/coh.360/e15725/com/tangosol/util/QueryMap.html#entrySet_com_tangosol_util_Filter_ you will see that it returns a Set of Map.Entry instances so you need to do this...
Set setResults = cache.entrySet(createFilter("homeAddress.state = 'MA'"));
for (Iterator iter = setResults.iterator(); iter.hasNext(); )
Map.Entry entry = iter.next();
Contact c=(Contact)entry.getValue();
System.out.println ("firstame####=" + c.getFirstName());
}JK -
How to query objects intersecting the coordinates
Hi all,
I am an Oracle Spatial Newbie. I made a search on the Google but could not find a simple answer for a simple question. I migrated my database from PostGIS to Oracle. I would like to learn the Oracle version of my PostGIS query:
SELECT * from ykn WHERE ST_Intersects(poly, ST_MakeEnvelope(30.0, 37.792 , 30.1, 37.8,900914));
All my records are converted to Oracle geometry type using a conversion tool. And also the R-tree index is added. I also would like to know how to query if the query has to be different to use the index.
I'll be glad if you could help.
Kindest Regards
telmessostelmessos,
By the way, what is the A here? I thought it is the table name and replaced A with YKN but got the same message."A" is an alias for the table YKN. You HAVE to use an alias whenever dereferencing the fields of any Oracle object. SDO_GEOMETRY
is an Oracle object and sdo_srid is a field of that object so, to access its value you have to use an alias.
Now, the original query - assuming the table sdo_geometry column is called POLY - didn't have an alias which would be confusing:
select a.poly.sdo_srid from ykn where rownum < 2;
-- Result
ORA-00904 - "A"."POLY"."SRO_SRID": invalid identifier.What is missing here is the alias a after the table name YKN as in the following:
select a.poly.sdo_srid from ykn a where rownum < 2;So, what we have is a rule
Whenever accessing the fields / methods of an SDO_GEOMETRY we must:
+1. Alias the table+
+2. Use the alias when accessing column methods or fields eg <alias>.<column>.<field/method>+
An example:
select a.geom.sdo_gtype, a.geom.sdo_srid, a.geom.sdo_point.x, a.geom.sdo_point.y, a.geom.get_WKT() as wkt
from projpoint2d a
where rownum < 3;
-- Results
GEOM.SDO_GTYPE GEOM.SDO_SRID GEOM.SDO_POINT.X GEOM.SDO_POINT.Y WKT
2001 NULL 363088.42 5405618 POINT (363088.42 5405618.0)
2001 NULL 363202.85 5407375.46 POINT (363202.85 5407375.46)Note: All column above are fields of sdo_geometry except get_WKT() which is a method of sdo_geometry but still needs an alias to execute.
HTH
regards
Simon -
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 -
How To Insert A object into Conext
Hi Techies,
I have 8 tables in my designer
and I have two contexts at designer level
And how to insert a object into a context that is not referencing any table.
For Example I have an object like "rownum" (Which should must be added at Universe level only not at report level). Here this object is not referencing any table and I want this to be used in a query where the remaining objects are coming from the context..
Thanks in Advance..Double-click the Objects and click the TABLES button and select the table you want to associate the object to for the context to work properly (see below).
Regards,
Ajay -
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);
} -
How to migrate the Objects from 3.1c to BI7
Hi,
We are in Functional Upgradation.
How to Migrate the Objects( Infocubes,DSO,Datasources,Rules...etc...) from 3.1C to BI 7.0
Please help me to doing this....
regards,
anilBW Upgrade tasks (BW 3.1C to BI 7.0)
Prepare Phase:
Task How-To Who
Review BI 7.0 feature lists Review BI 7.0 feature lists for possible inclusion in developments. Basis/BW
Obtain the BI 7.0 upgrade guide Download the upgrade guide from http://service.sap.com/inst-guides -> SAP NetWeaver -> Upgrade
Basis/BW
Review all upgrade SAP notes In addition to the upgrade guide, check, download, and review all SAP notes for your upgrade
BI 7.0 Upgrade notes
SAP Web Application Server 6.40 upgrade notes
OS and DB specific upgrade notes
SAP BW Add-on upgrade notes
(e.g. SAP SEM, ST-PI, etc)
Plug-In upgrade SAP notes
Other notes identified in above notes and/or upgrade guides.
Basis/BW
Check DB and OS requirements for the target SAP BW release Check DB version/patch level and OS version/patch level required for upgrade
First check the most current information from the SAP BW homepage http://Service.sap.com/BW -> <SAP BW release> -> Availability
Additionally, the u201CPlatformsu201D link will take you to the main DB/OS page for BI 7.0 and SAP Web AS 6.40.
Note: In some cases there are differing requirements for SAP BW 3.0B/SAP BW 3.1 Content and BI 7.0
Basis
Check SAP BW Add-on upgrade requirements Do you have SAP BW add-ons installed that require additional handling (e.g. SAP SEM, Enterprise Portal Plug-in, etc)?
SAP SEM (SAP BW based components) requires SAP SEM 4.0 which is part of the mySAP ERP 2004 suite.
WP-PI release must be at 6.00 before the upgrade begins. As mentioned before this add-on is merged with PI_Basis after the upgrade.
Basis
Check SAP BW upgrade requirements Minimum Support Package and kernel levels for upgrade
SAP BW Frontend requirements for new SAPGUI, SAP BW BEx Frontend and SAP BW Web applications.
Source system Plug-In requirements Basis
Check compatibility requirements with 3rd party software 3rd Party Reporting tools (example: Crystal)
ETL Tools (example: Ascential, DataStage, etc)
Scheduling tools (example. Control-M, Maestro, etc)
Monitoring tools (example: HP OpenView, Patrol, etc)
Other OS or DB related tools Basis
Check new component requirements for BI 7.0 If SAP BW web reports were developed in SAP BW 2.x, a windows version of IGS 6.40 (Internet Graphics Service) is required for conversion and future rendering of web graphics (i.e. Charts and GIS Maps).
The IGS chart migration will also be required after the SAP BW web report conversion.
If you used or activated any SAP BW Web Applications in SAP BW 3.x, or if you have used charts in SAP BW 2.x web reports, you will need a windows version of IGS 6.40 (Internet Graphics Service) to execute the IGS chart migration after the upgrade.
If ESRI GIS software is in use, a different version of ESRI software maybe required for BI 7.0. (ArcView 8.2?).
If you plan to use Information Broadcasting, please review the requirement for additional infrastructure components such as EP, KMC, Workbook pre-calculation service, and Web AS connectivity to your mail servers.
Detailed information is available in the SAP NetWeaver u201904 master planning guide (http://service.sap.com/instguides -> SAP NetWeaver).
Basis
Test and distribute new SAP BW Frontend
Install and test the new BI 7.0 Frontend (including the new version of SAPGUI for Windows if applicable).
A detailed FAQ on the new BI 7.0 Frontend is available on the SAP service marketplace alias BWFAQ (http://service.sap.com/BWFAQ).
After successful testing, the new SAPGUI for Windows and SAP BW Frontend can be distributed to the BW teams and end users.
Basis
Alpha Conversion:
Ensure that your InfoObject data is consistent from a u201Cconversionu201D perspective (Alpha Converter tool) Check that you have executed the Alpha Converter tool to check the consistency of your InfoObject definitions and data for InfoObjects that utilize the ALPHA, NUMCV and GJAHR conversion exits.
Note: The Alpha conversion is not part of the SAP BW upgrade itself, but the upgrade simply checks to ensure you have successfully executed the check tool.
Transaction RSMDCNVEXIT
Check the system status:
u201CAll Characteristics Have Correct Internal Valuesu201D: The Alpha converter has been successful executed. The upgrade preparation can continue.
u201CNo Check yet/Inconsistent Internal Vales existu201D:
The Alpha converter check has not been executed.
u201CCharacteristics have Inconsistent Internal Valuesu201D:
The Alpha converter tool check has been executed and data problems have been detected. The InfoObject and data must be processed before the upgrade can be started.
BW
Upgrade SAP Note updates Check for newer versions of your SAP notes for the Upgrade.
Tip: The SAP service marketplace offers an option to subscribe to OSS notes so you can be notified of changes when you log on.
Basis/BW
Confirm SAP BW support package, kernel and DB/OS configuration Analyze current Support Package and DB/OS/Kernel configurations in your SAP BW landscape in relation to the SAP BW 3.x upgrade requirements.
Apply necessary support packages, kernel patches, and DB and OS patches to meet upgrade requirements
Basis
Alignment of SAP BW objects within your SAP BW system landscape Check and, where required, re-align SAP BW Objects and developments in your SAP BW system landscape (Development, Quality Assurance and Production).
SAP BW Object differences can impact the quality of testing in the Development and Test environment and can lead to change management issues.
This check is to minimize risk and ensure productive objects are being tested prior to the Production upgrade.
Where alignment issues exist and realignment is not possible, alternative testing plans should be devised.
Basis/BW
Confirm all developments are deployed. Ensure that all SAP BW developments are deployed or they are to be re-developed/tested after the upgrade.
In the DEV system, all SAP BW development transports should be released (i.e. transport created and released) and imported to all downstream systems (i.e. QAS and PRD systems).
For SAP BW developments not already collected in the transport collector, a decision must be made:
Deploy the developments or wait until the upgrade has completed to deploy.
o Development to be deployed should be collected, released, and imported into the QAS and PRD systems.
o Developments that should be deployed after the upgrade should be re-tested/re-developed after the upgrade.
In the QAS or PRD systems, ensure that all SAP BW development transports have been imported prior to the upgrade.
BW
Implement BI 7.0 Business Explorer Frontend Install, evaluate, test and distribute the new BI 7.0 Business Explorer Frontend.
Basis/BW
Pre-upgrade Process:
Download required BI 7.0 support package Stack for inclusion in the upgrade Determine the equivalent support package level of the source SAP BW release and the target SAP BW release.
There is a minimum requirement that you upgrade to at least the equivalent support package level on the target SAP BW release so that you do not lose functionality, corrections, and data.
It is recommended to upgrade to the latest version of all support packages during the upgrade via the upgradeu2019s support package binding functionality.
BI 7.0 Support Packages are delivered via SAP NetWeaver u201904 Support Package stacks (SP-Stacks). It is not recommended to partially apply some of the SP-Stacksu2019 individual support packages. You should apply all of the SP-Stacks support packages at once.
For more information on the SP-Stacks and SAP NetWeaver SP-Stacks, please see the SAP service marketplace alias SP-Stacks (http://service.sap.com/sp-stacks)
You should also review, download, and bind in support packages for all add-on components that are installed on SAP BW and will be upgraded during the SAP BW upgrade (e.g. SEM-BW, ST-PI, etc)
Basis
Apply latest Support Package tool patch Apply latest SPAM patch before executing PREPARE Basis
Validate the SAP BW (ABAP) Data Dictionary and the Database Data Dictionary for consistency Check Database consistency
Transaction DB02:
o Execute ABAP SAP_UPDATE_DBDIFF and re-execute DB02 check. This gives a truer view of the SAP BW objects in DB02.
o Check missing database objects (indices, tables, etc)
o Missing indices may identify erred data loads or process problems
Tip: Missing indices on InfoCubes can be restored by RSRV or ABAP SAP_INFOCUBE_INDEXES_REPAIR
Note: check for running data loads before executing a repair!
o Check DDIC/DB consistency
Verify database objects and consistency
(e.g. SAPDBA check for offline data files)
BW
Remove unnecessary SAP BW temporary database objects Delete all SAP BW temporary database objects:
Execute routine housekeeping ABAP SAP_DROP_TMPTABLES.
This reduces the numbers of database objects that need to be copied during the upgrade.
Note: take care not to delete objects that are in use as this will cause queries, compressions, etc to terminate.
BW
Validate your SAP BW Objects for correctness prior to your upgrade Using the SAP BW Analysis Tool (transaction RSRV), perform extensive tests on all important SAP BW Objects to ensure their correctness prior to the upgrade.
Note: this test should be repeatable so you can re-validate after the upgrade!
Ensure that any inconsistencies are identified and corrected
RSRV has a number of extensive tests and if all checks are executed will consume a large amount of time. Multiple tests can be performed in parallel.
Tip: Some corrections in development can be deployed to other systems via transport in advance of the next upgrade.
BW
Ensure DB Statistics are up to date prior to the upgrade Check DB statistics for all tables.
Tables without statistics, especially system tables, can seriously impact upgrade runtimes.
Check DB statistics for missing Indexes for InfoCubes and Aggregates
o User transaction RSRV to check BW
Check SAP BW Support Package status Check the status of all support packages (via transaction SPAM)
Ensure the Support Package queue is empty
Confirm all applied Support Packages Basis
Check all u2018Repairsu2019 Check for unreleased repair transports
Release all unreleased transports
In your QAS and PRD system, check if all repair transports have been imported (i.e. systems are aligned)
Import missing repair transports into down stream systems. This will avoid differing message and/or errors during the upgrade.
BW
Check InfoObject status Check for revised (modified) InfoObjects that have not been activated.
All InfoObjects should be active or saved (not activate):
o Check all inactive InfoObjects:
Transaction RSD1 (Edit InfoObjects),
click on u201CAll InfoObjectsu201D radio button and click the u201CDisplayu201D button.
Modified InfoObjects are denoted by yellow triangles!
o Determine if revision should be activated or removed.
'Reorgu2019 or u2018Repairu2019 all InfoObjects
This checks and repairs any discrepancies in the InfoObject definition and structures. It is common to have obsolete DDIC and table entries for InfoObjects after multiple upgrades and definition changes. These obsolete entries normally do not effect normal SAP BW operations.
Transaction RSD1 (Edit InfoObjects), Select u201CExecute Repairu201D or u201CExecute Reorgu201D Use expert mode for selective executions.
BW
All ODS data loads must be activated. Activate all inactivated ODS Object requests.
All ODS u2018Mu2019 tables must be emptied prior to the upgrade as a new activate process is implemented
o Inactivated ODS request can be located via the Admin workbench -> u2018Monitoringu201D button -> u2018ODS Status Overviewu201D
BW
All Transfer and Update rules should be active Check for inactive Update and Transfer Rules
o All update rules and transfer rules should be active or deleted.
o Look into the table RSUPDINFO for update rules and search for the version "not equal" to "A". Likewise use the table RSTS for Transfer rules/structure. BW
All InfoCubes should be active Check for inactive InfoCubes and Aggregates (Aggregates are InfoCubes too!)
o All InfoCubes should be activated or deleted.
o Execute ABAP RSUPGRCHECK to locate any inactive InfoCubes. See SAP note 449160.
BW
All Web Report objects should be consistent prior the upgrade. Check the consistency of your SAP BW web objects (web reports, web templates, URLs, roles, etc). All objects should be consistent prior to web object conversion after the upgrade. It is recommended to ensure consistency before the upgrade.
o For Original release SAP BW 3.x:
A SAP BW web reporting objects check can be executed via a new check in RSRV. This is provided via a SAP BW support package.
Please see SAP note 484519 for details.
BW
Backup your system before starting PREPARE Before execution PREPARE, perform a full database backup (including File system). Ensure you can recover to the point in time before PREPARE was executed.
Database admin
Address any instructions/errors generated by PREPARE Address any issues listed in log files Checks. Log generated by PREPARE.
o Repeat PREPARE until all checks are successful. Basis
Complete any Logistic V3 data extractions and suspend V3 collection processes Extract and empty Logistics V3 extractor queues on SAP R/3 source systems.
o The V3 extraction delta queues must be emptied prior to the upgrade to avoid any possible data loss. V3 collector jobs should be suspended for the duration of the upgrade.
They can be rescheduled after re-activation of the source systems upon completion of the upgrade.
Note: If you perform any data loads after executing PREPARE, re-check the status of all delta queues in SAP BW and the source systems(s).
BW
Complete any data mart data extractions and suspend any data mart extractors Load and Empty all Data mart Delta Queues in SAP BW. (e.g. for all export DataSources)
o The SAP BW Service SAPI, which is used for internal and u2018BW to BWu2019 data mart extraction, is upgraded during the SAP BW upgrade. Therefore, the delta queues must be emptied prior to the upgrade to avoid any possibility of data loss.
Note: If you perform any data loads after executing PREPARE, re-check the status of all delta queues in SAP BW and the source systems(s).
BW
Check that your customer defined data class definitions conform to SAP standards Check all customer created Data classes used by SAP BW Objects (i.e. InfoCubes, ODS Objects, Aggregates, InfoObjects, and PSAs) to ensure they conform to SAP standards.
o Check your data class definitions as detailed in SAP Notes 46272 and 500252.
o Incorrect data classes could create activation errors during the upgrade.
BW
Remove unnecessary SAP BW temporary database objects Delete all SAP BW temporary database objects:
Execute routine housekeeping ABAP SAP_DROP_TMPTABLES.
For more information see SAP note 308533 (2.x) and 449891 (3.x).
This reduces the numbers of database objects that need to be copied during the upgrade.
Note: take care not to delete objects that are in use as this will cause queries, compressions, etc to terminate.
Basis/BW
Backups! Before executing the upgrade, ensure that you have a backup strategy in place so you can return to the point where loading was completed and the upgrade started.
Ensuring you can return to a consistent point in time (without having to handle rollback or repeats of data loads) is key to having a successful fallback plan.
Database Admin
Before Execution:
All SAP BW administration tasks should have ceased Cease all SAP BW administration tasks such as Object maintenance, query/web template maintenance, data loads, transports, etc at the beginning of the upgrade.
The Administrators Workbench and the Data Dictionary are locked in the early phases of the upgrade.
Reminder: Users can execute queries until the time that the upgrade determines that the SAP BW System should be closed*
- timing depends on the type of upgrade selected
Basis/Admin
Remove unnecessary SAP BW temporary database objects Repeat the deletion of all SAP BW temporary database objects after you have stopped using the SAP BW Admin workbench*
Execute routine housekeeping ABAP SAP_DROP_TMPTABLES.
For more information see SAP note 308533 (2.x) and 449891 (3.x).
- timing depends on the type of upgrade selected
BW
Check system parameters Check OS, DB, and Instance profile parameters.
Check System Instance parameters for new BI 7.0 specific parameters. See SAP note 192658 for details
Check for any DB specific parameters for BI 7.0
Check for any new OS parameters Basis
Check Database archiving mode Turn database archive log mode back on if it was disabled during the upgrade!
Database Admin
After Execution:
Check the systemu2019s installation consistency Execute Transaction SICK to check installation consistency
BW
Check the system logs Perform a technical systems check.
Example: Check system and all dispatcher logs (inc. ICM logs)
Basis
Apply latest executable binaries Apply the latest 6.40 Basis Kernel for all executables
Tip: use the SAP NetWeaver u201904 SP-Stack selection tool to find all binaries. (http://service.sap.com/swdc)
Basis
Review BI 7.0 Support Packages for follow-up actions. Review SAP Notes for all SAP BW Support packages applied during (bound into the upgrade) and applied after the upgrade:
o Search for Note with the keyword u201CBWu201D, u201CSAPBWNEWSu201D, and u201C<BW release>u201D
o Follow any required instructions identified in the SAP Notes
Basis
Apply latest patches Apply the latest SPAM patch
Apply any required support packages that were not bound into the upgrade.
Basis
Apply additional BI 7.0 Support Packages
(if required) SAP recommends that customer remain current on SAP Support Packages.
Review SAP Notes for all SAP BW Support packages applied in previous task.
o Search for Notes with the keyword u201CBWu201D, u201CSAPBWNEWSu201D, and u201C<BW release>u201D
o Follow any required instructions identified in the SAP Notes
Basis
Resolve any modified SAP delivered Role issues If SAP delivered Roles were modified, then these modifications may incorrectly appear in the upgrade modification adjustment tool (SPAU).
Review and implement SAP note 569128 as required Basis
Configuring Information Broadcasting EP/KMC Connections
If you plan to use the EP integration functionality of Information broadcasting (Broadcast to the EPu2019s PCD, Broadcast to KMC, or Broadcast to Collaboration Rooms):
Ensure the SAP EP is at the same SP-Stack level as your SAP BW system.
Follow the online help documentation to configure and connect the SAP BW system and the SAP EP system. (http://help.sap.com).
For broadcasting to KMC, ensure that KM has the u2018BEx Portfoliou2019 content available.
Basis
Re-check SAP BW Object and consistency Execute RSRV to check SAP BW Object consistency
Repeat tests that we executed prior to the upgrade.
Validate results BW
Check InfoCube views for consistency Check consistency of InfoCube fact table views
It is possible that fact table view /BIC/V<InfoCube>F is missing if a number of SAP BW upgrades have been performed before. See SAP Note 525988 for instructions for the check and repair program.
BW
Perform SAP BW Plug-in (SAPI) upgrade follow-up tasks If required, Re-activate the SAP BW u201CMyselfu201D source system in SAP BW.
The SAP BW internal plug-in (SAPI), which is used for internal data mart extraction and u2018BW to BWu2019 communication, is upgraded during the SAP BW upgrade. The source system is de-activated to prevent extractions and loading during the upgrade.
It may be required to replicate export DataSources and reactivate transfer structures/rules for internal data loads (i.e. ODS Object to InfoCube objects).
o Tip: It is advised to do this step for all export DataSources to avoid possible errors during execution of InfoPackages
Check that all other Source Systems are active.
o Activate as required. Basis/BW
Check SAP BW Personalization is implemented (SAP BW 2.X upgrades will have performed this in the previous task).
Validate that personalization has been activated in your SAP BW system.
Note: It has been observed that in some cases, BEx Personalization has to be re-activated after an upgrade from SAP BW 3.x to BI 7.0. It is advised to check the status of personalization after the upgrade.
Enter the IMG (transaction SPRO), select SAP Business Warehouse -> Reporting relevant settings -> General Reporting Settings -> Activate Personalization in BEx
Check the status of the Personalization settings. All entries should be active u2013 highlighted by an unchecked check box.
To activate highlighted Personalization, click Execute. BW
For SAP BW 2.0B/2.1C -> BI 7.0 Upgrades:
Convert ODS secondary indexes to new standard For SAP BW 2.0B/2.1C -> BI 7.0 Upgrades:
Convert any customer created ODS Object secondary indexes to the new ODS Object index maintenance process.
Re-create all indexes in the ODS Object definition screen in transaction RSA1.
ODS indexes must conform to the new naming convention
BW
Converting IGS chart settings
Convert you existing IGS chart settings (converts IGS chart settings from BLOB to new XML storage format)
Ensure you have the latest SAP Web AS 6.40 IGS (stand alone windows version) installed and working
o Test via transaction RSRT
Execute the conversion process as directed the BI 7.0 upgrade guide.
Note: This step is required for all BI 7.0 upgrades Basis
Backup your SAP BW system Perform a full database backup (including the File system)
Remember to adjust your backup scripts to include new components such as the J2EE engine, pre-calculation service, etc.
Database Admin -
Hi all
How to query in two different tables? Should i use the following
SET_BLOCK_PROPERTY('ins1', ONETIME_WHERE, 'serial = ''' || :GLOBAL.CODE || ''''); this is working but for one table if i want for both tables and and it display the related information in main form , eg..tables are referenced by primary key constraint and foreign key.
sarah
Edited by: SarahSarahSarah on Sep 1, 2009 4:59 AMFor the primary forign key tables no need to create two forms use the master detail functionality of forms.
create a Master/Detail form using the DEPARTMENT, EMPLOYEE tables.
DEPARTMENTwill be the Master block and EMPLOYEE will be the Detail block. The join condition between the two tables is where the deptno column of DEPARTMENT is equal to the deptno column of EMPLOYEE .
The following is an outline of the steps:
Create the DEPARTMENT data block and include the all the fields on the form.
Use the Form layout and only display one record at a time.
Go back to the Object Navigator and select the "Data Blocks" tree. Make sure the DEPARTMENT block is not selected and run the Data Block Wizard again.
Create the EMPLOYEE data block and include all of the columns.
For the master/Detail relationship, de-select the "auto" option, use a Join relationship, choose the DEPARTMENT data block as the Master and set EMPLOYEE.DEPTNO= DEPARTMENT.DEPTNO for the join relationship.
In the Layout Wizard for the Dependents data block, display all of the fields
Choose a Tabular style and display 4 up to records at once with 0 space between each record.
Save the form and run the form.
Thanks -
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. -
How MDX query will work while we run BOXIR3 query!
Hi All,
I am facing lots peformance issues in terms of reports while running.
Can somebody can explain how the query runs at backend like when we hit Run query in Webi how it functioins.When the MDX Query will be generated and how the query hits the BI/Underlying database.
I am basically looking out what happens behind the screen when we run a report in Back end etc.
I am using BI7.0 and BOXIR3.. Thanks in advance for reply.ok Thanks for your reply.Here are the answers for your questions.
I)how many items are in the BI query ?
52 dimensions it has and 15 keyfigures(ckfs,Rkfs) and around 250 details objects
but we are using only the dimension objects in reports,we are not using detail objects I mean to say hardly 3 detail objects we are using in each report.
Since these objects are navigationla attributes they are automatically created in universe as detailed objecs.So if we remove the detail objects does the performance will increase considerably?
CAN YOU PLEASE COMMENT ON THIS
II)how many items are using in the Web Intelligence query panel for each report ?
In webI Query Panel roughly for each report we are using 10 Dimensions and 5 Keyfigures(Including Ckf,Rkfs) with 6 Prompts
III)Do the reports share characteristics ? If yes - how many ?
Yes they share charactorstics .Maximum upto 7 Characterstics which are shared among the reports like Country,Post code,Group,Tier -
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. -
How to compare two Objects !!!!
Hi All,
I know that this question has been asked 100 times till now. But trust me I have checked all of them but couldn`t find answer. Here is my question:
I have an objecs. In that object I am setting (Id,Name,DOJ). Now I want to check whether the object I am trying to save in database already exists or not. If exists then I need to check whether all the setters are same for the two objects. Now can anyone tell me ,how to compare two objects directly without comparing the setters individually.
Thanks in advance.pavan13 wrote:
That is pretty good idea. However I have a query. Does that code actually compare all the setters in a two beans. I don`t want to check each setter seperately.Well, it's pretty meaningless to talk about "comparing setters", setters are methods, they don't have values to compare. Because equals is inside the class, you can simply compare the fields that get set by the setters. "Properties" is probably a better name.
In principal you could write something that tried to find all relevant fields and compare them, using reflection or bean info stuff. The resulting code would be about 50 times longer and take about 50 times longer to run. It's hardly asking a lot to put three comparisons between && operators.
Remember, though, not to compare string fields with ==, you should call .equals on the string fields.
p.s. don't let the bean terminology confuse you. Beans are just ordinary objects which follow a few rules. Personally I wish the term had never been coined.
Edited by: malcolmmc on Dec 6, 2007 4:15 PM
Maybe you are looking for
-
So, my ipod will not stay on, when I take it off the charger it just goes dead. I cannot plug it into the computer and have it go on; I guess it doesn't have enough power for the battery. But, just the other day, I unplugged my ipod (went dead) plugg
-
Default Black swatch in 4 colour mix-aaargh!
How do I get CS3 Illustrator to have the default BLACK swatch as just 100% black only and not a mix of cmyk? Everytime I start a new project it defaults to wrong black and has caught me out a few times. Is there a way to have Illustrator startup with
-
Adobe Reader 8.2 - setting of Reader-Window
Hello, I use Adobe Reader 8.2, Windwos XP + SP2, IE 6.0 + SP2. If I start the Reader application with a other application (maybe about Internet Explorer) then the setting of the Reader-Window willn't be maintained. This is only after the Security Upd
-
Installation of Sql Server 2014 Express
I have a Lenova laptop with windows 8.1 installed. When I try to install the sqlexpradv file it failures with the following error " Extraction failed". Upon examining the log file I get this extra information Directory 'D:\sqlsetup' has been selected
-
I want my default Bookmark Menu to be my Desktop Bookmarks
If I want to access my bookmark menu on my Android device I have to do the following: 1.- Tap on the Address bar 2.- Tap on the Bookmark tap where it shows the "Top Sites/Bookmakrs/History" tabs 3.- Tap on Desktop Bookmarks 4.- Tap on Bookmarks menu.