Validation to avoid special character in material & vendor no

Hi Experts,
We receive material & vendor creation request through E-portal. Once user send request on portal it gets recorde at its backend i.e MDM
Please guide me how to give validation in MDM to avoid special character '*' ',' '&' 'space' in material no. & incase of vendor code these same character & numeric code is not allowed.
Please guide in deatail step by step procedure.
Regards,
Gaurang

Hi Gaurang,
How to give validation in MDM to avoid special character '' ',' '&' 'space' in material no. & incase of vendor code these same character & numeric code is not allowed*
For this, you can write two validations one for Material number and other for Vendor Code and need to set both of these validations to Automatic Execution = Error
Expression for Material No as given below:
IF(FIND(Material No, "*") OR FIND(Material No, ",") OR FIND(Material No, "&") OR FIND(Material No, " ") , FALSE, TRUE)
Expression for Vendor Code as given below:
IF(FIND(Vendor Code, "*") OR FIND(Vendor Code, ",") OR FIND(Vendor Code, "&") OR FIND(Vendor Code, " ") , FALSE, TRUE)
So both above validations will fail if they find any Special character among Asterisk ("*"), Ampersand ("&"), Space (" ") and Comma (","). Kindly revert with result.
Regards,
Mandeep Saini

Similar Messages

  • Special character Validation: error

    HI Guys,
    I wrote a validation to restict the use of special chracters.
    Its a formula based validation, both REAL TIME and BATCH, on the Node.
    HasCharacters(Custom.EPMA_Alias, ["]).
    However, when I go to put an Alias on a member, it tells me there is a special character in this, but there is not.
    I also tried HasCharacters(PropValueCustom.EPMA_Alias0, ["]) with same results.
    I also need to add the following characters:
    |
    Thank you for all your help!.

    Hi,
    DRM will not support the syntax ["], instead try somethinug like this for your validation logic-
    And(
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),|,,T))),
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),",,T))),
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),%,,T))),
    Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),*,,T)))

  • Material master with special character

    I want to create material master starting with special character eg #1234  but system gives a error message as
    "not defined for material type Finished products"
    Where could be the issue.
    Prasad.t.a

    What special character do you want?
    your special character is probably beyond ZZZZZ in the numenclature of characters.
    enter you special character instead of the Zs in the number range definition and try again.

  • How to create security character validation to avoid automated programs

    Hi All,
    I am developing a web page for creating user accounts. I would like to do the security character validation to avoid the misuse from automated programs.
    This is what you may have seen on all popular web pages where you are asked to enter a scrambled set of characters into a text field before submitting your request.
    Please provide any samples or direct me where I can get some help on this.
    Your help is greatly appreciated.
    TIA,
    CK

    Why look for samples when u can can use ur own logic and thinking ?
    My approach ...
    1) Create a lot of scambled images having alphabets like 'rhoit' , 'rohit' ..
    File naming convention should be same as the text. Ex: rhoit.jpg, rohit.jpg ...
    2) Add the images names into a table and then populate a HashMap / ArrayList containing the image names
    3) Randomly pick some artibitrary element from the Arraylist and display the corresponding image in the create user accounts page.
    3) Compare the image name with the inputed text value for a match. The expected value should be set in request parameter.
    4) Handle the success/failure condition.
    I hope that should work fine.
    Regards
    -Rohit

  • Special Character Validation and Reset Focus

    Hi All,
    I have developed an Webdynpro JAVA Application which carries many input Fields.
    Client side Validations needs to be handled for Special Character Restriction for each of the Fields.
    Validation handled through OnEnter or OnChange Events of a Particular Field shows the exception but clicking other fields made the exception ignored.
    My Requirement goes this way.
    field1
    field2
    field n
    Validation Button
    On click of Validation button exception should be raised for all the Fields that has invalid Characters .
    It Should be displayed in Message Area( Using MessageManager) which should carry Field Name causing the Exception. On clicking the Exception it should take the Cursor the Erroneous Field.
    Kindly share the Methods of any standard Interface which does this job or customized methods if any?
    Best Regards,
    Suresh S

    try WDPermanentMessage

  • Xml publisher reprot - special character problem

    I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
    A semi colon character was expected. Error processing resource.
    Below is the code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE VENDOR(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select pv.vendor_name          
            from po_vendors pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_vendor_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<VENDOR>';
          xmldata := xmldata||' <LIST_VENDOR>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<VENDOR_REC>';
              l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
              xmldata :=xmldata|| '</VENDOR_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_VENDOR>';
          xmldata := xmldata||'</VENDOR>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END VENDOR;
    END XML_RPT;can any one advice.

    Duplicate post ? xml publisher report problem
    Srini

  • How to add A Special Character '&' in CGNode.addData()

    Hi,
    I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error:
    oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData
    at oracle.xml.classgen.CGNode.addData(CGNode.java, Compiled code)
    Does anybody know how to insert this special character in XML Class Generator?
    Thank you in advance!
    weiwei

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by weiwei:
    Hi,
    I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error:
    oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData
    at oracle.xml.classgen.CGNode.addData(CGNode.java, Compiled code)
    Does anybody know how to insert this special character in XML Class Generator?
    Thank you in advance!
    weiwei<HR></BLOCKQUOTE>
    I had the same problem here and the only solution I found, was to turn of the validation using the setValidationMode member function of ClassGenerator.
    Regards,
    Reinhard Schuerer

  • Problem with special Character & in Proxy

    Hi,
    We have a File --> XI --> R/3 Scenario. In this scenario, from XI we are passing the data to R/3 by calling the Proxy. When the data in the file has special character like & (for example <Companyname>Dave&Busters</Companyname>), it is failing in R/3. But if I replace "&" with "&amp;" in the file it works fine. Is there any solution to this problem without writting custom code in XI to replace & with &amp;.
    Thanks
    Sudheer

    >But if I replace "&" with "&" in
    > the file it works fine. Is there any solution to this
    > problem without writting custom code in XI to replace
    > & with &.
    No. If the sender of the message provides an XML format with an unescaped &, then the XML is not valid and therefore cannot be processed.
    All adapters (IDOC, RFC, File with content conversion) perform the escaping and deescaping.
    Regards
    Stefan

  • Handle special character in mapping

    Hi Experts,
    I have requirement to handle special character in mapping.
    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    FILE --- XI --- FILE where Source and target structures are same, using 1:1 mapping with FCC at both the side..
    Input/Output files consist of special charcters ö due to which getting error in mapping.
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java(Compiled Code))
    Do we required Java mapping? Is there any other way to acheive wtihout using Java mapping?
    How can we hadle in mapping?
    Sameer

    ö this tiny special charcter comes in I/O file and we cant avoid.
    Refering the given blog:  http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    What has an ö to do with an ampersand?
    Assign the correct encoding to the file adapter channel.

  • How to insert special character in sgm file and interprete it without isoents while opening in FM9.0

    I have an sgm file which contains special characters in different languages.
    <!DOCTYPE MANUAL PUBLIC "-//SWE-XXX//DTD XXX MANUAL-DTD 2.0//EN">
    <MANUAL LANG="CS">
    <TITEL>
    Polish characters: &oacute;&ecirc;&iquest;&ntilde;&aelig;&Ntilde;&AElig;&Ecirc;&yen;&Oacute;&pound;
    Czech characters: &eacute;&igrave;&oacute;&iuml;&aacute;&oslash;&egrave;&iacute;&ugrave;&ograve;&uacute;&Og rave;&Igrave;&Eacute;&Oacute;&Uacute;&Ugrave;&Egrave;&Oslash;&Iacute;&Aacute;&Iuml; aacute: &aacute;</TITEL>
    </MANUAL>
    Is there any way to insert special character directly in sgm file, so that it won't have to be interpreted by isoents mapping rules?
    isoent.rwr interpretes oacute as:
    entity "oacute" is fm char 0x00F3;
    But I would like to use 0x00F3 directly in fm file, so that if any additional character is needed - I won't have to update isoent files
    I've tested already:
    &#x00F3;
    &x00F3;
    &0x00F3;
    but with no luck
    Is there anyone who could help me with it?
    I will really appreciate your help
    /Joanna

    Hi Michael. Thank you for your reply.
    There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:
    Default API client:  FmTranslator
    SGML character encoding:  ISO Latin1
    XML character encoding:  UTF-8
    Namespace: Enable
    CSS2 Preferences:
    Generate CSS2: Disable
    Add Fm CSS Attribute To XML: Disable
    Retain Stylesheet Information: Disable
    Entity locations
    Entity search paths
    C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents
    So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)
    Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"
    Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files
    But what I would like to avoid is editing those isoent files each time new character is be needed.

  • Special Character in Filename script - how do I escape it.

    Hello All. I'm attempting to call a file in sqlplus on a linux box. The file name has a special character.
    ex: i$_my_script.sql
    I've attempted to use
    @i$_my_script.sql
    @i\$_my_script.sql
    @i\\$_my_script.sql
    @"i$_my_script.sql"
    @'i$_my_script.sql'
    @'i\$_my_script.sql'
    All to no avail. I could have sworn I'd called a similar file with $ in the filename before but now I can't get it to work. Preference would be to no have a special character in the filename ... but the file is coming in from a source I don't have control over. I could rename the file but the file resides in a source control system and I'd prefer not to have to rename it every time I want to compile it.
    Thanks in advance.
    edit<<Also as a note I can see the file in sqlplus by sending ls to the command line as follows:
    SQL> ! ls i\$_my_script.sql
    which returns
    i$_my_script.sql
    Edited by: Kennedy on Sep 6, 2011 1:25 PM

    another workaround for the same is use double slash \ \ before special character to avoid such issue
    Regards,
    CA
    shockwave flash chrome
    clear flash cookies
    html blinking text
    keyboard on screen

  • How to avoid special stock indicator for intercompany sales transitions.

    Hi Friends
    I have an issue Intercompany sales .if I  enter intercompany plant(Delivering plant) in the sales order system is taking special stock indicator and looking for sales order stock.
    If I enter company code plant for sales from unrestricted stock, system is not taking special stock indicator.
    Please advice how to avoid special stock indicator for intercompany sales transitions.
    Thanks in advance.
    SRK

    Ravi,
    Special stock is generally determined by the MRP strategy group in the material master of the plant against which you place your order.  The strateg(ies) contained in the strategy group will determine the SO requirements type, which will in turn determine whether or not the order is 'account assigned' (special stock).  
    It is normal to only have one strategy contained in a strategy group.  However (and I seldom recommend this) SAP will support multiple strategies within one strategy group.  In this case, you could have both MTS and MTO orders against the same plant/material, by manually altering the requirements type in the sales order.  This scenario is usually difficult for a planner, and involves additional manual attention to make everything work.
    I suggest that your first avenue is to change the Strategy group in the material master of the delivering plant to one that supports MTS.  This has a big impact in Controlling and in Production Planning, so ensure that all affected functional groups are aware of what you are doing, and of the resulting changes that they will experience.  The transition from MTO to MTS must be carefully controlled.
    If you are not a PP expert, I suggest you consult with your local PP expert before embarking on this change.
    Best Regards,
    DB49

  • SOAP Adapter - Error because of special character (u00FC - Umlaut) in payload

    Hello,
    We have a SOAP sync scenario.
    SAP -> PI 7.0 -> 3rd Party system
    We have a special character (ü - Umlaut) as part of the payload.
    When the message enters message pipeline in PI, I can see the payload XML till message branching step.
    From Message mapping step, i get the message - "The XML page cannot be displayed. An invalid character was found in text content" in SXMB_MONI.
    In communication channel monitoring, I see the following error:
    SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: Parsing Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2106)(:main:, row=2, col=2106) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2106): java.io.IOException: Parsing Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2106)(:main:, row=2, col=2106) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2106)
    But, when I pass the same message(with special character) to the 3rd party system using SOAP UI, i get a valid response back.
    So, what is going wrong in PI?
    Thanks,
    Chandra

    Hi Gouri,
    you are right. My message is successful in SXMB_MONI, and the error is coming from comm channel monitoring with deliverin to target.
    My sender is a proxy, and we can not specify any encoding in proxy sender.
    I did not specify any encoding in SOAP Receiver aswell.
    This is the sequence in comm channel monitoring:
    Success: Delivering to channel: CI_SOAP_Receiver_Sync
    Success: MP: Entering module processor
    Success: MP: Processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    Success: SOAP: request message entering the adapter with user J2EE_GUEST
    Error: SOAP: call failed: java.io.IOException: Parsing Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2046)(:main:, row=2, col=2046) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2046)
    Error SOAP: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: Parsing Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2046)(:main:, row=2, col=2046) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2046): java.io.IOException: Parsing Error: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2046)(:main:, row=2, col=2046) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 72(:main:, row:2, col:2046)
    So, what can i do to fix this?
    Thanks,
    Chandra
    Edited by: Chandra Sekhar H on Mar 3, 2011 12:25 PM

  • Display special character on web page

    Hello,
    Is it possible to display the special character < or > in a bsp page ?
    I try to do it but it seams to be interpreted as HTML and nothing is printed.
    In material description in purchase requisition we have < material desc > and I would like to show this in a tableview.
    For the moment I delete the special character in a string variable but it does'nt correspond to my need.
    Thanks for your help
    Véronique.

    Hello,
    You could try something with special characters :
    e.g. this code
    &#171 material &#187 
    produces this output
    « material » 
    Best regards,
    Dirk.

  • When  I am uploading  file with special character it gives error

    Hi All,
      I am uplloading one file with special character then it gives error. Please let me know solutions on this is soon as possible.
    Thanks,
    Madhav

    hi are you looking for the file to be transferred with the special character then declare it wil the char field...and send it..
    or the special charactera are coming unnecessary use the command ............replace all occurances  to avoid this..

Maybe you are looking for