Validating the data in XI

HI All,
How do we validate the data in XI?
regards,
Anjaneya

Hi Anjaneya
              You question is very generic. I am trying to answer in the way what I interpreted from your question.
                Suppose you are working on an scenario where you have different message type on either sides and you need to map the corresponding fields.To validate the data on the sender side, you can use user defined functions that check for the field/node for which you want to validate.                   
For example, if you need to validate the date/time from the source, you can have a user-defined function say ValidateDate where you can check for the input and accordingly accept the same or generate an error/alert message to the source.
The other way is that the validation can be done by workflow also.
Regards
Amit

Similar Messages

  • Validating the Data in Excel before uploading

    Hi all,
    I have a requirement where i need to uplaod an excel file from the users local system to Server. 
    But before saving i want to do certain validation on the Excel file which the user is trying to upload.
    1. Is the Excel file in the same format as expected . ie the coloumn order , all the required coloumns etc
    2. is there a possibility for me to check if certain coloumn values are mandatory .
    Can you please guide me providing some docs on coloumn validation of the Excel.
    Thanks,
    Swetha

    Hi Swetha,
    First you have create one Value Node that node having 5 attributes. For Example you excel having 5 Columns data So you can create 5 attributes  under value Node.
      Can u see below Code.
    IPrivateASNFileUplaodView.IASNDetails_PopUpNode node = wdContext.nodeASNDetails_PopUp();
    IPrivateASNFileUplaodView.IASNDetails_PopUpElement ele;
    if(node.size() > 0)
    for(int i =0;i <node.size();i++)
    ele = node.getASNDetails_PopUpElementAt(i);
    if(ele.getOpn_Quantity() != null )
    flag = true;  //wdComponentAPI.getMessageManager().reportException(ele.getQuantity()+"val",true);
    else
    flag = false;//wdComponentAPI.getMessageManager().reportException("else-c1",true);
    break;
    if(ele.getPo_Number() != null && ele.getPo_Number().length() != 0 )
    flag = true;     //wdComponentAPI.getMessageManager().reportException(ele.getPlant()+"val",true);
    else
    //wdComponentAPI.getMessageManager().reportException("else-c2",true);
    flag = false;
    break;
    if(ele.getPo_Item() != null && ele.getPo_Item().length() != 0 )
    flag = true;     //wdComponentAPI.getMessageManager().reportException(ele.getMaterialNumber()+"val",true);
    else
    flag = false;//wdComponentAPI.getMessageManager().reportException("else-c3",true);
    break;
    if(flag)
    wdThis.wdGetCO_ASNFileUplaodController().executeYmm_Sc_File_Upload_02_Input();
    wdComponentAPI.getMessageManager().reportSuccess("File Upload Sucessfully");
    else
    wdComponentAPI.getMessageManager().raiseException("Please fill in all the values in Excel sheet and Upload Again.",true);
    By using this code Validating the Data in Excel before uploading .
    Hope this is help full for you Swetha,
    Regards
    Vijay Kalluri

  • Strictly validating the date

    HI all please help me out in strictly validating date field. my input date would be in string format and i need to cast it and validate with format yyyy-MM-dd and should throw an error msg when the input is even 2007-5-23.

    this is the code in which i used DateFormat class
    public void valuedateValidation(String vdate){
              if (vdate!= null) {
                   DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
                   try {
                        formatter.setLenient(false);
                        java.util.Date date=formatter.parse(vdate);
                        Calendar calValueDate = new GregorianCalendar();
                        calValueDate.setTime(date);
                        System.out.println("perfectdate");
                   } catch (ParseException e1) {
                        System.out.println("not a perfect date");
    and with the above idea i tried to convert date to string again but its format is like Thu Feb 02 00:00:00 IST 0002 so i was not able to compare with input string

  • Validating a date

    Hi all, i am trying to validate a date having "yyyy-MM-ddd" format. I am using SimpleDateFormat class to do this. my code is validating the date when it is like "07-07-07" to invalid date but when i am trying to mention date like "2007123-07-07" it is accepting the date. Can any body help me out in this issue. Thanks

    if (inputDate != null) {
    DateFormat format = new
    SimpleDateFormat("yyyy-MM-dd");
    Date date =
    Date.valueOf(format.format(Date.valueOf(inputDate)));
    //this converts the string to date
    if (!date.toString().equals(inputDate)) {
    //put an error msgYou should use the DateFormat (instead of toString and valueOf)DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
    Date date = format.parse(inputDate);
    if (!format.format(date).equals(inputDate)) {
        // The input has been "lazyly" parsed
    }The API docs tells you why your input is parsed without errors: For parsing, if the number of pattern letters is more than 2, the year is interpreted literally, regardless of the number of digits.
    The number of pattern letters is then relevant only when it's needed to separate two adjacent fields (e.g. the pattern "yyyyMMdd" would force the year to be parsed using 4 digits)
    And 2007123 is a valid year (quite far in the future, but valid), isn't it ?

  • Help reqd on Changing the Valid from "date"  for both BOM & Routing

    Hi all...
    Pls advise me how to do the changing of Valid from "date"....
    Is there any process in CC01 or ECM???....
    pls reply me in detail step format (step by step analysis)....
    I wrongly created in CS01 and CA01 as 05.10.2007 as my valid from date instead of 01.10.2007.....
    How to change to my actual one......
    I dont know how to change it exactly.....as im beginner in SAP...pls take this into consideration...and post ur replies imm.
    Pls reply me in detail....will be rewarded at the end while closing this issue.
    thanks & regards
    sankar

    Dear Sankarbabu,
    IF there's no setting for Date Check in OS54 - Engineering Change Management
    Control Data,then you can create a change number with past dates,and also to
    use the same one for changing BOM.
    Tell me one thing you are saying you want to use ECM.Was the earlier one
    created without BOM was created without an ECN?
    See already if you have created your BOM with an ECN,then remove the date
    check setting which I have mentioned in OS54.
    Now goto T code CC02 ,enter the Change number and give the valid from date as
    01.10.2007.
    After that check in CS03 whether this date(01.10.2007)is getting reflected or not.
    I'm sure this will solve your problem.
    Regards
    Mangal

  • The data source "....." referenced in the form template is not valid or cannot be found

    Greetings,
    I have an InfoPath 2013 form that uses an external data connection.  The data connection became corrupt (somehow, no one knows who changed what).  A user went in to InfoPath designer and created a new data connection and changed all references
    to use that new data connection.  Now the form cannot be published at all with the error
    "The data source "GetUserProfileByName" referenced in the form template is not valid or cannot be found"
    The new data source they created is GetUserProfileByName2 and changed all references.
    Of course, since it is broke, they asked me to see if I can find the issue.  I went through the form looking to see if they missed any references to the old data connection and can't find anything.
    Where is InfoPath storing the old data connection information and where can I remote it?  I looked in the manifest and don't see it there either.
    Any thoughts?
    Thank you!

    Hi Bob,
    There are many XML schema files for the data connection, I recommend to check if the references to the XML files have been changed to the new schema files in the manifest file.
    For example, if we create a data connection called GetUserProfileByName, then there will be one XML file and three XML schema files for the data connection.
    Please make sure that all the references are updated in the manifest file.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Power View in SharePoint Server - The data extension type for a data source is not valid

    Hi All,
    All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
    "The current action cannot be completed. The data extension type for a data source
    'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
    I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
    a Power View report.
    Please help me to resolve the error.
    Thanks

    I am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'

  • Can't save BISM file pointing to excel sheet (data source). ErrMsg: "There were errors found while validating the page: Cannot connect to the server or database."

    Hi,
    Me and a collegue is administrering our new enterprise BI portal in SharePoint 2013 (On Premise) and have a problem with using a specific Excel file including general ledger data as data source through a BISM file.
    This particular BISM file can't be saved without getting the error message "There were errors found while validating the page: Cannot connect to the server or database."
    BISM files against other Excel sheets and sources (for example SSAS tabular databases) works well.
    Can anyone help us pinpointing whats wrong here, this is a really important stakeholder in our organization requesting this reporting?
    Cheers!

    Hi E.SWARD ,
    My self created a Power pivot excel then i want to use this excel to create BI file . Still i am getting the same error . Pls help me to resolve this issue
    Cannot connect to the server or database.
    I am getting the similar error , if i use Tabular analysis server instance .
    Subhash

  • Updating Cube in the End Routine based on the incoming Valid From Date

    Hello Experts
    Here is my scenario.
    We are using BW 7.x.  There is DSO and from DSO it goes to the Cube, the promotions information.  These data targets will have Material (Article), Plant (Site), Promotions Number, Valid from and Valid to dates.  The Valid To date will come in as 12/31/9999 all the time.
    If I receive a new record from ECC with same Material, Plat and Promotion combination again, I need to get the Valid From Date from the new record and Update the existing record' Valid To date in DSO/Cube as Valid From of the new record - 1.
    So Valid To date of the existing record = New Record's Valid From date minus - 1.
    I would like to do the update in "End Routine" of the Cube.
    Would you please suggest if this can be done and if so would you please provide the sample code.
    THANK YOU in Advance.
    Nag.

    yes, you can do this...
    just use a RESULT_PACKAGE in end routine.
    and using RESULT_PACKAGE fatch the existing records from DSO and append that into RESULT_PACKAGE after your desired changes,
    just try to create a code using this l;ogic. if you can't then i will provide you a code.
    Regards,
    Ashish

  • B2B-51507 :The data starting at position 0 is not recognized as a valid dat

    Hi All,
    I am trying to work with Delimited Flat File in 11.1.13 version
    B2B has to translate Flat into XML data for further operations
    Sample looks like:
    F01,,RM30207,Subinventory Transfer,KITCHEN1,100,LB,KETTLE1-HS,20-SEP-2011
    It is a delimited data file.
    Steps I am following:
    1. Create Delimited Flat file ECS in Oracle B2B Document Editor (starting with a blank template)
    2. Create XSD for the ECS
    3. COnfigure the generated ECS and XSD into Oracle B2B
    4. Create Trading partner and agreements
    I am facing with below error when I enable translation
    B2B-51507 :The data starting at position 0 is not recognized as a valid data transmission.
    No errors when translation is disabled
    Thanks,
    Deepti

    Hi Deepti,
    For inbound scenario, the parser schema should be created and has to be added inside the XERegistry.xml ($SOA_HOME/soa/thirdparty/edifecs/XEngine/config/)
    e.g :
    <Item Name="SchemaFile">${XERoot}/config/schema/csv_ParserSchema.ecs</Item>
    This can be created using the document editor. This parserschema need to be created for the ecs file that is used for translation.
    Regards,
    Dheeraj
    .

  • In Service contract, to change the valid form date on service code level.

    Hi.
    I want to change the price valid form date on service code level ( i.e. in condition)  in Service contract.
    I know i can  do that with ME32 transaction but i have lot of Service contract with more then 10,000 line items
    Is there any way that i can change in mass based on Service contract no. wise.???
    Thanks in advance..
    Edited by: VIKRANT HANDE on Sep 15, 2009 9:11 AM

    Please check in KON* series table in SE16N transaction. I guess KOHN table may help you out. You can see other similar tables.
    In any one of the table you will find validity data.

  • In table  rows , i need to check the date validation of perivous ent'd rows

    Hi All,
    I'm using adf 11g.
    I have a table with add and delete button in jsff. In jsff page , i mean table row have one lov column and date column and enterable inputtext fields .
    Conditions 1.lov value , date column and inputext value should be unique . this can be handled by alternate key.
    2. if user enters value like
    lov value date inputtext
    v1 01/02/2011 ipt1
    v2 01/02/2011 ipt2
    v1 01/01/2011 ipt3 here , lov selected v1 is already selected in first row, i want to validate dat second occurance of v1 with combination date and inputtext should be
    unique --- it makes unique with compare to first row .but i have to check second v1 date should be always greater than the first v1's date .
    User can add n number of records of keeping date variance , but the same lov value having record , the date should be always less than the perivouse entered row date (same lov value ).
    how can i handle this date check . business rules / validation .
    thanks in advance .
    Edited by: user9010551 on Jun 16, 2011 9:23 PM
    Edited by: user9010551 on Jun 16, 2011 11:25 PM

    you have to make use of this technique - in memeory filtering
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvvo.htm#CEGBEICF

  • How to set the Valid-to-date (datub) of a BOM item

    Is there a way I can set the "Valid-to-date" of a BOM item?
    According to SAP documentation...
    Quote
    <i>"If you change a BOM using a change number, the system determines the valid-to date dynamically."</i>
    Unquote
    I want to "expire" a BOM item. Meaning I want to set the valid-to-date to a date in the past.
    Is this possible at all?
    Thanks for any input.
    Fred

    Ferry,
    Thanks for you reply.
    I do not see a field for the "Valid-to" date in the function module - CS_BOM_EXPL_MAT_V2. There is one for the "Valid-From" date called DATUV. But I would like to change the "Valid-from" date of the BOM item.
    Or is there another way to set the BOM item's valid-to date using this function module which I am missing?
    Fred

  • 'Valid to' dates for both the Header & the components in the BOM report.

    Hi Experts,
    My Requirement:
    Need to display the 'Valid to' dates for both the Header & the components in the BOM report.
    Right now we are using the Functional modules 'GET_STKO' & 'GET_STPO' for the header
    & the components respectively. The report gives the correct output for the all the BOM alternatives
    which exist. But for the BOM alternatives which have been deleted(updated in STKO-LKENZ)
    'Valid to' dates are displayed as'00/00/0000'.
    (Note:ECM is used for BOMs)
    Is there any Logical Database that I can fetch the 'Valid to' dates of both BOM Header & components
    which are deleted?
    Regards,
    Mahesh

    Dear Mahesh,
    In my understanding I dont think you cannot get the valid to date for BOM header,unless a ECN,(engineering change number) is
    used to set the deletion flag.In otherwords none of the business sets for all these BOM's the valid to date(which means the
    default valid to date 31.12.9999 is taken).
    Check with this FM, CS_BOM_EXPL_MAT_V2 whether can you get the valid to date for the components(infact here also the
    valid from date given in the input screen impacts the report output).
    Check and revert back.
    Regards
    Mangalraj.S

  • Check the validity of date

    hi..i'm creating a new user jsp page and in that i want to check whether the date entered by user as his/her date of birth is valid or not...i've taken three dropdown boxes to enter the date, month & year. how will i check the validity and concate three values and save it in database..thnx

    Validate it using java.util.Calendar which is set not to be lenient.
    Example: [http://balusc.blogspot.com/2007/09/calendarutil.html].
    Save it in DB using PreparedStatement#setDate().
    Example: [http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html].
    The field in DB must be a DATE, DATETIME, or TIMESTAMP.

Maybe you are looking for