Cross-Validation Rules: How to re-validate segments all ready enabled?

Is it possible to call one of the APIs to re-validate the code combinations againts the Cross-Validation Rules? If the enabled flag is set to 'Y' then the CVR is ignored. I am aware of the Cross-Validation Rules Report which is helpful, but I need to go a step further. I'm looking to loop through the gl.gl_code_combinations tables, re-validate the combinations that are enabled, if CVR fails then determine if there are any amounts that need to be moved prior to disabling the combination.
I have a routine that:
1. creates temp table of all enabled combinations
2. loops through gl_code_combinations
3. deletes record from gl_code_combinations, do not commit
4. calls API fnd_flex_keyval.validate_segs
5. updates status of temp table
6. rollback deleted record
7. repeat 2 - 7 until done
8. query gl_balances using temp table combintions that have failed.
I'm a little nervous to run such a routine, because of the delete.
Does anyone have any ideas or suggestions?
Thanks,
Jamie
Edited by: jmdavis on Dec 15, 2008 6:17 PM
Edited by: jmdavis on Dec 15, 2008 6:18 PM

Use where clause for that UDA's in attribute that refer to other attributes data source. the where clause may required use Lookupcodes, these lookup codes may have to be configure in the source attribute values table column.
Edited by: user11979254 on May 13, 2010 2:49 AM

Similar Messages

  • Cross Validation Rules

    I accidentally defined a cross validation rule (CVR) wrongly. My intention was to ensure that cost centre values other than 999 couldn’t be combined with balance sheet accounts.
    It appears to work initially, except that it prevents me from posting to any non-balance sheet accounts codes, because in the journal entry window the only cost centre segment value that I see is 999, and in the account code segment, the only values that I see are balance sheet account codes.
    I need to see other cost centre values and account code values so as to post to P&L account codes, but they are not showing in the journal entry window. I have tried many times to disable the CVR but it hasn’t help. I tried to change the CVR and saved it but it hasn’t help either.
    Can someone let me know how to remove this annoying cross validation rule altogether so that I will be back to where I started?

    hi colin,
    obviously it is not the CVR problem, coz CVRs will not effect the LOVs. check the security for the responsibility you are using.
    thanks,

  • Extend Cross Validation Rule functionality

    Hi,
    Does anyone know if it is possible to leverage Cross Validation rule functionality to check combinations against external data sources?
    I am sure I have seen this before, but do not know how it was implemented techincally.
    When users entered an invalid combination of two segments, maintained outside the EBS, an error message was generated and they could not continue posting the journal. The reason from maintaining the data outside EBS was due to the nature and volume of the relationship being defined.
    Any help appreciated.
    Kind Regards
    Heath

    Cross-Validation rules only affect new account combinations that are created after you define or enable the rules. If you have existing combinations that violate your rules, your cross-validation rules will not be enforced. You will need to disable all existing combinations that violate your rules before your cross-validation rules can take effect.
    Check if the combination 101.399.1323.5240.000.0000.00000.000 was already created before you created your CV rules.
    Thanks,
    Anil

  • Cross Validation Rules logic back to front.

    Hi All,
    We have a cross validation rule to: "Cost/Profit Centre must be 0000 for this Balance Sheet natural account."
    It is setup to Include: 0000.000000.0000.000.00.000.0000.00.0000 - ZZZZ.ZZZZZZ.ZZZZ.ZZZ.ZZ.ZZZ.ZZZZ.ZZ.ZZZZ
    and Exclude: 7281.302623.0001.000.00.000.0000.00.0000 - 7281.303419.ZZZZ.ZZZ.ZZ.ZZZ.ZZZZ.ZZ.ZZZZ.
    This rule allows us to control which accounts can post to cost centres and which cannot. So using these rules, any accounts in the range 302623 till 303419 cannot accept postings to a 0000 cost centre. So if we try to use 7281.303410.1234, we will get the message pop up and tell us we cannot use this combination, and that it must be 7281.303410.0000.
    Now, we want to change this rule so we can start to accept postings by cost centre to account 303410. So that in future, postings to 7281.303410.1234 will be accepted and will not throw up the warning message.
    Seeing our setup above though isn't 7281.303410.0000 already EXCLUDED from the rule?
    To actually exclude it from the rule we have had to create a new exclusion: -
    EXCLUDE: 7281.303623.0001 - 7281.303409.ZZZZ
    EXCLUDE: 7281.303411.0001 - 7281.303419.ZZZZ
    So now our combination 7281.303410.1234 exists between these two exclude ranges. Only this way it works. But it seems back to front logic.
    Can you please advise if our understanding is correct or not?

    Perfect! This is how you define cross validation rules. It's not back to front but from R11.0.3, Oracle standard is to use the cross validation rules like this.
    - Kiran

  • Filter data by cross validation rules

    Hi all,
    Is there any way to build report that filter out data by cross validation rules ?
    For e.g:
    Acc. Flex -> Company.CC.Natural.Future.
    The cross validation rules are excluding CC -> 01 and 05.
    So all the combination_id that contains CC 01 and 05 will be filter out.
    TIA,
    Fendy

    Perfect! This is how you define cross validation rules. It's not back to front but from R11.0.3, Oracle standard is to use the cross validation rules like this.
    - Kiran

  • Create GL cross-validation rules API?

    Hi,
      Could anyone please let me know if there is an API to create/update GL cross-validation rule?
    Thanks,
    Veer

    Please check this link, will assist you
    Re: WebADI API - Upload successful - Records not loaded in database
    thanks

  • CROSS VALIDATION RULE과 CCID생성간의 관계

    제품: FIN_GL
    작성날짜 : 2006-05-15
    CROSS VALIDATION RULE과 CCID생성간의 관계
    ==================================
    Explanation
    Note : 124611.1 의 내용을 참조하시면,
    Cross Validation Rule과 CCID생성간의 관계에 대해서
    쉽게 이해하실 수 있을 것입니다.
    고객님께서 문의주신 Case에 대해서는
    해당 Note의 "Scenario 2" 부분이 해당되겠습니다.
    Scenario 2:
    Dynamic Insert on
    GL-account already created
    Cross-Validation Rule created
    즉, GL Account는 이미 생성되어 있고, 그 후에 Cross Validation Rule이 생성되었을 경우,
    결과는 아래와 같습니다.
    When you create a Cross-Validation Rule after the GL Account
    Code Combination has already been created and enabled, then
    this Cross-Validation Rule will not work. A journal entry with
    this Account Code Combination, even if it is exluded in your
    Cross-Validation Rule, will still be accepted.
    다시 말씀드려, Cross Validation Rule은 이미 생성된 Code조합에 대해서는
    영향을 주지 않습니다. 또한, Cross Validation Rule에 exclude되었다 하더라도
    이미 생성된 Code조합에 대해서는 Journal이 정상적으로 생성된다는 내용입니다.
    Note : 124611.1에 다른 유형에 대해서도 설명이 나와 있습니다.

  • Validation Rules, No data to validate

    Hello all,
    I'm trying to setup the Business Rule "Validation Rules" in SAP BPC NW 7.0 but I'm getting a message that says NO DATA TO VALIDATE, I have done the configuration steps such:
    1. Add to the Entity Dim the correct OWNER.
    2.In BPC WEB ADMIN I changed the WorkStatusValidate to "YES".
    3. I changed the Work Status Setting at application level, ith the next parameters:
         ENTIDAD---> owner
         TIEMPO---> yes
         CATEGORIA--->yes,   and the other dimensions as NO
    4. I Changed The Work Status Setting at appset level too.
    I have edited the Validation Rules as follows:
    VALIDATIONACCOUNT        REMARK          VALIDATIONOPERANT             VALIDATIONTOLERANCE
          REGLA1                          ACTIVO                          =                                                   0.01
    When I click on Save without validate, there are no problems, but it is happenning When I Click on Validate Validation Rules Rule Table. Have you ever seen this error before?
    Thanks in advanced!
    REgards!

    Hi Miguel,
    You are comparing work status and the validation rules. However, these 2 are completely different functionalities.
    For maintaining validations, please take a look at the below links from help.sap:
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/72/027eddf803405eb131738b655408ce/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/d9/7e49e5b686462a9f2a2d38c98b8446/content.htm
    For work status, please refer to the below links from help.sap:
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/f8/d51b881cfa4c5992de481ccfa05db3/content.htm
    http://help.sap.com/saphelp_bpc75_nw/helpdata/en/75/712b5c7be845cbb1e76cfe78650343/content.htm
    Hope this helps.

  • Cross Validation Rules & Security Rules

    Hi all,
    Is there any one who knows where I can function/package for cross vaildation rules & security rules in GL Modules?
    I need them for our customization form before all transaction move from custom table and API table. It means we need to validate all transactions correctly in our custom form before its generated into transaction table in particular module.
    I appreciate any info.
    Thanks

    Hi,
    Thanks for your reply.
    Actually we a have customization form and interface. Due the customization programs need to use CVR, I need to know if there's a package/function/script to call this CVR procedure that we can attach to our customization programs. Before we send the transactions to API (open interface table) we already make sure there's no problem in accounting (code combination) since we activated CVR for generating account combinations.

  • My windows software did not pass genuine validation process. how can i validate it?

    am using windows xp and there is an alert that my computer might be at risk because my software did pass genuine validation process. how can i help this?

    hello, this is a support forum for the mozilla firefox web-browser. we cannot help you with any problems regarding the validatiobn of your windows copy. please contact the microsoft support channels mentioned in the alert...
    a not related issue that also needs your attentions: from the system details that you've submitted it appears as you are using a very outdated version of firefox - there are [http://www.mozilla.org/security/known-vulnerabilities/firefox.html dozens of very critical security vulnerabilities] in firefox 5. please update to the latest firefox version 13 as soon as possible & also do a check of your plugins.
    www.getfirefox.com
    https://www.mozilla.org/plugincheck/

  • Cross Validation Rule - Should all segments be included in the rule?

    I have 6 segments in GL, While i want to restrict Accounts for a given cost center and Company combination, I wanted to know if i have to also put a 00 and 99 to the other segments like Project Future and intercompany. Ex: For CC and Company combination 01 and 2345 the account 654321 must be restricted. I dont have any condition for the other 3 segments, Project, Future or Intercompany. In this case my exclude should be
    Exclude:
    Segment Low High
    CC 01 01
    Company 2345 2345
    Account 654321 654321
    Project
    Future
    Intercompany
    I left Project, Future and Intercompany as blank. Should i enter value even for those? Should it be like this?
    Segment Low High
    CC 01 01
    Company 2345 2345
    Account 654321 654321
    Project 000000 999999
    Future 0000 9999
    Intercompany 0000 9999
    Please advice.

    When creating a business rule, under Actions there is "Must be maximum length of" and "must contain patern".
    See:
    http://technet.microsoft.com/en-us/library/ff487015.aspx

  • What is validation and how do you validate data in BI

    Thanks

    Hi Mark,
    Validation are many types it would start from what u want to validate and between what & what.
    Say for Ex if you want to validate the data Bet a data in ODS and the Data in R/3.
    First you need to know what kind of data that Taerget is holding and you need to pick a perfect combination of fields for validating.
    Once you make the sdelection in the ODS then try to figure out the same in R/3 if by checking the same in the respective placess in R/3 for this you may have to know the Tables for the data to validate.
    The validation can also be done with in BW as well liike Bet ODS & Cube and ODS & ODS if they are data marted.
    Hope you understood the difference, if you not clear then give us a situation where in you are trying to validate the data so that we can provide you some tips.
    Best Regards,
    VNK.

  • How to ImplementCross validation rules in OA Page

    I have created a custom page which has a Key flex field.How do i implement the cross validation rules?Please let me know.Thanks in advance

    For example,
    I shouldn't be able to enter Advertisement(say 022)
    for administration Balancing segment.
    It has to be restricted.So, is there any special logic that i have to implement.
    In GL we have a check box for validation rules.Please let me know if the same is possible through OA Page.
    Thanks

  • IMAQ CROSS VALIDATION​- how to use?

    Hi All,
    I want to cross validate my train data set using IMAQ cross validate. 
    However I am unable to figure out how to use it? I searched up HELP and example. Couldnt find any example.
    I understand that I need to mention the number of k-folds needed for the cross validation. However how do I define the model and kernel parameters, in the first place, which will validate the model? 
    Can you point me to the right direction?
    Regards
    Aveo 

    Hi Sandeep,
    I agree that it is a rather strange requirement. Yet, it does not meet the criteria you pointed out. First, we cannot use the cross validation rules of the Accounting Flex because this personalization has a completely new entity, in a custom table. For each type of this new entity, the user will setup which accounts are shown. Meaning that after all core validation (Cross validation, flex field sec rules etc) the custom program, based on the new Entity type, must narrow the search even more. I cannot change the core Value sets or the validation, because this validation is to be used only with our extension; all other Account List of Values must behave the same as they do today.
    We have tried to convince the user with these arguments, that a change on the KFF Logic could have side effects and that we could validate it after the return from the list of values, so it would be an external treatment and would not tinker with the lov. We are still trying to do it but i just want to have an option in case the user "desperately needs" this feature.
    But thanks anyway, this gives me another argument to ask the user to reconsider.
    Regards!
    Thiago

  • Cross validation & Security rules

    Hi,
    In a typical business scenarios which are the code combinations recommended for
    i)Cross Validation rule
    ii)Security rule
    to have better control?
    Thanks

    Hello.
    It depends on your needs. Suppose you have 2 (01, and 02)companies sharing the same Chart Of Accounts. In order to avoid entering journals from company 01 into company 02 you should create a security rule to reject all code combinations starting by 01 when a Responsibility from company 02 is being used.
    Cross validation rules are used to avoid the creation of code combinations that you may think as inappropriate within the company itself. For example, to use the Cost Center segment when the Account segment is not a cost or a revenue.
    Octavio

Maybe you are looking for