Message validation in bsp

hi experts,
I want to give some msg pop up if user is not entering a date.
like if user click on enter button without entering a date on the screen.
the message will come that u have to enter a date.
i have gvn a coding like this but when i am opening a window it is coming automatically and i want it will come onlu when user will click enter without entering date field
my coding is.
plz suggest me something.
thanks and regards
ons

hi raja,
many thanks for ur reply and help. i pasted in my codinh but nt working,, may b bcoz m using html.
my coding is:
<input type="text" name="sdate"
         OPTION  value="<% page->write( value = sdate ). %>"
<td><input type="text" name="edate" OPTION  value="<% page->write( value = edate ). %>"
  <td><input type=submit  name="onInputProcessing(submit)" value="SUBMIT" class=submit></td></tr>
<% IF sdate IS INITIAL. %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="intranet_chart_search.htm" >
    <htmlb:form doValidate = "true" >
      <htmlb:inputField id         = "ip1"
                        type       = "sDATE"
                        required = "TRUE"
                        doValidate = "true"
                        showHelp = "true"/>
      <htmlb:button text    = "Press Me"
                    on Click = "myClickHandler" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
<% ENDIF. %>
plz correct me.
thanks n regards
ons

Similar Messages

  • Message-Objekt in BSP-Applications

    Hello experts,
    system messages (sm02) are not shown in WebTemplates if we access them via a customized variable entry screen. If we access WebTemplates directly system messages are shown!
    Are there any parameters not passed from entry screen to WebTemplates? Is there some kind of message objekt in BSP-Applications that can be used?
    Thanks
    Hiza

    That's right, I was looking for a ABAP solution but I tried to implement sriniva solution in my program but it isn't really adapted to my program conception. I thought it was good but unfortunatly not. So, I'm looking for another way.
    In my BSP program, I've a button when you click on it, I store all data into a file. My button declaration is like that :
    <input class="butClass" type=image name="onInputProcessing(valider)"
                  src="<%=rep %>Server.gif" width="23" height="23"
                  alt="Publish"
                  id="valid" onClick="WaitCursor();"
                  onMouseOver="selOn(this)" onMouseOut="selOff(this)" onMouseDown="selDown(this)"
                  onMouseUp="selUp(this)"/>
    Problem, can I integrate your solution into my program conception?
    Thanks.

  • What does the error message 'valid source cannot be identified' when trying to download acrobat read

    I get the message 'valid source cannot be identified' when trying to download adobe acrobat.  what should I do?

    If it's Adobe Reader, download the full installer from http://get.adobe.com/reader/enterprise/
    If it's Adobe Acrobat, post in the Acrobat forum.
    If you are still having troubles with Adobe Reader, please specify your operating system & version.

  • Elements 9 photo collage - message "valid size not available for this creation"

    Hi There,
    I am trying to creat a photo collage in Elements 9 and always get the message "Valid size not available for this creation.".  Has anybody figured out a fix for this bug????????????
    Thanks
    Roy

    http://kb2.adobe.com/cps/927/cpsid_92734.html

  • Itunes store show this message "validation code incorrect"

    tunes store show this message "validation code incorrect"

    You can't, gift cards and certificates are country-specific, so US cards/certificates can only be redeemed in the US on US-based iTunes accounts.
    If it's a gift certificate then your friend could try sending it to a fellow US-account holder, or he/she could contact iTunes support and see if they will refund/credit him/her.
    If it's an Tunes gift card then you could either sell/give it to somebody in the US or send it back to your friend.

  • Xml message validation or CSV validaion in PI 7.0

    Hi Gurus,
    I need to validate the incoming XML file (source format) in PI 7.0 and if the message is not valid I need to send an email to the sender that the message is invalid.
    I know there is a feature in PI 7.1 XML schema validation done by IE or AAE but is there is any validation feature or do we need write any logic in the mapping editor to validate the incoming XML file.
    Any help appreciated.
    Thanks,
    Jay

    You have to wite JAVA Mapping for the same to validate XML message in PI7.0.
    Refer below link
    http://wiki.sdn.sap.com/wiki/display/XI/XIschemavalidationusingDOMparserviaJavacode
    Regards,
    Raj

  • Group Boxes and Validation in BSP

    Hi Seniors,
    We have a requirement where in:
    1.  we need to create two group boxes side by side on the page. I am using page fragments in the application. I have created the fields and made the row alignment look like the fields are of two different boxes (no box separation, it is only the row & column alignment). How to attain two boxes side by side in BSP.
    2. There is a check box above the two group boxes which if checked, should leave the group boxes input enabled. Else if not checked, one group box should be disabled for input. How to attain this validation.
    I have searched through sdn but not any with such or similar requirement on group boxes. Your help is highly appreciated.
    Thank you in advance,
    Chaitanya

    along with type=date use doValidate="TRUE" this will enable a javascript validation for the input. The users will not be able to submit the form without correct date type.
    Regards
    Raja

  • Error message: Validating package signature ... error

    Hi All
    When I try to do CUE upgrade, I got below message.
    CUE> $64.200/cue-vm-k9.nme.7.0.3.pkg username cisco password cico1234
    WARNING:: This command will install the necessary software to
    WARNING:: complete a clean install.  It is recommended that a backup be done
    WARNING:: before installing software.
    Would you like to continue? [n] y
    Downloading  cue-vm-k9.nme.7.0.3.pkg
    Download error 
    Can not download cue-vm-k9.nme.7.0.3.pkg error code 530 error type 'the username and/or the password are incorrect'
    [15252 refs]
    CUE> $4.200/cue-vm-k9.nme.7.0.3.pkg username cisco password cisco1234
    WARNING:: This command will install the necessary software to
    WARNING:: complete a clean install.  It is recommended that a backup be done
    WARNING:: before installing software.
    Would you like to continue? [n] y
    Downloading  cue-vm-k9.nme.7.0.3.pkg
    Bytes downloaded :  182396
    Validating package signature ... error
    Package signature validation failed for pkg cue-vm-k9.nme.7.0.3.pkg
    So anyone have solution for this?
    I can not do anymore cause of this error.

    Dear Jorge,
    How did you resolve this issue?
    I encounter same error during EHP4 ECC IDES upgrade in phase SHADOW_IMPORT_INC
    I repeated the step, currently still running.
    Best Regards,
    Jacco Raymakers

  • Message confirm in BSP like in Javascript

    Hi there,
    I would like to know if there is a confirm dialog box défined in BSP/ABAP like in javascript in order to confirm or not the action in a onInputProcessing?
    I tried to put a javacscript function with the confirm dialog box in a onclick but the problem, the onInputProcessing is always executed in spite of the answer of the user to the confirm dialog box.
    Does anyone have any idea or any advices?
    thanks.

    That's right, I was looking for a ABAP solution but I tried to implement sriniva solution in my program but it isn't really adapted to my program conception. I thought it was good but unfortunatly not. So, I'm looking for another way.
    In my BSP program, I've a button when you click on it, I store all data into a file. My button declaration is like that :
    <input class="butClass" type=image name="onInputProcessing(valider)"
                  src="<%=rep %>Server.gif" width="23" height="23"
                  alt="Publish"
                  id="valid" onClick="WaitCursor();"
                  onMouseOver="selOn(this)" onMouseOut="selOff(this)" onMouseDown="selDown(this)"
                  onMouseUp="selUp(this)"/>
    Problem, can I integrate your solution into my program conception?
    Thanks.

  • Why an Error Message "Valid size not available for this Creation" in Elements 10 Photo Collage

    I have several image editing programs, but I bought Elements 10 specifically to do things the others wouldn't.  I wish to make a photo collage but all I get when I try, after following the instructions in the "help" and "Elements 10 for Dummies" is an error message stating "Valid Size not available for this Creation."  A meaningless phrase anyway because nowhere does it request a "valid size." Please will someone tell me the magiac words to make my lovely collage automaticaslly, or shall I revert to doing it manually on one of my other excellant image editing programs?

    http://helpx.adobe.com/photoshop-elements/kb/error-valid-size-available-creation.html
    If nothing there helps, see post 4 in this thread:
    http://forums.adobe.com/message/4248143#4248143#4248143

  • Debugger Message SY495 in BSP code

    Hi, I ran into message SY495 while trying to debug a BSP. The solution we found I have posted in the ABAP forum. I put the message number in the title.

    For those wondering, see the actual Debugger "cannot determine the breakpoint" position SY495.
    I suspect that it would have been safer to not directly clean the table, but to use transaction SICF. There is a menu entry to disable debugging for a specific user. From what I know (which might not be 100% correct), this should be sufficient to clean up all breakpoints and disable HTTP debugging for the user.

  • Validations in bsp

    Hi,
    Please send me some documents regarding d<b>atabinding</b> and <b>validations</b> in bsp application.
    Points will be rewarded.

    Hi Anil,
    Please refer to the weblog...in this there will be a link to a PDF document which describes data binding.
    /people/sergio.ferrari2/blog/2006/08/28/bsp-in-depth-model-data-binding
    coming to validations - in MVC approach these can be done at DO_HANDLE_DATA and in case of page with flow logic you will have them in the OnInputProcessing event. This weblog should give some idea on data validations as well.
    Hope this helps.
    Cheers

  • Message Validation in Web Services

    I noticed today that my service allows messages to reach
    my service implementation class even when the message doesn't appear to satisfy the WSDL. For example I can pass it an object whose child members are null even if the WSDL says that they must exist. Is It true that no validation occurs against the WSDL. If not do newer versions of WebLogic do this. I am using 8.1.5. What is the industry standard of performing validation ?
    I am writing this service for a client and want them to recieve faults if the message set to me is invalid.
    Thanks;
    Kahler

    Doron,
    Actually, what we are doing is to work out a feasible archet. for a hub platform, or agent for the agencies to implement their enterprise services. So we need to build a simple echoXXX test case to prove our archet. works.
    The propose hub plateform allows the services providers to publish theis enterprise services, mostly which are async. web services, on the hub.
    I think it is hard to explain through plain words. Can you give me your email adress and show you some diagram? Thanks,
    Shaun

  • Xml request message validation error

    Hi,
    My request message is :
    <?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <ns1:sum soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://service.bankfusion">
    <p1 href="#id0"/>
    <p2 href="#id1"/>
    </ns1:sum>
    <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">11</multiRef>
    <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">20</multiRef>
    </soapenv:Body>
    </soapenv:Envelope>
    and my xsd schema to validate the request message against are as follows:
    REQUEST.XSD
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema id="Envelope" targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mstns="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app1="http://service.bankfusion" xmlns:app2="http://schemas.xmlsoap.org/soap/encoding/">
    <xs:import namespace="http://service.bankfusion" schemaLocation="request_app1.xsd" />
    <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="request_app2.xsd" />
    <xs:attribute name="encodingStyle" msdata:Prefix="soapenv" type="xs:string" />
    <xs:element name="Envelope" msdata:IsDataSet="true" msdata:Prefix="soapenv">
    <xs:complexType>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="Body" msdata:Prefix="soapenv">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="app1:sum" />
    <xs:element name="multiRef" form="unqualified" nillable="true">
    <xs:complexType>
    <xs:simpleContent msdata:ColumnName="multiRef_Text" msdata:Ordinal="3">
    <xs:extension base="xs:string">
    <xs:attribute name="id" form="unqualified" type="xs:string" />
    <xs:attribute ref="app2:root" />
    <xs:attribute ref="mstns:encodingStyle" />
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    REQUEST_APP1.XSD
    <?xml version="1.0" standalone="yes"?>
    <xs:schema id="Envelope" targetNamespace="http://service.bankfusion" xmlns:mstns="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://service.bankfusion" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app1="http://service.bankfusion" xmlns:app2="http://schemas.xmlsoap.org/soap/encoding/">
    <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="request_app2.xsd" />
    <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="request.xsd" />
    <xs:element name="sum" msdata:Prefix="ns1">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="p1" form="unqualified">
    <xs:complexType>
    <xs:attribute name="href" form="unqualified" type="xs:string" />
    </xs:complexType>
    </xs:element>
    <xs:element name="p2" form="unqualified">
    <xs:complexType>
    <xs:attribute name="href" form="unqualified" type="xs:string" />
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute ref="mstns:encodingStyle" />
    </xs:complexType>
    </xs:element>
    </xs:schema>
    REQUEST_APP2.XSD
    <?xml version="1.0" standalone="yes"?>
    <xs:schema id="Envelope" targetNamespace="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mstns="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app2="http://schemas.xmlsoap.org/soap/encoding/" xmlns:app1="http://service.bankfusion">
    <xs:import namespace="http://service.bankfusion" schemaLocation="request_app1.xsd" />
    <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="request.xsd" />
    <xs:attribute name="root" msdata:Prefix="soapenc" type="xs:string" />
    </xs:schema>
    My validation code is:
    public void validateRequest(ByteArrayInputStream isReqMsg) throws SAXException, IOException
    SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
    File schemaLocation = new File("request.xsd");
    try {
    Schema schema = factory.newSchema(schemaLocation);
    Validator validator = schema.newValidator();
    validator.validate(new StreamSource(isReqMsg));
    System.out.println("Request message is valid.");
    catch (SAXException ex) {
    System.out.println("Request message is invalid because ");
    System.out.println(ex.getMessage());
    System.out.println(ex.getStackTrace());
    throw ex;
    catch(IOException ie)
    System.out.println("Cannot read message because ");
    System.out.println(ie.getMessage());
    throw ie;
    The validator gives me the following error:
    org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '#id0' is not a valid value for 'integer'.
    Can anybody help spot the error?
    Thanks!!
    Karan

    Hi,
    My request message is :
    <?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <ns1:sum soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://service.bankfusion">
    <p1 href="#id0"/>
    <p2 href="#id1"/>
    </ns1:sum>
    <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">11</multiRef>
    <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">20</multiRef>
    </soapenv:Body>
    </soapenv:Envelope>
    and my xsd schema to validate the request message against are as follows:
    REQUEST.XSD
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema id="Envelope" targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mstns="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app1="http://service.bankfusion" xmlns:app2="http://schemas.xmlsoap.org/soap/encoding/">
    <xs:import namespace="http://service.bankfusion" schemaLocation="request_app1.xsd" />
    <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="request_app2.xsd" />
    <xs:attribute name="encodingStyle" msdata:Prefix="soapenv" type="xs:string" />
    <xs:element name="Envelope" msdata:IsDataSet="true" msdata:Prefix="soapenv">
    <xs:complexType>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="Body" msdata:Prefix="soapenv">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="app1:sum" />
    <xs:element name="multiRef" form="unqualified" nillable="true">
    <xs:complexType>
    <xs:simpleContent msdata:ColumnName="multiRef_Text" msdata:Ordinal="3">
    <xs:extension base="xs:string">
    <xs:attribute name="id" form="unqualified" type="xs:string" />
    <xs:attribute ref="app2:root" />
    <xs:attribute ref="mstns:encodingStyle" />
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    REQUEST_APP1.XSD
    <?xml version="1.0" standalone="yes"?>
    <xs:schema id="Envelope" targetNamespace="http://service.bankfusion" xmlns:mstns="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://service.bankfusion" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app1="http://service.bankfusion" xmlns:app2="http://schemas.xmlsoap.org/soap/encoding/">
    <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="request_app2.xsd" />
    <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="request.xsd" />
    <xs:element name="sum" msdata:Prefix="ns1">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="p1" form="unqualified">
    <xs:complexType>
    <xs:attribute name="href" form="unqualified" type="xs:string" />
    </xs:complexType>
    </xs:element>
    <xs:element name="p2" form="unqualified">
    <xs:complexType>
    <xs:attribute name="href" form="unqualified" type="xs:string" />
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute ref="mstns:encodingStyle" />
    </xs:complexType>
    </xs:element>
    </xs:schema>
    REQUEST_APP2.XSD
    <?xml version="1.0" standalone="yes"?>
    <xs:schema id="Envelope" targetNamespace="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mstns="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:app2="http://schemas.xmlsoap.org/soap/encoding/" xmlns:app1="http://service.bankfusion">
    <xs:import namespace="http://service.bankfusion" schemaLocation="request_app1.xsd" />
    <xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="request.xsd" />
    <xs:attribute name="root" msdata:Prefix="soapenc" type="xs:string" />
    </xs:schema>
    My validation code is:
    public void validateRequest(ByteArrayInputStream isReqMsg) throws SAXException, IOException
    SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
    File schemaLocation = new File("request.xsd");
    try {
    Schema schema = factory.newSchema(schemaLocation);
    Validator validator = schema.newValidator();
    validator.validate(new StreamSource(isReqMsg));
    System.out.println("Request message is valid.");
    catch (SAXException ex) {
    System.out.println("Request message is invalid because ");
    System.out.println(ex.getMessage());
    System.out.println(ex.getStackTrace());
    throw ex;
    catch(IOException ie)
    System.out.println("Cannot read message because ");
    System.out.println(ie.getMessage());
    throw ie;
    The validator gives me the following error:
    org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '#id0' is not a valid value for 'integer'.
    Can anybody help spot the error?
    Thanks!!
    Karan

  • I try and log into icloud but the get the message valid apple id but not an icloud account. help anyone

    I try and log into icloud but it wont let me. It saya my appleid is valid but I dont have an icloud account. how do I get one?

    Welcome to the Apple Support Communities
    You have to log in iCloud on an iPhone, iPod touch, iPad or Mac first before being able to use iCloud on your PC. See > http://www.apple.com/icloud/setup
    If you haven't got an iPhone, iPod touch, iPad or Mac, you can't use iCloud

Maybe you are looking for

  • I am not able to access the application from other PCs in network

    Hi Friends, I am a newbie in this field and building an internal application for employees of my org. The HR will enter all the informations regarding a particular employee and it will get stored in the Oracle DataBase(10g).When the admin users will

  • Cannot see business system in integration directory.

    Hi all, I am trying to configure a simple file to idoc scenario (from the starter pack) . I have created a third party technical system and assigned it to a business system. I have configured the scenario as given in the exercise scenario in the inte

  • Custom table infotype

    Hi Experts, Can you please provide me with the steps to create a custom table infotype. Thanks Sri

  • Error on Adobe Viewer

    Hello: When compiling an App, Ive got the following error at the end of the process.. dist bundle for the distribution mobileprovision file must be valid Any toughts on what could be hapenning?

  • Copying the Bw system to Another BW system

    Hi Iam copying the data of One system to another BW system So can you advice How do I need to tack of all the Infocube data is transfeered or not? Is ther any Particular transaction? Please suggest....