Validation on Phone Qualified Table

Hello,
Our main table is Customers and we have a Qualified table Phone.
We need to create a validation so that if the County (non qualifer) of the Phone table = US, then the length of the complete phone number (qualifier) field must have a lenght equal to10.
I am writing the Validation against the main table Customers.
I tried these two and neither work.  I get a valdation error if the Country = US and the complete number = 10.  I get a validation error if the counyty does not equal US.
IF(Phone.Country.[Record]= Countries[Unites States],LEN(Phone.Complete No.)=10)
IF(Phone.Country.[Record]= Countries[Unites States],LEN(Phone.Complete No.)=10,FALSE)
If I do indiviual validations on Country and Complete phone length, then the validation works but i need the combined validation.
Any suggestions?
thanks
Tammi

Hi Tammi,
Validations behaves slightly different in case of Qualified table. When you are using length function for Qualifiers then you need to add some number to get the desired result.
E.g. In your case you want the length of Phone Number = 10 and when you run the Assignment on any text field with assignment expression as Phone.Complete No. you will get some thing like 1:<Complete No.>; i.e. now in writing validations you need to pass LEN(Phone.Complete No.) = 13 to get the desired output.
Best way to analyze any validation is to create Assignments of individual expression present in the Validation so that one can get the exact value by validation expression.
Try the below validation. Please take care of brackets
IF( (IS_NOT_NULL(Phone.Country) AND IS_NOT_NULL(Phone.Complete No.)) , IF(Phone.Country.Record= CountriesUnites States,LEN(Phone.Complete No.)=13) )
Kindly update us...
Regards,
Jitesh Talreja

Similar Messages

  • Qualified Table - Validations

    Hi ALL,
    I have field in the Main table, where I need to run a assignment on this field, based on the validation results from qualified table (qualifier).
    Lets say field in Main table is " Global Status " ; Qualified table ( qualifier field - plant status).
    if plant status = Z3 then Global Status is Active --> i can have more than one qualified links and may the Plant status= Z3 is first qualified link or last qualified link.
    Is this possible?? to writie a validation for the same.
    please revert to me asap.
    thanks,
    Alexander

    Hi Alexander,
    As per my understanding, I think this is possible to run a validation if plant status = Z3 then Global Status is Active.
    This validation is true if any of the qualified links has Plant Status = Z3, either this is 1st Qualifed link or last and fails only if none of qualifed links has plant status = Z3.
    As you are running Validations this should run as expected. Further on the based of Validation result you can run assignment.
    I also feel that you can also run Assignment directly if any of the qulified link has plant status = Z3 then populate Global status = Active as Global status field belongs to main table not qualified table.
    Just check and revert with result as I dont have MDM installed on my PC so would able to check it tomorrow from my end.
    Regards,
    Mandeep Saini

  • Validation upon qualified tables

    Hi,
    Can anybody help me in writing one validation for comparing the field X of two qualified tables A and B.
    The X values comes from two different client systems. The need is to check and compare the two values.
    BR SK

    Hi Susil,
    Create new Validation in the main table only
    Select the Field X from qualified table1 and another field from qualified table 2.
    i.e. say Qualified1 and Qualified2 are the two main table fields of type Lookup Qualified then the validation expression would be
    Qualified1.FieldX = Qualified2.FieldX
    But the above validation will be helpful when you assign the value of FieldX in both the Qualified tables for same record.
    If I interpreted your question wrongly then please let me know.
    Regards,
    Jitesh Talreja

  • Can we Sum the Values in the Qualified table Fields??

    Hi All,
    I have a requirement where..Each material has multiple UOM's, So designed it as Qualified Table.
    UOM is a Qualified table.
    UOM Type is NON Qualifier.
    Weight Qualifier - Integer field
    Length Qualifier - Integer Field
    Now in main table there  is a field called Net Weight.
    I need to write a validation which checks Whether Sum of ''Weight'' in Qualfied table is Equal to ''Net Weight'' for that record.
    So if there are 5 UOM for 1 material, then the validation should check whetehr the Sum of all 5 Weights in QT is equal to ''Net Weight''  Field in Main table!!!
    Did anyone faced a similar issue, If yes How did you solve it!!
    Please Help!!
    KR
    John

    Hi John,
    Try this:-
    Net Weight = SUM(UOM.Weight)
    Here SUM is the standard function thats u need to select from list of functions.
    Please let us know if it works..
    Thanks,
    Mahi

  • Loading data : Creation of entries in the Qualified Table

    Hi,
    I was wondering if anyone has succesfully achieved the following...
    I'm looking at the standard materials repository.
    - Main Table : Product
    - Qualified Table: Location Data. This qualified table single non-qualifier field is a look-up to a flat look-up table, called Plants
    The flat table is populated with the valid list of plants, using the check table synchronisation. The Main Table is empty, so is the Location Table.
    In order to load products into this repository using the import manager it seems that it is required to "create" entries in the qualified table (Location), one for each plant-code.
    Is this true ? I actually would expect the SAP MDM Import Manager client to be able to create the records in both the main table and if needed, the qualified table.  As long as my plant code exists in the "Plants" look-up table, that should be sufficient. It seems not the case..
    Thx,
    Dirk

    The sequence of Import
    - Load the Flat Lookup tables. ( in your case Plants)
    - Load the Qualified Tables ( in your case load the non qualifiers of the Location Data)
    - Load the Main table (in your case Products)
    Though MDM allows you to create Lookup values on the fly, I would rather go with this approach.
    If you are using Import Manager, you can add the Qualified Table Records in the fly.
    But if you are using Import Server, you will NOT be able to add Qualified table records in the fly. I tested this, and I see the files in the ImportX error directory.

  • Can we run an assignment on a qualified table from a main table?

    Can I run an assignment on a qualified table from a main table.
    For example: My main table Vendor and Qualified  Table is Company Qualified .
    Company Qualified - VendorNr (Non- Qualifier),Company(Qualifier,lookupFlat - Company)
    Company  - Name,Description (It has valid values in it already).
    How to add a default value into the Company Qualified table.
    When i add a assignment like
    If(is_null(Company Qualified [Record],default lookup value from Company)  ...it says invalid.
    Any help greatly appreciated  thanks

    This is not possible currently in MDM.  I've tried many times to find a good way to do this and so far have been unsuccessful.  I also have tried to have a workflow on the main table call an assignment in a lookup / qualified table, and that doesn't work either.  The biggest reason is because you have to select a table field when you create an assignment, and it doesn't give you the option to choose fields within a table.
    Hopefully they will address this in a future release.
    Edited by: Harrison Holland on Jun 3, 2008 2:33 PM

  • Uniqueness in Qualified tables

    Dear MDM experts,
    I have this requirement wherein we have a qualified table wherein the user shouldnt enter duplicate entries.
    e.g. in the case of customer master data,the user may have only 1 qualified table record per company code. (can have differnt company codes)
    I have set Company code as an NON QUALIFIER but it does not enforce any kind of uniqueness.
    <h5>Is it possible using qualified tables to have such an enforcement ?
    </h5>
    Also as an alternate can I write a validation rule such that it will allow me to enter data in the qualified table only once per company code.
    Thanks.

    yes this will work in the case only, if you have your customer name as a master table field. Try this:
    1. Customer Name and qualified are two fields in Main table.
    2. In QT you have Comp_Code as unique Field as non qualifier and other data like company_name, Loc as non Qualifier or what ever you want.
    then DM allow you to enter same company code for two different records.
    now this is also possible that a person may have worked in 2 different organizations then you can put 2 records in QT and you can select them for a single customer.
    Rewards if found helpful.
    BR,
    Alok Sharma

  • Validation of non-qualifier

    Hello experts
    I have a validation problem on my qualified table.
    From the main table, containing customers I have a qualifier called Customer Numbers. It only has one non-qualifier called organization. It represents the internal organisation at the company and a customer can have different customer numbers depending on the organization.
    Organizations can be: Org A, Org B etc.
    Customer number is a text field.
    Other qualifiers exist but they are not important for the validation.
    I need to make sure that all customer numbers that are created have a text field that is not blank.
    I can get it to work if there is only one qualified link but if I have several I'm not able to get a consistent satisfactory result.
    This is an ok example:
    Organization   Customer Number    Other data
    Org A          12345              XYZ
    Org B          67890              XYZ
    Org A          67890              XYZ
    This is not allowed since the customer number for org B is blank:
    Organization   Customer Number    Other data
    Org A          12345              XYZ
    Org B                             XYZ
    Org A          67890              XYZ
    I have looked at [this thread|Validation Help; without luck.
    I have also tried the HAS_ANY_VALUES() function but it doesn't seem to work with IS_NOT_NULL. Any help would be appreciated.
    BR
    /Alexander

    >
    Udya Jisna wrote:
    > IF(IS_NULL(<qualifier:customer_number>), NOT(IS_NOT_NULL(<qualifier:customer_number>)), TRUE)
    One thing to consider here is that the semantics of IS_NULL and IS_NOT_NULL have changed in MDM 5.5 SP06 (see page 4 of the release notes: https://service.sap.com/~sapidb/011000358700001124542007E ). Therefore, the correct implementation depends on the MDM version you're using. If it's below SP06, you'll have to keep in mind to change the validation expression during an upgrade. If you're using SP06 (or already MDM 7.1), Udya's advice to use IS_NULL resp. IS_NOT_NULL should be the better way to go.
    Best regards,
    Dennis

  • Qualified table entry

    Hi Experts!
    I am trying to create a design in which there is one Independent field and 7 dependent field using Qualified tablein MDM.
    In ECC though,Only valid entries are allowed for one corresponding selection of NQ.
    But in MDM i can create any value without any issue.SO my question is how will my system know that for one entry of NQ only particular entries of other fields are allowed.
    Pls guide!
    Thanks,
    Ravz

    Hi,
    As validation is not possible on qualified tables.
    If you really want to put validation entries then use table for qualifiers so that you can put onlt that valkue that defined in that table.
    Thanks,
    sudhanshu

  • Qualified Tables - Loop with Expression

    Hi Experts,
    Is there any way to setup a validation to loop over qualified links and check if a specific field has a value (not being NULL)?
    For example I have the following qualified links of qualified table Location Data for a Main Table Record (Material), with two fields Plant and Purchasing Group. Plant is Non-Qualifier and Purchasing Group is Qualifier and a lookup field into the table Purchasing Group.
    Plant: 3100
    Purchasing Group: NULL
    Plant: 2100
    Purchasing Group: 12
    I want to set up a validation to loop over all qualified links and check wether Purchasing Group is set. If one of them is not set I want to display a warning on record save.
    Anybody know if this is supported?
    Thanks,
    Ingo

    Hi Ingo,
    I am assuming the following requirement:
    You want to throw a validation error when your qualifier(Purchasing Group) is NULL.
    If this the case then we can have a validation as described below for the qualified link.
    Step1. In Data Manager select Main Table as  Current table and go to Validations Tab.
    Step2. Create a validation expression by Using Function IS_NOT_NULL() and then Go to Fields drop down and select the Qualified Table --> Qualifier (Purchasing Group).
    Suppose if your Qualified table is "Test" and Qualifier is "Purchasing Group" then the expression will look like IS_NOT_NULL(Test.Purchasing Group).
    The other properties like "Error Message", "Automatic Execution" will vary as per your requirement
    Try this out and let me know.
    Thanks and Regards,
    Sagar Sonje
    Mark Helpful Answers

  • Mass Update of date in Qualified  table

    I having problem in updating End availability date in Partner Specific Data (which is a qualified table). How can do a mass update of selected records. I have written an assignment expression which has no error but it is not doing the update.
    Regards,
    Marcel

    Hi Marcel
    Assignment and validation does not work well for qualified table. It will work for only first qualified linked record and not all.
    for mass update you can use import manager map the date qualifier field and select replcae action for qualified update in the destination item.
    best regards
    ravi

  • Expression with qualified table fields

    Hi all!
    I have 2 doubts concerning the free-form search and expressions using qualified table.
    We're implementing SRM-MDM Catalog. Here is the scenario
    The search is done in the Main Table (Products). The qualified table (Contract) has the following fields:
    Contract ID: Non-Qualifier
    Contract Item: Non-Qualifier
    Contract Category: Non-Qualifier
    Lower Bound: Non-Qualifier
    Amount: Qualifier
    Currency: Qualifier
    Obsolete: Qualifier
    There are 2 records in the Contract table assigned to the Product in main table:
    123-1-Normal-1-100-BRL-False
    456-1-Normal-1-250-BRL-True
    1st doubt:
    Using the free-form search, if I set the field Contract-Amount to be less than 150, only the record 123-1-Normal-1-100-BRL is listed in the result, which is ok. But if I enter in the expression option the formula Contract.AMOUNT<150, both records are listed:
    123-1-Normal-1-100-BRL
    456-1-Normal-1-250-BRL ???
    Is this formula wrong?
    2nd doubt:
    The Contract info isn't a mandatory information. It's ok to have a product in the main table without a contract assigned to it. This can happen for example if all contracts for a product are obsolete. In the named search, if I select all products where obsolete equals to 'FALSE', only the records of the main table that have at least one valid contract are listed. As the contract info isn't mandatory, I was expecting a different behavior. Also the records that don't have a valid contract should be listed, but the contract information should be blank. Is there a way to do that?
    Thanks!

    check out these tables,
    VBAK Header Data
    VBAP Item Data
    VBAG Release Data by Schedule Line in Sch.Agrmt.
    VBUK Header Status and Administrative Data
    VBUP Item Status
    VBRL SD Document: Invoice List
    VBPA Partner
    VBKD Business Data
    VBKA Sales activities
    VBEP Schedule Line Data
    VBRK Billing: Header Data (invoice)
    VBRP Billing: Item Data (invoice)
    VBFA Sales Document Flow
    VTTP Shipment item
    regards,
    seenu

  • Not able to see data in the qualifier table of the main tbl , Data Manager

    Hi,
    I have an issue of not able to see the data of two qualified table after populating them.
    It is in mdm-5.5 ps4.
    When populating data first time ,it shows up in those two table slots in the right side of the Data Manager.
    However subsequently it does not show up in those slots , only by right click on the table and selecting "View/edit", the window pops up where those data shows up.
    However unlike other qualified tables the data does not showup automatically for these two tables.
    Appreciate any suggestion or feedback on this.
    regards,
    -reo

    You may have checked the Filter Check Box next to the Qualified Lookup cell in Data Manager, when the current table is the Main Table.
    You use the Filter Checkbox to limit the qualified table records by the current search selections.
    Secondly, you have see if there are any Qualified Links to the main table record you are viewing.
    If not, create the Qualified links in Data manager, for the main table record and the Qualified Table Record.
    Once this is done, you will see the Display fields of the Qualified table for which the links exists for the given main table record.
    Message was edited by:
            Adhappan Thiagarajan

  • Get Qualifier value from Qualified table

    Hi,
    I am trying to get all the qualifier value for a qualified table. What is the best way to do it. Can I use QualifierSearchDimension to search for all the qualifier value.
    Re: Lookup [Qualified Flat] type field how to use as a query condition? link gives us a way to do this , but it talk about getting the non - qualifiers only , so How can we get the qualifier values.
    The link Search Qualifier Fields : MDM Java APIs gives us a way to this , but it is using old Java API , does anyone know how to do it using MDM API SP06.
    Thanks and Regards,
    Subhasis

    Hi Subhasis,
    The Search API's will only search for a particular value in the qualified tables. In order to read all the qualifier and non qualifier for a record, please follow the below mentioned steps.
    Assuming 'rec' is the variable that holds the reference for the current record.
    MdmValue lookUpVal = rec.getFieldValuel(<Field Id of the field>);
    com.sap.mdm.valuetypes.QualifiedLookupValue val = (com.sap.mdm.valuetypes.QualifiedLookupValue) lookUpVal;
    // Get the total number of qualified records present for that field
    int size = val.getValuesCount();
    // Iterate through each qualified record to fetch the details
    for(int i=0;i<size;i++){
        MdmValue nqVal = val.getValue(i);
       if(nqVal != null){
             MdmValue incVal = val.getQualifierFieldValue(i,<Field Id of the qualifier field value>);
    Regards,
    Ponraj M
    Edited by: Ponraj M on Jul 10, 2009 10:12 AM

  • Not able to Populate Qualified Table in Import Manager

    Hi,
    I am performing following steps for populating Bank Detail Qualified table in MDM from R3 but not able to populate the data.
    1.Populating all lookup tables like Account_no,Bank-Key.......
    2.Mapping all fields in Bank detail table except the 'Collect Auth'
    field which is Qualifier
    3.In Customer table(Main) mapping  Collect auth to Bank Detail field and
    customer_no to its corresponding ID.
    It is not populating the Bank detail data which are available in lookup tables
    Appreciate your suggestion
    -regards,
    reo

    Reo
    Matching will be based on the Display field (at least one) of the Main table.  This is for example the Customer Number.
    You also need to map all the display fields of the qualified lookup table. Then you can set the Qualified Update Action by right clicking on the field in the main that is linked to the qualified lookup.(the Collection_Authorization I think). Set the option that well update/append/replace the qualified data fields of the looked table.
    There is two how_to_guides that will help. You can download from SAP Service Market Place. (Otherwise I can email to you)
    How To Troubleshoot MDM Import Manager
    HowTo_LoadQualifiedFields
    Rgs
    Con

Maybe you are looking for

  • Issue streaming music to AirPort Express

    Hey guys. I seem to be having difficulty with the above. I've had my device for around a year and have never had any trouble with it. Over the past week I've been trying to connect iTunes to the remote speakers and it simply freezes at "Connecting to

  • Please help about JSF selectOneRadio tag

    if i want to place a selectOneRadio in a 2x5 table, but in different colums, how could i do? i have try follow: <tr><td> </f:verbatim> <h:selectOneRadio value="#{LIC3320.currentSelect}" valueChangeListener="#{LIC3320.proListener}" immediate="true" on

  • Hyperlinks in a database

    I'm creating a bulletin board. Messages are posted through a Coldfusion Form. They are then inserted into a sql database (or should it be a Coldfusion table or datagrid?) The database columns are: MessageID, Subject, Author, Message, NumberOfResponse

  • Export backup from 9i & restore in 11g

    Hi im going to take bakup from Oracle 9i & resore in 11g R2, below are the exp command going to execute,what are the other necessary details i need to includeother than below exp dlsri@sdld full=y file=/install/backup/full.dmp log=/install/backup/ful

  • Snow Leopard vs Photoshop CS4

    Here was my fix that I picked up off of the Apple forums, so far this has worked, fingers crossed. (thanks Mr. Pi) -1. Start by opening System Preferences -2. Select 'Sharing' from the Internet & Wireless section -3. From the list on the left choose