Formulas in decision table or ruleset

Is it possible to design a decision table based on formulas so that the value populated in the output context of the decision table is derived out of a formula from one or more of the input context (columns) in a decision table?

Hi
Can you clarify whther you are talking about NetWeaver BRM or BRFplus?
Regards
Harsh

Similar Messages

  • Extracting Formulas and decision tables

    Hallo,
    lets say someone saw some of the BRFplus demos, where the BRFplus workbench is used to create formulas, decision tables and simulation data is entered using excel export/import. Now the requirement is, to implement those functionalities in a  webdynpro UI as part of a custom SAP development project, using SAP ICM in the background to do the actual calculation. Is there any way to do this, without creating functions in BRFplus? The problem is, that the functions must be easily changeable in the productive system. So we can't use new function modules for every case, but we only want to use the formulas and decision tables (possibly filled through excel export/import) that were created in BRFplus workbench.
    Correct me where ever I am wrong, I don't really think this is why BRFplus was built for, but the easy handling of the workbench is the main focus of most of the demos that are available.
    Regards,
    Peter Bueermann

    Hi Peter,
    I do not understand all of the complexity you described below (e.g. I do not know ICM well). However, there are some statements that probably contain wrong assumptions.
    To use BRFplus you do not need function modules. You can call a BRFplus function for the processing of a rule by using the generic API. For example the following scenario is possible and already used in some customer use cases:
    1. Functionality to create BRFplus functions with the BRFplus API in the productive system on demand (e.g. button press in an expert UI)
    2. Directly embedding a decision table or forumla UI (BRFplus standard) and attaching it to the function in background.
    3. Upload of data from Excel
    However, there is one thing you have to accept: Objects cannot be maintained in different systems and be transported into one without conflicts. You need a leading system to be free of conflicts.
    BR,
    Carsten

  • How to get multipe data set values from Decision Table.

    Hi All,
    I need to use SAP BRM for one of the scenario where based one some Code Group I need to get a set of questions and for each question a set of possible answers.
    The structure of Decision Table will be like below :
    Table 1 : To get set of questions based on Project Code
    Input                   Output           Output
    Project Code
    Question Id
    Question Description
    Table 2 : To get set of answers based on question
    Input                   Output            Output
    Question ID
    Answer Id
    Answer Description
    I already searched in forum to get the multiple values based on some input and that works fine for a single field with multiple outcome.
    Handling Selective Multiple Actions in  SAP Business Rules Management System
    In my scenario I need to get a set of Id and description as multiple outcome.
    Can anyone please let me know how this can be achieved in BRM.
    Thanks in advance
    Ravindra

    Create an XSD in the BRM project with the desired data structure and import the XSD alias in the 'Project Resources'. Add this XSD alias as input/output of the decision table.
    Refer this:
    Creating a Simple BRM Ruleset in 30 Easy Steps using NWDS 7.3 (Flow Ruleset with a Decision Table)

  • Nested Decision tables as mentioned in book on P.244 ???

    I am working with ECC SP 4 system so alot of the examples in the book don't work and I am having trouble with this project.  I have four visio flows that represent the business scenarios and each one results in one result object of type text.  I have created four decision tables that each return one result object in a return table.  I cannot figure out how to run all four to get the four results that I need.  I tried rulesets but these are not boolean results.  The same issue arises when I try nesting the four tables into a base table.  There is no documentation in the book for process steps although that looks like a promising option I don't know how to set it up.
       What do you recomend?

    Hi James,
    ECC4 uses NW 7.0 Enhancement Package 1 (701). This is the very first release of BRFplus with many limitations. The book includes the version NW 7.0 Enhancement Package 2 (702). Therefore, you cannot use many of the features described in the book.
    What maybe works is the following:
    Function1 (F1) with top expression step sequence.
    Step sequence calls functions (F2-F5).
    Each function (F2-F5) has a decision table to return one field.
    I am not sure if it works to have a structured result and have the step sequence fill the components with the nested functions. Probably it does.
    This is not elegant but seems to be the only way to do it in 701. In 701 of course you just would put all decision tables into a ruleset.
    Regards,
    Carsten

  • RABAX state error on Decision Table

    I'v receive this message when i try to create a DT.
    An exception in the Formula & Derivation Tool occurred because of content errors
    Afbrekingssoort: RABAX_STATE
    ABAP-oproephiërarchie:
    Method: CONVERT_DB_STRING_TO_TIMEPOINT of program CL_FDT_DATE_TIME==============CP
    Method: CHECK_ of program CL_FDT_CONSTANT===============CP
    Method: CHECK of program CL_FDT_CONSTANT===============CP
    Method: IF_FDT_TRANSACTION~CHECK of program CL_FDT_MAINTENANCE============CP
    Method: IF_FDT_TRANSACTION~CHECK of program CL_FDT_MAINTENANCE============CP
    Method: IF_FDT_TRANSACTION~CHECK of program CL_FDT_MAINTENANCE============CP
    Method: DISPLAY_MESSAGES of program /1BCWDY/7303W0RX67HZTJLLL28V==CP
    Method: IWCI_FDT_WD_CHECK_MSG_LIST~DISPLAY_MESSAGES of program /1BCWDY/7303W0RX67HZTJLLL28V==CP
    Method: CHECK of program /1BCWDY/7303R6YQRS4ZMK10IIYR==CP
    Method: IF_ACTION~CHECK of program /1BCWDY/7303R6YQRS4ZMK10IIYR==CP
    I'v created a function, END_GE_BEGIN,  to compare two dates with the result as boolean. This function is activated.
    Then i create a decision table, END_IS_VALID with the result of type boolean. Two columns, END_GE_BEGIN and END (date field).
    First row in decision table END is initial and the the boolean is true.
    Second row END_GE_BEGIN if true boolean is true.
    On the check or the activate i receive this error. Multiple times.
    It looks like that the error is triggered by the check END (date type) is initial.
    How can i check if a date is initial?

    I have the exact same error.
    Could you please update this thread with solution and eventual OSS note?
    Also Carsten: Do you have a release date for Netweaver 7 EHP2? Should be out by now but can't find any confirmation on that.
    Thanks a lot!
    Martin Jonsson

  • How to move multiple decision tables values into results data object

    Hi Carsten and other experts,
    I am building a BRF+ function and have a question, I would probably try to give an example to better explain the issue.
    1. Function Signature
    Context elements:  C1, C2, C3
    2. Ruleset has two decision tables DT1 and DT2.
    DT1 take C1, C2, C3 as inputs to provide C4 and C5.
    DT2 takes C5 takes as inputs to provide C6.
    What should be results data object for function to get C4,C5 and C6 as Function Output parameters?
    I have tried different combination of structures and table and couldn't figure out how it behaves.
    Thank you
    Kris

    The function gets a result structure with components C4, C5, C6.
    In a ruleset assigned to the function you have a rules that calls the two decision tables DT1/2.
    Create a structure for DT1 with C4 and C5 as components. Make the structure the result of your decision table.
    DT2 has C6 as a result.

  • Call Decision Table in WDJ using SAP BRM API

    Hello All,
    Have created Decision Table(DT) with a condition and a action based on my condition value it should return action value.
    eg: DT contains condition header as ID and action header as Name
    Base on input ID it  should return corresponding Name;
    tried to do this with below code :
    try{
       DefaultRulesEditAPIFactory apiInstance = DefaultRulesEditAPIFactory.getInstance();
       RulesEditAPI  api = apiInstance.getAPI();
       String projectName = "dc_example_brm";
       IProject project = api.getProject(projectName);
       String rulesetName = "RS_example";
       IRuleset ruleset = project.getRuleset(rulesetName);
       String decisiontableName = "DT_Id_Name";
       IDecisionTable dt = ruleset.getDecisionTable(decisiontableName);
       IDecisionTableQuery dte = dt.createQuery();
       dte.setConditionValue("ID", "xyz");
       String val = dte.getActionValue("Name");
       wdControllerAPI.getMessageManager().reportSuccess("dt value:"+val);
    but getting val always null.
    Please help me how to get proper action value.
    Regards
    Sri.

    Hi Siddhant,
    yes, i know that process but here i wanted to call DT by using SAP BRM API.
    Regards
    Sri.

  • How to call Multiple Decision Table from another Function ?

    Hi ,
    I have requirement where depending on a value of a variable I need to call Different Decision tables .
    Example :
    If value 1
    go to decision table 1
    otherwise if value 2
    go to decision table 2
    I am not finding a way to do it .
    Regards,
    lrow

    1. Why are you using colons???
    2. You aren't specifying a return type.
    3. Variable declarations end in semi-colons not commas.
    create or replace function FuncA (var1 in date,var2 in date )
    return number is 
      var3 number;
      var4 number;
    begin
      procA(var1,var2,var3,var4);
      return var3*var4;
    end;

  • Error when creating decision table

    Hi,
    I am on a Netweaver 7.0 EHP2 SP 6.
    Using the BRF+ Workbench I created two applications and some other objects, but when trying to create a decision table in one of the applications I am getting a shortdump after confirming the popup where you can enter the name of the decision table. It works fine in the other appliation though.
    The error message is
    Runtime Error: CREATE_DATA_UNKNOWN_TYPE
    The specified type FDT_EXPR_0247a is no valid data type.
    Termination occured in the ABAP program "CL_FDT_PERSISTENCE=================CP" - in "IF_FDT_PERSISTENCE~WRITE"
    And of course more. I just wanted to ask if this is a known error, since I only used the Workbench, and didnt change anything standard.
    Regards,
    Peter Büermann

    Table should be there. I do not understand why this is not the case in your system. Have there been any problems in the upgrade?
    Two options.
    1. Create a message for SAP to look at this.
    2. Maybe implement SP7. You may be lucky and the table is in it.

  • How to change data in decision table using excel file in operating system?

    Hello, BRF Experts
    I now brf + for the first time in the current project is being developed.
    Now, project has been facing a big problem.
    Develop system that was developed in the history of decision table in the operating system can be used to update excel file, etc. I do not know whether.
    So, I was tested, but can not change data in decision table.
    [ error message : system is not change allowed ].
    The operating system itself to the current system setting is immutable and check it
    : changes and transports for client-specific object -> no changed allowed
    : cross-client object changes -> no changes to repository and cross-client customizing object.
    Decision table in the operating system can update the details if I want to know what to do.
    Maintenance view can be modified in the operating system as a decision table, I wonder if you can create a view.
    Edited by: Sung-Wook Ha on Jan 13, 2012 2:02 PM

    Hi ,
    Exchanging data with Microsoft Excel is done with the help of the XML-based file format (file extension .XSLX) introduced with Microsoft Excel 2007. If you are using an older version of Microsoft Office, you can download the Microsoft Office Compatibility Pack to upgrade the supported file formats from the Microsoft Download Center ([Exchanging Decision Table Data With Microsoft Excel |http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466]). Once you have downloaded the Compatibility Pack, you have to install it on every workstation that has an older version of Microsoft Office installed.
    Please refer the link-
    [BRFplus-Data exchange with MS Office 2007|http://help.sap.com/erp2005_ehp_05/helpdata/en/b8/e03486d1df48c6baa3c4354f5198ee/frameset.htm]
    Hope this helps.
    Thanks,
    Ajay

  • Issue Using Boolean Attribute in Decision Tables Conditions

    I'm using Oracle BPM Suite 11g 11.1.1.4.0 for my application. In my business rules, I need to use the nillable boolean attribute in Decision Table conditions, so I import java.lang.Boolean class in the Java Facts, I append .booleanValue() to the condition. I validate the rule, it's ok. Then I deploy my application to server, when I test the my process, i encounter a error:
    <bpelFault><faultType>0</faultType><operationErroredFault xmlns="http://xmlns.oracle.com/LoanApprovalRules/LoanApprovalRules_DecisionService_1"><part name="payload"><errorInfo xmlns="http://xmlns.oracle.com/LoanApprovalRules/LoanApprovalRules_DecisionService_1"><errorMessage>The class 'com.oracle.xmlns.bpm.bpmobject.data.loaninfoobject.LoanInfoObjectType' has no member named 'hasAssets'. at line 6 column 3 in main</errorMessage></errorInfo></part></operationErroredFault></bpelFault>
    HasAssets is Bool type. If I remove java.lang.Boolean in Java Fact, and remove conditions of hasAssets, the process run perfectly.
    Can you help me?
    Thanks.

    I'm using Oracle BPM Suite 11g 11.1.1.4.0 for my application. In my business rules, I need to use the nillable boolean attribute in Decision Table conditions, so I import java.lang.Boolean class in the Java Facts, I append .booleanValue() to the condition. I validate the rule, it's ok. Then I deploy my application to server, when I test the my process, i encounter a error:
    <bpelFault><faultType>0</faultType><operationErroredFault xmlns="http://xmlns.oracle.com/LoanApprovalRules/LoanApprovalRules_DecisionService_1"><part name="payload"><errorInfo xmlns="http://xmlns.oracle.com/LoanApprovalRules/LoanApprovalRules_DecisionService_1"><errorMessage>The class 'com.oracle.xmlns.bpm.bpmobject.data.loaninfoobject.LoanInfoObjectType' has no member named 'hasAssets'. at line 6 column 3 in main</errorMessage></errorInfo></part></operationErroredFault></bpelFault>
    HasAssets is Bool type. If I remove java.lang.Boolean in Java Fact, and remove conditions of hasAssets, the process run perfectly.
    Can you help me?
    Thanks.

  • How to use complex function as condition in Oracle Rule Decision Table?

    How to use complex function as condition in Oracle Rule Decision Table?
    We want to compare an incoming date range with the date defined in the rules. This date comparison is based on the input date in the fact & the date as defined for each rule. Can this be done in a decision table?

    I see a couple of problems here.
    First, what you posted below is not a syntactically valid query. It seems to be part of a larger query, specifically, this looks to be only the GROUP BY clause of a query.
    Prabu ammaiappan wrote:
    Hi,
    I Have a group function in the Query. Below is the Query i have used it,
    GROUP BY S.FREIGHTCLASS,
    R.CONTAINERKEY,
    S.SKU,
    S.DESCR ||S.DESCRIPTION2,
    S.PVTYPE,
    RD.LOTTABLE06,
    R.WAREHOUSEREFERENCE,
    RD.TOLOC,
    R.ADDWHO,
    R.TYPE,
    S.CWFLAG,
    S.STDNETWGT,
    S.ORDERUOM,
    R.ADDDATE,
    C.DESCRIPTION,
    (CASE WHEN P.POKEY LIKE '%PUR%' THEN 'NULL' ELSE to_char(P.PODATE,'dd/mm/yyyy') END),
    NVL((CASE WHEN R.ADDWHO='BOOMI' THEN RDD.SUPPLIERNAME END),SS.COMPANY),
    RDD.BRAND,
    S.NAPA,
    RD.RECEIPTKEY,
    R.SUSR4,
    P.POKEY,
    RDD.SUSR1,
    r.STATUS, DECODE(RDD.SUSR2,' ',0,'',0,RDD.SUSR2),
    rd.SUSR3Second, the answer to your primary question, "How do I add a predicate with with a MAX() function to my where clause?" is that you don't. As you discovered, if you attempt to do so, you'll find it doesn't work. If you stop and think about how SQL is processed, it should make sense to you why the SQL is not valid.
    If you want to apply a filter condition such as:
    trunc(max(RD.DATERECEIVED)) BETWEEN TO_DATE('01/08/2011','DD/MM/YYYY') AND TO_DATE('01/08/2011','DD/MM/YYYY')you should do it in a HAVING clause, not a where clause:
    select ....
      from ....
    where ....
    group by ....
    having max(some_date) between this_date and that_date;Hope that helps,
    -Mark

  • API or Trick to Access Decision Table Content

    Hi,
    I am modeling a BPM process which calls web services based on a BRM rule with a decision table. In the beginning I need to read the decision table content into the BPM process context (in order to get the selection condition for reading objects from an SCM system). Is there a way I can access the content of this BRM decision table (via web service, java or any other way)?
    Thanks,
    Eduard

    Hi Eduard,
    From what I understand(from the post and my brief discussion with Michael Hill few days back), there are a set of work orders in the SCM system that you want to read and see if they meet the scrap tolerance level. But the Decision Table doesnt have scrap tolerance level defined for all combinations of product type/date etc.
    So you want to
    (1)initially get the parameters for which scrap tolerance is defined (read the contents of decision table)
    (2)get only those work orders from the SCM (filter outside rules)
    (3)check if these work orders satisfy the scrap tolerance level (rule execution)
    Please correct me if I am wrong.
    Can we remove the steps (1) and (2) and instead get all the work orders from the SCM system and see if they satisfy the scrap tolerance level(only rule execution, filtering is also done in rule). For work orders whose scrap tolerance is not defined, the decision table will not return the default value. So if the default value is returned(filtering), no check is made if scrap is within tolerance.
    Please let me know your opinion.
    Regards,
    Sowmya

  • Formulas in response table not calculating

    I have two simple formulas in my response table (adding one to the number in the previous row and combining the contents of two cells), but for some reason the formulas aren't calculating when responses are added to the tables. When I click on the cell in the new response, the formula is there and is correct, and if I then hit enter it calculates the correct response, but it isn't doing so automatically. Once I force the formulas (click and hit enter), the cells populate for my version of the response table, but read-only members of the table still see the incorrect or blank cells. What is going on? (I also have other formulas in the table that are calculating correctly. It seems to just be these two that won't.)

    Hi;
    I recieved your shared form and we did some investigation.  There is an issue that we'll have to address in an upcoming release - but we do have a work around to provide for you:
    Step 1. Delete column B
    Step 2. Change "Lottery ID" to: = "2014-" & RIGHT("000" & Reference ID, 3)
    I also changed the Reference ID (now column B) expression -- but I don't know if this is necessary... for row 1, instead of:
    =sum(1, B2)
    I have
    = B2 + 1
    We tested the work around in a Duplicate of your form and did not modify the original (yours), you can make the above changes in your form.
    Thanks,
    Josh

  • Edit decision table from the web module

    Hello every one <br>I am using decision table to create rules and my question is can I edit decision table from the web module <br> i.e. can I change decision table values from jsp files(invoke.jsp) and if yes can any one please tell me the steps I should fallow to do it.<br>
    thank you.

    Hi Pratap,
    No, this is not possible. The Decision Table API is not public and the condition and action values can be changed only through the NWDS in BRM 7.1.1
    Regards,
    Arti

Maybe you are looking for

  • Sharepoint PPS how to create folder in dashboard designer

    Please bear with me as i am kind of new to PPS I am not able to understand how the folder are organized in dashboard designer as i could not find a way to create a new Folder. If i want to create a new page in the dashboard and organize KPI, Scorecar

  • Reg: Please share... [OFF TOPIC]

    Hi Experts/Gurus, Please share any of the toughest challenge(s) you faced in your long (Oracle) career. Like some time back I saw a discussion between some biggies (Guru & ACEs) regarding the Y2K problem. They said about the server room, New year eve

  • Third party tool for document preview in sharepoint 2013

    Hello, we are looking for third party tool which provide preview of any documents in documnet library in sharepoint 2013. So when users just hover over the document, they can see the preview. Do any of you please provide a good suggetion in case if y

  • URL of servlet in AC_FL_RunContent?

    The instructions I read for using AC_FL_RunContent, say to leave off the file extension of the swf file, e.g.: AC_FL_RunContent(..., 'movie', 'some'); So that it will embed some.swf. However, I need to serve the swf from a servlet, e.g. /blah/SomeSer

  • How to get information of error configuration in web.xml

    Hi Is there an API in the Java Servlet API that can give me information on the <error> tags of the web.xml. Regards, N�stor Bosc�n