Loop in BRF Plus

Hi Experts,
I am using loop in BRF plus to loop at an internal table. Within the loop, I want to access the value one field of the table and do some processing on it via formula expression. The return value after processing is being captured in another data object of type element. Can this only be done via rule in loop to process the formula expression? If rule is the only way, then how can we further use the intermediate data element ( holding the processed value) in further rules inside this loop?
Thanks
Mamta Saboo

Hi Mamta,
Within Loop Expression, you can create multiple rules.
The variable which hold the processed value evaluated from first rule can be access in next rule within same Loop expression and without any data loss.
Just try to access to assign/use variable in next rule..it will work.
regards, Tiwari

Similar Messages

  • How to use BRF plus application in abap programs (Report or Module pool)

    Hi All,
    I have created an BRF plus application through FDT_WORKBENCH to calculate bonus of the employee with the help of SDN tutorial.
    Now my concern is that how can i use this application in my report.
    I have also read in the tutorial that we can create BRF plus application through ABAP coding but my question is, if i created an application through FDT_WORKBENCH then how can i use it in my ABAP report.
    Thanks a lot in advance.
    Regards,
    Sheelesh

    Hi,
    CALLING BRF+ FROM ABAP REPORT PROGRAM :
    I think the program may be helpful for you guys.
    *CALLING THE BRF+ FROM ABAP REPORT PROGRAM :
    REPORT Z_BRFPLUS_REPORT_01.
    PARAMETERS : P_SEL TYPE STRING .
    TYPES : BEGIN OF TYPE_PRICE ,
            NUMBER TYPE DECFLOAT16 ,
            CURRENCY TYPE STRING ,
            END OF TYPE_PRICE .
    DATA : LO_FUNCTION      TYPE REF TO     IF_FDT_FUNCTION ,
           LO_CONTEXT       TYPE REF TO     IF_FDT_CONTEXT ,
           LO_RESULT        TYPE REF TO     IF_FDT_RESULT .
    DATA : LO_MESSAGE TYPE REF TO CX_FDT .
    FIELD-SYMBOLS : <FS_PRODUCT> TYPE IF_FDT_TYPES=>S_MESSAGE .
    DATA : PRODUCT TYPE STRING ,
           LS_PRICE TYPE TYPE_PRICE .
    CLEAR LS_PRICE .
    PRODUCT = P_SEL .
    TRY .
    * GET THE BRF PLUS FUNCTION .
      LO_FUNCTION ?= CL_FDT_FACTORY=>IF_FDT_FACTORY~GET_INSTANCE( )->GET_FUNCTION('0050569E629D1ED39DD2090294D9A5BD' ) .
    * SET THE BRFPLUS FUNCTION CONTEXT .
      LO_CONTEXT = LO_FUNCTION->GET_PROCESS_CONTEXT( ) .
      LO_CONTEXT->SET_VALUE( IV_NAME = 'PRODUCT' IA_VALUE = PRODUCT ) .
    * PROCESS THE BRF PLUS FUNCTION .
      LO_FUNCTION->PROCESS(
                   EXPORTING
                     IO_CONTEXT = LO_CONTEXT
                   IMPORTING
                     EO_RESULT = LO_RESULT   ) .
    * RETRIEVE THE BRF PLUS FUNCTION RESULT .
      LO_RESULT->GET_VALUE(
                    IMPORTING
                      EA_VALUE = LS_PRICE ) .
    WRITE : LS_PRICE-NUMBER ,
            / LS_PRICE-CURRENCY .
    CATCH CX_FDT INTO LO_MESSAGE .
    ENDTRY .
    Thanks & Regards,
    Joyjit Biswas

  • Set Default User settings in BRF Plus

    Hi All,
    We want to set some default setting for a set of the users for BRFPlus gui.
    For Example:
    1. We want to display row no in the decision table as the first column for all users.
    2. In the decision table, we want some columns ( from result section)which are actually in the end  on the right of the screen should be visible as first column.
    I know these can be achieved using user settings. But we want to default this for all the BRF Plus users. 
    Can we create one setup and assign it or default it for all BRF Plus users? Like we do in SAP R3 defaulting menus for SAP users.
    Thanks In Advance.

    Hi Carsten,
    Thanks for the hint.
    We have already used the blog to hide some features from users view in custom catalog. After your reply I revisited the our code and added few more lines of codes to display row number. But the Row Number was not displayed. Guessing if anything is missing.
    Is it not possible to do at user profile level for mass users. Like we do it for SAP R3 Users?
    Code Snippet:
    METHOD if_fdt_wd_ui_mode~get_configuration.
    *Get the default configuration.
      CALL METHOD super-
    >if_fdt_wd_ui_mode~get_configuration
        RECEIVING
          ro_configuration = ro_configuration.
    * Remove repository view.
      ro_configuration->set_parameter( iv_name  =
    if_fdt_wd_user_configuration=>gc_parameter_repositor
    y_view
           iv_value = abap_false ).
      ro_configuration->set_parameter( iv_name  =
    if_fdt_wd_user_configuration=>gc_parameter_favorites
    _view
           iv_value = abap_false ).
      ro_configuration->set_parameter( iv_name  =
    if_fdt_wd_user_configuration=>gc_parameter_history_v
    iew
           iv_value = abap_false ).
    * Display row number
      ro_configuration->set_parameter( iv_name  =
    if_fdt_wd_user_configuration=>gc_parameter_disp_dt_r
    ow_num
          iv_value = abap_true ).

  • How to pass table data to brf plus application through abap program

    Dear All,
    i have a question related to BRF Plus management through abap program.
    In brf plus application end, Field1,field2,field3 these 3 are importing parameters.
                                           Table1->structure1->field4,field5 this is the table,with in one structure is there and 2 fields.
    in my abap program, i am getting values of fields let us take field1,field2,field3,field4,field5.
    And my question is
    1) How to pass fields to BRF Plus application from abap program.
    2)How to pass Table data to BRF Plus application from abap program.
    3)How to pass Structure data to BRF Plus application from abap program.
    4)How to get the result data from BRF Plus application to my abap program.
    And finally , how to run FDT_TEMPLATE_FUNCTION_PROCESS.
    How do i get the code automatically when calling the function in brf plus application.
    Regards
    venkata.

    Hi Prabhu,
    Since it is a Custom Fm i cant see it in my system.
    Look if u want to bring data in internal table then there could be two ways::
    1) your FM should contain itab in CHANGING option , so that u can have internal table of same type and pass through FM,
    2) read values one by one and append to internal table.
    Thanks
    Rohit G

  • How to Pass table-structure-fields data to BRF PLUS Application

    Dear Eperts,
    i have a question related to BRF Plus management through abap program.
    In brf plus application end, Field1,field2,field3 these 3 are importing parameters.
                                           Table1->structure1->field4,field5 this is the table,with in one structure is there and 2 fields.
    in my abap program, i am getting values of fields let us take field1,field2,field3,field4,field5.
    And my question is
    1) How to pass fields to BRF Plus application from abap program.
    2)How to pass Table data to BRF Plus application from abap program.
    3)How to pass Structure data to BRF Plus application from abap program.
    4)How to get the result data from BRF Plus application to my abap program.
    And finally , how to run FDT_TEMPLATE_FUNCTION_PROCESS.
    How do i get the code automatically when calling the function in brf plus application.
    Regards
    venkata.

    Hi Venkat,
            As said by Jocelyn Dart, you need to go through BRF+ tutorials.
    -->You can see a on of the tutorial from the below link
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/50879cee-f9b5-2e10-039e-b2d6c4b10e6b

  • Can I have unique decision table name in the BRF Plus System?

    Hi All,
    In BRF Plus , we can create more than one decision table with the same name in the same application or across different applications.
    We have a requirement were in we have to setup a framework so that we don't have duplicate decision name or any expression name across system. We need to maintain unique name.
    One way is to control this by having particular naming conventions but still there will be room for errors.
    Is there are way to activate the unique name for decision table name across or within application?
    Thanks.

    Hi Sainath
    Carsten is of course always correct.  That said I can understand the desire - if only to avoid confusion for business users.  Sounds like a good use case for the new DSM deployment approval workflow perhaps? But in the short term either application exits or custom programs are the most likely solutions
    Hope that helps
    Jocelyn

  • BRF Plus for CRM

    Hi! Can I find out whether the full functionality of BRF Plus is available for CRM 7.0 EnhP1?
    I have looked around SDN and search on other sites but could not find specific information relating to CRM. I can find lots of information about BRF+ itself though.
    Appreciate any clarification on the above.
    Cheers!
    SF

    One of my holy grails for BRF+ was to prewire the one order framework with BRF+ rules that would handle common requests.
    It really wouldn't be that hard except writing it generically.  Perhaps I will get around to that once I'm finished with EHP3 and other stuff.
    Oh BTW: if you look hard enough in CRM there are some BTE events that SAP developed that invoke BRF+ rules. I can't remember the function modules, but they do exist.
    Take care,
    Stephen

  • BRF Plus - features

    Dear All - Our customer is considering the use of BRF Plus for their rules management and need information on the following:
    1. Performance for large large rule sets - multiple instances of the engine for large, global and centralized installation
    2. Details on the rules API and clear separation of the rule base from UI.
    3. Understanding of how the engine handles chained rules. Do we have a choice on the strategy
    (forward/backward chaining) for rule processing.
    4. How does the engine handle conflict resolution? This occurs when there are conflicting rules.
    5. Maintenance of the rules and the ability to monitor the rule engine
    Appreciate any information so we provide correct fedback to the customer.
    Thanks.

    Hi Michael,
    Thanks for helping us out.
    When we do application clean up we get short dump with the following error 'A column name from a dynamically specified clause is ambiguous.'.
    Not sure what this error means. We have implemented the oss note you mentioned and also do transport analysis. There we encounter lots of unnamed and unused guids, we have to manually delete these guids individually before the status turns green and be ready for release purpose. We thought we could do this using application clean up but somethings not working there.
    Yes we are on NW7.01
    Cheers,
    Lohith

  • BRF Plus

    There is a need at a large industrial services company to use fairly complex sets of rules (ALL event based) to data coming from a data warehouse (ODS).  They plan to use PI as well. I have gone through the documentation of BRF plus (forums etc..).
    Our plan was to recommend use of PI to read data from the DW, pass it through the rules engine & call a BAPI to post data in ECC6.  My questions:
    1. Is this feasible?
    2. How does PI call this BRF plus application?
    3. How does BRF plus call the BAPI (where is it set up to be called)
    Let me know.  Thanks.

    1. Is this feasible?
    Sure, you may use web services or RFC to coenct various systems.
    Maybe you also use BRFplus in our BI in case it is SAP BI. BRFplus runs in all ABAP stacks.
    2. How does PI call this BRF plus application?
    Either plug in some code and call by RFC or do a web service call. BRFplus exposes its rules as a function whcih can be seen as a rules service.
    3. How does BRF plus call the BAPI (where is it set up to be called)
    BRFplus can call ABAP code directly as part of the rules. E.g. function modules may be called. In case there is no good function module or you want to do things remotely maybe create one that fits your needs and plug it into BRFplus.
    I know of similar scenarios from other customers and I do not see any issue. But of course, the info provided in the post is very little only.
    in any case I recommend usage of NW 7.0 EhP 2 for the use case.

  • BRF Plus - Installation & Activation

    I understand that BRF Plus comes as pre-installed with Netweaver 7. Enh pack 1. Is this is optional package while installing Netwever?
    Also I would like to what is the transaction code to launch the work bench? One document says it is FDT_WORKBENCH whereas some says it is BRFPlus. Please confirm.

    Hi Babu,
    BRF Plus is not an optional unit during installation it is part of the ABAP stack.
    After installation activate the FDT* nodes in SICF as described here:
    /people/tobias.trapp/blog/2008/11/20/a-short-glimpse-at-brfplus
    If you get a transaction does not exist message when using transaction BRF Plus then use FDT_WORKBENCH, they are the same.
    Cheers
    Phillip

  • BRF plus with WebDynpro ABAP

    Hi Experts,
    Please suggest some documents or  blogs on BRF plus in Webdynpro ABAP.  Also are there any prerequisites before starting with BRF plus.
    Thanks and Regards
    Pranav

    Hello Everyone,
    Here is one of the link I found
    /docs/DOC-8824#section6 [original link is broken]
    Any suggestions or new links are welcome
    Thanks and Regards
    Pranav

  • BRF Plus integration to CRM

    I am interested to know whether BRF Plus will be fully integrated into CRM in EHP2?  Currently the list of applications currently is Loyalty Management, Territory Management and Real-time Offer Management, however I wish to use BRF Plus in the Sales and Service scenarios witin CRM7.0.  Will this be available to me or will I have to code the integration into the processes myself?  Have you any documentation to help to code the integration if it is not there for me to use?

    Hi Richard,
    I had a chat with a colleague about this and he showed me a chapter 10 in the book "Practical Workflow for SAP".
    There you find a description of eventing and exit technologies for CRM, HCM, FIN, ...
    Those are all free of modification and allow you not only to use workflow but with a little glue code to also call BRFplus. The glue consists of a call into BRFplus - handing over relevant data and taken back results. This is something that you can also find in several papers in SDN.
    BR,
    Carsten
    P.S. Maybe also the book "BRFplus -- Business Rule Management for ABAP Applications" is interesting for you. Will probably be out Q3 2010.

  • BRF plus and ABAP

    Hello Experts ,
            I am passing data from ABAP to BRF plus and i am retrieving the equipment id ( Result )
            Do i need to create a seperate master data form Equipment details in BRF plus ,or can i refer
            them from already existing master data from SAP tables .
            Do we have an option for writing select statements in BRF plus.
    Thanks,
    Devendran

    Hello,
    I think you need to define the object <Equipment> regardless to be able to apply the ruleset and let the program interpret the values. Feeding the object <equipment> with values could be done with an internal function.
    Hope this helps

  • BRF Plus Integration

    Hello
                 i have made an Application for calulating tax in BRF Plus WorkBench ,and simulate the function as well, can anybody tell me how to integrate it with other Applications.

    Hi Monika,
    Go to the transaction, se80, and chose package to view. there you can type in and look for the SFDT package and its sub contents.
    BTW if you have any knowledge about BAPI's etc. then you need to create a factory object and access you BRFplus function through some simple lines of code. If you want to consume these rules in a custom application you can add this code where you want to process your parameters else for consuming this in standard SAP application you need to look for enhancement points or user exits.
    Praitk

  • Update functionality in BRF PLUS

    Hi all,
    I am new to BRF PLUS , i need to update the database table via BRFPLUS , can anyone let me know how to do it. Any answer is really helpful for me .
    Thanks
    Ashutosh

    HI Ashutosh,
    You can write your update query in a function module and call the function module in your BRF plus application by using Call Procudure action.
    Thanks and Regards,
    Arun

Maybe you are looking for

  • SharePoint Calendar "List does not exist " when new item

    Hello Everybody, The scenario is as follows: I added a new list called "Calendar" and I created a new view to put it in a subsite. Then I did the following process in SPD: After creating the list I went to the "Web Part" and exported it as a file, th

  • Ipod touch not showing any songs but playlists work.

    Ipod Touch 4th Gen. For a while now, when I went to "Songs" it showed "No Songs", even though playlists still worked, and songs showed on the computer when I synced. If I pressed for "Albums" or "Artists" they would show briefly and then kick me out

  • How to embed music in a keynote presentation

    Hi, how can I embed music in a keynote presentation ? Also, is there a way that a keynote presentation gets in full screen mode automatically when being opened ?

  • Using appintegrator with BW reports - Mapping problem

    Hi All, I've been using appintegrator with BW reports for a while. The portal was connected to BW by ticket and it worked without a problem. Since a new group of users was added to the portal and the UserID of those users in the portal & BW is not th

  • How to represent # in hyperlink URLs

    I have a series of URLs that I want to use in hyperlinks, that all have a hash character in them. The hash character is necessary to load the page properly. However, when I enter the URL "as is", the hash becomes %23 in the address bar, and the page