Binding data to custom method in DataAction

hi!
I am using adf uix and struts.
I am confronted with the following problem: I created a DataAction for calling a custom method of an ApplicationModule. How do I bind data from the DataContainer in the struts-config?
All how-tos figure out only the binding through ${param.<paramName>}.
Isn't it possible to address the DataContainer through ${data.<UIModelName>.<BindingName>}? My intention is to bind a column value from an uix edit form to a custom method!
I attached an excerpt for the illustration of my problem:
<action name="DataForm" path="/RolleZuordnen" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataAction">
<set-property property="modelReference" value="RolleZuordnenUIModel"/>
<set-property property="methodName" value="RolleZuordnenUIModel.addRolleToBenutzer"/>
<set-property property="resultLocation" value="${requestScope.methodResult}"/>
<set-property property="numParams" value="2"/>
<set-property property="paramNames[0]" value="${data.editMitarbeiterUIXUIModel.Login}"/>
<set-property property="paramNames[1]" value="${data.editMitarbeiterUIXUIModel.DrId}"/>
<forward name="success" path="/editMitarbeiterUIX.do"/>
</action>
with regards
roland

Have you reviewed the ADF Binding Primer whitepaper...
http://www.oracle.com/technology/products/jdev/collateral/papers/10g/ADFBindingPrimer/index.html
It has a section on binding to method return values.

Similar Messages

  • Using a Custom Method to Set the Bind Parameters in a View Object

    Hi all:
    i tried to follow the tutorial in oracle jdeveloper 10.1.2 documentation about creating a simple search page but i'm receiving this error when i tried to test the application module after i added a where clause to my view object(i.e where dept_id= :1) and define a custom method to bind variables in the appmodule class
    i keep getting this error
    JBO-27122: SQL error during statement preparation. Statement: SELECT Employees.EMPLOYEE_ID, Employees.FIRST_NAME, Employees.LAST_NAME, Employees.SALARY, Employees.DEPARTMENT_ID Employees.DEPARTMENT_ID = :1
    ????? IN ?? OUT ????? ?? ??????:: 1
    when i used the setwhere metohd it works
    i'll apprciate ur answer
    regards

    I have the same problem:
    Just like in Toystore Demo I am calling the following method in my VO:
       * Find an account by username and password, leaving the account
       * as the current row in the rowset if found. BUT EVEN IF WE FIND ACCOUNT BY
       * USERNAME AND PASSWORD, IT WILL RETURN FALSE IF THE ACCOUNT IS DISABLED!!!!
       * @param username the username
       * @param password the user's password
       * @return whether the user account exists or not
      public boolean findAccountByUsernamePassword(String username, String password) {
         * We're expecting either zero or 1 row here, so indicate that
         * by setting the max fetch size to 1.
        setMaxFetchSize(1);
        setWhereClause("staff_id = :0 and passw = :1");
        setWhereClauseParam(0, username);
        setWhereClauseParam(1, password);
        executeQuery();
        RowSet rs = this.getRowSet();
        String userEnabled = new String("N");  // Default setting
        if (rs != null){
          int currentSlot = rs.getCurrentRowSlot();
          Row r = rs.getCurrentRow();
          if (r == null){
             r=rs.first();
             currentSlot = rs.getCurrentRowSlot();
          //check if we found the user
          if (currentSlot == SLOT_VALID){
            Object[] av = r.getAttributeValues();
            LoginUtils.userLoggedIn    = av[0].toString();  // '0' is username
            LoginUtils.userFirstName   = av[1].toString();  // '1' is user first name
            LoginUtils.userAccessLevel = av[6].toString();  // '6' is user level
            LoginUtils.userEnabled     = av[7].toString();  // '7' is user level
            userEnabled = av[7].toString();
        boolean found = (first() != null) & userEnabled.equals("Y");
        setWhereClause(null);
        setWhereClauseParams(null);
        setMaxFetchSize(0);
        return found;
      }It gives the same exception...
    JBO-27122: SQL error during statement preparation. Statement: SELECT Staff.STAFF_ID, Staff.FIRST_NAME, Staff.MIDDLE_NAME, Staff.LAST_NAME, Staff.POSITION, Staff.PASSW, Staff.USER_LEVEL, Staff.ENABLED, Staff.PHONE, Staff.EMAIL FROM STAFF Staff WHERE (Staff.STAFF_ID = :0 and Staff.PASSW = :1)
    This worked in 10.0.1.2 but now it does not work in 10.0.1.3!!!

  • Not able to save bindings when calling bindings.getOperationBinding("update") in customized method.

    Hi All,
    I'm new to ADF and trying to learn it.
    I'm using JDev version 11.1.1.6.0.
    My use case is mention below :
    1. I've created 2 Bounded task flows and calling one task flow from another task flow using task flow call activity.
    2. In child task flow, i've created view activities with Train component. View activities have text fields, radios buttons, tables etc which can be filled by user.
    3. I want to save the page data to payload if I move to next view activity using Next button or by train bar.
    To accomplish this scenario, I'm calling a customized actionListener on click of Next button/Train Stop Bar in which I'm using below mention code :
    BindingContext bindingContext = BindingContext.getCurrent();
    BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
    OperationBinding obj = bindings.getOperationBinding("update");
    if(obj != null){
         obj.execute();
         if(!obj.getErrors().isEmpty()){
              System.out.println("Not able to save data......");
         else{
              System.out.println("able to save data......");
    But I'm not able to save page data to payload/bindings. If i close the window using browser close button and move back to previous train stop in which i've filled the data, the data get lost and all the text fields/Radio button become empty.
    If I use Save button provided by Oracle BPM, then I'm able to save it. and data reflected even after if i close the window using browser close button.
    So I also try to use the below acode but did not get any success :
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application app = fctx.getApplication();
    ELContext elContext = FacesContext.getCurrentInstance().getELContext();
    InvokeActionBean invokeActionBean = (InvokeActionBean)app.getELResolver().getValue(elContext, null,  "invokeActionBean");
    invokeActionBean.setAction(actionEvent);
    invokeActionBean.action();
    Can somebody please let me know, what am I doing wrong here or if I'm missing anything.
    Any pointers/suggestions for its resolution are welcome.
    Thanks in advance.

    Hi Timo,
    Yes, it is the same binding which is called from BPM Save button.
    I did not use the debugger but i tried to print the OperationBinding object which was showing me proper binding for update.
    Even when i tried to print the return value of invokeActionBean.action(); method, it print the proper string "closeTaskFlow".
    So if I see it logically, then I'm just trying to call the methods of InvokeActionBean from my customized method.
    If methods of InvokeActionBean not being accessed, or if it was not getting called, then it should not print the "closeTaskFlow" as return value.
    I only want to save page data into bindings once I'll move away from page precisely on moving next.
    If there is any other work around for this issue, please let me know.
    I've also tried to use Explicit/Implicit save points provided by ADF but that did not work too.

  • Is it possible to call a custom method in App Module from a backing bean?

    I would like to know if a custom method in App Module can be called from inside a backing bean.
    I am not sure if it is logically right to call, from a backing bean, a custom method in App Module. But would like to know if that makes sense or if it is possible.

    Hi..
    Yes it is possible.You have to add that method for client interface of AppModule.Now you can see that method in Data Controls(Refresh the data control). To call this method using bean it should add as method action to bindings(Click Bindings>+>methodAction>and Create action binding).
    Now you can call this method in bean class.
    Check following example use this concept to execute view criteria
    http://adf-lk.blogspot.com/2011/05/oracle-adf-create-view-criteria-and_4727.html

  • JSF: Problems adding rows to table with custom method

    Since this being my first post, I find it only appropriate to thank the development team for such a huge addition to the application development world. You guys rock. You have cured my Java identity crisis. That being said...
    I have been stumped for days. I'm making a simple web cart. I am trying to get two string values (name and price) passed through a custom exposed application module method ran on a backing bean. What I want the exposed VO module to do is, upon receiving the two strings, create a new row on the empty data controlled table I have built to store them. Basically I just need to add rows to a table with my custom managed bean. Most recent version.
    I have written a test method to make sure my backing bean and exposed app module impl were working. This test works:
    //WORKS
    //CartInfo.java   
        public String cb1_action() {
            AppModuleImpl am = new AppModuleImpl();
            am.testMethod();
            return null;       
    //AppModuleImp.java
        public void testMethod() {
            System.out.println("WORKS");      
        }I found some code on how to add rows and unfortunately it isn't working out for some reason. Here is what is producing the error "Caused By: java.lang.NullPointerException" :
    //DOESN'T WORK IN CUSTOM METHOD BUT WORKS WHEN DRAGGED ON TO THE PAGE AS A COMMAND BUTTON
    //CartInfo.java
        public String cb1_action() {
            AppModuleImpl am = new AppModuleImpl();
            am.testMethod("test", "test");
            return null;
    //AppModuleImp.java
           public void testMethod(String pName,String pPrice) {
            ViewObjectImpl vo = this.getCartVO1();
            Row r = vo.createRow();
            r.setAttribute("NAME", pName);
            r.setAttribute("PRICE", pPrice);
            vo.insertRow(r);
    //The VO attributes for the DC are:
    // Name : Type : Alias Name : Entity Usage : Info
    NAME : String : NAME : (blank) : Transient
    PRICE : String : PRICE : (blank) : TransientSo what I have so far is a table linked to my database. A user can select and click on a product on the row's individual Add button and using a modified selection listener, it returns the values to the backing_bean.
    Then what I want it to do is have those variables passed to the other table. I just can't put it together.
    Please if there is anyone that could send me in the right direction I would greatly appreciate it!
    Thank you,
    Jack

    if i understand you, you want to call application module method when user clicks on add button on the UI and your table is from VO
    so what i can come up for now is:
    1) create variable binding from the iterator for both name and price.
    2) on your UI action button :
    <af:commandButton actionListener="yourbean.addToCart">
    <f:attribute name="pName" value ="binding.<created name bind variable>"
    <f:attribute name="pPrice" value = "binding.<created price bind variable>"
    </af:commandButton>
    3) custom Managed Bean:
    //yourBean.java
    public void addToCart(ActionEvent e){
    // get binding here
    // use executeWitParams method to send parameter to the function "testMethod" and execute
    //AppModuleImp.java
    public void testMethod(String pName,String pPrice) {
    CardVOImpl vo = this.getCartVO1();
    CardVORowImpl r = (CardVORowImpl)vo.createRow();
    r.setAttribute("NAME", pName);
    r.setAttribute("PRICE", pPrice);
    vo.insertRow(r);
    Hope this helps...
    Let me know if not..
    Thanks
    Edited by: MavenDev on Oct 30, 2011 8:08 PM

  • Adding and Calling custom method to the application module or view object

    My project uses jheadstart 10.1.2.
    I want to run "oracle reports" from my uix page. I have coded a method which takes "VOParameter view object" as a parameter to run report.
    I have generated the input page (parameter page) which based on VOParameter view object, by using jheadstart for using jheadstart lov, date etc. advantages. But I dont know how can I add custom method on application module or view object implementation class and custom button on uix page to call from uix page.
    THANKS for your help

    Yes, method binding has been added to the page UI model.
    I have find some clue that When I darg and drop metod as a submitButton, the code "
    <SubmitButton text="runReport" model="${bindings.runReport}" id="runReport0" event="action" />"
    is added to the uix page code. I change this code like this;
    <button text="runReport" model="${bindings.runReport}" id="runReport0" event="action" onClick="submitForm('dataForm',1,{'event':'action','source':'runReport0'});return false"/>
    by adding onClick method and changed submitButton to button tag..
    Then button action is triggered. But I can not pass to the design part of the uix page. It gives me the message like that "The document is not a valid state" But it works. I dont know why?

  • Two different ways to execute a custom method in an Application Module

    I have a custom method exposed in an Application Module's Client Interface, and i know two different ways of executing it from my ADF Faces project (both works fine):
    1) Calls the method directly through the Data Control:
    MyModule service = (MyModule)JSFUtils.resolveExpression("#{data.MyModuleDataControl.dataProvider}");
    service.myMethod();
    2) Adding a Method Action in the PageDef's file:
    <methodAction id="myMethod" InstanceName="MyModuleDataControl.dataProvider"
    DataControl="MyModuleDataControl" MethodName="myMethod"
    RequiresUpdateModel="true" Action="999"
    IsViewObjectMethod="false"/>
    //Call the method from the binding container
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("myMethod");
    operationBinding.execute();
    Basically i want to know: what are the differences (pros & cons) of each approach ??

    Hi,
    In my opinion the second way have a advantage, which its method could be invoke automatically using a invokeAction on pageDef, if necessary.
    regards

  • Invoking custom methods in application modules

    Hi,
    I am absolutely new to oracle ADF.I was recently working with application module.My question is how do I call a custom method(say myCustomMeth(String str) ) residing inside my application module from my Managed bean?I saw one example where the operation(i.e. the method) was directly dragged and dropped onto the jspx page from the data control.Is it the right way of doing it?I also saw one example where operation binding was used to invoke a method inside the application module although I didn't understand the code fully.I am really confused now.Please help.
    Thanks in advance.

    user11930797 wrote:
    My question is how do I call a custom method(say myCustomMeth(String str) ) residing inside my application module from my Managed bean?You write the custom Application Module method and you expose it to the AM's client interface. By doing so, the custom operation becomes available in the AM Data Control and can be bound to your jspx page.
    I saw one example where the operation(i.e. the method) was directly dragged and dropped onto the jspx page from the data control.Is it the right way of doing it?I also saw one example where operation binding was used to invoke a method inside the application module although I didn't understand the code fully.Both of the methods that you are mentioning above are used:
    1. You can drag the custom method from the data control in JDeveloper and drop it in your page as a command button or link to create a method binding declaratively this way. The method binding is executed via some command button or link and your custom AM method is called, or
    2. You can create the method binding yourself in the bindings tab of you jspx page, add the command button in your page and define an action listener for it in your backing bean. In your backing bean action listener you can write the necessary code to execute the method binding, which will call your custom AM method.
    Hope it is clear.
    Nick

  • [ADF-UIX] passing selected items to a custom method, how?

    Hi,
    ADF-UIX can be tricky, and im stuck atm building some functionality, I hope
    someone here can point me in a good direction
    I have a multipleSelection table filled with data from a ViewObject. I also
    have 2 MessageChoice components also filled with data from 2 ViewObjects.
    I made a custom method in my AppMod accepting 3 params and dragged that method
    on to a DataAction. And I have a submit button calling the DataAction.
    Now comes the tricky part, how can I pass the selected rows (radiobuttons) and
    the selected items from my MessageChoices to my custom method.
    I know I have to change something in paramNames[0].value but what exactly, specialy
    the multiselect from my table.
    Thanks in advance for any tips :)

    "what's the application module"
    JDev 10.1.3 leverages an Application Development Framework (ADF) that you can learn about here: http://download-east.oracle.com/docs/pdf/B25947_01.pdf
    Specifically, you'll want to look at chapters 2, 4, & 8 in the developer's guide to understand the framework and to understand how to use application modules to call service methods from a JSF page. You can also search this forum as there are other threads discussing this topic, but I'd recommend reviewing the developer guide first.
    This article I also found helpful:
    http://www.oracle.com/technology/products/jdev/tips/muench/mostcommon/index.html
    From my (short) experience, I've learned that you can call methods either using a bean or service methods on the Application Module. Since I am using ADF Business Components (BC), I try to implement any methods that interact with the BC's (view objects, etc.) as service methods on the Application Module (AM). If my method needs to purely implement logic related to the UI or Navigation, then I implement a method on a bean. The other case where I implement a method on a bean is if I need to do some pre-processing (i.e., gather info. about the state of the UI) prior to calling a service method on the AM (an example of this can be found in the dev guide related to the tableSelectMany component) - so there are some cases where the bean method will call a method on the AM - but again, if the method will update the model I try to use a method on the AM to accomplish this. Understanding the ADF framework is the first step (see the dev guide), and then I'd recommend looking at the SRDemo and previous posts on this forum.
    Finally, one thing that is really cool - if you define a service method on your AM, it shows up in the data control pallette - you can drag and drop the method on the .jspx page and all of the bindings/wiring is done automatically for you (including handling passing of parameters.)
    hope this helps.

  • Calling custom methods from Nested Application Modules

    We are having a problem with passing parameters to our nested App Modules.
    We have a custom method in our nested app module and when we drag that method from our data control palette in our page everything seems to work just fine. We are binding our NamedData values to #{requestScope.<field>} where the fields are inputText controls. When we run it will execute the function but the parameters are null.
    It seems to me that the Nested App Module can not evaluate the EL expression, or in other words when it gets evaluated it returns a null.
    Can anyone help with this?
    Thanks,
    Peter

    If you use an EL expression of some hard-coded value instead of #{requestScope.XXX} does that value correctly get passed to the function?
    In other words, are you 100% sure that EL expression is not evaluating to null ?
    If you drop an AM method as a parameter form on a page, you'll see that by default it's NamedData elements use EL expressions that reference attribute bindings that are bound to local page-def variables, rather than to #{requestScope.something}

  • Getting error to bind data to dropdown list

    hay dear,
    i bind data to a dropdown list, everything gonna ok but when i run the project the web page containing the bellow error message. could anyone help me
    Exception Handler
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: java.sql.SQLException
    Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Possible Source of Error:
    Class Name: com.sun.gjc.spi.base.DataSource
    File Name: DataSource.java
    Method Name: getConnection
    Line Number: 112
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Exception Details: java.lang.RuntimeException
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Possible Source of Error:
    Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider
    File Name: CachedRowSetDataProvider.java
    Method Name: setCursorRow
    Line Number: 343
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Exception Details: com.sun.rave.web.ui.appbase.ApplicationException
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Possible Source of Error:
    Class Name: com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl
    File Name: ViewHandlerImpl.java
    Method Name: cleanup
    Line Number: 603
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.

    I'm not a guru, but I would say : your jdbc isn't working. Make sure that it's functioning properly.
    The errormesages suggest that the application can not find the datasource.
    Best Regards,
    Martijn

  • Trigger badi after giving data in custom tab of po item

    Hi,
    We have added custom tab in po item level, now we want to make those fields manditory
    for specific document type.We are using badi ME_PROCESS_PO_CUST .
    The message is getting triggered initially , but after giving data in the custom fields the badi
    is not getting triggered again.And triggers if we make changes to some other fields in po.
    So can we trigger the badi after giving data in custom tab ?
    I was trying something like this.
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM .
      DATA: l_if_header TYPE REF TO if_purchase_order_mm,
            ls_header TYPE mepoheader,
           ls_mepoitem TYPE mepoitem,
      l_if_header = im_item->get_header( ).
      ls_header   = l_if_header->get_data( ).
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = ls_mepoitem.
    IF ls_header-bsart = 'BW'.
    if ls_mepoitem-ZZONAME IS INITIAL.
    MESSAGE 'Plz enter Operator name in custom data' TYPE 'E'.
    endif.
    endif.
    endmethod.
    Any pointers are welcome..

    Solved using exit EXIT_SAPMM06E_012
    This exit will trigger even after giving data in custom tab at po item level.

  • MB_MIGO_BADI - Line item data inside CHECK_ITEMS method

    Hi All,
    I have implement MB_MIGO_BADI and i want to put a check inside the method CHECK_ITEMS where the importing parameter is line ID.
    How can I get the data for the line based on the line ID inside the check_items methods, so that I can make the custom checks inside the method and populate the error message.
    Please let me know how can we access the line item data inside the method CHECK_ITEMS.
    Thanks and Regards,
    Vijay

    Hi,
    My requirement is to use BADI MB_MIGO_ITEM_BADI and restrict the creation of GR of items which have delivery date > PO Delivery date.
    exact requirement is:-
    Invoke Badi MB_MIGO_ITEM_BADI
    Only for GR
    Check EKKO-BSART =PJ where EKKO-BELNR = MSEG-EBELN
    Check if the Po Line item has single or multiple delivery
    a) If single
    Check if MKPF-CPUDT-3 > EKPO-EEIND
    Yes u2013 Create GR
    No --- Give error message
    b) Multiple Delivery
    Check if EKET WEMNG =0
    Select EKET-EINDT where EKET-WEMNG < EKET MENGE
    Check EKET-EINDT < MKPF-CPUDT-3
    Yes u2013 Create GR
    No --- Give error message
    Error Message : u201CGR Cannot be posted as Delivery date is in future u201C
    Thanks
    Vivek

  • How to use ApplicationModule custom methods in JSP?

    I have an ApplicationModule for which I have defined several custom methods (in the ApplicationModuleImpl class). I wish to invoke these methods from a JSP. I'm having trouble getting a scriptable reference to the application module object in the JSP. I can get data from the view objects using the jbo:xxx data tags, but I can't get any sort of reference to the application module object that would allow me to invoke the methods. I have tried editing the application module to expose the methods as client methods, but still can't get a reference to them.
    My main questions:
    1. Is there a way to invoke the custom methods somewhere between the jbo:ApplicationModule tag and the jbo:ReleasePageResources tag?
    2. Is there a way to declare and use the application module without using the jbo:ApplicationModule tag? Would I ever benefit from doing this?

    Alan, here's how to call a custom method String getSomeInfo() that I've created on my application module, MyModule in this example. Also, in this example the id parameter in the ApplicationModule tag is "am" (<jbo:ApplicationModule id="am"...):
    First, edit your application module. In the app module editor, go to the Client Methods tab and move getSomeInfo into the selected list.
    Next, edit your JSP to call your custom method.
    <% MyModule myAm = (MyModule)am.useApplicationModule(); String someInfo = myAm.getSomeInfo(); %>
    You also have to add the correct import statements to the page tag in your JSP:
    <%@ page contentType="text/html;charset=windows-1252" import="oracle.jbo.*, MyModule.common.*"%>
    Hope this helps
    Blaise

  • Terminating Event for BUS2017 Custom Method

    Dear Experts,
    I have an issue with the Terminating Event of the Workflow for BO : BUS2017. The event is getting triggered but receiver is not being picked.
    I have created two events GR_103 and POST_105 in the Custom BO ZBUS2017 by delegating it to BUS2017. GR_103 is the triggering event for my workflow which I have triggered in the POST_DOCUMENT Method of the Implmentation for BADI : MB_MIGO_BADI.
    GR_103 is triggered while doing MIGO (Goods Receipt) for Movement Type 103. My Workflow is triggered perfectly and then I have used a Dialog Asynchronous Task in which I have called the MIGO Transaction for Releasing the GR Blokced Stock using the Movement Type 105. I have created a Custom Method POST in the BO ZBUS2017 and I have used the FM: MIGO_DIALOG to call the MIGO. I am trying to raise the POST_105 event in the Method MB_DOCUMENT_BEFORE_UPDATE of the Interface IF_EX_MB_DOCUMENT_BADI.  I have defined the Terminating Event for the asynchronous Task as POST_105.
    Now the event POST_105 is triggered, but SWEL says 'No receiver entered'. Even the SWEINST shows the object data as the current Work Item along with Object Key, but still receiver not picked. When I try to trigger the same event in a test report by using call transaction, then the event triggers and work item gets completed without any issues.
    Please advise.
    Below is my terminating event code.
      READ TABLE xmseg INTO wa_mseg INDEX 1.
      CONCATENATE wa_mseg-mblnr wa_mseg-mjahr INTO l_objkey.
      IF wa_mseg-bwart = '105' .
        CALL FUNCTION 'SWE_EVENT_CREATE'
          EXPORTING
            objtype           = 'BUS2017'
            objkey            = l_objkey
            event             = 'POST_105'
          EXCEPTIONS
            objtype_not_found = 1
            OTHERS            = 2.
      ENDIF.
    Regards,
    Raju.

    Have a COMMIT WORK after the function call. (At least test it - I am not sure if it will have some effects in your BADI - at least you will know whether the issue is about missing commit).
    And please use SAP_WAPI_CREATE_EVENT instead of the old function you are using.
    Also, make sure that the events will look exactly the same in event monitor SWEL when triggered from your code and when using test tool. Maybe there is some minor difference/mistake (object key, etc.) that you haven't noticed.
    Regards,
    Karri
    Edited by: Karri Kemppi on Feb 7, 2012 8:14 AM

Maybe you are looking for

  • Urgent Help! Errors in source system(RSM     340)

    Need urgent help. Issue in production. I added fields to the COPA datasource, by changing the operating concern. I recreated the datasource with the same name replicated into BW & ran delta again. The whole procedure worked fine in Dev & Quality but

  • OWB 11g rel2 Client install. Error when creating my first Workspace

    We just installed Oracle 11g rel2 Std edition database on Oracle Linux. No problem connection with Toad. Everything works fine. I have just installed OWB 11.2.0.1 client on Windows 7 and Windows 7 in XP mode. Having the same problem on both installat

  • Routing and Remote access can cause cluster network issues?

    After enabling routing and remote access on the servers, we found lots of cluster issues on our server like<o:p></o:p> Cluster Service stopped Communication was lost and reestablished between cluster nodes Unable to access witness resource Cluster re

  • Mounted .dmg search unsuccessful

    Have tried to use spotlight to search a mounted .dmg volume for a particular word in files that might contain it. It doesn't work. Have tried Easyfind (alternative app) which wasn't successful either. Anything else out there that works?

  • Some contacts not shown as being online

    I've noticed that some of my contacts on the Xbox app are not shown as online, despite them being logged on the PC and tablet next door. As a result, I can't call them, although they are able to call the Xbox. Not sure whether it's a fault with those