MRN2 & complex rules of devalution

Hi Gurus !
I try to implement the process for devaluation based on movement rate (MRN2). This process will be run yearly during closing.
In this transaction, I want to have a devaluation based on the rate of rotation of stock only base on consumption (or mainly). I explain :
consumption = sum of consumption of item for the fiscal year treated
movement rate = consumption / stock at the end of year
ff the movement rate >= 1 => living stock. no devaluation
     stock at the end of year = 20. consumption of year = 50 ===> rate = 2,5
if the movement rate > 0 and < 1 but on the last three months you have a entry in stock => living stock. nothing to do
if the movement rate > 0 and < 1 but no movements on the last 3 months => "low stock" => devaluation required at 50%
     stock at the end of year = 20. consumption of year = 10 ===> rate = 0,5
if the movement rate = 0 => dead stock. devaluation required at 95%
     stock at the end of year = 20. consumption of year = 0 ===> rate = 0
The devaluation indicator is 0 for a movement in the year, 1 for the first year (dead stock) and up to 1 when the stock is completely die since some years (4 if 4 years without movement)
Weighting factor on movements allow me to integrate the consumption on the last 12 months or entry on the last 3 months.
Weighting factor on stock allow me to keep only the stock at the end of year (when the program is run).
Threshold value on material movement allow me to select or not with a minimum of consumption, if the minimum is not OK, the stock is like a dead stock.
My problem in SAP with customizing:
     I know how to have the living stock (no devaluation) or the dead stock (95% devaluation)
     But how to do for the "low stock" ?
Thanks for your attention on the subject.
Regards
Bruno
Edited by: Bruno FIGUE on Sep 22, 2010 6:05 PM

Our consultant helped me on this one. Instead of trying to force multiple conditions to be met for printing, I used a combination of negative conditions with a suppression conversion.  Here is my final rule:
Rule No. Cond. Table Field Type CO Value1 Conversion
ZC 1 (blank) TAX NBREX N NE '0
ZC 2 (blank) TAX ADEXN N NE '0 00
ZC 3 (blank) TAX PEREX N NE '0 00
ZC 4 (blank) TAX DEPEX N NE '0 00
ZC 5 (blank) TAX ADEXN N EQ '0
This seems to work in all of the test cases I've used.
- April

Similar Messages

  • How to disable password complexity rules at application express 4.2 installation?

    Please, provide me how to disable password complexity rules at application express 4.2 installation.
    Best Regards,
    Moustafa

    According to the manual you need to check "Configuring Password Protection" in Oracle Database Security Guide
    In the security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531.pdf, section 3-9/p61, you'll see you need to alter the script UTLPWDMG.SQL. You''l find the script in ORA_HOME/rdbms/admin.
    You'll need to change the script to your own liking.

  • Rules should be for complex rules

    Hi,
    Could you please help to write rules for following two business scenarios for following type of hierarchical data input to Oracle rule decision Function.
    1. To make sure that InstanceId is unique across the data. (According to this sample, this rule must be evaluated to 'true')
    2. TimeRef data (2 data points as per the sample) within Town.Village is same as the TimeRef data is referenced by the Town.Village->ItemRef value (ItemRef refers the ItemData defined at the top. value refers using InstanceId). (According to this sample, this rule must be evaluated to 'true')
    <GoodsTransport>
         <TimeData InstanceId="221">1</TimeData>
         <TimeData InstanceId="222">2</TimeData>
         <TimeData InstanceId="223">3</TimeData>
         <ItemData InstanceId="111">
              <TimeRef>221</TimeRef>
              <TimeRef>222</TimeRef>
         </ItemData>
         <Town InstanceId="4444">
              <TimeRef>222</TimeRef>
              <TimeRef>223</TimeRef>
              <Village InstanceId="6666">
                   <ItemRef>111</ItemRef>
                   <TimeRef>221</TimeRef>
                   <TimeRef>222</TimeRef>
              </Village>          
         </Town>
         <Town InstanceId="4445">
              <TimeRef>221</TimeRef>
              <TimeRef>223</TimeRef>
              <Village InstanceId="6667">
                   <ItemRef>111</ItemRef>
                   <TimeRef>221</TimeRef>
                   <TimeRef>222</TimeRef>
              </Village>          
         </Town>     
    </GoodsTransport>
    Thanks
    Hareendra
    How can I write a rule

    Have not any one wrote complex rules like this?
    Since the JDeveloper allows to create FACTS using schema file, I thought that this is a simple case with Oracle rules....is not it the case?
    I posted important questions after looking at my customer requirement but the response from this ORACLE forum is unacceptable. I initially thought that this is a big forum from ORACLE and can find answers easily...but looking back now, I doubt that this even working at all:(.
    - Hareendra
    Note:
    I saw lot of disappointed statements from many people on this forum unfortunately.

  • Auto Scaling with complex rules

    Im currently using the auto scaling application block (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-autoscaling-application-block/) which allows quite complex rules for the auto scaling, such as "Each Friday for the
    entire Year, scale like this", same goes for other days of the week.
    I was hoping to switch over to the auto scaling feature in the Azure portal, but I REALLY need more complicated rules, is there any way to define a rule for each Friday of the year, and then apply exceptions for certain Fridays when I know that I am going
    to need slightly different rules?

    Hi,
    Since the issue regards Windows Azure Auto Scale. I move it to Monitor, Alert and Auto scale in Azure forum. It is appropriate and more experts will assist you.
    Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dealing with complex rules - best practice?

    hello,
    I am currently involved in a project to develop BRFplus rules for a new social security benefit.
    some ofd the legislation is complex. for example:
    if ( A = true) AND ( (B = true) OR (C = true) OR (D = true) OR ( (E = true) AND (F= true)) ) then
       Result = true
    Else
       Result = false
    Endif
    My question is, what is the best/most efficient way of developing this rule?
    is it to develop one rule with a very complex condition?
    what are the alternative/preffered approaches?
    Thanx in advance.

    You can create "named" rules for each sub-rule (the condition A, B, C,...) and then use them in a master rule. This would improve the readability and hence maintenance by breaking the complexity down into simpler modules and would also let you re-use the sub-rules at other places.

  • How to create a complex Rule in Oracle Business Rules?

    Hi, I have this classes:
    public class User{
    private List<Country> countries;
    public List<Country> getCountries(){
    return countries;
    public class Country{
    private String name;
    public String getName(){
    return name;
    Is it posible to create a rule to evaluate if one of the countries of a User has its name equals to "USA" ? How can I do that?
    I 'm evaluating this product but find that I only can create rules with very simple conditions.
    Thanks in advance for your help.

    1) Write a function that takes a List and a String and return true if the list is in the String.
    2) Assert a fact
    class UserCountry {
    User u;
    Country c;
    to link the Country facts to the User facts.
    3) Use an Advanced form pattern (in RuleAuthor) to do
    fact User u &&
    u.getCountries().contains("USA")

  • Why are complex Smart Mailbox rules not available?

    I wonder if this is a technical limitation in OSX Mail, or simply that Apple can't find a good way to present the UI.
    Here are some rules I can create in OSX Mail for filtering or for smart mailboxes:
    ALL rule: Find mails which are **in the last 31 days** AND **from [email protected]**
    ANY rule: Find mails in the last month **from [email protected]** OR **from [email protected]**
    Here's the rule I'd like to create, but can't:
    COMPLEX rule: Find mails which are **in the last 31 days** AND ( **from [email protected]** OR **from [email protected]** )
    The third rule there combines both ALL and ANY rules. I have yet to see a mail application which supports this form of query in smart mailboxes, yet it seems like a perfectly normal use case (eg, find emails from team members A, B, or C, and which also have quality X).
    Smart mailboxes would be much more helpful if they were that little bit smarter.

    if you are not into editing smart mailbox plists by hand you can esily accomplish this by creating multiple smart mailboxes and combining them into further smart mailboxes. say, make smart mailboxes 1 and 2 using a bunch of AND conditions and a smart mailbox 3 with the condition that a message is in smart mailbox 1 OR in smart mailbox 2. that said, it's really not clear why this has not been implemented into GUI directly. it's been like this for a very long time. that mac os x hint you found is 4 years old.

  • How to define complex reconciliation rule

    i have to do reconciliation with some complex rule but if i see reconciliation rule we can only define simple rule like userid = samAccountName. Please suggest how we can define complex rule.
    thanks in adv.

    http://download.oracle.com/docs/cd/E14049_01/doc.9101/e14061/busrule.htm#BIBJEFCG

  • Complex expression rules for customizable groups not working

    Hello Community,
    we have recently installed Cisco Prime 4.1 (running on Windows server 2008 R2 Standard  - 64bit Operating System).
    Our main buildings are connected via Gigabit Interfaces, so I wanted to change the threshold in Fault Monitor only for those devices and those interfaces, to be something different than the default value (40%).
    My regular expression is this:
    (Interfaces.SystemName contains "Sw-AM-C6509" AND
    Interfaces.Description contains "GigabitEthernet9/23")  OR
    (Interfaces.SystemName contains "Sw-KK-C6509"  AND
    Interfaces.Description contains "GigabitEthernet1/23")  OR
    (Interfaces.SystemName contains "Sw-MK-C6509"  AND
    Interfaces.Description contains "GigabitEthernet1/23")
    When I try to "Check Syntax" I get an error message:
    You have entered an invalid rule. Enter a valid rule. See the
    Help
    for examples of valid rules
    I also found the following thread "https://supportforums.cisco.com/message/646043#646043" that provided an example, but I got the same error message, when I tried to run the example.
    In my regular expression if I only type:
    Interfaces.SystemName contains "Sw-AM-C6509" AND Interfaces.Description contains "GigabitEthernet9/23"
    without any brackets and the like it seems to pass the syntax check.
    Any help will be highly appreciated!
    Thanks in advance,
    Katerina

    Hello Community,
    https://supportforums.cisco.com/message/646043#646043 mentions a bug that should have been removed on LMS2.6 but was still persistent. It states that:
    when defining complex rules you have to use the complete Object ID  (this info is available in the User Guide but wasn't described in DFM  On-line help), which is different for each application.
    :Campus:OGS:Device
    :DFM:VASA:DFMObject
    :CMF:DCR:Device
    :RME:INVENTORY:Device
    I would have thought that if this was actually a bug it should have been removed in the newest version of LMS4.1, but from what I understand it must still be there. I couldn't find anything relevent in the Administration of Cisco Prime LMS 4.1 document.
    In order to fix my problem I used the following syntax, which seems to pass the syntax check.
    :DFM:VASA:DFMObject:Interfaces.SystemName contains "6509" AND
    (:DFM:VASA:DFMObject:Interfaces.Description contains "1/23" OR
    :DFM:VASA:DFMObject:Interfaces.Description contains "9/23")
    It does get the job done, but this isn't exactly what I wanted.
    I hope that someone can update this post and verify that this is the correct way to go.
    Katerina

  • A more complex translation rule

    Hi, I'm looking to do a complex rule translation on an AS5400 but I can't get to it. My aim is the following: I type 5... via SIP. The call reach the AS. Then I want the 5 stripped and a destination-pattern to send the call. So 5... to .... and send it to the right place. Thank you !

    Hello p.bevilacqua ! Glad to hear from you every time I have a doubt, you're my god !
    I configured the outgoing dialpeer after the configuration above like this:
    dial-peer voice 1004 voip
    description "one proxy 1"
    destination-pattern .T
    voice-class codec 1
    session protocol sipv2
    session target ipv4:192.168.3.172
    dtmf-relay rtp-nte
    no vad
    Is it correct ? I configured it like that cause the range of the numbers after the (5) prefix it's so big that it will be changing every time, it's properly configured ?

  • Guideline for max # of levels in rules?

    Hi everyone,
    I have two general discussion questions that I'm curious about:
    1) Do you use a general guideline for the number of levels you use in your rules? and
    2) If so--what are the reasons behind that guideline?
    I recall hearing that limiting rules to 3 levels deep is a good practice to follow. However, I don't really know the reasoning behind that.
    I find that my rules are easily reaching 5 or 6 levels deep when modelling legislation. And if I were to limit the depth of my rules by making premises conclusions in their separate rules, I'll find my rules to be scattered.
    I'm interested to know about your thoughts.
    Thanks,
    -Isamu

    Hi,
    1) I think there is no generic guideline on maximum number of levels as such. The number of levels usually depend upon the complexity of rules that you are writing.
    2) Although it is recommended to avoid deep nesting of complex rules so that the rules are easier to understand and maintain.
    Also, if a rule is simple but has some premises which can be reused in large number of other rules then it is better to separate out those intermediate goals into independent conclusions (and these re-usable rules can be kept in some common rules file).
    Example:
    RULE 1:
    the applicant is eligible for the benefits if
        the applicant is a male and
        the applicant satisfies the salary criteria
            the applicant’s salary > 500 and
            the applicant’s salary <= 5000
    RULE 2:
    the benefit amount for the applicant = 0.25 * the applicant’s salary if
        the applicant satisfies the salary criteria
    RULE 1 can be written as:
    RULE 1
    the applicant is eligible for the benefits if
        the applicant is a male and
        the applicant satisfies the salary criteria
    the applicant satisfies the salary criteria if
        the applicant’s salary > 500 and
        the applicant’s salary <= 5000
    As fas as scattering of rules is concerned, i would suggest:
    1. Keep all the rules belonging to one section of legislation/policy in one document
    For example you can have one rule document per section of the legislation
    2. Keep all the rules common across sections in another document
    Thanks.

  • Best way to manage rules?

    I have just maxed out the rules for iCloud (99 rules allowed). On the Mac you can have more complex rules so you can have one rule that says basically if I get an e-mail from (Lands End, L.L. Bean, Amazon, etc) file the e-mail into my "Stores" folder. However on iCloud rules you need one rule for each store. I prefer using iCloud for the rules so they are sorted before they get to my Mac. This way they are sorted if I check my mail from an iPad or another Mac or on the Web. However, I didn't know until this morning that iCloud has a limit of 99 rules. So now I need to decide what is the best way to adjust.
    So my question here is how do you manage rules to sort e-mail?
    Thanks,
    Scott

    Winston,
    This is true if your main computer is always on and connected to the internet. However where I live currently we have frequent power outages and internet connectivity issues. Some of these problems require my to restart routers in order to fix the problem. However, if I am traveling away from home I am not able to do this. In a case like this if my rules are on my main Mac at home and I am checking e-mail from an iPad of Macbook Pro on the road no rules will run.
    Thanks.
    Anyone else have thoughts on this?

  • Regular expressions or "wild cards" and Mail rules

    I'm working on building several rules to deal with various emails types i get during the average day at work. some of them are automatically generated by our servers, others are from customers etc. Some of the messages generated by our servers have a blank subject line. Mail won't let me build a rule with a blank subject line (or anything blank for that matter)...is there a way around this?
    Also, does mail allow for use of regular expressions? I really don't know anything about regular expressions, but was hoping to learn enough to accomplish some more complex rules if it's possible. If not, i won't bother trying to tackle such an obscure language
    Thanks in advance!

    No, there is no provision for this in Mail's rules.
    However, Mail's Junk Filter is based on a much more sophisticated method (Latent Semantic Analysis) that typically is more effective at detecting this sort of thing, in part because methods based on Regular Expressions usually have an unacceptably high false positive rate if they are made general enough to catch all the possible misspellings.

  • Complex smart albums in Aperture

    Hello,
    I thought I saw a complex smart album in either Aperture or iPhoto which combined two sets of "opposing" criteria.
    Example:
    Any
    Album name is "album1"
    Album name is "album 2"
    All
    Names do not contain "word"
    If I remeber correctly there was a clearly defined line in the Smart Album creation window.
    Has anyone seen this as well

    Hi Frank,
    yes, you can combine several rules in a smart Filter or a Smart Album in Aperture, even with opposing criteria.
    But this only works for rules using regular albums - I never succeeded, when I tried to reference a "Smart Album" in these rules.
    Regards
    Léonie
    For example, this Smart album computes the difference album between two Aperture albums: All images in the Screensaver that are not in the gallery and are not rejected.
    Added: But complex rules combining "Any" and "All" I have only seen in iTunes, not in Aperture; the only exeption I know of are keywords. You can have a toplevel combination of "any" or "all", and at the keywords level again a new combination.

  • PS: Set-ADAccountPassword - Complexity Exception

    I've got problems with setting new passwords via Powershell on Server 2012 R2:
    Set-ADAccountPassword -Identity testuser48 
    -OldPassword (ConvertTo-SecureString -AsPlainText "HelloPassword123#" -Force)
    -NewPassword (ConvertTo-SecureString -AsPlainText "April456#@123" -Force)
    I tried many different passwords but there's always an ADPasswordComplexityException.
    FullyQualifiedErrorId : ActiveDirectoryServer:1325,Microsoft.ActiveDirectory.Management.Commands.SetADAccountPasword
    Are there any other things I could try? All password complexity rules (incl. length, ...) are disabled.

    I agree with David.
    That being said, to answer your question - is it possible that you have a password history issue you're running into while testing this?  The error I'm getting is probably the same as yours:
    Set-ADAccountPassword : The password does not meet the length, complexity, or
    history requirement of the domain.
    I am using a test account that I literally just created, and the account is set to not force the user to change password upon first logon.  Because this example is changing the password rather than resetting it, the password age may not be old enough
    when you're executing the command, so you get the generic failure.
    I hope this post has helped!

Maybe you are looking for

  • Cannot send email using Gmail after iOS 5

    Since updating to iOS 5, I cannot send email from my Gmail account on my iPhone. I receive email fine, but when trying to send I get the error: Cannot Send Mail Check the settings for the outgoing servers in Settings > Mail, Contacts, Calendars I hav

  • HT201359 What do I do? Can't delete credit card from iTunes and can't update apps

    I'm having problems with deleting my credit card from my iTunes account. Tried everything possible. I tried making a purchase but it didn't go through so now it's not letting me update my apps. What do I do?

  • HAL planning adapter issue

    Hi all, We are using planning 9.3.1, and the planning and HAL 7 are on same machine , the issue was when I tried to pull the planning adapter on to flow diagram - I got a prompt for planning server name , i gave the planning server name the error is

  • Zend + FB + MySQL problem

    Hi all, I am trying to teach myself the Zend connection to my database with a simple FB4 example, but I can't get it to work at all. It may be something simple, but I can't for the life of me, see it. This is my MXML code: <?xml version="1.0" encodin

  • Blinking Folder Icon with Question Mark at startup - Is my HD dead?

    I was uploading a .Mov file to my idisk when I got an error message - not sure what it said. But the screen dimmed, and then froze. I held down the power to power down - which it did. When I fired it back up, I heard the startup sound - then the scre