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

Similar Messages

  • 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

  • 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

  • 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

  • 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 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

  • 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 ).

  • Update Functional Area on Secondary Cost Element

    Hi gurus,
    I'm trying to update Functional Area on Secondary Cost Element. I've created a LSMW to make it but when I run the bacthinput the system give me a message in order to inform me that this changes might need a lot of time because there are several internal changes to do.
    The problem is that no functional area is updating, and I'm trying with just an item and the system needs a lot of time to update just one Funcional Area, more than a hour!
    So, I don't know if some of you already had the same problem or is a problem with performance of system, because in Develop System I didn't have any issue to update this information.
    Is there any form to update this information than LSMS or Individual transaction?
    Kr
    Jorge

    Hi Jorge
    I was trying to change it manually in KA02 and there are tasks the systems does before confirming.
    This is the root cause.
    "Field changes to field Functional Area lead to
    complicated tests of the data involved, which
    may take some time. Do you really want to change
    the field online? "
    There is an option to change it in background.
    Regards

  • CALL TRANSACTION in Update Function module

    Hi all
    AFIK, it is not possible to trigger a CALL TRANSACTION for BDC update in an update function module. Yet, i jus wanna to confirm it with the xperts. what are other options for posting a BDC data in an update function module?
    thkx
    Prabhu

    Hi,
    Try this..
    Create a new RFC function module and in the function module do all the coding for the BDC and CALL TRANSACTION..
    Inside the update module call the RFC function module IN BACKGROUND TASK.
    I believe this should work..
    Thanks
    Naren

  • 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

  • Doubt in update function module

    dear friends..
    i have created an UPDATE function module with Processing type- Update Module, Start Immediate. i have handled the exceptions using Raise statement in the function module..
    the call function looks as..
      CALL FUNCTION 'ZFI_LCTXN_TABLES_UPDATE'
        in update task
        EXPORTING
          ZLCTMB1  = p_lctmb1
          NU_ENTRY = p_global-ins_zlctmb1
        TABLES
          UPD_PO   = UPD_PO
          UPD_SH   = UPD_SH
        EXCEPTIONS
          ERROR    = 1
          OTHERS   = 2.
      p_subrc = sy-subrc.
      commit work.
    but if the update fails, and even though the RAISE ERROR works, and update termination message is registered in SM13, i dont get the value for sy-subrc as 1 .
    is it the right way..if yes please tell me how to generate an error message within the transaction..so that the user knows the update has failed..
    thank you for your time
    Nivin

    Hi,
    Maybe it's usefull  for you.
    <b>
      IF sy-subrc EQ 4.
        MESSAGE e001 RAISING not_found.
      ELSEIF sy-subrc EQ 8.
        MESSAGE e002 RAISING not_found.
      ELSE.
      ENDIF.</b>
    Using this to create a message and raise in the same time !
    Regards.
    Marcelo Ramos

  • 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

  • Questions regarding update function module

    Hello experts,
    I am on customer site to help them investigate one issue: they have a background job which runs periodically.
    In the report database table A is changed firstly ( new entries are inserted ), then a update function module is called via keyword CALL FUNCTION ... IN UPDATE TASK.
    Inside the function module database table B is updated. ( existing entries are updated )
    Customer issue:
    sometimes they find A is updated as expected, however B remains unchanged at the same time.
    customer could not find exact steps to reproduce the issue. However the issue does exist there and occur from time to time.
    the issue could only be reproduced in their production system, but works perfectly well in dev & Q system. It is difficult to debug in their production system for trouble shooting.
    After analyzing related code, I have one doubt: according to ABAP help on CALL FUNCTION aaa IN UPDATE TASK, I know the function module aaa is called in a new update work process. I wonder whether there is any possibility there this issue might be caused because the update function module fails to get called at all? ( perhaps due to heavy system load so no free update function module could serve the table B update ? )
    If update function module fails to execute, is there any system utility to record this? That is to say, will it be recorded in such as SM13 or SM21?
    Looking forward to your expertise on this topic!
    Best regards,
    Jerry

    Hello friends,
    Thanks a lot for your interests on this issue. I update all my findings:
    1. issue background: this issue occurs in SAP CRM Channel manageement Solution, software component CRM-CHM-POS.
    2. due to some limitations, the table CMSD_CI_HISTORY and history table are not updated in the same LUW. Instead the first one is updated in normal work process while the other is done in update work process. Since I am not the original developer I didn't know the whole complex scenario ( I did see this is done delibrately in note 1764006 - CMS:Sell In Release creating PB with zero available quantity ).
    So for the moment we have to accept this design.
    3. during our testing ,we ensure COMMIT WORK is always called.
    4. So why sometimes the first table update fails, however there is no hint at all for this failure in the system like ST22 and SM21 ?? ( forget SM13, since it is updated in normal work process ).
    The root cause is the flaw of SAP code below.
    The code has planned to raise exception if insertion failed due to duplicate records to be inserted.
    Unfortunately, the fact is if we use "INSERT db FROM TABLE xxx" to insert records into database and some record already exists with the same key, it will result in a termination but SY-SUBRC is STILL 0; Just compare it with single insertion using "INSERT db FROM <work area>", in the same error situation, processing does not terminate, and SY-SUBRC is set to 4.
    As a result in this case even the insertion fails, line 29 will never be executed as sy-subrc is always 0. Since the insertion fails and the exception is caught without any notification, so customer sufferred because they do not know what has happened.
    Best regards,
    Jerry

Maybe you are looking for

  • Tables with Spatial Columns sizing issues

    Oracle EE latest everything So I have a table of link data as in: describe links ; Name                            Null?    Type ID                                  NUMBER NETWORK_ID                             NUMBER BEG_NODE_ID                     

  • Migrate database from UTF-8 to AL32UTF8

    We've heard that support for the UTF-8 characterset is going to peter out. Our databases are all in the UTF-8 characterset, so we are considering migrating to AL32UTF8. Any issues we need to consider, or is it simply a case of switching the database

  • Bad VGA Board

    I had been having problems with severe texture thrashing in games and have tried several things to fix it.   Finally, I installed a new board and it fixed the problem.  The first board stopped working in 3d games. What can I do about my MSI board?  I

  • Call Java Method on Commanlink action without page refresh

    Hi, I have a radio button in my application which on click calls a new JSP page inside DIV tag of the same JSP. Now before calling that JSP Page i want to perform some functionality . So i placed a commandlink on radio like this - <h:commandLink acti

  • Anyone recommend a good skin for the touch?

    I am going to try and pic up 1 at macworld today. I am looking for something that works well and does not add to much bulk to the device. thanks