Rule Problem_Help Needed

Hello Friends,
I have written following rule to calculate deduction based on two wage types. The output from 1st wage type is stored in VAR1. The calculation of second wage type is as follows where I am calculating deduction, storing it in VAR2 and comparing it. In the comparison, i need to deduct the lower value from VAR1 and VAR2 and add it to VAR3.
000010              ZERO= NR  RTE=KZDD11MULTI ARA AMT/100   ZERO= R   NEXTR A
000020          A D ADDWT&VAR2AMT?& VAR1
000030 *            ADDWT&VAR3
000040 >            AMT=& VAR1ZERO= NR  ADDWT&VAR3
I have two cases. In the first case, I have VAR1= $15 and VAR2= 18 and VAR3 should be $15. So, system is doing this correctly.
In the 2nd case, I have VAR1=$15 and VAR2=$13 but still system writes VAR3=$15. I don't know why is this happening.
FYI, I am calling this rule using PRT.
Please help.
Mayuresh

Thank you Remi for your response.
I changed the rule per your instructions but still it didnt work.
Please let me know what needs to be done?
FYI, I am processing this rule using PRT.
Mayuresh

Similar Messages

  • What Specific Firewall Rules are Needed for the DPM Server?

    Hello,
    We want to confirm which firewall ports need to be opened on the DPM server (not protected servers) for all DPM processes, so that we can set these rules in group policy. Below are what we
    think are the needed rules. Note that we have rules for both new DPM 2012 installs and upgrades from DPM 2010 to 2012, since these use different program paths.
    Rule Name
    Program Path
    Protocol
    Local Port
    DPM 2012 DCOM Port
    Any
    TCP
    135
    DPM 2012 AM Port
    Any
    TCP
    6075
    DPM 2012 RTM Agent Coordinator
    C:\Windows\Microsoft Data Protection Manager\DPM\ProtectionAgents\AC\4.0.1908.0\dpmac.exe
    Any
    Any
    DPM 2012 SP1 Agent Coordinator
    C:\Windows\Microsoft Data Protection Manager\DPM\ProtectionAgents\AC\4.1.3313.0\dpmac.exe
    Any
    Any
    DPM 2012 R2 Agent Coordinator
    C:\Windows\Microsoft Data Protection Manager\DPM\ProtectionAgents\AC\4.2.1205.0\dpmac.exe
    Any
    Any
    DPM 2012 AM Service Host (New Install
    %ProgramFiles%\Microsoft System Center 2012\DPM\DPM\bin\AMSvcHost.exe
    Any
    Any
    DPM 2012 AM Service Host (Upgrade Install)
    %ProgramFiles%\Microsoft DPM\DPM\bin\AMSvcHost.exe
    Any
    Any
    DPM 2012 DPM AM Service (New Install)
    %ProgramFiles%\Microsoft System Center 2012\DPM\DPM\bin\DPMAMService.exe
    Any
    Any
    DPM 2012 DPM AM Service (Upgrade Install)
    %ProgramFiles%\Microsoft DPM\DPM\bin\DPMAMService.exe
    Any
    Any
    DPM 2012 MSDPM (New Install)
    %ProgramFiles%\Microsoft System Center 2012\DPM\DPM\bin\msdpm.exe
    Any
    Any
    DPM 2012 MSDPM (Upgrade Install)
    %ProgramFiles%\Microsoft DPM\DPM\bin\msdpm.exe
    Any
    Any
    DPM 2012 DPMRA (New Install)
    %ProgramFiles%\Microsoft System Center 2012\DPM\DPM\bin\DPMRA.exe
    Any
    Any
    DPM 2012 DPMRA (Upgrade Install)
    %ProgramFiles%\Microsoft DPM\DPM\bin\DPMRA.exe
    Any
    Any
    Questions:
    Are any of these rules not needed?
    We know the Agent Coordinator rules are needed on protected servers. Are they also needed on the DPM server (including if we use secondary DPM servers)?
    The DPM Configuring Firewalls TechNet page says DCOM uses TCP 135 and the RPC Dynamic ports. Does that mean we also need a rule that opens all TCP RPC Dynamic ports for
    any program? Or is this not necessary since we have rules for msdpm.exe and dpmra.exe? Reference:
    http://technet.microsoft.com/en-us/library/hh757794
    What other rules may be missing, if any?
    Note that we do not include rules for ports 53 (DNS), 88 (Kerberos), 389 (LDAP), 137-139 & 445 (NetBIOS) because we already open these ports in other group policy objects.
    Also, the below forums post says two exceptions for SQL Server are needed on the DPM server to allow the Remote Administrator console to work. Is there any documentation in the DPM TechNet site on these rules?
    http://social.technet.microsoft.com/Forums/en-US/aa88fd00-6836-46d3-8a93-edb487109118/dpm-2012-remote-administration?forum=dataprotectionmanager
    Thanks,
    -Taylorbox

    Does anyone have any comments on this post? We would especially appreciate some input from Microsoft reps to help us ensure we're setting up the correct firewall rules.
    Thanks,
    -Taylorbox

  • Compliance Calibrator standard rule files needed

    Hello, we need the standard rule files (.txt) for the Compliance Calibrator 5.2. We don't have the installation software accessible atm and couldn't find anything on the SAP marketplace.
    If someone could give us information on where to get these files explicitly would be great.
    Thanks and best regards,
    Jan

    The rules are delivered together with the software which you will be able to download if you hold a valid software license for SAP GRC Access Control. Your organization holds valid licenses of the software in several countries, e.g. in Germany, France, India, Italy, the Netherlands, and the US.

  • Co-Products settlement rule PP6 - need for ECC 6.0

    Hello Experts
    I need the settlement rule PP6, but this rule is only aviable for SAP Mill Products. Is there any possibilty to use them in ECC 6.0?
    If not? how can i implement such a scenario?
    Thanks for help.
    Reagrds, Sven

    Hi Sven,
    this is what another consultant got in the past from IMS in germany when asking the same
    "Please be aware that the settlement rules PP5 and PP6 are part of the
    Industry Solution for Mill Products. Hence if you do not use Mill
    Products, and the history of your customer messages so far indicates
    that you might not, you will not be able to find PP6.
    However if you do use Mill Products then please make sure that you have
    followed the prerequisites listed in the online help:
    SAP ERP Central Component
       Industries in SAP ERP
        SAP Discrete Industries and Mill Products
          SAP Mill Products
            Enhancements in Production Planning and Control (PP)
              Settlement Rules in the Manufacture of Co-Products
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/3a/babc84194c2180e00008
    00091c1b0e/content.htm"
    br, Guido

  • OB28 Validation rule.. need to compare with other environment

    Hi All,
    I need to compare the validation rule (OB28)  present in the Development environment with the Production Environment. So is there any way out where in we could export the validation rule into an excel file and then do a comparision.?
    Thanks a lot in advance,
    Regards,
    Shailendra.

    I think you need to use Ajax.
    It is very simple. write a function in onchange event of the input field
    <input type="text" name="appdt" size="10" maxlength="20" id="dateField" class="dateparse">
    It will invoke a simple javacript function say
    <input type="text" name="appdt" size="10" maxlength="20" id="dateField" class="dateparse" onchange="fetchRecordsDatewise(this.value);">
    in the function definition of fetchRecordsDatewise(dateval)
    pass dateval to another recordFetch.jsp page with value dateval.
    In the recordFetch.jsp using request.getParameter() get the dateval's value nad query the db.
    now there print the matching db record.
    again you come to the onreadystatechange event handling javascript function that will process the response,
    maybe just to show the datewise record inside a div with div_show, with the following line
    document.getElementById("div_show").innerHTML=resp; //here resp is the response string from recordFetch.jsp
    if you don't know Ajax then, you can see simple ajax example with jsp.
    Hope these solves your problem.

  • Have working image spam rule, but need to stop the beeping!

    http://www.tuaw.com/2006/08/04/a-mail-app-rule-for-catching-image-spam/
    This tip from TUAW to reliably sends all the image spam I've been receiving lately to my Junk box. However Mail.app still does the "New mail sound" when one of these spam emails arrives and is moved to my Junk box. Any ideas on how to disable this sound on the spam emails only?

    You can't really change the target class of a monitor in a sealed vendor pack. If this is your own custom pack, then you can change the target class no problem, but this would need to be done on the unsealed XML (using VSAE or some other authoring tool).
    Then you can seal the pack and re-import (should be upgrade compatible, since you are just changing the target).
    I'm not familiar with this particular monitor in your screenshot, but it looks like this should probably target Exchange? If this is the case, then I would recommend targeting the closest typed class that the monitor should run against. In this case, some
    type of Exchange class that is already in the Exchange management pack.
    Otherwise, you can also create your own custom class for targeting, which I describe in detail on my blog.
    Here are all my sample VSAE fragments.
    Here is an example of
    using the Application Component base for your new class.
    Here is an example of
    using Local Application base for your new class.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • IP address rules - help needed

    I recently bought a Synology DS212j NAS and set it up last week. I'm new to NAS and port forwarding, so I struggled to manually forward the ports on my BT home hub 3, but got there in the end.
    I can use my iphone to access my movies & songs on the NAS, using the Synology iphone apps. It works when I am at home, or out and about on 3G or wifi.
    The only thing I haven't managed to sort out is the IP address that the iphone app needs to connect to. The NAS created a DDNS IP address for me (I don't really understand what this is, but followed the instructions). This works fine when I am on 3G or away from the home. But when I am at home on my own wifi network, I need to log out of the app and log back in using the 192.168.1.xxx IP address. Using the synology "xxx.synology.me" address doesnt work when at home on wifi. This isn't a big deal, but I would like to get it fixed if possible, it would be nice not to have to log in/out depending on where I am.
    Is it possible to somehow make the BT HH3 use the xxxx.synology.me IP address correctly when I am at home using home wifi? Thanks for any help and apologies if anything is unclear.
    Solved!
    Go to Solution.

    This is because the home hub 3 does not support NAT loopback. This is fixed in the latest firmware revision, which is just being rolled out now.
    See
    http://community.bt.com/t5/Other-BB-Queries/Re-Home-Hub-3A-recent-upgrade-breaks-port-forward-amp-DM...
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Validation Rule Help Need

    Dear Friends,
    I am new to FDM.
    Can anyone help me out with this request?
    User need to validate the following formula to be true.
    6xxxxx + 67xxxS + 68xxxx = 0
    6xxxxx , 67xxxS and 68xxxx are Account Members.
    How do I get members which begins with 6, 67 or 68?
    Thanks in advance,
    Roger

    Hi,
      If both the tables belongs to the same database , consider writing the SQL statement with LEFT JOIN and check for NULL values if match or not.
    Best Regards Sorna

  • Defaulting Rule - Help Needed

    hi,
    I want to default the Order Line based on specific Item. I have created the Defaulting Condition Template specifying the item for Entity Order Line.
    At the Item Type : I have added a new defaulting condition with a precedence later than the Regular Line and have added a constant value as the order line type.
    But it doesnt seem to work out. I have compiled the defaulting rules. But it still does not seem to work out.
    Can any one help or atleast point out how to get this thing working ?
    The idea is to have separate line type created for manufactured shippable items and separate line type for service items. Service module is not being implemented.
    since, the number of service items are not large so I am planning to hard code with the service items.
    I am not sure how the PL/SQL process would work. But if somebody could point out the PL/SQL usage for this with pseudo code. I think it might help out.
    Thanks,
    Dhiraj

    Hi Dhiraj,
    I understand that you are looking for different line types for different item types. This can be easily set up in the transaction type definition form itself. You don't have to setup special defaulting rules for this.
    In the transaction type form , when you assign line flows, it lets you choose item type. So you can set different line types for each item_type.
    Regards,
    Swapna.

  • Error while invoking Rule dictionary from MDS

    Hi,
    I have an ADF application, which contains an OBR rule dictionary.
    While testing in development environment, this rule file is invoked from the file based MDS repository on local.
    To run the application on a standalone weblogic server, the rule dictionary needs to be ported to DB based MDS.
    The same is done using DB configuration in adf-config.xml.
    But when I try to run the app on a standalone weblogic server, the rule file invocation fails with error message:
    Unexpected exception caught: java.lang.NoClassDefFoundError, msg=oracle/rules/sdk2/repository/DictionaryFQN
    the adf-config.xml looks like follows:
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
        <mds-config xmlns="http://xmlns.oracle.com/mds/config">
          <persistence-config>
            <metadata-namespaces>
              <namespace metadata-store-usage="mstore-usage_2"
                         path="/oracle/rules"/>
            </metadata-namespaces>
            <metadata-store-usages>
              <metadata-store-usage id="mstore-usage_2" deploy-target="true">
                <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
                  <property value="mds-soa" name="repository-name"/>
                  <property value="jdbc/mds/MDS_LocalTxDataSource"
                            name="jndi-datasource"/>
                  <property value="<partition_name>" name="partition-name"/>
                </metadata-store>
              </metadata-store-usage>
            </metadata-store-usages>
          </persistence-config>
        </mds-config>
      </adf-mds-config>
    Can someone guide me how to get the application running?
    Thanks,
    Sapna

    Hi Suresh varma
    Did you get any answer for your problem?
    I'm having the exact same problem. Working with Weblogic 8.1 SP6 and getting this strange message whenever I'm calling my data service.
    I've followed the guidlines given on the URL posted here, and still getting the same message.
    Let me know if you have any idea.
    Cheers
    Rod

  • Unbounded element in Business Rules

    Hi everyone,
    I am trying to achieve in returning the same element (unbounded) when the rules condition are satisfied. I want to return the below response message:
    <newJoinerRulesResponse>
    <Rule>
    <Code>Example</Code>
    <Description>test</Description>
    </Rule>
    <Rule>
    <Code>Example2</Code>
    <Description>test2</Description>
    </Rule>
    </newJoinerRulesResponse>
    As you can see the rule engine need to return more then one element Rule. How can I achieve this? I my example I am using two rules:
    1.When the salary is > 50000 then create element rule, with code = Example and Description = test
    2. When the age of a person is not between 16 and 65 then create an extra element rule with code = example2 and Description = test2
    The Rule element in my xsd schema is unbounded. This will create an fact RuleType from type list. The problem with the type list that I cant create a new RuleType, while this is possible without the unbounded element. However then I can only create one Rule element in the response (and not two what I really want!). I think the way forward is a function. The function I created named AddRulesElement consist of the below code:
    - I have created three parameters: arg_code that retrieved the value used for element Code, one for the element Description (arg_description) and one parameter based on type ResultRulesType (arg_resulttype). This is the complextype containing the element Rule.
    The code in the body is:
    assign new RuleType ResultRule = new RuleType()
    assign ResultRule.code = arg_code
    assign ResultRule.description = arg_description
    call arg_resulttype.rule.add (ResultRule.code.length(), ResultRule)
    From the two rule set I then call the function as follow:
    IF NewJoinerRulesType.salary > 50000
    THEN
    **call AddRulesElement (arg_code: "Example", arg_description: "Test", arg_resultype: ResultRulesTypes)**
    IF NewJoinerRulesType.age < 16 or NewJoinerRulesType.age > 65
    THEN
    **call AddRulesElement (arg_code: "Example2", arg_description: "Test2", arg_resultype: ResultRulesTypes)**
    This keep given me the below error:
    RUL-05164: The fact type "ResultRulesType" is referenced, but is not asserted nor input.
    Please help how I can achieve a response of two elements Rule!! I have included the xsd schema I use for the rules below.
    Many Thanks
    Ren
    P.s. please note my responses will be slow as I am away till next week Tuesday.
    My xsd schema is of the following structure:
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:vnj="http://www.example/soa/initiative/definition/validateNewJoinerService/xsd/TestUnboundedRules_v1_0"
    targetNamespace="http://www.example/soa/initiative/definition/validateNewJoinerService/xsd/TestUnboundedRules_v1_0"
    elementFormDefault="qualified">
    <xsd:element name="newJoinerRulesRequest" type="vnj:newJoinerRulesType">
    <xsd:annotation>
    <xsd:documentation>A sample element</xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="newJoinerRulesResponse" type="vnj:ResultRulesType">
    <xsd:annotation>
    <xsd:documentation>A sample element</xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="newJoinerRulesType">
    <xsd:sequence>
    <xsd:sequence>
    <xsd:element name="Birthday" type="xsd:date"/>
    <xsd:element name="Salary" type="xsd:integer"/>
    </xsd:sequence>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ResultRulesType">
    <xsd:sequence>
    <xsd:element name="Rule" type="vnj:RuleType" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="RuleType">
    <xsd:sequence>
    <xsd:element name="RuleSequence" type="xsd:integer" minOccurs="0"/>
    <xsd:element name="Code" type="xsd:string" minOccurs="0" maxOccurs="1"/>
    <xsd:element name="Description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

    He everyone,
    I found out that I first need to insert an empty ResultType in the rule before I can call the function. This now works but at run-time I am now receiving the below error:
    Fact not found in the rule engine working memory, rule session execution failed. The rule session 70005 failed because an instance of the fact emample.soa.initiative.definition.validatenewjoinerservice.xsd.newjoinerrules_v1_0.ResultRulesType could not be found in the working memory of the rule session. This is most likely a rule modeling error. The decision service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. If the error persists, contact Oracle Support Services. 70005
    I hope somebody can help!!
    Many Thanks
    Ren

  • Creating a request in Transports? Step by step needed.

    Hi BW gurus,
    I would like to know the steps for creating a request with collection of necessary objects which needs to be transported.
    the necessary objects are: Multi provider, Info cube, Update rules.
    Collection mode is selected as manually.
    Grouping is selected as only necessary objects.
    The Infocube which needs to be transported is the new one created from a copy of existing cube.
    The Multiprovider is the existing one which has been modified by including the new cube created.
    The Update rules which needs to be transported are also the new ones created from the copy of existing ones.
    So, Please give me the step by step procedure for doing this.
    Note: Against Multiprovider, we have a check box for transport. When that can be checked. I hope it can be checked if we select the data flow before & afterwards only.
    Please clarrify.
    Points will be rewarded for sure for all helpful answers.
    So, please spare some time & write the answers.
    Thanks & Regards

    Hi,
    In Transport Connection Just select U r Multi provider select grouping  with Before
    then u 'ill get u r requirement after u can select witch objects u needs to transport.
    let me know further
    *******Asign Points If useful*******
    Cheers,
    Satya

  • How to get the PSA name in a Start Routine in the Update Rules of a Cube.

    Hi all.
    I have an InfoSource that loads data directly in an Infocube.
    In the Start Routine of the Update Rules I need to retrieve the PSA table name for that InfoSource, to access it and check some data.
    I can't use the PSA name you seen in the DataFlow because it will change once the update rules are transported to another system.
    Please advice.
    Thanks!!!

    Hi,
    we do it as follows:
    first get the request ID:
    DATA: tp_request(30)   VALUE 'REQUEST'.
    FIELD-SYMBOLS: <wa> TYPE ANY, <tp_req> TYPE ANY, <tp_dtp> TYPE ANY.
    READ TABLE datapak ASSIGNING <wa> INDEX 1.
    IF sy-subrc <> 0. ABORT = 4. ENDIF.
    ASSIGN COMPONENT tp_request  OF STRUCTURE <wa> TO <tp_req>.
    IF sy-subrc <> 0. ABORT = 4. ENDIF.
    requnr = <tp_req>.
    then we get the table with
    SELECT odsname_tech FROM rstsodspart WHERE request = requnr.
    you may need to adjust this code, I've just pasted the relevant parts...
    another way is to get this info from RSTSODS where the different versions are maintained...
    let me know if you need further detail about this stuff...
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • Ruler in Photoshop Elements 10

    I have been using Photoshop CS for some years, but now my newly updated Mac software (Lion) says it can't read it any more because CS is powerPC based which Lion does not support.
    I looked at Elements 9 a while ago but it doesn't have a ruler, I need a ruler for the designing and drawing that I have to do.
    Does Elements 10 have a ruler? Is it any good for drawing?
    In hope.

    You could try using the circle tool as follows for angular lines:
    - on a separate layer, create a line (LINE-A) near a ruler, making it the length of the line you want to create at an angle.
    - move LINE-A so one end touches the screen where you want the angular line to appear.
    - select the ellipse tool then set the ellipse check box to "Circle (draw diameter or radius)", and check the box "From Center"
    - click on the end of LINE-A, and hold down the mouse button. Adobe Elements will start to draw a circle.
    - move the mouse pointer until the circumference of the circle touches the other end of LINE-A.
    You can now draw a radius line from the .center of the circle to any point on the circle. Any line drawn should be the same length as LINE-A (you may have to juggle layers to correlate points).
    Conversely, on a separate layer, you can use the circle tool to draw a circle with the radius being the line you want to measure, then move that circle to a ruler (either horizontal or vertical) and measure the radius of the circle there. That is your line length.
    Bruce

  • Weird conflicts adding port forwarding rules

    I've just joined BT and I'm trying to add the portforwarding rules I need and had on my previous router (Thompson 585v7).
    I created a ruleset named "eMule (38297)" forwarding TCP 38297 and UDP 16318.
    When I go to assign it, I select the rule then my PC and it changes the name to "BT HomeSafe CameraeMule (38297)" and when I click Add it just shows it as "BT HomeSafe Camera". So I checked this rule by going to Add User Defined and selecting Copy an existing rule and then BT HomeSafe Camera and it shows that this is forwarding TCP/UDP 1024 which doesn't conflict with my eMule rule whatsoever.
    I have the same problem with a rule to forward TCP/UDP 3071-3072, which the Hub mixes up with PalTalk, which forwards 2090-2091 and 2095 and a rule to forward TCP/UDP 52616 which it mixes up with Rainbow Six, which forwards TCP/UDP 2346. In fact, pretty much any ruleset I've created has this problem when I go to assign it.
    So basically it's a big old mess and I wonder if anyone knows how to fix it
    Solved!
    Go to Solution.

    This page may help to sort out your problem.
    Port forwarding problems
    You need to give your devices static IP addresses, and port forward to the IP address, not the device name.
    You should be able to copy an existing assignment, but remember to rename the new application first.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

Maybe you are looking for

  • Having Troubles With Restoring Refurbished iPhone 4.

    I have just received a refurbished phone as my iPhone 4 went for a swim. Now I am trying to restore my phone through iTunes, and after three tries its still saying my phone needs to be restored. My contacts have transfered but none of my apps will an

  • Get Session Object return NullPointerException

    Hi, i write my code this give me NullPointerException                ClientBean client = (ClientBean)FacesContext.getCurrentInstance().getExternalContext(). getRequestMap().get("client"); here is my faces-config.xml <managed-bean> <description> Clien

  • Picture file handling between Aperture and Photoshop

    Hello I have transferred several photos via "edit in external editor" from aperture to photoshop. In photoshop I made different operations: a) just looking (no special manipulations) -> no saving b) manipulations on a particular photo -> saving via "

  • I cant import any file

    I habe to Windows on my PC, 7 and 8, I dont have Problems with my win7 but in Win8 I cant import any file in my iTunes. Please help me

  • Receipt page tags not rendering?

    I'm implementing Google Analytics ecommerce tracking in the receipt page.  I need to use these tags: {tag_orderid}, {tag_amount}.  But when I view the html source from the browser, the tags are still there.  They didn't change to values.  Is there an