Error while enhancing

Hi
I have a requirement that I need create one new custom assignment block AC Specialty and inside the assignment block BP No, First name, last name, Relation type, email id, Specialty 1 (Custom field), Specialty 2 (Custom field), Specialty 3 (Custom field).
So I copied the standard view BP_DATA/AccountRelationshipOV view and introduced new custom view BP_DATA/ACSpecialityOV.  Now all the fields available in the standard is also available in my custom view.  I also checked in the web ui all the data appeared correctly.
I need to add 3 more custom fields Specialty 1,2,3 in the same context node BUILRELATIONSHIP so I tried to enhance my custom view BP_DATA/ACSpecialityOV and after enhancing the view I am getting exception in the web ui.  Find the details below regarding the exception :
CX_BSP_INV_PAGE - GNP Exception: The object AccountRelationshipsOV.htm in the URL/sap (bD1lbiZjPTkxMCZkPW1pbg ==)/bc/bsp/sap/zsyn_bp_data/acspecialityov.do is not valid.
Please help me on this.
Thanks
Sushma

Ignore the scripts. Propmting the SQL plus put sys@tns as sysdba and give the password of SYS. It will work. After logging as sysdba shutdown and startup the database.
Regards
Asif Kabir

Similar Messages

  • Error while enhancing standard component CRMCMP_CND

    Hi,
    We have one requirement that Phase Id and Offer Id needs to added in the /SAPCND/GCM transaction and the same needs to be disaplay in the web ui.  So we added two fields in field catalog after that we made two implementation in /SAPCND/ROLLNAME and CRM_COND_COM_BADI.
    Now the funtionality is working fine in the GUI and in WEBUI the field is added but the F4 value is not visible in the new web ui screen.
    So I tried to enhance the standard component CRMCMP_CND, in order to retreive the F4 value help.  While selecting the context node in the standard view CondRecEditView we are getting the status message u201CError during analysis of method REATE_CONDRECORD of class L_CRMCMP_C_CONDRECEDITV0_CTXT. Message no. BSP_WD_TOOLS031u201D
    In standard view itself I am getting this error and while enhancing the component the context node is not converted in to Zclass.
    If we try to add attribute from the context node its giving error create_condrecord does not exist error.
    So I am unable to proceed further.  If any one aware how to solve this issue kindly let me know.

    Hi,
    While enhancing a view of a component only the controller (xx_IMPL) and the context class (xx_CTXT) are extended into Z classes. Context nodes (xx_CNXX) are not automatically extended. You have to do it manually only for the context node(s) you would like to modify. Indeed there is a message that appears when you select the context node but this is not the reason why the CN class is not extended.
    What you have to do is to redefine the method CREATE_CONDRECORD in class ZL_CRMCMP_C_CONDRECEDITV0_CTXT and create a new class ZL_CRMCMP_C_CONDRECEDITV0_CN00 that extends CL_CRMCMP_C_CONDRECEDITV0_CN00
    In ZL_CRMCMP_C_CONDRECEDITV0_CN00 implement method GET_V_xx for the field you want a search help on
    Regards,
    Fabian

  • Getting runtime error while enhancing the view SRQM_INCIDENT_S/incidentSRL of SRQM_INCIDENT_S UI component

    context generation failed in view SRQM_INCIDENT_S/incidentSRL of UI Component SRQM_INCIDENT_S
    an exception has occured
    exception class CX_SY_MOVE_CAST_ERROR- source type \ class- CL_SRQM_INC_INCIDENTSRL_CTXT is not compatible, for the purposes of  assignment with target type / CLASS= ZL_SRQM_INC_INCIDENTSRL_CTX
    Method : ZL_SRQM_INCIDENTSRL_IMPL=>WD_CREATE_CONTEXT..
    initialization of view SRQM_INCIDENT_S/incidentviewset of ui component SRQM_INCIDENT_S failed....
    cannot display view srqm_incidet_s/mainwindow of ui component srqm_incident_s
    the above exceptions occured while enhancing the view of SRQM_INCIDENT_S search UI Component..
    please let me know the reason...

    Hi Srinivas,
    It seems to be standard SAP Issue. Please refer to SAP Note 1488728 for fixing the issue. The note recommends to implement the below code in the generated class ZL_SRQM_INC_INCIDENTSRL_IMPL by redefining the method WD_CREATE_CONTEXT.
    METHOD wd_create_context.
      context = cl_bsp_wd_context=>get_instance(
              iv_controller = me
              iv_type = 'ZCL_SRQM_INC_INCIDENTSRL_CTXT' ).
      typed_context ?= context.
      super->wd_create_context( ).
    ENDMETHOD.
    Regards,
    Mahesh

  • Error while enhancing logistics datasource ????

    Hi Friends,
        I am trying to enhance one of the Logictics D/S (2LIS_02_SCL) and when I try to append the extract structure I get the following error....
        "DataSource 2LIS_02_SCL does not allow append structures??"
    Early input would be greatly appreciated ......
    Note: I get the same error for other D/S also (HDR, SCN,ITM etc)
    Thanks,
    Andy

    Hi Andy,
       Goto Tcode : RSA5 or 6 take extact structure name(double click on datasource).
       Now goto TCode : SE11 -->> input extract structure name -->> Disply -->> Chose enhace.
    Hope it Helps
    Srini

  • Error while enhancing the Extract structure in LBWE

    Hi All,
    When I am trying to change the extract structure os logistic extractors in LBWE, it is giving me an error saying "Entries for application 11 still exist in the extraction queue".
    Below is my scenario:
    I have 3 clients in the same R/3 system, Client 010, 020 and 030.
    Clients 020 and 030 are connected to my BW system. Client 010 will be used for all development while test loads can be done from clients either 020 or 030. Till now, I have tested my data flows only from client 030. Now, I have to add some extra field to the structure in LBWE but facing the above mentioned error.
    I went into LBWQ in both the client 020 and 030 and deleted the queue and then tried to change the extract structure in client 010 but still the same error.
    What else do I need to do to resolve this?
    Thanks,
    RPK.

    Hi Raki,
    We are still in development phase. I did all my developments(R/3) in client 010. Till now I did only full loads to BW from client 030 and haven't done any loads from client 020. My BW system is also connected to another sandbox client 100 but I haven't done any loads from that client aswell.
    As I have to add some extra fields to the extractor from LBWE, I did the follwing steps in R/3:
    1) I have deleted the setup tables from client 010, 020 and 030.
    2) Deleted the data from LBWQ from clients 010, 020 and 030.
    3) Trying to change the extract structure by clicking on "Maintenance" for the extractor in Client 010.
    At this point it is throwing an error.
    I thought that the client 100 might be a problem as I have transfer rules created in my BW system from this source system as well. As I do not need this source system anymore, I have deleted it from BW and tried changing the structure in LBWE but still the same problem.
    Any ideas would be highly appreciated.
    Thanks,
    RPK.

  • Error while enhancing a view for bt115qh_slsq

    Hello
    Iam unable to enhance a view for bt115qh_slsq component.
    When i right click a view and click Enhance. It throws an error stating that "Choose a change request with target system C07".
    Please someone provide me a solution.

    Hello,
    you may try the following: please go to se03 -> "Find Request". Input the        
      request and find it. Double-click the request to change the target     
      system or related settings.                                            
    Regards,
    Gerhard

  • Error while enhancing the BP_ADDR component using BSP component workbench

    Hi ,
    I am trying to enhance the BP_ADDR component using the BSP component workbench. But when I try to regenerate GET_I methods of my context node, I am getting the following error:
    "Component GET_ADDRESS_GUID does not exist.
    Determination of BOL attributes failed"
    Please let me know the reason for this error and how to resolve it.
    Thanks
    Mreddy

    Hi,
    You may manually create the Get method for the attribute ADDRESS_GUID in your context node class.
    Regards
    Prasenjit

  • Error while enhancing a Window.

    Hi experts,
            I have enhanced the component BT111S_OPPT the view Result but when I am trying to enhance the window MainWindow, it is giving me the followin two errors :-
               1> Context cannot be enhanced
               2> Generation of derivation classes failed.
    When I am clicking the long text beside the first error, the following information is showing up :
          MESSAGE No. - BSP_WD_TOOLS094
           Diagnosis - The implementation of method WD_CONTEXT_CREATE, which is used to generate the context, does not match the expected code pattern. Therefore the automatic exchange of the context class is not possible.
          System Response - The enhancement is terminated.
    I have searched OSS notes with the message number but found no result. Can anyone help me out of this?

    Didn't help.. I just manually created the Z Class for all the controller and context node and copy pasted the code from an enhanced Window of a different component to the WD_CREATE_CONTEXT method of my Window controller class and made necessary changes to point it to the Z context class. That worked. I just not have to manually add the custom plug details in the Repository.xml from SE80 manually whenever I have to create a custom plug for this Window. I am marking this Thread as solved.

  • Error While creating enhancement Spot

    Hello all,
    I am doing some enhancement code using new enhancement framework for SAP HR infotype 0002 and 0006. I am searching the enhancement spot in relevant program screen, but while enhancing (Shift+F4), it is showing me a message saying "Object still in upgrade mode. Finish the upgrade first".
    My basic requirement is to change the screen values before display.
    Is anybody gone through such error?? Please help.
    Thanks,
    Prashant

    Please Share the answer.
    Regards.
    Mariano Billinghurst

  • Error while creating Structure

    I am getting an error while creating a Structure.
    After filling the required fields in Components tab and Currency/Quantity filed tab, when activated it says "Warnings Occurred during activation"  "Do you want to see the log?"
    when i click "yes", it displays
    TABL ZABC Activated
    Check Table ZABC (SAPUSER .........)
    ENHANCEMENT CATEGORY FOR TABLE MISSING
    ENHANCEMENT CATEGORY FOR INCLUDE OF SUBTYPE MISSING
    TABLE ZABC WAS CHECKED WITH WARNINGS
    Thanks

    hi,
    You are getting these warnings because you have not assigned an enhancement category to your structure .
    Try to assign a enhancement category for the structure .
    1. open the structure in change mode .
    2.  then Extras -> Enhancement Category and choose an enhancement option .
    3. save and activat ethe structure .
    4. Your structure wil be activated now without any warnings .
    Regards ,
    Lokesh

  • Error while activating Infocube

    Following error while activating after creating new Infocube:
    No active nametab exists for /BIC/DDPCW14DFD1     
    Termination due to inconsistencies     
    Table /BIC/DDPCW14DFD1 (Statements could not be generated)     
    Enhancement category for table missing     
    The cube is being made as a exact copy of an existing activated and correctly working cube.
    Can anyone shed some light on this?
    ======================================
    MORE detailed error:
    RED- Error
    GREEN-Fine
    YELLOW-Warning
    RED     Error/warning in dict. activator, detailed log  --> Detail     
    GREEN     Activate table /BIC/DDPCW14DFD1     
    YELLO     Enhancement category for table missing     
    YELLO     Enhancement category for include or subtype missing     
    GREEN     A table called /BIC/DDPCW14DFD1 exists in the database     
    RED     No active nametab exists for /BIC/DDPCW14DFD1     
    RED     Termination due to inconsistencies     
    RED     Table /BIC/DDPCW14DFD1 (Statements could not be generated)     
    GREEN     Error number in DD_DECIDE (9)     
    YELLO     Flag: 'Incorrect enhancement category' could not be updated     
    GREEN     Table /BIC/DDPCW14DFD1 was not activated     
    GREEN     Activate table /BIC/DDPCW14DFD2     
    YELLO     Enhancement category for table missing     
    YELLO     Enhancement category for include or subtype missing     
    GREEN     Table /BIC/DDPCW14DFD2 must be created in the database     
    =============
    Thanks,
    Mohnish

    Can i know in which environment are you working? BW 3.5 OR BI 7?

  • Error while registering a schema

    Hi :
    I get this error while I am registering my XML schema.
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LPX-00217: invalid character 0 (\u0000)
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    I have marked in bold the part of the schema which bombs while registering. (When I validate this scehms in XML Spy it says it is a valid schems)
    The Schema definition is as follows :
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="urn:uk:ac:ebi:spml" xmlns="urn:uk:ac:ebi:spml" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:include schemaLocation="feature.xsd"/>
    <!-- Evidence definition begins -->
    <xs:complexType name="evidenceListType">
    <xs:annotation>
    <xs:documentation>The list of all evidences stored in one entry.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="evidence" type="evidenceType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="evidenceType">
    <xs:annotation>
    <xs:documentation>The evidence element is equivalent to the actual evidence (**EV line).</xs:documentation>
    </xs:annotation>
    <xs:attribute name="category" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="curator"/>
    <xs:enumeration value="import"/>
    <xs:enumeration value="program"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="ANU-2DPAGE_ADD"/>
    <xs:enumeration value="COMPLUYEAST-2DPAGE_ADD"/>
    <xs:enumeration value="Curator"/>
    <xs:enumeration value="EMBL"/>
    <xs:enumeration value="Experimental"/>
    <xs:enumeration value="FLYBASE_ADD"/>
    <xs:enumeration value="GENEW_ADD"/>
    <xs:enumeration value="GOA_ADD"/>
    <xs:enumeration value="GRAMENE_ADD"/>
    <xs:enumeration value="HSSP_ADD"/>
    <xs:enumeration value="Import"/>
    <xs:enumeration value="MEROPS_ADD"/>
    <xs:enumeration value="MGD_ADD"/>
    <xs:enumeration value="Opinion"/>
    <xs:enumeration value="PHCI-2DPAGE_ADD"/>
    <xs:enumeration value="PMMA-2DPAGE_ADD"/>
    <xs:enumeration value="ProtImp"/>
    <xs:enumeration value="REBASE_ADD"/>
    <xs:enumeration value="Rulebase"/>
    <xs:enumeration value="SGD_ADD"/>
    <xs:enumeration value="SIENA-2DPAGE_ADD"/>
    <xs:enumeration value="SignalP"/>
    <xs:enumeration value="Similarity"/>
    <xs:enumeration value="TRANSFAC_ADD"/>
    <xs:enumeration value="TrEMBL"/>
    <xs:enumeration value="ZFIN_ADD"/>
    <xs:enumeration value="internal"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="attribute" type="xs:string" use="optional"/>
    <xs:attribute name="date" type="xs:date" use="required"/>
    <xs:attribute name="evID" type="xs:string" use="required"/>
    </xs:complexType>
    <!-- Evidence definition ends -->
    <!-- Definition of the protein begins -->
    <xs:complexType name="proteinType">
    <xs:sequence>
    <xs:element name="name" type="nameType" maxOccurs="unbounded"/>
    <xs:element name="iRefList" type="iRefListType" minOccurs="0">
    <xs:annotation>
    <xs:documentation>This is referring to a possible EC number (ENZYME database cross reference).</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:choice minOccurs="0">
    <xs:element name="componentList">
    <xs:annotation>
    <xs:documentation>The component list is equivalent to the CONTAINS section of the DE line.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="component" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="nameType" maxOccurs="unbounded"/>
    <xs:element name="iRefList" type="iRefListType" minOccurs="0">
    <xs:annotation>
    <xs:documentation>This is referring to a possible EC number (ENZYME database cross reference).</xs:documentation>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="domainList">
    <xs:annotation>
    <xs:documentation>The domain list is equivalent to the INCLUDES section of the DE line.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="domain" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="nameType" maxOccurs="unbounded"/>
    <xs:element name="iRefList" type="iRefListType" minOccurs="0">
    <xs:annotation>
    <xs:documentation>This is referring to a possible EC number (ENZYME database cross reference).</xs:documentation>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    <xs:element name="evList" type="evListType" minOccurs="0">
    <xs:annotation>
    <xs:documentation>This contains all evidence that are connected to the complete DE line (For the time being also the ones that couldn't be resolved to a single name).</xs:documentation>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="evidenceStatus">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="hypothetical"/>
    <xs:enumeration value="putative"/>
    <xs:enumeration value="possible"/>
    <xs:enumeration value="probable"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="type">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="fragment"/>
    <xs:enumeration value="fragments"/>
    <xs:enumeration value="version1"/>
    <xs:enumeration value="version2"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:complexType>
    <!-- Definition of the protein ends -->
    <!-- DB reference definition begins -->
    <xs:complexType name="sptrProperties">
    <xs:complexContent>
    <xs:restriction base="propertyBaseType">
    <xs:attribute name="name" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="edition"/>
    <xs:enumeration value="entry name"/>
    <xs:enumeration value="evidence"/>
    <xs:enumeration value="gene designation"/>
    <xs:enumeration value="last revision date"/>
    <xs:enumeration value="match status"/>
    <xs:enumeration value="match status hits"/>
    <xs:enumeration value="method"/>
    <xs:enumeration value="organism name"/>
    <xs:enumeration value="pdb accession"/>
    <xs:enumeration value="protein sequence ID"/>
    <xs:enumeration value="status"/>
    <xs:enumeration value="term"/>
    <xs:enumeration value="type"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <xs:simpleType name="allSPTrDbsType">
    <xs:restriction base="xs:string">
    <xs:enumeration value="ANU-2DPAGE"/>
    <xs:enumeration value="Aarhus/Ghent-2DPAGE"/>
    <xs:enumeration value="COMPLUYEAST-2DPAGE"/>
    <xs:enumeration value="DictyDb"/>
    <xs:enumeration value="EC"/>
    <xs:enumeration value="ECO2DBASE"/>
    <xs:enumeration value="EMBL"/>
    <xs:enumeration value="EcoGene"/>
    <xs:enumeration value="FlyBase"/>
    <xs:enumeration value="GO"/>
    <xs:enumeration value="Genew"/>
    <xs:enumeration value="GlycoSuiteDB"/>
    <xs:enumeration value="Gramene"/>
    <xs:enumeration value="HIV"/>
    <xs:enumeration value="HSC-2DPAGE"/>
    <xs:enumeration value="HSSP"/>
    <xs:enumeration value="InterPro"/>
    <xs:enumeration value="Leproma"/>
    <xs:enumeration value="ListiList"/>
    <xs:enumeration value="MAIZE-2DPAGE"/>
    <xs:enumeration value="MEROPS"/>
    <xs:enumeration value="MGD"/>
    <xs:enumeration value="MIM"/>
    <xs:enumeration value="MaizeDB"/>
    <xs:enumeration value="MypuList"/>
    <xs:enumeration value="PDB"/>
    <xs:enumeration value="PHCI-2DPAGE"/>
    <xs:enumeration value="PhosSite"/>
    <xs:enumeration value="PIR"/>
    <xs:enumeration value="PMMA-2DPAGE"/>
    <xs:enumeration value="PRINTS"/>
    <xs:enumeration value="PROSITE"/>
    <xs:enumeration value="Pfam"/>
    <xs:enumeration value="ProDom"/>
    <xs:enumeration value="REBASE"/>
    <xs:enumeration value="SGD"/>
    <xs:enumeration value="SMART"/>
    <xs:enumeration value="SWISS-2DPAGE"/>
    <xs:enumeration value="Siena-2DPAGE"/>
    <xs:enumeration value="StyGene"/>
    <xs:enumeration value="SubtiList"/>
    <xs:enumeration value="TIGR"/>
    <xs:enumeration value="TIGRFAMs"/>
    <xs:enumeration value="TRANSFAC"/>
    <xs:enumeration value="TubercuList"/>
    <xs:enumeration value="WormPep"/>
    <xs:enumeration value="ZFIN"/>
    </xs:restriction>
    </xs:simpleType>
    <!-- <xs:complexType name="sptrDbReferenceType" abstract="true">-->
    <xs:complexType name="sptrDbReferenceType">
    <xs:complexContent>
    <xs:restriction base="dbReferenceBaseType">
    <xs:sequence>
    <xs:element name="property" type="propertyBaseType" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="db" type="allSPTrDbsType" use="required"/>
    <xs:attribute name="id" type="xs:string" use="required"/>
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <!-- EMBL -->
    <!--
    <xs:complexType name="emblDbProperties">
    <xs:complexContent>
    <xs:restriction base="propertyBaseType">
    <xs:attribute name="name" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="protein sequence ID"/>
    <xs:enumeration value="status"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="emblDbReferenceType">
    <xs:complexContent>
    <xs:restriction base="sptrDbReferenceType">
    <xs:sequence>
    <xs:element name="property" type="emblDbProperties" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="db" use="required">
    <xs:simpleType>
    <xs:restriction base="allSPTrDbsType">
    <xs:enumeration value="EMBL"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="id" type="xs:string" use="required"/>
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    -->
    <!-- EMBL -->
    <!-- NCBI Taxonomy -->
    <xs:complexType name="taxonomyDBType">
    <xs:annotation>
    <xs:documentation>This dbRef type is meant for taxonomy database such as the NCBI taxonomy database.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:restriction base="dbReferenceBaseType">
    <xs:sequence>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="db" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="NCBI Taxonomy"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="id" type="xs:string" use="required"/>
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <!-- NCBI Taxonomy -->
    <!-- DB reference definition ends -->
    <!-- Name definition begins -->
    <xs:complexType name="nameType" mixed="true">
    <xs:annotation>
    <xs:documentation>The name type is used for all names occuring in an entry.</xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="organismNameType">
    <xs:annotation>
    <xs:documentation>The name type is used for source organism names.</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="common name"/>
    <xs:enumeration value="full name"/>
    <xs:enumeration value="scientific name"/>
    <xs:enumeration value="synonym"/>
    <xs:enumeration value="abbreviation"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    <!-- Name definition ends -->
    <!-- Definition of the geneLocation begins -->
    <xs:complexType name="geneLocationListType">
    <xs:annotation>
    <xs:documentation>Defines the locations/origins of the shown sequence (OG line).</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="geneLocation" type="geneLocationBaseType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="geneLocationBaseType" abstract="true">
    <xs:annotation>
    <xs:documentation>The location's supertype.</xs:documentation>
    </xs:annotation>
    </xs:complexType>
    <xs:complexType name="organelleLocationType">
    <xs:annotation>
    <xs:documentation>This type stores the location if it's a chloroplast, cyanelle or mitochondrium.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="geneLocationBaseType">
    <xs:sequence>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="chloroplast"/>
    <xs:enumeration value="cyanelle"/>
    <xs:enumeration value="mitochondrion"/>
    <xs:enumeration value="nucleomorph"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="plasmidLocationType">
    <xs:annotation>
    <xs:documentation>This type stores the location if it's a plasmid including all plasmid names.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="geneLocationBaseType">
    <xs:sequence>
    <xs:element name="name" type="nameType"/>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="plasmid"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <!-- Definition of the geneLocation ends -->
    <!-- Feature definition begins -->
    <xs:complexType name="baseFeatureType" mixed="true">
    <xs:annotation>
    <xs:documentation>The feature's supertype from which all other feature element types are derived.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:group ref="locationGroup" minOccurs="0"/>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="description" type="xs:string" use="optional"/>
    </xs:complexType>
    <xs:complexType name="featureType" mixed="true">
    <xs:annotation>
    <xs:documentation>Currently there is only one basic feature type, but this will change in future with enhancement of the FT line parsers.</xs:documentation>
    </xs:annotation>
    <xs:complexContent mixed="true">
    <xs:extension base="baseFeatureType">
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="active site"/>
    <xs:enumeration value="binding site"/>
    <xs:enumeration value="calcium-binding region"/>
    <xs:enumeration value="glycosylation site"/>
    <xs:enumeration value="chain"/>
    <xs:enumeration value="sequence conflict"/>
    <xs:enumeration value="disulfide bond"/>
    <xs:enumeration value="DNA-binding region"/>
    <xs:enumeration value="domain"/>
    <xs:enumeration value="helix"/>
    <xs:enumeration value="initiator methionine"/>
    <xs:enumeration value="lipid moiety-binding region"/>
    <xs:enumeration value="metal ion-binding site"/>
    <xs:enumeration value="modified residue"/>
    <xs:enumeration value="mutagenesis site"/>
    <xs:enumeration value="non-consecutive residues"/>
    <xs:enumeration value="non-terminal residue"/>
    <xs:enumeration value="nucleotide phosphate-binding region"/>
    <xs:enumeration value="peptide"/>
    <xs:enumeration value="propeptide"/>
    <xs:enumeration value="repeat"/>
    <xs:enumeration value="selenocysteine"/>
    <xs:enumeration value="signal peptide"/>
    <xs:enumeration value="site"/>
    <xs:enumeration value="strand"/>
    <xs:enumeration value="thioether bond"/>
    <xs:enumeration value="thiolester bond"/>
    <xs:enumeration value="transit peptide"/>
    <xs:enumeration value="transmembrane region"/>
    <xs:enumeration value="turn"/>
    <xs:enumeration value="unsure residue"/>
    <xs:enumeration value="sequence variant"/>
    <xs:enumeration value="splice variant"/>
    <xs:enumeration value="zinc finger region"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <!-- Feature definition ends -->
    <!-- Comment definition begins -->
    <xs:complexType name="baseCommentType" abstract="true" mixed="true">
    <xs:annotation>
    <xs:documentation>The comment's supertype from which all other comment element types are derived</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="commentType" mixed="true">
    <xs:annotation>
    <xs:documentation>Basic comment type which contains only text and evidence tags, no extra structure/attributes.</xs:documentation>
    </xs:annotation>
    <xs:complexContent mixed="true">
    <xs:extension base="baseCommentType">
    <xs:attribute name="topic" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="alternative products"/>
    <xs:enumeration value="biotechnology"/>
    <xs:enumeration value="catalytic activity"/>
    <xs:enumeration value="caution"/>
    <xs:enumeration value="cofactor"/>
    <xs:enumeration value="database"/>
    <xs:enumeration value="developmental stage"/>
    <xs:enumeration value="disease"/>
    <xs:enumeration value="domain"/>
    <xs:enumeration value="enzyme regulation"/>
    <xs:enumeration value="function"/>
    <xs:enumeration value="induction"/>
    <xs:enumeration value="miscellaneous"/>
    <xs:enumeration value="pathway"/>
    <xs:enumeration value="pharmaceutical"/>
    <xs:enumeration value="polymorphism"/>
    <xs:enumeration value="ptm"/>
    <xs:enumeration value="similarity"/>
    <xs:enumeration value="subcellular location"/>
    <xs:enumeration value="subunit"/>
    <xs:enumeration value="tissue specificity"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <!--
    <xs:complexType name="commentDatabaseType" mixed="true">
    <xs:complexContent mixed="true">
    <xs:extension base="baseCommentType">
    <xs:attribute name="topic" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="database"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="note" type="xs:string" use="optional"/>
    <xs:attribute name="www" type="xs:anyURI" use="optional"/>
    <xs:attribute name="ftp" type="xs:anyURI" use="optional"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    -->
    <xs:complexType name="massSpecType" mixed="true">
    <xs:annotation>
    <xs:documentation>The information of the mass spectrometry comment is stored in the attributes:
    -molWeight (molecular weight)
    -mwError (error of the molecular weight)
    -msMethod (the method used for the mass spectrometry)
    -range (which amino acids were messured. It's not mentioned if the complete sequence as shown in the entry was messured)</xs:documentation>
    </xs:annotation>
    <xs:complexContent mixed="true">
    <xs:extension base="baseCommentType">
    <xs:sequence minOccurs="0">
    <xs:element name="range" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
    <xs:attribute name="begin" type="xs:int" use="required"/>
    <xs:attribute name="end" type="xs:int" use="required"/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="topic" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="mass spectrometry"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="molWeight" type="xs:float" use="required"/>
    <xs:attribute name="mwError" type="xs:string" use="optional"/>
    <xs:attribute name="msMethod" type="xs:string" use="optional"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <!-- Comment definition ends -->
    <!-- Citation type section begins -->
    <!-- Definitions for SPTr's additional citation information begins -->
    <xs:complexType name="scopeListType">
    <xs:annotation>
    <xs:documentation>Contains a list of scopes regarding a citation. There is no classification currently, but will be introduced in future. (RP lines).</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="scope" type="xs:string" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="sourceDataType">
    <xs:annotation>
    <xs:documentation>Contains specific information about the sequence source that was used in the ciation (RC lines).</xs:documentation>
    </xs:annotation>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="species">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="iRefList" type="iRefListType"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="strain">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="xs:string" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="plasmid" type="xs:string"/>
    <xs:element name="transposon" type="xs:string"/>
    <xs:element name="tissue" type="xs:string"/>
    </xs:choice>
    </xs:complexType>
    <xs:group name="sptrCitationGroup">
    <xs:annotation>
    <xs:documentation>Groups the scope and source data lists.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="scopeList" type="scopeListType"/>
    <xs:element name="source" type="sourceDataType" minOccurs="0"/>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    </xs:group>
    <!-- Definitions for SPTr's additional citation information ends -->
    <xs:complexType name="referenceType">
    <xs:annotation>
    <xs:documentation>Stores all information of the reference block in SPTr (RN, RP, RC, RX, RA, RT and RL line).</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="citation" type="citationType"/>
    <xs:group ref="sptrCitationGroup"/>
    </xs:sequence>
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:complexType>
    <!-- Citation type section ends -->
    <!-- Entry type definition begins -->
    <xs:complexType name="entryType">
    <xs:annotation>
    <xs:documentation>A (public) SPTr entry</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="secondaryAccessionList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="accession" type="xs:string" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="secondaryNameList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="xs:string" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="protein" type="proteinType"/>
    <xs:element name="geneList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="gene" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="nameType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="organismList">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="organism" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="organismNameType" maxOccurs="unbounded"/>
    <xs:element name="dbReferenceList">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="dbReference" type="taxonomyDBType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="lineage" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="taxon" type="xs:string" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="iRefID" type="xs:string" use="optional"/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="geneLocationList" type="geneLocationListType" minOccurs="0"/>
    <xs:element name="referenceList">
    <xs:complexType>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="reference" type="referenceType"/>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    <xs:element name="commentList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="comment" type="baseCommentType" nillable="true" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="dbReferenceList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="dbReference" type="sptrDbReferenceType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="keywordList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="keyword" maxOccurs="unbounded">
    <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="evList" type="evListType"/>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="featureList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="feature" type="featureType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="evidenceList" type="evidenceListType" minOccurs="0"/>
    <xs:element name="sequence">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute name="length" type="xs:integer" use="required"/>
    <xs:attribute name="weight" type="xs:integer" use="required"/>
    <xs:attribute name="crc64" type="xs:string" use="required"/>
    <xs:attribute name="lastUpdate" type="xs:date" use="required"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="accession" type="xs:string" use="required"/>
    <xs:attribute name="database" type="xs:string" use="required"/>
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="firstPublic" type="xs:date" use="required"/>
    <xs:attribute name="lastAnnotationUpdate" type="xs:date" use="required"/>
    </xs:complexType>
    <!-- Entry type definition ends -->
    <!-- Definition of the content of the root element "swissprot" -->
    <xs:element name="sptr">
    <xs:annotation>
    <xs:documentation>Contains a collection of Swiss-Prot entries.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="entry" type="entryType" maxOccurs="unbounded">
    <xs:key name="referenceKey">
    <xs:annotation>
    <xs:documentation>Defines the key constraint for iRefID attribute where possible in the entry (citations are missing still).</xs:documentation>
    </xs:annotation>
    <xs:selector xpath="organismList/organism|dbReferenceList/dbReference"/>
    <xs:field xpath="iRefID"/>
    </xs:key>
    <xs:key name="evidenceReferenceKey">
    <xs:annotation>
    <xs:documentation>Defines the key constraint for evID attribute in evidence elements.</xs:documentation>
    </xs:annotation>
    <xs:selector xpath="evidenceList/evidence"/>
    <xs:field xpath="evID"/>
    </xs:key>
    <!--
    <xs:keyref name="internalReference" refer="referenceKey">
    <xs:selector xpath=".//iRef"/>
    <xs:field xpath="ref"/>
    </xs:keyref>
    -->
    <xs:keyref name="evidenceReference" refer="evidenceReferenceKey">
    <xs:selector xpath=".//ev"/>
    <xs:field xpath="ref"/>
    </xs:keyref> <!--
    -->
    </xs:element>
    <xs:element name="copyright">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    feature.xsd is below :
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="urn:uk:ac:ebi:spml" xmlns="urn:uk:ac:ebi:spml" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <!-- Feature location definition begins -->
    <xs:complexType name="positionType">
    <xs:attribute name="position" type="xs:unsignedLong" use="required"/>
    </xs:complexType>
    <xs:complexType name="gapType">
    <xs:complexContent>
    <xs:extension base="positionType">
    <xs:attribute name="length" type="xs:unsignedLong" use="optional"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="intervalType">
    <xs:attribute name="begin" type="xs:unsignedLong" use="required"/>
    <xs:attribute name="end" type="xs:unsignedLong" use="required"/>
    </xs:complexType>
    <xs:complexType name="baseLocationType">
    <xs:annotation>
    <xs:documentation>A location can be either a position, site or have a start and end, only start, only end or is an empty element if the position is unknown.
    The iRef attribute points to an external database reference (equivalent to J00194:100..202 in EMBL).</xs:documentation>
    </xs:annotation>
    <xs:choice>
    <xs:sequence>
    <xs:choice minOccurs="0">
    <xs:element name="begin" type="positionType"/>
    <xs:element name="beginInterval" type="intervalType"/>
    </xs:choice>
    <xs:choice minOccurs="0">
    <xs:element name="end" type="positionType"/>
    <xs:element name="endInterval" type="intervalType"/>
    </xs:choice>
    </xs:sequence>
    <xs:element name="position" type="positionType"/>
    <xs:element name="positionInterval" type="intervalType"/>
    <xs:element name="site" type="positionType"/>
    </xs:choice>
    <xs:attribute name="iRef" type="xs:string" use="optional"/>
    <xs:attribute name="complement" type="xs:boolean" use="optional" default="false"/>
    </xs:complexType>
    <xs:complexType name="fuzzyLocationType">
    <xs:annotation>
    <xs:documentation>A location can be either a position, site or have a start and end, only start, only end or is an empty element if the position is unknown.
    The iRef attribute points to an external database reference (equivalent to J00194:100..202 in EMBL).</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="baseLocationType">
    <xs:attribute name="fuzzy" use="optional" default="none">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="left"/>
    <xs:enumeration value="right"/>
    <xs:enumeration value="both"/>
    <xs:enumeration value="none"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="joinType">
    <xs:sequence>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="location" type="baseLocationType"/>
    <xs:element name="gap" type="gapType"/>
    </xs:choice>
    </xs:sequence>
    <xs:attribute name="fuzzy" use="optional" default="none">
    <xs:simpleType>
    <xs:restriction base="xs:NMTOKEN">
    <xs:enumeration value="left"/>
    <xs:enumeration value="right"/>
    <xs:enumeration value="both"/>
    <xs:enumeration value="none"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="complement" type="xs:boolean" use="optional" default="false"/>
    </xs:complexType>
    <xs:group name="locationGroup">
    <xs:choice>
    <xs:element name="location" type="fuzzyLocationType"/>
    <xs:element name="join" type="joinType"/>
    </xs:choice>
    </xs:group>
    <!-- Feature location definition ends -->
    <!-- Evidence definition begins -->
    <xs:complexType name="evListType">
    <xs:annotation>
    <xs:documentation>Contains a list of evidence tags.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="ev" maxOccurs="unbounded">
    <xs:annotation>
    <xs:documentation>The ev element is equivalent to an evidence tags.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:attribute name="ref" type="xs:string" use="required"/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    <!-- Evidence definition ends -->
    <!-- DB reference definition begins -->
    <xs:complexType name="propertyBaseType">
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="dbReferenceBaseType" abstract="true">
    <xs:annotation>
    <xs:documentation>DR line</xs:documentation>
    </xs:annotation>
    <xs:sequence>
    <xs:element name="property" type="propertyBaseType" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="db" type="xs:string" use="required"/>
    <xs:attribute name="id" type="xs:string" use="required"/>
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="citationDBType">
    <xs:annotation>
    <xs:documentation>This dbRef type is meant for citation database such as PubMed and MEDLINE.</xs:documentation>
    <xs:documentation>This dbRef type is meant for citation database such as PubMed and MEDLINE.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:restriction base="dbReferenceBaseType">
    <xs:sequence>
    <xs:element name="evList" type="evListType" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="db" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="PubMed"/>
    <xs:enumeration value="MEDLINE"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="id" type="xs:string" use="required"/>
    <xs:attribute name="iRefID" type="xs:string" use="required"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <!-- DB reference definition ends -->
    <!-- Citation type section begins -->
    <xs:group name="citationContentGroup">
    <xs:sequence>
    <xs:element name="authorList" type="nameListType"/>
    <xs:element name="dbReferenceList" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="dbReference" type="citationDBType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="iRefList" type="iRefListType" minOccurs="0"/>
    </xs:sequence>
    </xs:group>
    <xs:complexType name="citationType" abstract="true">
    <xs:annotation>
    <xs:documentation>The citation super type</xs:documentation>
    </xs:annotation>
    <xs:attribute name="iRefID" type="xs:string" use="optional"/>
    </xs:complexType>
    <xs:complexType name="bookType">
    <xs:annotation>
    <xs:documentation>Stores all information about a book.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:element name="bookTitle" type="xs:string"/>
    <xs:element name="editorList" type="nameListType" minOccurs="0"/>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="book"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="volume" type="xs:string" use="optional"/>
    <xs:attribute name="year" type="xs:int" use="required"/>
    <xs:attribute name="first" type="xs:unsignedInt" use="required"/>
    <xs:attribute name="last" type="xs:unsignedInt" use="required"/>
    <xs:attribute name="ISDN" type="xs:string" use="optional"/>
    <xs:attribute name="publisher" type="xs:string" use="required"/>
    <xs:attribute name="city" type="xs:string" use="required"/>
    <xs:attribute name="country" type="xs:string" use="optional"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="electronicType">
    <xs:annotation>
    <xs:documentation>Stores all information about a so-called online citation.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="online journal article"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="volume" type="xs:string" use="optional"/>
    <xs:attribute name="year" type="xs:int" use="required"/>
    <xs:attribute name="issue" type="xs:unsignedInt" use="optional">
    <xs:annotation>
    <xs:documentation>Currently used only in the "Worm Breeder's Gazette".</xs:documentation>
    </xs:annotation>
    </xs:attribute>
    <xs:attribute name="articleNo" type="xs:unsignedInt" use="required">
    <xs:annotation>
    <xs:documentation>Currently used only in the "Worm Breeder's Gazette".</xs:documentation>
    </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="xs:string" use="optional">
    <xs:annotation>
    <xs:documentation>Can be used for stating the name of the electronic journal.</xs:documentation>
    </xs:annotation>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="incompleteJournalType">
    <xs:annotation>
    <xs:documentation>Stores all information about an incomplete journal article.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="incomplete journal article"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="first" type="xs:string" use="optional"/>
    <xs:attribute name="last" type="xs:string" use="optional"/>
    <xs:attribute name="volume" type="xs:string" use="optional"/>
    <xs:attribute name="year" type="xs:int" use="optional"/>
    <xs:attribute name="name" type="xs:string" use="optional"/>
    <xs:attribute name="ISSN" type="xs:string" use="optional"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="journalType">
    <xs:annotation>
    <xs:documentation>Stores all information about a journal article.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType"/>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="journal article"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="first" type="xs:string" use="required"/>
    <xs:attribute name="last" type="xs:string" use="required"/>
    <xs:attribute name="volume" type="xs:string" use="required"/>
    <xs:attribute name="year" type="xs:int" use="required"/>
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="ISSN" type="xs:string" use="optional"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="observationType">
    <xs:annotation>
    <xs:documentation>Stores all information about a citation of the type "Unpublished Observations".</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="unpublished observations"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="date" type="xs:gYearMonth" use="required"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="patentType">
    <xs:annotation>
    <xs:documentation>Stores all information about a patent.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:group ref="citationContentGroup" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="patent"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="number" type="xs:string" use="required"/>
    <xs:attribute name="date" type="xs:date" use="required"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="resultType">
    <xs:annotation>
    <xs:documentation>Stores all information about a citation of the type "Unpublished Results". For the unpublished results type it is necessary that the title element is optional, since one won't find this data in flat files (and might not be added in future, either).</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:group ref="citationContentGroup"/>
    <xs:choice>
    <xs:element name="citedInBook" type="bookType"/>
    <xs:element name="citedInArticle" type="incompleteJournalType">
    <xs:annotation>
    <xs:documentation>The type of this element needs to be the incompleteJournalType as the SP-ML converter cannot create the title yet (it doesn't evaluate the PubMed database).</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:element name="citedInElectronic" type="electronicType"/>
    <xs:element name="citedInThesis" type="thesisType"/>
    </xs:choice>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="unpublished results"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="submissionType">
    <xs:annotation>
    <xs:documentation>Stores all information about a submission to one of the following databases:
    -EMBL/GenBank/DDBJ databases
    -SWISS-PROT data bank
    -HIV data bank
    -PDB data bank
    -PIR data bank</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="submission"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="date" type="xs:gYearMonth" use="required"/>
    <xs:attribute name="db" type="xs:string" use="required"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="thesisType">
    <xs:annotation>
    <xs:documentation>Stores all information about a thesis.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
    <xs:extension base="citationType">
    <xs:sequence>
    <xs:element name="title" type="freeTextType" minOccurs="0"/>
    <xs:group ref="citationContentGroup"/>
    </xs:sequence>
    <xs:attribute name="type" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:enumeration value="thesis"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="institute" type="xs:string" use="required"/>
    <xs:attribute name="city" type="xs:string" use="optional"/>
    <xs:attribute name="country" type="xs:string" use="required"/>
    <xs:attribute name="year" type="xs:int" use="required"/>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="groupType">
    <xs:attribute name="name" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="personType">
    <xs:attribute name="name" type="xs:string" use="required"/>
    <xs:attribute name="forename" type="xs:string" use="optional"/>
    <xs:attribute name="surname" type="xs:string" use="optional"/>
    </xs:complexType>
    <xs:complexType name="nameListType">
    <xs:choice maxOccurs="unbounded">
    <xs:element name="person" type="personType"/>
    <xs:element name="group" type="groupType"/>
    </xs:choice>
    </xs:complexType>
    <!-- Citation type section ends -->
    <xs:complexType name="freeTextType" mixed="true">
    <xs:sequence minOccurs="0">
    <xs:element name="iRefList" type="iRefListType"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="iRefType">
    <xs:attribute name="type" type="xs:string" use="optional"/>
    <xs:attribute name="ref" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="iRefListType">
    <xs:sequence>
    <xs:element name="iRef" type="iRefType" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>

    We've found two errors, both which can be worked around.
    Currently there is a bug in XMLDB which fails to create a unique name for the case where the subtype and supertype both define an element or attribute with the same name. In your schema both baseCommentType defines an element called evList. massSpecType extends baseCommentType and adds an element with the same name.
    This causes an error creating the massSpecType SQLType. The workaround for this is to declare the XMLDB namespace in the schema and use the xdb:SQLName annotation to define a unique name for the second element.
    Eg
         <xs:complexType name="massSpecType" mixed="true">
              <xs:complexContent mixed="true">
                   <xs:extension base="baseCommentType">
                        <xs:sequence minOccurs="0">
                             <xs:element name="range" minOccurs="0" maxOccurs="unbounded">
                                  <xs:complexType>
                                       <xs:attribute name="begin" type="xs:int" use="required"/>
                                       <xs:attribute name="end" type="xs:int" use="required"/>
                                  </xs:complexType>
                             </xs:element>
                             <xs:element name="evList" type="evListType" minOccurs="0" xdb:SQLName="EVLIST1"/>
                        </xs:sequence>
                        <xs:attribute name="topic" use="required">
                             <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                       <xs:enumeration value="mass spectrometry"/>
                                  </xs:restriction>
                             </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="molWeight" type="xs:float" use="required"/>
                        <xs:attribute name="mwError" type="xs:string" use="optional"/>
                        <xs:attribute name="msMethod" type="xs:string" use="optional"/>
                   </xs:extension>
              </xs:complexContent>
         </xs:complexType>
    Eg...
    The second issue with the /u0000 is caused by the key/key reference definitions in the schema.
    If you comment them out the schema will register
                             <!--
                             <xs:key name="referenceKey">
                                  <xs:selector xpath="organismList/organism|dbReferenceList/dbReference"/>
                                  <xs:field xpath="@iRefID"/>
                             </xs:key>
                             <xs:key name="evidenceReferenceKey">
                                  <xs:selector xpath="evidenceList/evidence"/>
                                  <xs:field xpath="@evID"/>
                             </xs:key>
                             <xs:keyref name="evidenceReference" refer="evidenceReferenceKey">
                                  <xs:selector xpath=".//ev"/>
                                  <xs:field xpath="@ref"/>
                             </xs:keyref>
    -->

  • Error while activating DTP in BI 7.0

    I am facing an error while activating DTP between a ODS and CUBE.
    I have converted 3.x update rules and transfer rules to 7.x transformation. Enhancements were carried out on the data source as well. All the objects and transformations were activated. While activating the DTP between the ODS and CUBE i get an error message saying:
    "Creation of PSA /BIC/B0000XXX failed.
    Error during creation of DDIC sources of Data Transfer Process DTP_<Request Number>
    Error when activating Data Transfer Process DTP_<Request Number>"
    I have come across a OSS note, 954574, which is relavent to SP09. But we have SP17 installed on our server.
    Any pointers on the same would be of great help.

    Hi Rupesh,
    Chk these links they may help you
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/fa2f42e8fc6befe10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/03a25c0bbe025ce10000000a1553f7/content.htm
    Regards,
    RK

  • Syntax error while creating a standard order

    Hi All,
    I created a projet in CMOD and than added the enhancement  V45A0002.The components shown as EXIT_SAPMV45A_002(Predefined sold to party when making the standard order),i double click on the exit and entered into the function module.After that i double clicked on the include ZXVVZU04 and entered in and wrote E_KUNNR=100171
    While activating i got error msg 'The last statement is not complete (period missing)." & i have saved inspite the error .After that i tried to create a order and program terminated error came after entering sold to party no. in sales order
    so now i have deactivated the project which i created in CMOD & deleted it aswell,than also i am getting the syntax error while making the order thru VA01.I want to come out of this please.
    I would be great ful if somebody helps me *** out of this syntax error.
    Thanks
    Rishi

    Hi Rishi
    As you are getting message that "The last statement is not complete (period missing)", check in your assigned project in CMOD the last statement , what is the last statement maintained in that project
    Secondly also check the closing period and the current period. as it is giving in the message that "The last statement is not complete (period missing)".So check the  current period and check the period maintained in the CMOD
    It would be better if you take ABAP'ers help . So  post in ABAP forum
    Regards
    Srinath

  • Recieving ORA-01722 invalid number error while creating a materialized view

    Hi,
    I am receiving a ORA-01722 invalid number error while creating a materialized view. when run the select statement of the view i don't get any error, but when i use the same select statement to create a materialized view i receive this error. Could any please help in resolving this error. Here is the code i am using to create a materialized view.
    CREATE MATERIALIZED VIEW MV_EBS_CH_CLOSED
    REFRESH FORCE ON DEMAND
    AS
    SELECT DISTINCT kr.request_id, org.org_unit_name,
    ebs_ch_ticket_type (kr.request_id) ticket_type,
    DECODE
    (kr.status_code,
    'CLOSED_SUCCESS', kr.last_update_date,
    'IN_PROGRESS', (SELECT MAX (start_time)
    FROM ebs_ch_datastore ecd1
    WHERE kr.request_id = ecd1.request_id
    AND workflow_step_name =
    'Final BA Review and Deployment Exit Criteria')
    ) closed_date,
    substr(krhd.visible_parameter12,1,10) siebel_start_date,
    kr.creation_date itg_start_date
    FROM kcrt_requests kr,
    kcrt_request_types krt,
    kcrt_req_header_details krhd, kcrt_request_details krd1,
    (SELECT koum.user_id user_id,
    DECODE (koup.org_unit_name,
    'IT Implementations', 'CHS - Service Management BA',
    koup.org_unit_name
    ) org_unit_name
    FROM krsc_org_unit_members koum, krsc_org_units koup
    WHERE 1 = 1
    AND 'Y' = koup.enabled_flag
    AND koum.org_unit_id = koup.org_unit_id
    AND EXISTS (
    SELECT 'X'
    FROM krsc_org_units kouc
    WHERE koup.org_unit_id = kouc.org_unit_id
    START WITH kouc.parent_org_unit_id =
    ANY (SELECT org_unit_id
    FROM krsc_org_units krsc_org_units1
    WHERE 'Clearinghouse' =
    org_unit_name)
    CONNECT BY kouc.parent_org_unit_id =
    PRIOR kouc.org_unit_id)
    UNION
    SELECT kou.manager_id user_id,
    DECODE
    (kou.org_unit_name,
    'IT Implementations', 'CHS - Service Management BA',
    kou.org_unit_name
    ) org_unit_name
    FROM krsc_org_units kou
    WHERE 'Y' = kou.enabled_flag
    START WITH kou.parent_org_unit_id =
    (SELECT org_unit_id
    FROM krsc_org_units krsc_org_units2
    WHERE 'Clearinghouse' = org_unit_name)
    CONNECT BY kou.parent_org_unit_id = PRIOR kou.org_unit_id) org
    WHERE krt.request_type_id = kr.request_type_id
    AND krt.request_type_name IN ('Bug Fix', 'IT Enhancement')
    and kr.REQUEST_ID = krd1.request_id
    and krd1.batch_number = 1
    AND kr.request_id = krhd.request_id
    AND org.user_id in (krd1.parameter4, krd1.parameter5, krd1.parameter7)
    AND ( 'CLOSED_SUCCESS' = kr.status_code
    OR 'IN_PROGRESS' = kr.status_code
    AND kr.request_id IN (
    SELECT request_id
    FROM (SELECT DISTINCT request_id,
    MAX
    (start_time)
    closed_date
    FROM ebs_ch_datastore
    WHERE 'Final BA Review and Deployment Exit Criteria' =
    workflow_step_name
    GROUP BY request_id))
    Thanks,
    Shaik Mohiuddin

    This error occurs when you try to create a materialized view , but if you run the sql the results are perfectly fine. Well it happend to me also and to fix this I made sure all the coulmns have the same data type which are used in joins or in where clause.
    use
    where
    to_number(col1)=to_number(col2) and to_number(col3)=to_number(col4)
    hope this helps..

Maybe you are looking for

  • How can I put my iMac intel core 2 duo in 64bit mode

    I have an iMac model 7.1 that has an Intel core 2 duo so shouldn't I be able to make it run in 64 bit mode? How? I am in 10.6.8 and it locks too often to be used. I tried the Terminal  sudo  systemsetup  -setkernalbootarchitecture  x86_64 but the Ter

  • The latest firmware is on the server. Install the firmware update from (Device Settings) in (Setup)

    I'm getting this message on my printer (MG7120), but have no idea what it means.   

  • Before and After in Elements Editor

    In the elements editor I choose to display both the before and after on the screen simultaneously. Each change to the photo changes both photos-rendering the before photo useless. Certainly that is not the intention. HOW CAN I RETAIN THE "BEFORE" AND

  • Japanese font input

    Hi All, I know there's no solution to this topic at this point, but I'm hoping someone from RIM or someone who is knowledgeable about these things can answer. Will Japanese font input be available for 9630 at some point in future, whether through a s

  • MSI K7D Master-L & 3ware 7506-4LP boot hang

    I recently purchased a 3ware Escalade 7506-4LP RAID Controller (IDE, 4 ports - see product info here) for use with my MSI K7D Master-L (MSI-6501-030 - see product info here) to replace my Promise FastTrak100 TX4. On boot, the system POSTs fine, and t