How to create loop expression in BRF ?

Hi ,
I have a requirement . I have a table as input parameter in a fuction signature . I need to loop at that table and check if a particular field in the row is initial. If yes , then I need to return the message with plant info in the current row concatenated with error message.
Please advise.
Thanks,
Jayashri

Hi,
I had this similar requirement. Below are the steps I followed. It may be helpful to you.
Step 1:- Created an internal table structure in events class. (Inherited CL_EVENT_BRF to ZCL_EVENT_BRF and added this internal table).
Step 2:- After creating an object for event in runtime, assign your application internal table to the newly added itab of event object so that it will be in scope while executing action.
Step 3:- Create an action with action class of executing function module. In this function module you can write code to look for a field with initial value and update the same table with any other desired data.
Step 4:- After control returned from event processing, Event object will have all the updated values from function module.
Now assign event->itab to application itab.
In this approach you are actually applying business rule using code in function module. But you are still triggering this event using BRF. That means you have good control of when to execute function module and when not to using expression in BRF.
Thanks,
Amara.

Similar Messages

  • How to create an expression using distinct()?

    I want to create an expression for the following SQL statement:
    select distinct aCol from mytable where bCol = 123 and cCol = 'something';
    My expression without using the distinct() is followed:
    Expression exp = new ExpressionBuilder().get("bcol").
    equal(123).and(new ExpressionBuilder().
    get("cCol").equal("something"));
    ReportQuery query = new ReportQuery(mytable.class, exp);
    query.addAttribute("aCol");
    Vector queryResult = (Vector)toplinkSession.executeQuery(query);
    Where can I place the "distinct()" in this expression. I tried several ways, but TopLink always created the SQL statement with the 'distinct()' in the wrong place. I noted someone also had this problem and I tried the solution posted by Doug Clarke, but still did not work for me.
    thanks

    Hi,
    You need to call useDistinct() on the query to generate the needed sql.
    By the way, you need to use the same ExpressionBuilder instance to build a query object (i.e. not use New multiple times).
    King

  • How to create looping model

    Hi
    I  have  few question  about looping pattern.
    I hava 3 human activity  ( Request,  Check, Confirm)
    I want  decided check activity owner users in Request activity.
    it can be used  principal expression in potential owners.
    But  I want to decided couple of  Check activity owners and the each owners have to  process each human activity.
    I don't know how many Check activity owners before deciding owners.
    finally, process last step (Confirm) after end of all Check activity .
    Is that possible ?
    Plz, help about the pattern.

    You could try using Oracle Designer to create your diagrams. Also, it may make sense if you group the tables by functional areas
    The Techical Reference Manual for the Oracle 11i HRMS application is good example of this, since the table relationships are shown by functional area (i.e. Person data, Job data, etc.).

  • How to Create application express items like text box dynamically

    Hi all,
    I have a requirement in that i have to create a template like the one in Application express for creating the region and items.
    The main requirement is to reduce the amount of time spend in creating the items on htmldb page..
    So we are planning of creating a template where the developer at one shot will be able to define all the items used in the the page..So this reduce the amount of time taken in creating and defining each and every item .
    Developer use this template which conisist of some 100 text box which act as label for the item which we want to create on the page and there will be check box which show all the item available in htmldb like textbox, check box, select list etc. So developer will check the item he/she want to create and and set properties of it .So this is the single process for creating all the template on the page.
    Ones the template is submitted it will create the items on the page ...in a single click..
    Please do reply me with ur comments
    Thanks

    Hi,
    I wanted to do similar thing as well. I wanted to add a text field when user clicks a link or button. I was thinking about java script, but not sure how to add the text field items from outside the wizrdy things in APEX!! Possibly using the htmldb_item api, but have not worked out how yet.
    Venus

  • BRFplus: How to create an instance of User-Defined Expression Type?

    Hi,
      I've created an expression type in a System Application and marked its Access Level as Global. I've created a Class & Interface and assigned it to my Expression Type, and activated it successfully.
    Now how do use this Expression Type to create expression in my Customizing Applications?
    Do I have to make any more code changes like extending any more classes or implementing additional interfaces? (I've already created a dummy Query Class and UI class)
    Any documentation or example of how to create a user-defined Expression Type and how to use them will be very helpful for me.
    Thank you & Best Regards

    Well I was going through the PDF documents available on SDN. I came across a document which referred to a document on creating user-defined expression.
    Document Name: [BRFplus XML Export and Import|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20462066-a086-2d10-a999-c9075767ce48?quicklink=index&overridelayout=true].
    The code sample for creating user-defined expression types is available in the How to Create Custom Expression Types document
    Pg. 24
    I had a hard time looking for that document. Couldn't find it though.
    Thank you Mr. Ziegler, now I know that currently there isn't any documentation on User-Defined Expression Types. I'll be awaiting for your  document on this
    Any overview about the steps to be followed in creating a custom expression type, with a few simple steps on how to do it over here would be greatly appreciated. Especially on how to get it seen in the Create Expression Sub-Menu. Also do I have to code a web dynpro for the UI?
    Thank you & Best Regards.

  • How to create a textfile dynamically(with in the loop) with given data?

    Hi all,
    Can anyone Please guide me how to create a text file in the given path dynamically? (with in the loop) with given data.
    For example:
    <%
    String data1="name";
    String data2="address";
    for(int i=0;i<10;i++)
    create the textfile at c:/test/sample.txt//name of the each file created being "sample.txt"
    //contents of text file will be
    data1+i; //to get name1,name2.....
    data2+i// to get add1,add2........
    delete(sample.txt) //to enable to create another file in the loop with same name
    %>

    The code which Ashokan mentioned is not is not creating a file.
    i used code given below to create and write into it.
    But, not is writing into it. I don't konw, where i am going worng !
    Code
    String sample2="C:/Ash/sample2.txt";     
                                                                                    FileWriter fw = new FileWriter(sample2,true);
                                            BufferedWriter bw=new BufferedWriter(fw);
                                            bw.write("EMP ID");     
                                            bw.newLine();
    Please help
    Regards
    aSh

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to create a actionListener for individual JButton in a for loop?

    How to create a actionListener for individual JButton in a for loop? Can someone help me?

    Do you mean something like this?:
    JButton tempButton;
    for(int i = 0; i < 10; i++){
         tempButton = new JButton("Button " + String.valueOf(i));
         tempButton.setActionCommand("action" + String.valueOf(i));
         tempButton.addActionListener(this);
         // or tempButton.addActionLister(new ActionListener(){...});
         frame.add(tempButton);
    }

  • How to create form in oracle application express

    hi friends,
    i am a new person in oracle application express software.
    i just want to ask that can we use oracle application express as a front end for oracle 10g database???
    if yes then can any one tell me that how to create form in it?
    is there any connection string to connect that form with oracle 10g.
    Please do me reply soon thanks

    To this forum... please:
    Oracle Application Express (APEX)
    Greetings

  • How to create an rule with action to subtract from the event log of Ips manager express console?

    how to create an rule with action to subtract from the event log of Ips manager express console?, some knows of has an guide?.
    Thank you.
    Sent from Cisco Technical Support iPad App

    Hi,
    http://www.cisco.com/en/US/products/sw/secursw/ps2113/products_tech_note09186a0080bc7910.shtml
    HTH
    Luis Silva
    "If you need PDI (Planning, Design, Implement) assistance feel free to reach us"
    http://www.cisco.com/web/partners/tools/pdihd.html

  • How to create an infinite loop that cannot be cancelled?

    Hi , im new around java and i need a program that keeps on repeating after each each input/uses(generally meant for different user) and cannot either stop using "Cancel" or "x" while stopping only using the "stop" button
    I got a few lines of codes that look like this : String arg = "";
    do{
    JOptionPane.showInputDialog("hi");
    }while ( arg != "y" || arg!= "Y");
    and it cannot be stop with both cancel and"x"(which i wanted)
    but when i used this logic with
    Valid validUserInput = new Valid();
    do {
    userInput = validUserInput.validUserInput(a);
    switch(userInput){
    case 1 : validUserInput.optionOne(b);break;
    case 2 : validUserInput.optionTwo(c);break;
    case 3 : validUserInput.optionThree(d,e);break;
    default : validUserInput.validUserInput(f);
    }while(looping != "" || looping != " ");
    it does not really work(while it will keep looping, it can be easily stop by pressing cancelled or "x")
    So is there any logic or method that can prevent the program from being stop?
    Thankyou!

    elricscript wrote:
    "That is helpful. It gives him a direction where he can focus his research. Namely, 'how to run a program in kiosk mode' rather than 'how to create an infinite loop that cannot be cancelled.'"
    No... He already mentioned he wants to "e.g Interactive kiosk", so saying "properly kiosk it" isn't adding any new information. Rather it's just giving the person a dead point of: you're doing it wrong. Pointing out someone is wrong is not a positive enlightenment. Pointing someone in the right direction is more productive.
    >"That is helpful. It gives him a direction where he can focus his research. Namely, 'how to run a program in kiosk mode' rather than 'how to create an infinite loop that cannot be cancelled.'"
    No... He already mentioned he wants to "e.g Interactive kiosk", so saying "properly kiosk it" isn't adding any new information.
    Yes it is. He asked how to do it using some Swing trickery, and I said it won't work. Which is true. The OP didn't already know that, clearly, hence the question. Now he does. That's pretty much new information if you ask me.
    Rather it's just giving the person a dead point of: you're doing it wrong.Right. He is. However, the problem is now no longer related to Java, and not something I can help him with. You should try that: not answering questions you don't know the answer to. It's actually more helpful than posting misleading, wrong answers.
    Pointing out someone is wrong is not a positive enlightenment. I'm giving basic technical help, not yoga lessons.
    Pointing someone in the right direction is more productive.As already stated, I am as ignorant of how to make a Java application into a kiosk app as the OP is. What value can I add in light of that information? I began by answering a question that was not stated to be about kiosks. Once the question moved outside of my area of knowledge, I stopped trying to answer.
    I notice you're not giving him any help, being more interested in admonishing others as you are.

  • How to create an dialog "SAPoffice express info" in ABAP?

    Hi all,
    We would like to create a dialog "SAPoffice express info" to remind the relevant user that he must immediately check his new SAP mail in inbox.
    We see SAP system sometimes send a dialog "SAPoffice express inof" for this same purpose. For example:
    "Express document "Cannot be sent: Send Mail from ABAP Program." received from author "SAPUSER"".
    So we would like to create a dialog "SAPoffice express info" for our cas.
    If anyone know how to create a dialog "SAPoffice express info" in ABAP, please help us?
    Thanks a lot,
    Vinh vo

    Try with function module  SO_NEW_DOCUMENT_SEND_API1. using this you can send express message to sap office.
    RECEIVERS-REC_TYPE = 'B'
    RECEIVERS-REC_ID       = (user id)  " SAP user id for whom you want to send
    RECEIVERS-EXPRESS    'X'        

  • How to create particular loop

    Hi
    Can anyone tell me how to create my particular animation into a loop? The two main problems:
    - How to make the first and last frames "match", so the animation looks fluently.
    - At the moment it fades in and that is not allowed (since I need to export the movie as a loop).
    Here's the animation file: http://dl.getdropbox.com/u/175241/how_to_make_it_loop.aep
    Thanks for your time
    //MadsRH
    madsrh(a)gmail.com

    Thank you for the link I didn't know that site.
    I saw the looping videos, but I can't seem to find anything about looping particular.

  • Acquired ayrport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

    Acquired airport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

    Acquired airport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

  • How to create store procedure using cursor, and looping condition with exce

    Hi,
    I am new in pl/sql development , please help me for follwoing
    1. I have select query by joining few tables which returns lets say 100 records.
    2. I want to insert records into another table(lets say table name is tbl_sale).
    3. If first record is inserted into tbl_sale,and for next record if value is same as first then update into tbl_sale else
    insert new row
    4. I want to achieve this using store procedure.
    Please help me how to do looping,how to use cursor and all other necessary thing to achieve this.

    DECLARE
       b   NUMBER;
    BEGIN
       UPDATE tbl_sale
          SET a = b
        WHERE a = 1;
       IF SQL%ROWCOUNT = 0
       THEN
          INSERT INTO tbl_sale
                      (a
               VALUES (b
       END IF;
    END;note : handle exceptions where ever needed
    Regards,
    friend
    Edited by: most wanted!!!! on Mar 18, 2013 12:06 AM

Maybe you are looking for

  • What happens on Document.Close() in DI

    Hi! It's not documented which fields in the order that are changed when performing the Document.Close() operation. The DocStatus will be set to 'C', that we all know. Are there any more fields that are changed? Does the Close affect other tables/obje

  • Bootcamp not showing up in boot loader

    Today I needed to resize my Windows Vista Ultimate partition for work, so I used Disk Utility to crate an image from the partition. After that I used Boot Camp Assistant to remove the partition, and then create a larger partition. After this was done

  • The procedure entry point sqlite3_prepare_v2 could not be located

    Can anyone help me solve this problem. I keep getting this message on startup; +The procedure entry point sqlite3preparev2 could not be located in the dynamic link library SQLite3.dll+ I have taken Itunes 10 off and reloaded it be nothing has changed

  • Doesnt return to position on page when clicking on an article then returning

    when reading newspaper online if click on specific article to read it when you return to main paper it does not recognise where you were on the page before leaving it and returns to a random point on the page unlike chrome which drops you back where

  • Firefox hangs when click link, even to this window, or slow loading a link. WinXP

    Firefox often hangs when click link, even to this window. Sometimes closing and opening fireforx fixes it. Very, slow loading some links after a search. Seems to hang when all the google spysites are being contacted.. WinXP