Insertfrom.jsf problem on submit

Hi Everyone,
I appreciate if anyone can give me a clue on what could be the problem. I wasted few hours on this without any sign on resolving the problem. I have a form with data fields that are filled and submitted. There is validation check on each field if its empty or not. Most of the fields cannot be empty. The problem is that the script is not working on all the computers that are on the same LAN. When I click on submit the script simply times out and gives blank web page with error. Strangely on couple of computers it works and on three other computers it doesn't. All computers are on the same switch same LAN. I tried installing java for desktop but it did not make any difference. The problem persist on any browser that is used on those PCs. I disabled all firewalls and security programs and problem is still there. I appreciate if anyone can give me an idea what could be the problem, am I missing some add-on, is it a specific windows issue, dont know.
Thanks
Alex

Sounds like it may be an issue with the network topology. Can machine X ping the server? Can it access other services on the same machine? If you run a simple web server on the same port can you get pages back? Etc., etc...

Similar Messages

  • JSF problem on submit event

    Hi to everyone and sorry for my english,
    i've created a web form using jsf tecnology.
    This form contain 2 combo (selectOneMenu) one of this combo contain the region of Italy, so when an user select a region in this combo, on the second combo i'm load the city of this region, for make this i've an onChange event on the first combo this event meke a submit of form, i've also setted the property "immediate" = true.
    So when the first combo chenge value if i've in the form a inputText with property required = "true" the form show me the error message "field required", but i've set immediate = "true"?
    How i can bypass this problem.
    Thanxs a lot,
    Fabio.

    You should still use a value change listener. Putting db calls into your getters should be a last resort anyways. This is because JSF will call getters multiple times, thus causing you to make multiple DB calls.
    Plus, if you don't call renderResponse(), you're going to continue seeing your error message. Setting the immediate attribute doesn't necessarily skip the validation phase, rather, it processes validation in the Apply Request Values phase.
    Anyways, messing with the JSF phases can be a tricky concept for a newer person to understand. However, you should learn what you can about the standard JSF lifecycle.
    Getting to your problem at hand... The quick version is that you need to create a value change listener, attach it to the first combo box (region1), configure the value change listener to retrieve the appropriate values from DB, then set the second combo box (city1) options, and then call renderResponse().
    Here's some code to get you started.
    In your jsp:
    <h:selectOneMenu id="region1" value="#{userBean.selectedRegion1}"
        onchange="submit" immediate="true"
        valueChangeListener="#{userBean.regionSelected}">
    </h:selectOneMenu >In your UserBean class, create the following method:
         public void regionSelected(ValueChangeEvent event)
              throws AbortProcessingException {
              //Get the selected region from the event
              String region = (String)event.getNewValue();
              //Set the selected region in your bean
              setSelectedRegion(region);
              //Call DB to retrieve the city list for the selected region
              //Build Select Items list from record set
              //Set the city list with the new select items
              setCityList(newCityList);
              //Force to render response phase so that any error messages DO NOT get
              //displayed. i.e. Skip update model phase. Use immediate="true" on the
              //component that calls this valueChangeListener so that it does not
              //run any validation.
              FacesContext.getCurrentInstance().renderResponse();
         }That should get you good and started.
    CowKing

  • Jsf problem go from jsp page to another jsp in new window

    I’ve two jsp pages attendReport.jsp and printAttendReport.jsp
    attendReport.jsp contains inputs for attend duration and employee id and command button “view” to view attendance data entered employee during entered duration inside the same page(this work very good)
    the problem is the same page includes another command button “print” its job is to get the same data but view them in the second page printAttendReport.jsp in another window in order to print the data in some suitable format , but the print button opens attendReport.jsp instead of printAttendReport.jsp and does not hold the inputs else if I set <managed-bean-scope> to session not request which cause caching data , please help me if you to solve this problem
    and here the related lines of code
    <faces-config >
    <managed-bean>
    <managed-bean-name>attendReportBean</managed-bean-name>
    <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.attendReport}</from-action>
    <from-outcome>attendReport</from-outcome>
    <to-view-id>/attend/attendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.printAttendReportAction}</from-action>
    <from-outcome>printAttendReportAction</from-outcome>
    <to-view-id>/attend/printAttendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config> // here is managed bean code
    public class AttendReportBean {
    // data , getters and setters
    init();
    //Preload in initialization block.
    public void init() {
    // initialize data
    public String attendReport() {
    // code to get attend data to go to view page(same page) it is ok
    return "attendReport"; // Navigation case.
    public static String getRequestParameter(String name) {
    return (String) FacesContext.getCurrentInstance().getExternalContext()
    .getRequestParameterMap().get(name);
    public void printAttendReportListener(ActionEvent event) {
    String fromYearStr = getRequestParameter("fromYearAtt");
    System.out.println("fromYearStr = "+fromYearStr);
    // try to get inputs through ActionListener but it gives me null
    public String printAttendReportAction() {
    // code to get attend data to go to print page(another page in new //window) but inputs come in default values
    return "printAttendReportAction"; // Navigation case.
    }attendReport.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    //title . styles and validations //
    </head>
    <body>
    <h:form id="attendReportForm">/the form tag appear in running source as <form id="attendReportForm" method="post" action="/newdiwan/faces/attend/attendReport.jsp" enctype="application/x-www-form-urlencoded" >
    i.e. it always submit to attendReport.jsp page
    / some inputs and outputs /
    <h:commandButton onclick="return check();" id="view" action="#{attendReportBean.attendReport}" value="" styleClass="linksNumBlue" />//it works good/
    // some outputs to view data /
    <h:commandLink immediate="true" id="printLink" value="" action="#{attendReportBean.printAttendReportAction}" actionListener="#{attendReportBean.printAttendReportListener}" target="_blank" styleClass="linksNumBlue">
        <f:attribute  name="fromYearAtt" value="2009" />
        <f:attribute  name="fromMonth" value="01" />
       <f:attribute  name="toYear" value="2010" />
       <f:attribute  name="toMonth" value="06" />
    </h:commandLink>//this has two problems 1)submit to attendReport.jsp not printAttendReport.jsp which I want to go to.
    //2)does not get the inputs but return the default values only /
    </h:form></body></html></f:view>I use libraries { jsf-api.jar , jsf-impl.jar , jstl-1.1.0.jar and tomahawk-1.1.6.jar } and deploy on tomcat 6.0
    I’m sorry for the prolongation, please help me if you can
    Edited by: alynoor on Jul 8, 2010 1:51 AM
    Edited by: alynoor on Jul 8, 2010 1:55 AM

    my problem solved 1- i use 2 managed bean , one of request scope (used in attendReport.jsp ) and the other with session scope (used in printAttendReport.jsp)
    2 - add new jsp contains the h:commandLink of the print (attendReportPrintAction.jsp)
    3 - divide the view of attendReport.jsp to two subviews (each subview has its own form) one contains inputs and outputs of attend and the other contains include to (attendReportPrintAction.jsp)
    <%@ include file="attendReportPrintAction.jsp" %>
    4 - send and get parameters using two methods
                public static Object getSessionMapValue(String key) {
                   return FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(key);
                public static void setSessionMapValue(String key, Object value) {
                   FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);
                }faces-config.xml
       <managed-bean>
          <managed-bean-name>attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
        <managed-bean>
          <managed-bean-name>print_attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>  
        <display-name>viewReport</display-name>  
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-action>#{AttendReportBean.attendReport}</from-action>
            <from-outcome>attendReport</from-outcome>  
            <to-view-id>/attend/attendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>
    <navigation-rule>  
        <display-name>printReport</display-name>
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-outcome>printAttendReportAction</from-outcome>  
            <to-view-id>/attend/printAttendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>attendReportPrintAction.jsp
    <f:subview id="printAttendReportSubView" >
    <h:form id="printAttendReportForm" onsubmit="return check222();" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="11%">
                                    <table width="70" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="7" height="28"><img src="../images/B-left.gif" width="7" height="28" /></td>
                                          <td align="center" background="../images/B-bg.gif">
                                            <!--a href="printAttendReport.jsp" class="linksNumBlue" target="_blank" >&#1591;&#1576;&#1575;&#1593;&#1577;</a-->
    <h:commandLink id="printLink" value="&#1591;&#1576;&#1575;&#1593;&#1577;" title="&#1591;&#1576;&#1575;&#1593;&#1577;"  action="#{print_attendReportBean.printAttendReportAction}"   target="_blank"  styleClass="linksNumBlue">
                                        </h:commandLink>
                                            </td>
                                          <td width="7" height="28"><img src="../images/B-right.gif" width="7" height="28" /></td>
                                        </tr>
                                      </table>
                                      </td>
                                    <td align="right"> </td>
                                  </tr>
                                </table>
    </h:form>
    </f:subview>i hope this helps someone

  • Problem with submit button in wweb dynpro abap

    hi all,
                we have problem in submit of our interactive form in web dynpro abap.
    my scenario.
                             on event submit we have to fetch data from database table and display the same.
    On click of the SUBMIT button for the first time it fetches data but when we change the input field and submit again it dsnt trigger the event(We need to double click only then event is triggered).
    Can anyone guide us on how to fetch the data at single click.
    Thanks and Regards
    Vinoth

    The form is open. I should have mentioned that I made sure to check that first.  The form was created by uploading an existing PDF file that I created from a MS Word file to Adobe FormsCentral. Once the form was completed, I had a coworker test it & it worked.  We sent the form out & I have received some back, but have also received reports of the form not working.  I downloaded the form to my computer & tested it using Adobe Acrobat 9.0 Standard.  I use a Windows environment on a Dell laptop.  The form does not work for me.

  • JSF problems with Javascript

    Hi everyone!!
    The situation is this: I have a datable with one of its columns make an h:commanLink, which has two f:params, its actionListener is a function of a ManagedBean. This is JSF, not MyFaces. In IE, When the link is pressed, it shows a javascript error: " 'elements.idVar' is null or it's not an object ", however in Firefox, it works perfectly. I have been looking for the problem and it have to do with this:
    </form><a href="# onclick="clearFormHiddenParams_formResultado('formResultado');document.forms['formResultado'['formResultado:_idcl'].value='formResultado:dtTablaResultados:0:_id10';document.forms['formResultado']['idVar'].value='37';document.forms['formResultado']['idMun'].value='168'; document.forms['formResultado'].submit(); return false;"><span id="formResultado:dtTablaResultados:0:itColumna3" title="AREA COSECHADA EN CULTIVOS PERMANENTES">1,230</span></a></td>
    </tr>
    <tr class="standardTable_Row2">
    <td><span id="formResultado:dtTablaResultados:1:itColumna1" style="text-align:center;" title="C&oacute;digo Municipio">718</span></td>
    <td><a href="javascript:void(0)" onclick="javascript:window.opener.opener.showLink('SASAIMA')"><span id="formResultado:dtTablaResultados:1:itColumna2_l" title="Municipio">SASAIMA</span></a></td>
    <td><form id="formResultado:dtTablaResultados:1:_id9" method="post" action="/ConsultaEstadisticasGeo/resultadoConsulta.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id39:_id41" /><input type="hidden" name="formResultado:dtTablaResultados:1:_id9" value="formResultado:dtTablaResultados:1:_id9" /><input type="hidden" name="idVar" /><input type="hidden" name="idMun" /><input type="hidden" name="formResultado:_idcl" />
    <script type="text/javascript">
    <!--
    function clearFormHiddenParams_formResultado_dtTablaResultados_1__id9(curFormName) {
    var curForm = document.forms[curFormName];
    curForm.elements['idVar'].value = null;
    curForm.elements['idMun'].value = null;
    curForm.elements['formResultado:_idcl'].value = null;
    //-->
    </script>
    the way JSF manage the params. The error, acdording to the message shonw by IE is in this line: curForm.elements['idVar'].value = null;
    The code of the JSP is this:
    <h:commandLink     actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
         <f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}" id="idVar" />
         <f:param name="idMun" value="#{registro[0]}" id="idMun" />
         <h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
    </h:commandLink>
    Waht can i do? (Not using MyFaces, because I can�t do that)
    Thanks for your answers!!

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

  • Populating textbox in jsf on clicking submit button

    I am having inputText box, dropdownlist , outputText box and a submit button in my jsp page.
    I am pre populating the dropdown list from my managed bean. Also setting the values using setter methods that is input in inputText box and dropdownlist using managed bean.
    On clicking the submit button and based on selected item from the drop down list, I need to perform populating outputText box with return string from getter method from bean.
    But I am not sure how to handle this. Please find few lines of code below...
    <h:inputText id= "mnNum" value="#{UserBean.mnNum}" size="18" maxlength="17" styleClass="TxtSz12 LH18" tabindex="1" title="Man Number"/>
    <h:selectOneMenu id="lstService" value="#{UserBean.serviceType}" tabindex="3">
       <f:selectItems value="#{UserBean.getServiceItems}"/>
    </h:selectOneMenu>
    <h:commandButton  action="#{UserBean.submit}" id="submitButton" value="Generate"/>
    <h:outputText value="#{UserBean.getRequest}" />
    public class UserBean extends FacesBean {
    public String submit() {...}
    public void setServiceType(String serviceType) {...}
    public String getRequest() {
    if(serviceType.toString()=="SearchService")
    return "abc";
    else if (serviceType.toString()=="basicService")
    return "xyz";
    else
    return null;
    }Please assist how to do it when submit button is clicked. I can redirect to different jsp file on click of the submit button. But I dont want to do that and I need to populate the output textbox in the same page !
    If anything is not clear please let me know. Thanks in advance.
    Edited by: 901007 on Jan 13, 2012 4:11 AM
    Edited by: 901007 on Jan 13, 2012 4:13 AM

    Page is coming up but lstService dropdown box is not displayed at all. But mnNum inputText and submitButton is showing properly.
    Also after pressing submit button, "abc" text must be displayed in outputText box. But its also not displayed. Instead, the below error is shown,
    Error opening /portlets/tools/webservicehelper/webservicehelper.faces.
    The source of this error is:
    java.util.MissingResourceException: Can't find bundle for base name resources.bundles.ValidationMessages, locale en at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260) at java.util.ResourceBundle.getBundle(ResourceBundle.java:962) at javax.faces.component.MessageFactory.getMessage(MessageFactory.java:102) at javax.faces.component.MessageFactory.getMessage(MessageFactory.java:175) at javax.faces.component.UIInput.validateValue(UIInput.java:1001) at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:130) at javax.faces.component.UIInput.validate(UIInput.java:868) at
    Any problems in below code?
    My entire code below for UserBean.java and webservicehelper.jsp.
    package net.verizon.portlet.bean;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.component.UIInput;
    import javax.faces.context.FacesContext;
    import java.io.Serializable;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import javax.faces.*;
    import javax.faces.model.*;
    import java.util.*;
    public class UserBean extends FacesBean {
         private static final long serialVersionUID = 1L;
         private String mnNum;
         private String serviceType;
         private String txtVal;
         public String getmnNum() {
              return mnNum;
         public void setmnNum(String mnNum) {
              this.mnNum = mnNum.toUpperCase();
         public String getServiceType() {
              return serviceType;
         public void setServiceType(String serviceType) {
              this.serviceType = serviceType;
         private ArrayList<SelectItem> serviceItems = null;
         public ArrayList<SelectItem> getServiceItems() {
              serviceItems = new ArrayList<SelectItem>();
              serviceItems.add(new SelectItem(null,"select one..."));
              serviceItems.add(new SelectItem("SearchService","SearchService"));
              serviceItems.add(new SelectItem("basicService","basicService"));
              return serviceItems;
         public String submit() {
              try {                    
                         txtVal = "abc";
              catch(Exception e) {
                            logger.error("error in submit method" + e);
              return null;
         public String getRequesttxt() {
                   return txtVal;
    --webservicehelper.jsp
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix" %>
    <%@ taglib uri="http://www.bea.com/servers/portal/tags/netuix/render" prefix="render" %>
    <f:view>
         <h:form id="wnInputForm" onsubmit="return validateLoginForm();">
             <h:messages layout="table" globalOnly="true" style="color: red"/>
             <h:panelGrid columns = "2" width="100%">
                  <h:panelGroup>
                       <h:panelGrid columns="1" cellpadding="6" width="400">
                       <h:panelGroup style="white-space: nowrap;">
                            <h:outputLabel value="Man Number" for="mnNum" escape="false"/>
                       </h:panelGroup>
                  <h:panelGroup>
                       <h:inputText id= "mnNum" value="#{UserBean.mnNum}" size="18" maxlength="17" tabindex="1" title="Man Number"/>
                  </h:panelGroup>
                       </h:panelGrid>
                  </h:panelGroup>
                  <h:panelGroup>
                       <h:panelGrid width="700">
                       <h:panelGroup>
                                      <h:outputText value="#{UserBean.requesttxt}" />
                            </h:panelGroup>
                       </h:panelGrid>
                  </h:panelGroup>     
                  <h:panelGroup>
                       <h:selectOneMenu id="lstService" value="#{UserBean.serviceType}" tabindex="3">
                            <f:selectItems value="#{UserBean.serviceItems}"/>
                       </h:selectOneMenu> <br>
                                <h:commandButton action="#{UserBean.submit}" id="submitButton" value="Generate"/>
                  </h:panelGroup>
             </h:panelGrid>
               </h:form>
    </f:view>Edited by: 901007 on Jan 16, 2012 8:07 AM

  • JSF Problem with events

    4 comboboxes need to be used in several JSF pages.
    This cbo are stored in the jspf file :
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <f:subview id="cboSearch">
        <p>
            <h:selectOneMenu id="cboSites" value="#{searchFormMB.siteChoisi}"
                              onchange="submit()" valueChangeListener="#{searchFormMB.eventCboSitesChanged}">
                <f:selectItems id="siteItem" value="#{searchFormMB.siteItems}"/>
            </h:selectOneMenu>
        </p>
        <p>
            <h:selectOneMenu id="cboPeriodes" value="#{searchFormMB.periodeChoisie}"
                             onchange="submit()" valueChangeListener="#{searchFormMB.eventCboPeriodesChanged}">
                <f:selectItems id="periodeItem" value="#{searchFormMB.periodeItems}"/>
            </h:selectOneMenu>
        </p>
        <p>
            <h:selectOneMenu id="cboPersonnels" value="#{searchFormMB.auteurChoisi}"
                             onchange="submit()" valueChangeListener="#{searchFormMB.eventCboPersonnelsChanged}">
                <f:selectItems id="personnelItem" value="#{searchFormMB.personnelItems}"/>
            </h:selectOneMenu>
        </p>
        <p>
            <h:selectOneMenu id="cboEssais" value="#{searchFormMB.essaiChoisi}" binding="#{searchFormMB.cboEssai}"
                             onchange="submit()" valueChangeListener="#{searchFormMB.eventCboEssaiChanged}">
                <f:selectItems id="essaiItem" value="#{searchFormMB.essaiItems}"/>
            </h:selectOneMenu>
        </p>
    </f:subview>The problem is with the last cbo (id="cboEssais") since "#{searchFormMB.eventCboEssaiChanged}" is called for the active page and for all previous pages. That means it is called once for the first page visited, twice for the second page visited, three time for the third page visited, ...
    Any idea about this problem ? Thanks

    When i change page valueChangeListener fired at stage RENDER_RESPONSE 6 and when cbo is change valueChangeListener fired at stage PROCESS_VALIDATIONS 3.
    In both cases the number of successive fires (call of valueChangeListener) is equal to the number of (re)visited pages since beginning of the session.

  • PRoblem regarding Submit - Open/Transfer/Close Dataset

    Hello again, I know I keep asking the same topic (regarding datasets) for the past week. Its been a new topic for me. However, I have a program which I am testing that is shown below.
    <b>REPORT ZPROG_COOL7 NO STANDARD PAGE HEADING.
    DATA: ITAB_LIST TYPE STANDARD TABLE OF ABAPLIST WITH HEADER LINE.
    PARAMETERS: PNAME TYPE SYCPROG. (this does nothing yet ...)
    SUBMIT ZPROGRAM EXPORTING LIST TO MEMORY AND RETURN
                        USING SELECTION-SET 'CEDEX'.
    CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
              LISTOBJECT = ITAB_LIST
       EXCEPTIONS
            NOT_FOUND  = 1
            OTHERS     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
      CALL FUNCTION 'WRITE_LIST'
           TABLES
                LISTOBJECT = ITAB_LIST.
    ENDIF.
    DATA: LD_FILENAME TYPE LOCALFILE.
    DATA: I_MONTH TYPE TABLE OF T247 WITH HEADER LINE.
    DATA: IHTML   TYPE TABLE OF W3HTML  WITH HEADER LINE.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
       EXPORTING
           list_index = sy-lsind
         TABLES
              HTML       = IHTML.
    CLEAR IHTML.
    LD_FILENAME = '
    H******\SAPReport\death.html'.
    OPEN DATASET LD_FILENAME FOR OUTPUT  IN BINARY MODE.
    LOOP AT IHTML.
      TRANSFER IHTML TO LD_FILENAME.
    ENDLOOP.
    CLOSE DATASET LD_FILENAME.
    CLEAR: LD_FILENAME.</b>
    As you can see it is suposed to get a list from a diffrent program, write the list, and then transfer the list into a directory in the SAP application server. This all works fine on foreground but in Background Proccessing the story is diffrent.
    Here is the problem:
    If Iam to send a job in background, the report will generate fine if you view the spool list <b>but there HTML file that is supposed to be saved becomes blank.</b> Is there a way to solve this issue? Thank you all take care, and good day.

    I am concerned that his part does not work in background.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    LISTOBJECT = ITAB_LIST
    * EXCEPTIONS
    * NOT_FOUND = 1
    * OTHERS = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
    CALL FUNCTION 'WRITE_LIST'
    TABLES
    LISTOBJECT = ITAB_LIST.
    ENDIF.
    DATA: LD_FILENAME TYPE LOCALFILE.
    DATA: I_MONTH TYPE TABLE OF T247 WITH HEADER LINE.
    DATA: IHTML TYPE TABLE OF W3HTML WITH HEADER LINE.
    <b>CALL FUNCTION 'WWW_LIST_TO_HTML'
    * EXPORTING
    * list_index = sy-lsind
    TABLES
    HTML = IHTML.
    CLEAR IHTML.</b>
    LD_FILENAME = '\H******SAPReportdeath.html'.
    OPEN DATASET LD_FILENAME FOR OUTPUT IN BINARY MODE.
    LOOP AT IHTML.
    TRANSFER IHTML TO LD_FILENAME.
    ENDLOOP.
    CLOSE DATASET LD_FILENAME.
    CLEAR: LD_FILENAME.
    I ran across this before and I did find a solution, I'll get back.
    Regards,
    Rich Heilman

  • Problem with SUBMIT in Background

    Hi,
        I want to pass a internal table data to 2nd program from 1st program. I am using SUBMIT 2nd program and i am getting results in foreground , i am not getting in back ground .
    will you face this sort of problem ever.
    Please help me .
    Thanks in advance .
    Balaji.

    Hi Balaji,
    Please check this sample code.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]

    Hello Everybody,
    I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
      LOOP AT i_zfi013 INTO wa_zfi013.
        PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
    range_line-sign   = 'I'.
    range_line-option = 'EQ'.
    range_line-low    = wa_zfi013-num_doc.
    APPEND range_line TO range_tab.
    endloop.
    Line: -
          SUBMIT sapf080
            WITH br_bukrs-low = p_bukrs
            WITH SELECTION-TABLE it_params  [ same  problem with -  WITH BR_BELNR IN range_tab]
            WITH br_gjahr-low = p_an1
            WITH stogrd = '05'
            WITH testlauf = ''
            AND RETURN.
    My problem is that  when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
    Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
    Thank for you time and help.

    This is my code:
      TYPES: BEGIN OF T_ZFI013,
              BUKRS     TYPE BUKRS,
              GJAHR     TYPE GJAHR,
              MONAT     TYPE MONAT,
              ANLN1     TYPE ANLN1,
              ANLN2     TYPE ANLN2,
              NUM_DOC     TYPE BELNR_D,
              DATE     TYPE DATUM,
              TIME  TYPE UZEIT,
              USER     TYPE SYUNAME,
             END OF T_ZFI013.
       DATA: I_ZFI013  TYPE STANDARD TABLE OF T_ZFI013,
             WA_ZFI013 TYPE T_ZFI013,
      DATA: br_belnr       TYPE BELNR_D,
            rspar_tab  TYPE TABLE OF rsparams,
            rspar_line LIKE LINE OF rspar_tab,
            range_tab  LIKE RANGE OF br_belnr,
            range_line LIKE LINE OF range_tab."range_tab.
      LOOP AT i_zfi013 INTO wa_zfi013.
        range_line-sign   = 'I'.
        range_line-option = 'EQ'.
        range_line-low    = wa_zfi013-num_doc.
        APPEND range_line TO range_tab.
      ENDLOOP.
      SUBMIT sapf080
        WITH br_bukrs-low = p_bukrs
        WITH br_belnr IN range_tab
        WITH br_gjahr-low = p_an1
        WITH stogrd = '05'
        WITH testlauf = ''.
    This is the RANGE_TAB table before submit:
    1     I     EQ     1001xxxxxx
    2     I     EQ     1002xxxxxx
    3     I     EQ     1003xxxxxx
    4     I     EQ     1004xxxxxx
    5     I     EQ     1005xxxxxx
    6     I     EQ     1006xxxxxx
    7     I     EQ     1007xxxxxx
    8     I     EQ     1008xxxxxx
    I think this wont work for some reason so I will start to do this by a BDC.
    Many thanks for your help.

  • Problem with submit report for transaction LT23

    Hi,
    I want to submit report for transaction LT23 based on the double click on a field in the output of my report. I am using selection table to pass values. The problem is I have  something called dynamic selections. I am using some selection fields from the dynamic selection option. Can anyone tell me how do I pass the values in such a case?

    In your [submit|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] statement in the [selection screen parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] use the [WITH FREE SELECTIONS|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] option to pass dynamic selections
    NB: Use FREE_SELECTIONS_RANGE_2_EX to build the correct parameter texpr.
    Regards
    Raymond

  • Problem in submit button on adobe form integrated with web dynpro

    Hello,
    I'm facing prob in triggering web dynpro event onSubmit for Interactive form.
    I've created a submit button from web dynpro activex pallete on adobe form (integrated with web dynpro) to send the form as email.
    Then in the web dynpro view where this form is embedded i have created an action against onSubmit event and called a method within this.
    However, on clicking Submit button this event is not getting triggered.
    Please let me know what is lacking in this process?
    Thanks.

    Hi,
    I am also facing the same problem. i have developed a simple scenario under which user have to input his/her details and on submit button it will be updated to database.
    I have tried the above solution but after adopting this solution all the editable fields become non-editable.
    so the above solution is not working for me could you help me out.
    I think ... try this....
    When you create the Adobe Form from WebDynpro, you need to follow one step in SFP Transaction or inSE80 transaction. Open the Adobe Form in any one the transaction and now in SAP menu bar "Utilities" in that you will find the "INSERT THE WEBDYNPRO SCRIPT" just click on that one. Then you will see a new Script Object is being created with the name "ContainerFoundation_JS" under the "Variables" in the Heirarchy of the Object Pallete of the Adobe Form.
    This step is mandatory to use the SUBMIT Button of the "WebDynpro Native", to trigger the OnSubmit event of the WebDynpro.
    Thanks
    Edited by: shailendra2sap on Mar 6, 2009 12:24 PM

  • JSF problem

    Hi
    I have problems when deploying enterprise applications to Sun Java System Application Server 9 that contain JSF pages. The scenario is the following:
    I developed an enterprise application using Oracle JDeveloper 10.1.3. My EAR archive contains an EJB module (with BMP Entity Beans according to 2.1 spec) and a WAR module (using JSF 1.1). The app works fine in this IDE.
    I've tried to migrate the EAR to Sun Java System Application Server 9. When I upload the EAR to this server, it indicates that deploying is successful, according to the server log. But when I try to access the application through the web browser, an exception is thrown:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: jsp.error.beans.property.conversion
    Seems like if JSF pages are not compiled correctly when they're contained in an enterprise application.
    If I only deploy the WAR, I can access the application, I mean, the index.jsp page is compiled and shown in the web browser. However, the app still doesn't work, because it needs the EJB module. That's why I need to deploy the entire enterprise application as an EAR.
    Seems like if Sun Java System Application Server 9 has problems when a deployed EAR contains JSF pages.
    I don't know if this is a bug or I'm missing any descriptor or something like that. Hope you can help me please.

    Hi, I experimented the same problem. Do you find some solution?
    Thanks in advance.

  • Problem with Submit Button in Adobe Forms Central

    I have a PDF form that I uploaded to Adobe Forms Central.  I created the fillable fields & the submit button in Forms Central.  I have several documents like this.  All have worked in the past.  Today on my latest file, the submit button doesn't always work.  I am getting some submissions, but some people have reported to me that the submit button does not work.  I tested it myself to see.  I had to create a Digital ID for myself, which seemed to work fine.  But when I click on submit, the form says "Submission Failed.  This form can no longer be submitted. Please contact the author."  I'm the author & don't know what the problem is.  Anyone know what the problem could be?

    The form is open. I should have mentioned that I made sure to check that first.  The form was created by uploading an existing PDF file that I created from a MS Word file to Adobe FormsCentral. Once the form was completed, I had a coworker test it & it worked.  We sent the form out & I have received some back, but have also received reports of the form not working.  I downloaded the form to my computer & tested it using Adobe Acrobat 9.0 Standard.  I use a Windows environment on a Dell laptop.  The form does not work for me.

  • Problem with submit button

    I have installed Acrobat 9 professional and have created a PDF with field codes embedded.  At the top of the last page, I created a button which sends the form and answers to an email account (mailto: command is used).  The form works beautifully for me but not for anyone else.  There is no protection or other specialized settings enabled.  I can fill it in and submit the form with either Reader or Acrobat Pro.  Any suggestions or ideas to solve this little problem would be greatly appreciated.

    If they are using Reader you must either enable Reader Rights or change the submission to data only (preferred). You did not say if the form was created in Acrobat or Designer. There are significant differences and you need to indicate which you used.

Maybe you are looking for

  • Aperture 3.3 can't import iPhoto 8.1.2 library?

    I'm on iPhoto '09 (8.1.2) and want to upgrade to Aperture.  Aperture 3.3 seems to be missing the ability to import older iPhoto libraries which it looks like it used to be able to do in previous versions.  Is there some way for me to migrate to Apert

  • How Freight is handled in SAP

    Hello Gurus, Can anyone please explain to me how Freight is handled in SAP. I see in SAP best practice there is a freight clearing account, which is a balance sheet account on the current liabilities side, and is assigned to key ERF in VKOA. I unders

  • Need big help creating PDF/X-1a compliant document.

    Hi all, I have tried this on my own but cannot make it work as I am not so computer savy. I have created all the files to specifications as best I can but when I try and use the preset PDF/X-1a it says violation both artbox and trimbox for every page

  • In Design Question

    I'm working on a 230 page cookbook. After changing all photos to 300 dpi as a PSD file...I insert photos on each page I'm designing. All of the photos have question marks. Why is that? Bob C.

  • Point Object in a Vector

    Is there a way to obtain the x (or y) coordinate of a point that has been placed in a vector? Vector vecArr = new Vector(); vecArr.addElement(new Point(e.getX(), e.getY())); I've tried getting it the way I've done it before in a standard array (array