Is it possible to validate a schema defined date

Hi,
Is it possible to validate a schema defined date in xsd as of a null type.
     <xs:element name="ContractDt">
<xs:restriction base="xs:date"/>
</xs:element>
In xml file if i want to keep date null and still should be valid......how do i do it
For eg: <ContractDt></ContractDt>
<ContractDt>1990-12-12</ContractDt>
Both the above should be valid.............and any other thing should be invalid. I know we can use patterns and ennumeration to achive this but...............all the other validations that come along schema defined datatype date are required........
Any help.
Regards,
Aru

Hi,
I meant this...........
<xs:element name="ContractDt" nillable="true">
          <xs:simpleType>
               <xs:union>
                    <xs:simpleType>
                         <xs:restriction base="xs:date"/>
                    </xs:simpleType>
                    <xs:simpleType>
                         <xs:restriction base="xs:string">
                              <xs:enumeration value=""/>
                         </xs:restriction>
                    </xs:simpleType>
               </xs:union>
          </xs:simpleType>
     </xs:element>
Hope my requirement is clear...
Aru

Similar Messages

  • Is it possible to validate the deletion of data in custom SE16

    Hi Guys,
    To maintain a Z table ZCITY (Master Data), I created custom SE16 t-code ZSE16CITY (using SE93 - Transaction with parameters).
    Is it possible to validate the deletion of data from ZCITY Table in custom SE16.
    If ZCODE exists in any of the transaction table then deletion of the record is not allowed and display the message for user.
    Is this functionality is doable in custom SE16 or I have to create a maintenance program using Dialog screen (SE51).
    Thanks for you input.
    mini

    Hi ,
    try this way....
    using SE93 - Transaction with parameters
    next pass the below values in the Name of the screen field and Value
    VIEWNAME                                                <table name>
    DATABROWSE-TABLENAME     <table name>
    Prabhudas

  • Is it possible to assign user-defined data elements to table control?

    Hi SDN,
    Is it possible to assign a user defined data element other than basic data types in table control column.

    Hi Suresh,
    In Screen layout,In element list tab,i am not able to give the user-defined data types other than basic data types?please tell me how to give other data types

  • Is is possible to validate a form in a workflow?

    I have  an .xdp form and .xml file with some data. Using renderPDFForm2 Operation I convert these two files into the pdf document. All this happans in a workflow/process, which is used by some external system. And after convertation a system receives the result pdf document.
    So, the question: is it possible to validate pdf document in a workflow? For example, my validation script in a form contains some code for checking if a client age is above 18 y.o. So, if the input data contains client age = 17, i want to return to the system some sort of error, but not the resulting pdf.
    An ideal solution which i want to find is some way to validate pdf form without dublicating validation code. Cause i have an idea how to check the age, using variables and expresions in a process. But in that case i'll have this validation both in pdf document (for example, to prevent users from printing not valid pdfs) and in a workflow.

    Hi Victoria,
    I have a validation script for PDF forms, you can use this script to validate the whole form to verify if any field returns null. This script is only to check if all fields are filled in. There is an exception array which you can insert field's names which you don't want it to be validated. You can then make your own validation for those fields included in the exception array.
    So as an example, if your field age is named : txtAge
    you would insert the name txtAge in the exception array:
    var tabException = new Array("txtAge", "txtAnyOtherField");
    var strFirstField = objValidate.getFirstField(form1, tabException);//form1 to be the top most subform or any subform to validate
    var boValidate = true;
    if (strFirstField != ""){
         boValidate = false;
    if (boValidate){
         if (parseInt(txtAge.rawValue) < 18){
              boValidate = false;
              strFirstField = txtAge.somExpression;
         if (boValidate){
              //Any specific validation to be put here before printing
    if (!boValidate){
         xfa.host.setFocus(strFirstField);
         xfa.host.messageBox("Error, please make sure data is valid.");
    } else{
        xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    You can use this template form to see how the function works:
    Validation / Reset Functions, easy to manipulate and to change Forms!!!!
    Hope this helps.

  • How to validate using schema and entities

    I am able to validate documents using w3c schema with either SAX or JDOM. But I need to add some entity definitions from a DTD.
    If I add a DOCTYPE to my document that references a DTD, the entities are handled correctly, validation fails because the document is not valid per the DTD. I may be dealing with a lot of schemas and do not want to create the whole DTD for every schema.
    Is there a way to validate using the schema and get the entity declarations without doing dtd validation?? I am using jaxp-1.2.2 (wsdp 1.1) and jdom beta-8.

    Declare only the Entities in the Dtd.
    Validate with schema & validate with Dtd containing
    only the entities.I did create a dtd that contains only the entities. The parser will correctly parse this but validation fails because the entire document is not dtd valid.

  • Does DS 5.2 support the PKIX schema defined in RFC2587?

    hi,
    please, can anybody answer me this:
    1. does DS 5.2 support the schema defined in RFC2587
    (http://www.ietf.org/rfc/rfc2587.txt)?
    ...a minimal schema to support PKIX in an LDAPv2 environment...
    2. if so, please can you explain how i go about configuring DS 5.2 for RFC
    2587? or point me to the documentation?
    3. if it doesn't support RFC 2587 out of the box, what schema(s) does DS
    5.2 support by default?
    thanks in advance for your help.

    i think i have worked out what i need to do to make DS 5.2 rfc2587-compliant (i have also worked out - by rtfm - that it doesn't by default ;�).
    dn: cn=schema
    changetype: modify
    add: objectClasses
    objectClasses: ( 2.5.6.21 NAME 'pkiuser' DESC 'auxiliary class for non-CA certificate owners'
      SUP top AUXILIARY MAY userCertificate ) 
    dn: cn=schema
    changetype: modify
    add: objectClasses
    objectClasses: ( 2.5.6.22 NAME 'pkiCA' DESC 'class for Cartification Authorities' SUP top
      AUXILIARY MAY ( authorityRevocationList $ caCertificate $ certificateRevocationList $
      crossCertificatePair ) )
    dn:cn=schema
    changetype: modify
    replace: attributetypes
    attributetypes: ( 2.5.4.39 NAME ( 'certificateRevocationList'
      'certificateRevocationList;binary' ) DESC '  ' SYNTAX 1.3.6.1.4.1.1466.115.121.1.5
      SINGLE-VALUE ) any other suggestions still welcome. thanks in advance.

  • Possible to replicate cn=schema between masters that don't share a LDBM?

    I have multiple directory servers in my environment. One set has suffix A, another set has suffix B and a 3rd set has suffix C. I would like to replicate just the cn=schema between all of the masters for consistency reasons. Is it possible to replicate cn=schema between masters that don't share or replicate a user created database with each other?
    These servers are DSEE 6.3.1 and are all controlled by the same DSCC.
    Thank you,
    Matt

    I already know how to manually copy the 99user.ldif file to all of the servers. I am trying to get away from having to manually copy schema changes between servers every time a new attribute or objectclass is added to one set of servers.
    Is there a way to replicate the cn=schema DIT alone?

  • Validates apps schema

    Hi Guys,
    Why & when we validates apps schema.

    947652 wrote:
    Hi Guys,
    Why & when we validates apps schema.Oracle E-Business Suite Maintenance Utilities Release 12.1
    http://docs.oracle.com/cd/E18727_01/doc.121/e13676/T530334T530340.htm
    Validate APPS Schema
    Verifies the integrity of the APPS schema. It produces a report named <APPS schema name>.lst. that lists issues and potential issues, grouped by the action required:
    - Issues you must fix (not specific to the APPS schema)
    - Issues you must fix (specific to the APPS schema)
    - Issues you may want to address (specific to the APPS schema)
    The report is located in $APPL_TOP/admin/<SID>/out (UNIX), where <SID> is the value of the ORACLE_SID or TWO_TASK variable, or in %APPL_ TOP%\admin\<SID>\out (Windows), where <SID> is the value of the LOCAL variable. Each section of the file contains instructions for resolving the issues that are listed. Most issues can be fixed by either compiling invalid database objects or recreating grants and synonyms.
    Note: For more information, see Validating the APPS Schema in Oracle E-Business Suite Maintenance Procedures -- http://docs.oracle.com/cd/E18727_01/doc.121/e13675/toc.htm
    Thanks,
    Hussein

  • Access function without schema defination

    Hi,
    i wrote a function like emofn in schema and give grant to all schemas like this
      grant execute on empfn to public;
    but when i log-in to schema2 or schema3 i tried to execute that function like
    select empfn() function from dual; it's wont work and if try like this
    select schem1.empfun() from dual it's working. but i want without schema defination any help.....

    Permissions and name resolution are two different things. To call a function in another schema without specifying the schema you'll need to do one of the following
    1. Create a private synonym in the calling schema
    2. Create a public synonym (this is how things like DBMS_OUTPUT can work without being prefixed by 'SYS')
    3. Have the caller alter session set current schema to the function owning schema.
    None of these have any effect on your permission to actually use the function.

  • Is it possible to change the sytem defined Error Message

    Hi All,
    Is it possible to change the sytem defined Error Message: "Reason codes with automatic charge-off are not permitted here" to Warning Message. If so, how can I search in which application area  this message defined in OBA5 screen?
    Other details for this issue:
    Message: Reason codes with automatic charge-off are not permitted here
    Message Class: F5,
    Message No: 605.
    Thanks
    Chandra

    Hi,
    Without investigating deeper for this specific error message, I can say that the messages that cannot be maintained through OBA5 will in some cases remain in the system even if maintained in OBMSG. If message is not allowed for change in OBA5 and there is no OSS note regarding this message, it means that SAP designed it this way. Changing the nature in OBMSG (which is not standard or recommended SAP operation) will not always save the problem; the message could be simply hard-coded in the program with 'E' attribute.
    Regards,
    Eli

  • Issue with xsd Data type mapping for collection of user defined data type

    Hi,
    I am facing a issue with wsdl for xsd mapping for collection of user defined data type.
    Here is the code snippet.
    sample.java
    @WebMethod
    public QueryPageOutput AccountQue(QueryPageInput qpInput)
    public class QueryPageInput implements Serializable, Cloneable
    protected Account_IO fMessage = null;
    public class QueryPageOutput implements Serializable, Cloneable
    protected Account_IO fMessage = null;
    public class Account_IO implements Serializable, Cloneable {
    protected ArrayList <AccountIC> fintObjInst = null;
    public ArrayList<AccountIC>getfintObjInst()
    return (ArrayList<AccountIC>)fintObjInst.clone();
    public void setfintObjInst(AccountIC val)
    fintObjInst = new ArrayList<AccountIC>();
    fintObjInst.add(val);
    Public class AccountIC
    protected String Name;
    protected String Desc;
    public String getName()
    return Name;
    public void setName(String name)
    Name = name;
    For the sample.java code, the wsdl generated is as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions
    name="SimpleService"
    targetNamespace="http://example.org"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    >
    <wsdl:types>
    <xs:schema version="1.0" targetNamespace="http://examples.org" xmlns:ns1="http://example.org/types"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://example.org/types"/>
    <xs:element name="AccountWSService" type="ns1:accountEMRIO"/>
    </xs:schema>
    <xs:schema version="1.0" targetNamespace="http://example.org/types" xmlns:ns1="http://examples.org"
    xmlns:tns="http://example.org/types" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://examples.org"/>
    <xs:complexType name="queryPageOutput">
    <xs:sequence>
    <xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="accountEMRIO">
    <xs:sequence>
    <xs:element name="fIntObjectFormat" type="xs:string" minOccurs="0"/>
    <xs:element name="fMessageType" type="xs:string" minOccurs="0"/>
    <xs:element name="fMessageId" type="xs:string" minOccurs="0"/>
    <xs:element name="fIntObjectName" type="xs:string" minOccurs="0"/>
    <xs:element name="fOutputIntObjectName" type="xs:string" minOccurs="0"/>
    <xs:element name="fintObjInst" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="queryPageInput">
    <xs:sequence>
    <xs:element name="fPageSize" type="xs:string" minOccurs="0"/>
    <xs:element name="fSiebelMessage" type="tns:accountEMRIO" minOccurs="0"/>
    <xs:element name="fStartRowNum" type="xs:string" minOccurs="0"/>
    <xs:element name="fViewMode" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://example.org" xmlns:ns1="http://example.org/types">
    <import namespace="http://example.org/types"/>
    <xsd:complexType name="AccountQue">
    <xsd:sequence>
    <xsd:element name="arg0" type="ns1:queryPageInput"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AccountQue" type="tns:AccountQue"/>
    <xsd:complexType name="AccountQueResponse">
    <xsd:sequence>
    <xsd:element name="return" type="ns1:queryPageOutput"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AccountQueResponse" type="tns:AccountQueResponse"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="AccountQueInput">
    <wsdl:part name="parameters" element="tns:AccountQue"/>
    </wsdl:message>
    <wsdl:message name="AccountQueOutput">
    <wsdl:part name="parameters" element="tns:AccountQueResponse"/>
    </wsdl:message>
    <wsdl:portType name="SimpleService">
    <wsdl:operation name="AccountQue">
    <wsdl:input message="tns:AccountQueInput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
    ns1:Action=""/>
    <wsdl:output message="tns:AccountQueOutput" xmlns:ns1="http://www.w3.org/2006/05/addressing/wsdl"
    ns1:Action=""/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SimpleServiceSoapHttp" type="tns:SimpleService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="AccountQue">
    <soap:operation soapAction=""/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="SimpleService">
    <wsdl:port name="SimpleServicePort" binding="tns:SimpleServiceSoapHttp">
    <soap:address location="http://localhost:7101/WS-Project1-context-root/SimpleServicePort"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    In the above wsdl the collection of fintObjInst if of type xs:anytype. From the wsdl, I do not see the xsd mapping for AccountIC which includes Name and Desc. Due to which, when invoking the web service from a different client like c#(by creating proxy business service), I am unable to set the parameters for AccountIC. I am using JAX-WS stack and WLS 10.3. I have already looked at blog http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html but unable to solve this issue. However, at run time using a tool like SoapUI, when this wsdl is imported, I am able to see all the params related to AccountIC class.
    Can some one help me with this.
    Thanks,
    Sudha.

    Did you try adding the the XmlSeeAlso annotation to the webservice
    @XmlSeeAlso({<package.name>.AccountIC.class})
    This will add the schema for the data type (AccountIC) to the WSDL.
    Hope this helps.
    -Ajay

  • How to define data carrier?

    Dear colleagues,
    I am trying to use DMS and when defining data carrier I deleted the default configuration "Identify front end computers" for NT type. Now, is not being possible to back the standard configuration.
    I click in "default entry" but the system selects automatically data carrier type "Se" and displays the following message:
    Corresponding entry in "Define data carrier type "server, front end"" missing
    Actually, the type "Se" does not exist, but why the system are selecting this instead NT?
    Thanks in advance?
    Marcos

    HI Marcos,
    While in DC20 please see the small blue help button for more information on define data carrier also the below link may provide you some additional useful information.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/1c27b643c711d1893e0000e8323c4f/content.htm
    Regards
    Dermot

  • Pagination Scheme - by data values

    The various options in the Pagination Scheme are pretty impressive.
    I have a Report Region showing just 1 column and my client is requesting if the Pagination can be something similar to a yellow pages - i.e. by data values instead of numbers.
    Is the customization of the Pagination Scheme by data possible.
    for e.g. instead of showing 1 -15, 16 -30 etc ,
    I need to show A - C, D - G, H - L etc.

    Hi Naveen,
    There is no alternative for displaying values within Pie Chart as on today.
    Regards,
    Ashutosh

  • Get export of cpce schema without data

    exp system/***** file=cpceschema.dmp log=cpceschema.log rows=n full=n owner=cpce
    Is this the right command, for getting export of cpce schema without data, i took export and Export terminated successfully with warnings, need suggestions.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    Export done in WE8ISO8859P15 character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user CPCE
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user CPCE
    About to export CPCE's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export CPCE's tables via Conventional Path ...
    . . exporting table COLLECTEDDATA
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table CONFIGURATION
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table DCCONTEXT
    . . exporting table DCPLAN
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table EQUIPMENT
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table FDCCONTEXT
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table GPCDATA
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table INDICATOR
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table JOBS_TBL
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table MAINTENANCEERROR
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table MAINTENANCELOG
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table MESCONTEXT
    . . exporting table MODULE
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table PARTITIONMETHOD1
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table PARTITIONMETHOD2
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table RECIPE
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table REQUESTS_TBL
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table STRATEGY
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table TREATEDDATA
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table VARIABLE
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.

  • Database compare script to sync schema and data

    1. I have database-1
    2. I have database-2
    3. database-1 and database-2 are in same oracle 10g server and are same in schema as well as data
    4. All operations will be done with database-1 through my application
    5. At the end of the day i need a script which is to be run in the database-2 to have database-1 and database-2
    alike ie., both schema and Data should be same
    Please anyone suggest me the best solution to get the above script
    This script is to be transfered to some other location in our scenario
    Thanks in advance
    Vivek

    Hi Sybrand Bakker,
    I tried streams for the replication purpose as per your suggesion, till Iam unable make it work , i dont find a step by step document which will make it possible without error.
    One more thing , i need the streams work without Database link, ie., source database is not connected directly to destination database. I need to create streams and transfer the stream as a file through FTP.I need to download stream file in remote location and then apply the streams to destination database and after this source and destination database should be same in data and schema.
    Please suggest me a solution to go abt this scenario. We are in critical stage to make it happen...
    thanking you in advance
    with regards
    vivek
    Message was edited by:
    Vivekanandh

Maybe you are looking for

  • Find Text and create link to other PDF

    Hi all, I need to know if the following is possible with either Javascript or VBA.. - Open a PDF - Find all text that starts by a specific set of character (let's say in this case '1M-') - For each text found, Select the entire word (not just 1M-) an

  • Envio de e-mail B2B via Abap - erro na visualização do XML

    Boa tarde, Em virtude da minha versão (GRC 10.0 e NW 7.11), apenas poderia implementar a solução de B2B dinâmico, caso utilizasse Java Mapping. Como meu conhecimento em Java é pequeno, optei por enviar o e-mail a partir do Abap do GRC. O XML que esto

  • Authorization on PNP logical database

    My limited understanding of authorization on reports that uses PNP/PNPCE logical database is that if a user who runs the report does not have authorization for any of the declared infotypes then the report stops with message 'no authorization for inf

  • Upgrade to 7.7 on Windows XP and can't open iTunes

    I have uninstalled and reinstalled three times after upgrading to 7.7 so that I could activate my new iPhone. When I try to launch iTunes...nothing happens. I see that the exe is listed in task manager and if I delete it and try to run it again I get

  • Colours differ from Lightroom to Photoshop

    Hello, Can someone tell me how it is possible that when I edit an image in Lightroom, it is much brighter and more saturated in Photoshop, than in Lightroom? Is it because you chose a colourspace? Is there a different colour-engine-source? Is it Wind