PCR-where used in Schema?
Hi Friends,
We have a customised PCR used in customised schema. Is there any way to find easily in which schema the PCR is used?
Thanks in advance,
Nithya
I got it..
Similar Messages
-
Errors when using inplace schema evolution
Hi, i have been having some issues when attempting to use inplace schema evolution to add a new element into an existing xsd file currently registered on the database and was looking for some help with this if possible.
Firstly, Oracle details are as follows :
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionThe xsd registered on the database is called truncheadtest2.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2009 sp1 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="title">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="clientRiskEventHeader" xdb:defaultTable="EVLN_CLIENTRISKEVENTHEADER">
<xs:complexType xdb:SQLType="EVLN_CLIENTRISKEVENTHEADER_T">
<xs:sequence>
<xs:element ref="title" xdb:SQLName="TITLE"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>registered via :
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://xmlns.kfis.co.uk/testevheader/xsdin/truncheadertest.xsd',
SCHEMADOC => XDBURIType('/public/web_quotes/header/xsd/test/SchemaTest/truncheadtest2.xsd').getCLOB());
END;i have then created a new xsd, to add the new element to the xsd (using minoccurs to allow backwards compatibility between xml files conforming to the 1st xsd and this new xsd), called truncheadtestfn3.xsd :
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2009 sp1 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="title">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="forename">
<xs:simpleType>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:element>
<xs:element name="clientRiskEventHeader" xdb:defaultTable="EVLN_CLIENTRISKEVENTHEADER">
<xs:complexType xdb:SQLType="EVLN_CLIENTRISKEVENTHEADER_T">
<xs:sequence>
<xs:element ref="title" xdb:SQLName="TITLE"/>
<xs:element ref="forename" minOccurs="0" xdb:SQLName="FORENAME"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>I can run the following code to create the difference doc between the 2 versions of the schema document, without errors:
DECLARE
schemaDiff XMLType;
res boolean;
BEGIN
SELECT xmlDiff
xdburitype('/public/web_quotes/header/xsd/test/SchemaTest/truncheadtest2.xsd').getXML(),
xdburitype('/public/web_quotes/header/xsd/test/SchemaTest/truncheadtestfn3.xsd').getXML()
INTO schemaDiff
FROM dual;
IF (dbms_xdb.existsResource('/public/web_quotes/header/xsd/test/SchemaTest/header.xml')) THEN
dbms_xdb.deleteResource('/public/web_quotes/header/xsd/test/SchemaTest/header.xml');
END IF;
res :=
dbms_xdb.createResource('/public/web_quotes/header/xsd/test/SchemaTest/header.xml',schemaDiff);
dbms_xmlschema.inPlaceEvolve('http://xmlns.kfis.co.uk/testevheader/xsdin/truncheadertest.xsd',schemaDiff,2);
END;
/ which creates the following xml file:
- <xd:xdiff xsi:schemaLocation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?oracle-xmldiff operations-in-docorder="true" output-model="snapshot" diff-algorithm="global"?>
- <xd:insert-node-before xd:node-type="element" xd:xpath="/xs:schema[1]/xs:element[2]">
- <xd:content>
- <xs:element name="forename">
- <xs:simpleType>
<xs:restriction base="xs:string" />
</xs:simpleType>
</xs:element>
</xd:content>
</xd:insert-node-before>
- <xd:append-node xd:node-type="element" xd:parent-xpath="/xs:schema[1]/xs:element[2]/xs:complexType[1]/xs:sequence[1]">
- <xd:content>
<xs:element ref="forename" minOccurs="0" xdb:SQLName="FORENAME" />
</xd:content>
</xd:append-node>
</xd:xdiff>However, when i then run the inplace schema evolution code for option 1, i get the following error:
Error report:
ORA-22324: altered type has compilation errors
ORA-22328: object "WEB_STAGING"."EVLN_CLIENTRISKEVENTHEADER_T" has errors.
PLS-00215: String length constraints must be in range (1 .. 32767)
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 173
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 231
ORA-06512: at line 17
22324. 00000 - "altered type has compilation errors"
*Cause: The use of the ALTER TYPE statement caused a compilation error.
*Action: Correct the error reported and resubmit the statement.I am getting this issue when attempting to add any string value to the existing xsd and i was wondering if you had any idea what the issue was here and how i could resolve this.
Thanks.Hi,
When you use INPLACE_TRACE flag, it traces the operations that would be performed with option 1.
If you look at the trace file produced in this case, you'll see where the error is coming from :
------------ QMTS Executing SQL ------------
ALTER TYPE "TEST"."EVLN_CLIENTRISKEVENTHEADER_T" ADD ATTRIBUTE "FORENAME" VARCHAR2 CASCADE NOT INCLUDING TABLE DATA
/The mandatory length specification is absent.
I thought adding an explicit xs:maxLength restriction would solve the problem, but it happens the generated DDL still lacks the length specification.
After some tries, I found that the issue seems related to the usage of ref elements in the schema.
On a side note, it's not the first time we see problems associated with ref (Cf. how do i get xml db to work right with imported or included schemas?).
The workaround is to use a named type.
I've also added an xdb:defaultTable annotation to the top-level element ("title") so that the registration process doesn't generate a table for it :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
<xs:element name="title" xdb:defaultTable="">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:simpleType name="forenameType">
<xs:restriction base="xs:string">
<xs:maxLength value="30"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="clientRiskEventHeader" xdb:defaultTable="EVLN_CLIENTRISKEVENTHEADER">
<xs:complexType xdb:SQLType="EVLN_CLIENTRISKEVENTHEADER_T">
<xs:sequence>
<xs:element ref="title" xdb:SQLName="TITLE"/>
<xs:element name="forename" type="forenameType" minOccurs="0" xdb:SQLName="FORENAME"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema> -
Where are the Schemas Stored in 5.5 SP4?
Hi Experts,
I am using SAP MDM 5.5 SP4.
From Syndicator, when I open a Port, I can see the schema structure in Item mapping.
I would like to know where are these Schemas physically stored?
NOTE: I do not see the path/schema/xsd in Console under the 'XML Schemas' node.
Thanks!Hi,
Check the MDM Business Content folder for *.xsd - Business_Content\Material\XSDs\XSD
Use this xsd to create a syndication map or create your own syndication map.
Then unload the repository, In Console go to Map for the particular port and select the syndication map that you created.
Check the Syndicator guide for more details - http://help.sap.com/saphelp_mdm550/helpdata/en/ff/37e4c6857449388ddb6c77f160ac4f/frameset.htm
Thanks,
Shambhu. -
Using XML schema in a Java application
Hi,
I need to parse and use an XML schema in an application, mainly for helping a user to build an XPATH.
For that, I want to use the Schema classes bundled with Oracle's parser. Is there any documentation about that ? Or are the source code available ?
Thank's
Phil.See the JavaHelp article on my site.
I had developers saying they had to have JavaHelp for their
Java application. After discussion we established that for where
this was going to be used, webhelp was just as acceptable. Being
easier for us that won the day. -
Using a schema from a different Logical Data Service
Is it possible to use a schema from a different Logical Data Service in a new Logical Data Service? I want to maintain just one version of the schema.
when I try and associate a schema type the 'Select Schema Type' dialog appears. On there the scope is set to project. Next to it is 'All projects', is there a way I can get that ungreyed?I don't think so. I assume that is a remnant from ALDSP 2.x when we had the notion of an ALDSP application that contained multiple ALDSP projects and there was visibility across projects (actually just folders) in the same application.
can I use a schema associated with another dataspace projectNo. The contents of a dataspace are not accessible from outside the the dataspace other than what is provided by the APIs. And although the schemas could be accessed via catalogservices, this isn't a standard protocol (like http://) and therefore schema processors wont' be able to use them.
You could host your schemas in a web-application and expose them via http. Create a Dynamic Web Project and put your schemas where the content gets served from (i.e. alongside index.html), and then they would be accessible via http://<yourserver>:<port>/yourWebApp/yourSchema.xsd. All the schemaLocation in the imports would need to be relative. It would probably be easier to create your schema-hosting application first, then build your dataservices. -
Can i use App schema from another Oracle database.
Hi everyone,
can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
Regards,
Kashif.user10485983 wrote:
Please update your forum profile with a real handle instead of "user10485983".
can i use application schema from another Oracle database and how can we do this. the reason is that current database where apex is installed is get very slow because of the size of database and application usage.
You can (using database links), but this will generally result in even poorer performance (unless by "another Oracle database" you mean using RAC?)
It sounds more like you either need to upgrade your systems, or refactor your applications to have a smaller performance footprint. -
Biztalk Project using SWIFT Schemas
Hi,
Can anyone provide me a sample biztalk 2013 solution using SWIFT schemas, other than the one which is provided in the End To End Tutorial ?Do you parsing SWIFT text message to xml. You have to create receive or send pipeline base on your requirement using existing SWIFT disassembler or assembler component.
You can use this pipeline for all type fo FIN MT messages.
R u getting this error
unparsing errror.
Publishing failed message to MessageBox. Details: The fragmented batch message, whose Interchange Id is {}, whose position in the batch is 1, and has a BatchId of bbad8bfc-6612-4b3f-b1e2-bb2414b111b1, has been marked as A4SWIFT_Failed=True in the MessageBox
database by the SWIFT Disassembler. This message failed with 1 parse errors, 0 XML validation errors, and 0 BRE validation errors. Error details can be extracted from the failed message in the MessageBox database by subscribing to messages where A4SWIFT_Failed=True.
One of the possible cause is issue with assembly
Microsoft.Solutions.FinancialServices.SWIFT.RuntimeSchema
We can have this assembly at
Program Files Microsoft BizTalk Accelerator for SWIFT\Assemblies or
Program Files\Microsoft BizTalk Accelerator for SWIFT 2010 Message Pack\Assemblies
Gac the message pack runtimeschema and it will solve your prob -
Business Address Services (BAS) and Where-Used ADRV/ADRVP
Can someone point out any good sources of information on Business Address Services or possibly its predecessors either online or hard-print? I've been through the help.sap.com information for BAS and all sorts of SAPNotes without finding what I'm looking for.
In particular I'm trying to understand default SAP's usage of the Where-Used links in BAS that are stored in the tables ADRV and ADRVP.
My Issue: If I create a Sales Document in SAP referencing a partner address stored in BAS there is no Where-Used ADRV record created. So I cannot use the address number of the ADRC record to find which documents are referencing it via ADRV.
steps to recreate:
- Using existing Customer/Partners
- Create Sales Document (Order) adding partners by selecting partner #'s and not manually overriding any address information.
- Address of the partner is now linked in the Sales Document via VBPA-ADRDA=D and the ADDRNUMBER references the same ADRC address records that KNA1 points to.
- There is no Where-Used record created in ADRV indicating that the Sales Document is linked to that address.
- If I change or delete the ADRC record from KNA1 then I do not have the information available to take any special actions on linked Sales Documents.
Note: If you manually override the address or use a one-time address when entering the Sales Document then the new address is linked via VBPA-ADRDA=E and a Where-Used record is created in ADRV. Also any follow-on documents created with reference to the Sales Document will also have Where-Used records created in ADRV. So in the case of changed or manually entered addresses ADRV does work as I would expect it to.
I am observing this behavior in both R/3 4.6c and ECC 5.0. Trying to understand why SAP is using or not using ADRV in these situations and whether the behavior can and should be changed.Can someone point out any good sources of information on Business Address Services or possibly its predecessors either online or hard-print? I've been through the help.sap.com information for BAS and all sorts of SAPNotes without finding what I'm looking for.
In particular I'm trying to understand default SAP's usage of the Where-Used links in BAS that are stored in the tables ADRV and ADRVP.
My Issue: If I create a Sales Document in SAP referencing a partner address stored in BAS there is no Where-Used ADRV record created. So I cannot use the address number of the ADRC record to find which documents are referencing it via ADRV.
steps to recreate:
- Using existing Customer/Partners
- Create Sales Document (Order) adding partners by selecting partner #'s and not manually overriding any address information.
- Address of the partner is now linked in the Sales Document via VBPA-ADRDA=D and the ADDRNUMBER references the same ADRC address records that KNA1 points to.
- There is no Where-Used record created in ADRV indicating that the Sales Document is linked to that address.
- If I change or delete the ADRC record from KNA1 then I do not have the information available to take any special actions on linked Sales Documents.
Note: If you manually override the address or use a one-time address when entering the Sales Document then the new address is linked via VBPA-ADRDA=E and a Where-Used record is created in ADRV. Also any follow-on documents created with reference to the Sales Document will also have Where-Used records created in ADRV. So in the case of changed or manually entered addresses ADRV does work as I would expect it to.
I am observing this behavior in both R/3 4.6c and ECC 5.0. Trying to understand why SAP is using or not using ADRV in these situations and whether the behavior can and should be changed. -
I have just requested my ipod nano 1st generation to be replaced using the scheme, i have entered the wrong postcode on the shipping of the replacement box, will it still come to my address? or how can i change it?
Call up apple care, (08000480408 if you are in the UK) and ask them to change the postcode and request another replacement packet
-
How to find out where used list of Table or T-code
Dear ABAP gurus
I know many of you have done this several times.
wish to find out which Transaction code INSERTs the data into the table IHPA.
I did the where used list - SE11 ( for specific key work called INSERT ).
Used the Table called D010TAB which has some information.
Vise versa if I know a T-CODE , how to know which tables it read & Modify...
any better procedure than spending hours in research...
I found similar custom program to find USER EXITS ...here..., looking soething similar...
[http://wiki.sdn.sap.com/wiki/display/Snippets/FindUser-exits%2CBADIs%2CBTEs%2CEtcbyTCodeorProgram]
thank you for your help
Edited by: Raj Anvesh on Aug 3, 2011 9:58 PMHi Anvesh,
Maybe the data INSERTION is happening by BAPI,
So just try to look for the concerned BAPIS.
ECP_SRV_PARTNERS_IHPA
IREP1_IHPA_ADRNR_PRE_FETCH
IREP1_IHPA_ADRNR_READ
MAP2E_DIIHPA_TO_PARTNER
MAP2E_IHPAVB_BAPI2080_NOTPARTE
MAP2E_IHPAVB_TO_BAPI_IHPA
MAP2E_IHPA_BAPI2080_NOTPARTNRI
MAP2E_IHPA_M_BAPI2080_NOTPNRI
MAP2I_BAPI2080_NOTPARTNRI_IHPA
MAP2I_BAPI_IHPA_TO_IHPA
PM_DB_FILL_DIIHPA
PM_PARTNERCOPY_FILL_XIHPA
PM_PARTNER_DELETE_XIHPA
PM_PARTNER_GET_XIHPA
PM_PARTNER_PUT_XIHPA
PM_PARTNER_REFRESH_XIHPA
these are the bapis which are dealing with the IHPA table,
Segregate them as needed and then go to the std program
Revert for further clarification.
Thanks
Sri -
Where used list of a function module
hello ,
i want to find out where used list of a function modules , but the problem when I try where used button with in a function module Im getting message saying 'Function Is Not An Include' when it is used in other programs. Function AKB_WHERE_USED_LIST does not exist.Function FUNC_GET_OBJECT does not show the names of the programs.Im Stuck..Plz advise.
Thanks in AdvanceHello,
This is working fine.
i am getting the name of the programs where the Fm is used.
In
OBJ_TYPE FUNC
OBJ_NAME FUNC_GET_OBJECT
Try this......... -
Short dump with Where-used list
Hi All,
I'm making some research on specific InfoObjects, and in some cases I want to know where are they being used, but when I try to use the icon for "Where-used list using Data Warehouse" I end up with an error, a short dump.
Message class is: RSQBW
Trigger Location of Runtime Error:
Program: CL_RSQ_ISET_SERVICE===========CP
Include: CL_RSQ_ISET_SERVICE===========CM016
Row: 136
Module Type: (METHOD)
Module Name: EXTEND_FIELD_BUFFER
Does any one can help me to understand why is this going on and how to solve this?
Thank you!!
MiriamHi Miriam
In the short dump you should also see the name of the infoset in question.
You probably have to adjust the infoset in transaction RSISET and they try to run the where used list again.
Best Regards,
Vincent -
ABAP Function Module where-used in BI-Transformations
Hi,
we have developed some ABAP-Z-Function-Modules. These are used in several BI-Data-Transformations and work fine and performant.
The problem we have now is to find out in which transformation a Function-Module is used.
The where-used-list in SE37 doesn't report any BI-Transformations althought I check all categories.
Got anyone a solution for our problem?
ChristianHi,
see this code for function module where used list only for transformation . i used the same code as bhaskar specified..but little modification..here u used "date_get_week" function module..
TYPE-POOLS slis.
DATA fcat1 TYPE slis_t_fieldcat_alv.
DATA: BEGIN OF t_display OCCURS 0,
targetname LIKE rstran-targetname,
sourcename LIKE rstran-sourcename,
tranid LIKE rstran-tranid,
routine LIKE rstran-startroutine,
line_no LIKE rsaabap-line_no,
line LIKE rsaabap-line,
END OF t_display.
data : input(75) type c.
DATA : input_pattern1(75) TYPE c.
DATA : input_pattern2(75) TYPE c.
DATA : same_source(30) TYPE c.
**Internal table declerations**************************************
TYPES: BEGIN OF t_trans_lookup_finder,
targetname TYPE rstran-targetname,
sourcename TYPE rstran-sourcename,
tranid TYPE rstran-tranid,
routine TYPE rstran-startroutine,
line_no TYPE rsaabap-line_no,
line TYPE rsaabap-line,
END OF t_trans_lookup_finder.
DATA: i_lookup_finder TYPE STANDARD TABLE OF t_trans_lookup_finder,
wa_lookup_finder TYPE t_trans_lookup_finder,
i_trans_lookup_finder TYPE STANDARD TABLE OF t_trans_lookup_finder,
wa_trans_lookup_finder TYPE t_trans_lookup_finder,
i_trans_final TYPE STANDARD TABLE OF t_trans_lookup_finder,
wa_trans_final TYPE t_trans_lookup_finder.
DATA : i(7) TYPE n.
DATA old_cube(20) TYPE c VALUE ' '.
DATA old_source(20) TYPE c VALUE ' '.
**Selections for update rules**************************************
SELECT DISTINCT targetname sourcename tranid endroutine line_no line
INTO TABLE i_trans_lookup_finder FROM
rstran AS a INNER JOIN rsaabap AS b ON aendroutine = bcodeid
WHERE
aobjvers = 'A' AND bobjvers = 'A'.
APPEND LINES OF i_trans_lookup_finder TO i_lookup_finder.
**Selections for Transformations(Expert routine)*******************
SELECT DISTINCT targetname sourcename tranid expert line_no line
INTO TABLE i_trans_lookup_finder FROM
rstran AS a INNER JOIN rsaabap AS b ON aexpert = bcodeid
WHERE
aobjvers = 'A' AND bobjvers = 'A'.
APPEND LINES OF i_trans_lookup_finder TO i_lookup_finder.
Edited by: Sakthi Jaganathan on May 20, 2009 6:25 PM -
Can't i use xml schema and oledb data connection at the same time?
Hello to all and thanks in advance.I use xml schema and oledb data connection at the same time and the problem is that when I try to export the xml, the outcome is not what i expect.Without the oledb connection everything is ok (just the schema) and the xml complies with the schema.
Can't i have both schema and oledb and the exported xml be as i want it?You can use both at the same time, but not gor Internet access if that's what you're asking.
Now there is a thing called Link Aggregation, which combines a number of interfaces for speed/redundancy, but it really only works locally, and then only with ALL special equipment in the route, and most likely OSX Server involved.
Sorry. -
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
Maybe you are looking for
-
I have a large itunes library that I use with Pure music. In the past, I was tagging CDs imported as gapless after the fact. Primarily it tool me a while to learn that I needed to do this for best playback from memory. in iTunes 11, I can see how
-
Flex builder 3.0.1 check sum
Today I download flex builder 3.0.1 (FB3_win.exe windows version standalone ), when use md5sum check the file, It not same as the adobe's page (Windows: 5685090ac5f2a514075e7a7bd7ba1eb0), my checksum is (963d2a6fee8f9fc3fd496d1e69de093a FB3_win.exe),
-
Mozilla gives the next crash report ID: dirapiX.dll What to do now ?
When I play mahjong on Unibet, most of the times while playing the game it all of a sudden stops with playing and mozilla sends me a crash report with the following ID : dirapiX.dll What can i do to overcome this problem ?
-
HQL ClassicQueryTranslatorFactory related information need
Hi all, Please help me to know If i use ClassicQueryTranslatorFactory in my cfg.xml am getting below error Am using Spring+hibernate +sunone application server 8.2 [#|2008-07-17T17:23:14.353+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.o
-
Unable to open iPhoto after installing Mavericks and latested iPhoto Version.
I have just installed Mavericks onto my Macbook Pro. The next thing I did was purchase, download and install the most recent version of iPhoto. The previous version of iPhoto was '09 Vers. 8.1.2. I have about 300gb's of images in my iPhoto library, w