Action method not being called

Using jdev 10.1.3.4 with jsf/adf bc. I have two af:table components on a jsf page. I'll call them table A and table B. In table B, I have an input text with autosubmit=true and hooked up to a valuechangelistener. One of the columns in table B is a command button. Initially, I was having problems when the user changed the input value in table B and then immediately clicked the button in table B. Sometimes when the button was clicked, the backing bean method associated with it was not executing. Thanks to Didier's advice in this forum (Re: PPR and submit I was able to get this functionality working consistently.
I still have a problem though. Table A has a command LINK as one of the columns, which executes a method in the backing bean when clicked. However, as in the scenario above, if the user changes a value in the input text in table B and in this case immediately clicks the LINK in table A, it seems that the action method behind the button in table A executes the first time but if user repeats steps (changes value of input in table B and immediately clicks LINK in table A) the action method is not called after the first time. For testing, there is no real code in the backing bean method. The only code in the action method is an sop so I can tell if the method was executed. Likewise, the value change listener method, for testing purposes, has a sop so I can tell if/when it is executed and the thread.sleep(400) code needed per Didier's workaround. I'll include the code from jspx:
In the jspx -
<afh:body firstClickPassed="true">
<h:form>
<!-- table A -->
<af:table value="#{bindings.Summary.collectionModel}" var="row"
rows="#{bindings.Summary.rangeSize}"
first="#{bindings.Summary.rangeStart}">
<af:column headerText="#{bindings.Summary.labels.PositionNbr}">
<af:inputText value="#{row.PositionNbr}"/>
</af:column>
<af:column>
<af:commandLink text="Click" action="#{backing_levelone_untitled2.buttonClicked}"/>
</af:column>
</af:table>
<!-- Table B -->
<af:table value="#{bindings.BdCommentsView.collectionModel}" var="row"
rows="#{bindings.BdCommentsView.rangeSize}"
first="#{bindings.BdCommentsView.rangeStart}">
<af:column headerText="#{bindings.BdCommentsView.labels.CommentId}">
<af:inputText value="#{row.CommentId}"
required="false" />
</af:column>
<af:column headerText="#{bindings.BdCommentsView.labels.Comments}">
<af:inputText value="#{row.Comments}"
required="false" autoSubmit="true" valueChangeListener="#{backing_levelone_untitled2.isValid}"/>
</af:column>
<af:column>
<af:commandButton text="Click" action="#{backing_levelone_untitled2.buttonClicked}"/>
</af:column>
</af:table>
</h:form>
</afh:body>
I need the backing bean method behind the LINK in table A to be fired consistently, every time user makes a change to input of table B and immediately clicks LINK in table A. It works the first time, but all subsequent attempts will not result in the action method being executed. Hope someone can help.
Edited by: user12341229 on Dec 11, 2009 3:24 PM

I'm not sure if this is considered a bug, but I found that if I use a commandLink in table A, my code doesn't work as expected. However, I found that by using a commandButton in table A the functionality works as expected. I still would like to hear some feedback on this if anyone is interested in recreating the scenario. Thanks.

Similar Messages

  • JSF: Method not being called

    Hi i've a problem that is grieving me. A method reference by a commandButton is not being called. Here's the code:
    JSP:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@page contentType="application/xhtml+xml"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title></title>
    </head>
    <body bgcolor="white">
    <f:view>
            <f:loadBundle basename="sisard.maqueta.web.resources.ApplicationMessages" var="messages"/>
         <h:form id="newBookForm">
                <h2><h:outputText value="#{messages.welcomeMessage}" />:</h2>
                <h3><h:outputText value="#{messages.insertnewbook}" />:</h3>
                    <table>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.code}" />:
                            </td>
                            <td>
                                <h:inputText id="code" value="#{GestionLibros.code}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.example}" />:
                            </td>
                            <td>
                                <h:inputText id="example" value="#{GestionLibros.example}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.title}" />:
                            </td>
                            <td>
                                <h:inputText id="title" value="#{GestionLibros.title}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.yearpublication}" />:
                            </td>
                            <td>
                                <h:inputText id="datePublication" value="#{GestionLibros.datePublication}">
                                </h:inputText>                       
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.isbn}" />:
                            </td>
                            <td>
                                <h:inputText id="isbn" value="#{GestionLibros.isbn}">
                                </h:inputText>                       
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.cifeditorial}" />:
                            </td>
                            <td>
                                <h:inputText id="cifeditorial" value="#{GestionLibros.cifEditorial}">
                                </h:inputText>                       
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <h:outputText value="#{messages.nifautor}" />:
                            </td>
                            <td>
                                <h:inputText id="nifautor" value="#{GestionLibros.nifAutor}">
                                </h:inputText>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                            </td>                       
                        </tr>
                    </table>
                    <h:commandButton id="submit" action="#{GestionLibros.insertNewBook}" value="Inserir"/>               
            </h:form>
    </f:view>
    </body>
    </html>The backing bean:
    package sisard.maqueta.web.cases.case01.view;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import sisard.maqueta.sgl.model.exception.SGLException;
    import sisard.maqueta.sgs.model.exception.StockException;
    import sisard.maqueta.web.com.SGLManagedBean;
    import sisard.maqueta.web.com.ExceptionUtil;
    import sisard.maqueta.web.factory.DelegateFactory;
    public class GestionLibroManagedBean extends SGLManagedBean{
        private String code;
        private Long example;
        private String title;
        private Calendar datePublication;
        private String isbn;
        private String cifEditorial;
        private String nifAutor;
        public GestionLibroManagedBean() {
        public String insertNewBook() throws SGLException, StockException,
                                             Exception {
            DelegateFactory.getInstance().getLibroDelegate().insertarLibro(
                code,
                example,
                datePublication,
                isbn,
                title,
                cifEditorial,
                nifAutor);
                return "showBooksFound";
        public void setCode(String code) {
            this.code = code;
        public String getCode() {
            return code;
        public void setExample(Long example) {
            this.example = example;
        public Long getExample() {
            return example;
        public void setTitle(String title) {
            this.title = title;
        public String getTitle() {
            return title;
        public void setDatePublication(Date datePublication) {
            Calendar gregorianCalendar = new GregorianCalendar();
            gregorianCalendar.setTimeInMillis(datePublication.getTime());
            this.datePublication = gregorianCalendar;
        public Date getDatePublication() {
            return datePublication != null ? datePublication.getTime() : null;
        public void setIsbn(String isbn) {
            this.isbn = isbn;
        public String getIsbn() {
            return isbn;
        public void setCifEditorial(String cifEditorial) {
            this.cifEditorial = cifEditorial;
        public String getCifEditorial() {
            return cifEditorial;
        public void setNifAutor(String nifAutor) {
            this.nifAutor = nifAutor;
        public String getNifAutor() {
            return nifAutor;
    }faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
      <!-- ##################################################### -->
      <!-- MANAGED BEANS CASO DE USO 01- LIBROS -->
      <!-- ##################################################### -->
      <managed-bean>
        <managed-bean-name>BuscarLibros</managed-bean-name>
        <managed-bean-class>sisard.maqueta.web.cases.case01.view.BuscarLibroManagedBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <managed-bean>
        <managed-bean-name>GestionLibros</managed-bean-name>
        <managed-bean-class>sisard.maqueta.web.cases.case01.view.GestionLibroManagedBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
        <!-- ######################################## -->
        <!-- NAVIGATION RULES CASO DE USO A01-DATOS ADMINISTRATIVOS DE USUARIO -->
        <!-- ####################################################### -->
        <navigation-rule>
            <from-view-id>/searchBooks.jsp</from-view-id>
            <navigation-case>
                <from-outcome>showBooksFound</from-outcome>
                <to-view-id>/searchBooks.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
                <from-outcome>insertNewBook</from-outcome>
                <to-view-id>/insertNewBook.jsp</to-view-id>
            </navigation-case>       
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/insertNewBook.jsp</from-view-id>
            <navigation-case>
                <from-outcome>showBooksFound</from-outcome>
                <to-view-id>/searchBooks.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>   
    </faces-config>Thanks in advance.

    Thanks for your reply. The problem was with Date datePublicacion. It was missing a converter.
    java.util.Date is deprecated. Is there a chance to use java.util.Calendar?

  • JSF 1.2 Rendered decode method not being called

    I've been banging my head about this one, I have a custom component with:
    TagClass
    RendererClass
    ComponentClass
    The encodeBegin is running fine in the renderer class, but the decode method is never being called - and it does properly over ride the super class method:
    public class UIRendererClass extends Renderer {
    public void decode(FacesContext context, UIComponent component) {
    // Do some stuff
    The output always renders correctly - but it never calls the decode method (which updates some other page components), proved with logging and forced exceptions.
    I'm using SJAS 9.0 FCS and Facelets 1.1.11, anybody any ideas?

    Hi,
    I can't use my own components with JSF 1.2 and facelets and Tomcat 5.0.28, so I will be very grateful if you can send to a small working example (i.e. project) of using custom components.
    Thanks in advance

  • Action method not called in Backing Bean

    I am using <x:inputFileUpload> tag inside my jsp page. I am trying to call action method when clicking button, but action method not called.
    My jsp page:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
    <html>
         <head>
              <title>File upload Test</title>
         </head>
         <body>
              <f:view>
                   <h:form id="form1" enctype="multipart/form-data">
                        <h:messages id="asdghsda"/>          
                        <h:outputText value="This is file upload page functionlaity POC" />                                   
                        <h:inputText value="#{fileUploadBean.textField}" />
                        <x:inputFileUpload id="myFileId" value="#{fileUploadBean.myFile}" storage="file" required="true"/>                    
                        <h:commandButton action="#{fileUploadBean.storeFile}" value="Enter here" />                    
                        <h:commandLink value="Clicl Here!!" action="#{fileUploadBean.storeFile}"></h:commandLink>
                   </h:form>               
              </f:view>
         </body>     
    </html>
    My backing bean:
    package com.beans;
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import org.apache.log4j.Logger;
    import org.apache.myfaces.custom.fileupload.UploadedFile;
    public class FileUploadBean {     
         private static Logger logger = Logger.getLogger(FileUploadBean.class.getName());
         private String textField;
         private UploadedFile myFile;
         public UploadedFile getMyFile() {
              logger.info("inside get method");
         return myFile;
         public void setMyFile(UploadedFile myFile) {
              logger.info("inside set method");
              this.myFile = myFile;
         public void storeFile(){          
              logger.info("Inside the storeFile method");
              logger.info("The text field value: " + getTextField());
              try {
                   InputStream in = new BufferedInputStream(myFile.getInputStream());
                   logger.info("The string is: " + in.read());
                   System.out.println(in.read());
                   File f = new File("D:\\share\\sample.txt");               
                   OutputStream out = new FileOutputStream(f);
                   out.write(in.read());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              logger.info("Exit from the storeFile method");
         public String getTextField() {
              return textField;
         public void setTextField(String textField) {
              this.textField = textField;
    My web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>MyJSFProject</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>FacesServlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Can someone help me on this? I need urgently.

    One straight and simple answer which i can give you method associated to action attributes always returns a java.lang.String Object.
    REF :
    action:
    =====
    If specified as a string: Directly specifies an outcome used by the navigation handler to determine the JSF page to load next as a result of activating the button or link If specified as a method binding: The method has this signature: String methodName(); the string represents the outcome
    source : http://horstmann.com/corejsf/jsf-tags.html#Table4_15
    therefore
    change
    public void storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    }to
    public String storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    return "success";
    }else where you can make use of actionlistener property in the following senario.
    but the method signature has to be void storeFile(ActionEvent ae)
    and could be use like
    <h:commandButton actionlistener="#{fileUploadBean.storeFile}" action="success" value="SUBMIT" /> Hope that might help :)
    REGARDS,
    RaHuL

  • Resource action not being called

    The executable file not being called
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='AfterUpdate'>
    <ResTypeAction restype='Red Hat Linux' timeout='6000'>
    <act>
    /usr/local/vistaplus/vadmin c=mu us=$(USER_NAME) pas=$(USER_PASSWORD)
    exit
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>

    yep, sorry for reposting but in that post I said I had it fixed but obviously its not. What's really change is that I cant recreate this problem on my laptop but on our dev and test environments this problem still exists. My initial thoughts is that this is an environment problem but i'm not totally convinced as the was settings etc are the same as on my laptop.

  • BUG: Return listener not being called for manually launched dialog

    Hello all,
    I have found a bug in the dialog framework. To set the stage, I have a ADF Faces page with a command button on it. The partial submit property is set to "true" and the use window property is also set to "true." I also have the returnListener property set to a method in the backing bean. When I set the Action property of the command button to a global navigation rule that launches a dialog, the return listener is being called correctly when I dismiss the dialog.
    However, when I launch the dialog from an action listener, the return listener is not being called. Here is my action listener code:
      public void al (ActionEvent ae)
        FacesContext context = FacesContext.getCurrentInstance();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot dialog = vh.createView(context, "/infrastructure/ICConfirmDelete.jspx");
        HashMap properties = new HashMap();
        properties.put("width", new Integer(300));
        properties.put("height", new Integer(300));
        AdfFacesContext.getCurrentInstance().launchDialog(dialog, null, ae.getComponent(), true, properties);
      }and here is my return listener:
      public void rl(ReturnEvent re)
        System.out.println("in return");
        System.out.println((String) re.getReturnValue());
      }OK - here's an update. If the command button is in the Actions facet of the page, everything works as expected. However, if the button is in the selection facet of a table (inside of afTableSelectOne) - it does not work properly as documented here. It also works correctly if the button is in the actions facet of the table. I think that this is a bug and needs to work - my use case (as you might tell from my code) is to do a delete confirmation dialog. My short-term workaround is to use the Action instead of ActionListener property on the command button, but the issue I have is that the pop-up dialog is just a tad too small, and is showing scrollbars.
    Regards,
    John
    Message was edited by:
    John Stegeman
    Added additional information about tableSelectOne

    Gabrielle,
    Sorry for the confusion.
    What does not work:
    Initiating a dialog from the ActionListener attached to a command button (where the command button is inside an afSelectTableOne) will not fire the returnListener when the dialog is closed.
    What does work:
    Initiating a dialog by returning a dialog-based navigation rule (e.g. a string starting with "dialog:") from the Action attached to a command button (even if the command button is inside an afSelectTableOne) - the return listener is called when the dialog is closed
    What also does work:
    Initiating a dialog with either method (Action or ActionListener) when the command button is elsewhere on the Page (e.g. in the Actions facet)
    Hope this clarifies the bug. I could send a test case if desired.
    Kind regards,
    John

  • MethodBinding from commandLink not being called

    Hello,
    I am building a dynamic datatable and everything is being rendered fine. However, now I want to implement row selection on the table and am doing so by rendering a commandLink on each row that the user can click to select the row. I would like to bind this to an action method in my bean and have so far been unable to invoke the action method when I click on the link. Here is my code:
    UICommand comm = new UICommand();
    MethodBinding mbButton = app.createMethodBinding("#{myBB.buildModel}", null);
    comm.setAction(mbButton);
    code]
    And my backing bean is defined in faces-config as myBB.  In that backing bean, I have:      public String buildModel() {
         logger.info("BuildModel invoked");
         return "stay";
    But buildModel is not being called at all when I click the link on the page. What am I missing?

    Figured it out.
    You need to set an ID for each comm, also. Adding a call to comm.setId(<unique ID>) fixed the problem.

  • Purchase order ME_PROCESS_PO_CUST  not being called

    Hello,
    I've created an implementation of  ME_PROCESS_PO_CUST, which is automatically migrated to Enhancement (I'm in Netweaver 2004s).
    Then I go to ME21n and the badi is not being called. It is active, I have breakpoints inside the various methods, and I can create a PO from start to finished without opening debug mode.
    Is there any problem with ME_PROCESS_PO_CUST in ECC 6.0?

    hi,
    goto se18 and give definition name and click display button.
    if "multiple use" check box is  not checked means  it is a single use.
    that means for the standard badi definition can any number of implementations,
    but only one will be in active state others in inactive mode.
    u can check all the detail by goingin se18 -> implentation menu->overview
    if implementation is active it will glow in yellow color.all other inactive in blue color (description color).if u want u code to execute go to  others and press(shiftf8) to make others inactive then come to ur code and make it active ctrlf3.
    then it will work.this is for single use.
    for multiple use system will predict its sequences. we abaper no need to worry of the sequences.because if it is multiple use all implementation are in  active stage .so all the code will work in some sort of order.
    thanx
    zenthil

  • DoFilter() method is being called only at the second request

    Hi,
    I have implemented a simple Filter class
    Here is the code
    public class BasicFilter implements Filter
    FilterConfig config;
    public void init(FilterConfig config)
    System.out.println("Filter Initialised");
    this.config = config;
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws ServletException,
    IOException
    System.out.println("In The doFilter() method");
    ServletContext sc = config.getServletContext();
    sc.setAttribute("Hello","Hell");
    chain.doFilter(request,response);
    public void destroy()
    System.out.println("In the destroy method");
    and a simple servlet
    public class FilteredServlet extends HttpServlet
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Filter Demo</TITLE></HEAD>");
    out.println("<BODY>");
    out.println(getServletContext().getAttribute("Hello"));
    out.println("</BODY>");
    out.println("</HTML>");
    Now when i start the server (Tomcat 4.0) i find that the filter's init() method is being called which is fine. But when i request the servlet (FilteredServlet) the doFilter() method is not called and only when i "refresh" it or call it a second time that the doFilter() method is actually called. What could be the reason for this.
    Help will be greatly appreciated.
    Thank You,
    Phani Kanuri

    Hi jleech,
    Thanks for the reply. But deleting all the temporary internet files as also the history files does not seem to have an effect. the doFilter is being called only at the second request. or did i miss anything??
    Please help. unable to complete the assignment because of this.
    Thank You,
    Phani Kanuri

  • IF_EX_HRPAD00INFTY~IN_UPDATE not being called

    Hi,
    I am trying to capture the employee information (InfoType 0002) during new hire action and send the information to an external system. IF_EX_HRPAD00INFTYIN_UPDATE not being called while maintaining InfoType 0002. However, IF_EX_HRPAD00INFTYIN_UPDATE is being called for other info types such as 0000, 0001, 0008 etc.
    Is there any other BAdi we use to archive the same functionality?
    Thanks,
    Vimalan

    Hi Vimalam
    This BADi Sud be called.
    Anyways U can use UserExit PBAS0001 to meet ur requirement.
    Award points if helpful.

  • Module Function not being called by the planning function

    Hi all,
    I am having a problem with the MF assigned to the planning function of my planning level. It's not being called when executing the layout using Planning Folder. This action is suppose to be taken when saving the entries of the layout (I have made the proper setting in planning folder)
    When I execute the planning folder and manually introduce data in the layout and save, the MF is not executed but data is loaded in the infocube anyway. I have put a breakpoint in the MF but never stops, as never has been called.
    Please, could anyway let me know his comments?
    Best Regards!
    José.-

    Hi Jose,
    There could be two reasons why the FM might not work.
    1. The level selections for which the FM runs and the Layout gets executed might different and the FM is not getting the Requisite Data set to read data from .
    The solution could be check the level selections and execute the FM .Also after you save the Data ,please do an F9 to check the display message.Chekc if oyu Function module is reading any data set at all(ifit says 0 read ,0 changed statement i mean).
    2. The second reason could be that the FM is not initialised at all.To initialise the FM you need to write an initialisation FM and place it in the INIT part of the Exit function.This creates dummy records if your data set is initially empty which is the case here.Here is a sample code you might get reference from .
    Create one dummy combination
    If we don't do this, the upload won't work since the second function
    will not be executed at all in case no transaction data exists so far.
    The combination must be a subset of the planning level!
    " >>> BEGIN INSERT
      IF l_count = 1.
        EXIT.
      ELSE.
        CLEAR ls_chas.
        CLEAR: ls_chasel.
        LOOP AT ito_chasel INTO ls_chasel.
          CLEAR: ls_charng.
          READ TABLE ls_chasel-t_charng INTO ls_charng INDEX 1.
          IF sy-subrc = 0.
            ASSIGN COMPONENT ls_chasel-chanm OF STRUCTURE ls_chas TO <f>.
            IF sy-subrc = 0.
              <f> = ls_charng-low.
            ENDIF.
          ENDIF.
          CLEAR: ls_chasel.
        ENDLOOP.
      ENDIF.
      " <<< END INSERT
      COLLECT ls_chas INTO lto_chas.
      eto_chas = lto_chas.
    ENDFUNCTION.
    Hope this helps.
    regards
    Sai Vishnubhatla

  • Classic BADi not being called

    Hello Experts... Your kind and expert advice is deeply appreciated...
    We had implemented a BADi in CRM4.0 and that is being called and working alright.
    We are now upgrading CRM4.0 to CRM7.0. With this change classic BADis is not being called.
    Difference I noticed in calling program is that in CRM 4.0 BADIs were pulled/instantiated by factory method. However in CRM 7.0 it uses "GET BADI" command. But since "GET BADI" does not fetch implemented BADi, it throws BADI not found exception.
    - I searched and learnt that "Get BADI" can fetch classic BADIs and there is no need to migrate classic BADIs to new BADIs ...(if I am not wrong)..
    - Also that I re-activated classic BADi in CRM 7.0 but still "Get BADI" does not pulled/instantiate BADi.
    - Also I search to have report "ENH_BADI_ADD_MIGR_INFO" run to create link between Classic and new BADi. Will this work?
    Kindly advice to call classic BADi in CRM 7.0? Appreciate it. Thanks!
    Warm Regards,
    Kalpit

    Hi,
    Check if this BADI is migrated to enhancement spot (In attributes TAB). If yes, you need create an enhancement implementation for
    this BADI.
    Thanks,
    SKJ

  • Newbie question: dataOfType not being called

    Hi, I'm new to Cocoa and GUI programming. I'm working my way through the Hillegass book, and I'm trying to do the challenge at the end of chapter 18. It involves saving, which was covered earlier in the book, but for some reason I can't get "dataOfType" to work. I've put in a NSLog line at the beginning, so I know the method is not being called when I save. I have it as a method of the MyDocument class, but I haven't done anything special to it. Can anyone tell me what I need to do to get it to be called? Did I miss a link in interface builder?

    I see you haven't gotten any responses, and I don't know enough to help you with this, but I just wanted to recommend that it might help if you posted the code that you're dealing with (or at least the relevant parts of it) -- I think that will often help the devs around here get an idea of how to help. You can post the code between two {code} tags and it will format it nicely for you.

  • ACE for CRM 2007-AFO method not getting called!

    Hi Experts,
    I am trying to implement ACE for CRM 2007.The only issue/concern is the Actor From Object(AFO) method is not being called even once.
    I was assuming that every method is called at the time of right's activation.
    I placed breakpoints in all the 5 methods, but only method Actor from User(AFU) and Object by Filter(OBF) were being called.
    Can anybody suggest at what point the method-Get Actors From Objects is called?
    Thanks and Regards,
    Rohit

    Hi Rohit,
    the method Actors-For-Object isnt used any more by SAP. Always use method Actors-For-Objects.
    This method should be called, when objects pass the method "object_by_filter" (runtime --> check_object..., activation --> get_object..).
    Perhaps there are no objects passing your OBF-methods? Can you check the output of your method?
    Regards,
    Mario

  • Listeners keyDown are not being called when keyDown in an popup l

    For some reason the listeners titleWindow_keyDown are not being called when keyDown in an popup like so:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                               xmlns:s="library://ns.adobe.com/flex/spark"
                               xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"  keyDown="titleWindow_keyDown(event);" >
        <s:TitleWindow title="Edit Complaint" close="close()">
    private function titleWindow_keyDown(evt:KeyboardEvent):void {
                        if (evt.charCode == Keyboard.ESCAPE) {
                            close();
    Any ideas friends??

    But in my code it is a child inside SkinnablePopUpContainer:
    <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                               xmlns:s="library://ns.adobe.com/flex/spark"
                               xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300"  keyDown="titleWindow_keyDown(event);" >
        <s:TitleWindow title="Edit Complaint" close="close()">

Maybe you are looking for

  • How to use standard classes to create custom modulepool program like ME21N

    I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no

  • Scroll bar to the CELL in the screen

    Hi All, Having a table with four fields , 1.Text id, 2.Text type 3.Short Text 4.Long Text. when display the records into the GRID, for the long text cell i need scrollbar to b there to that window. How i can provide scrollbar for cell long text. Rega

  • My touchscreen doesn't work!

    I have an Ipod touch 4th generation and a couple days ago, my touchscreen just stopped working in certain places. It has a password so when I can actually access the lock keypad, I can only tap 4, 5, and 6. One, 2, 3, 7, 8, and 9 will not respond to

  • Urgent: Unicode conversion - table splitting

    Hi all, I am having a problem when trying to perform the export step of the unicode conversion on ERP2005, MSSQL server 2005. Due to previously very long runtime, I am trying to use the table splitting option. I have performed the "Table Splitting Pr

  • Yet another discussion about "dwscriptsExtData.js" (sorry)

    Hello, everyone, I've found (via Google) a few threads in these forums about getting error message popups relating to dwscriptsExtData.js, and how DW is running slow, and whatnot. So far, the solutions that people have been offering are not working,