JSF page 'Initial load' problem

I've found several threads touching on this already, but none seem to have a solution.
When JSF loads a JSP page for the first time, it goes through the restore view phase which creates an initial view (as there isn't a current one to restore). It then goes directly to the render response phase.
My problem is, I have a JSP/JSF page that I pass paramaters to via html GET. For example:
http://localhost:8080/jsf/region.jsp?locationForm:directorate=1&locationForm=locationForm
Because the first load goes directly to the render response phase, the parsing of these paramaters is never done & the page does not update as expected.
The second time you perform the same request, JSF goes through the standard request processing lifecycle and works as you would expect, setting directorate to 1 in the backing bean and displaying an updated page.
Is there any way to change JSF's default behaviour on a JSP initial load to do the whole lifecycle? Is there another way to get around this, short of loading the page twice to ensure it has the right information in it (which would be quite a hack)?
I need to use html GET (as opposed to html POST) because:
I'm using a technique of a hidden iframe that loads dynamically created javascript to update a dropdown list (DDL) on the main page without reloading the page in its entirity. This is to minimise network chatter as the system will be run on a 56k network. I have an onchange event on my JSF DDL that calls javascript to reload the hidden iframe.

Thanks for the replies.
I tried both of the suggested options
1. If your bean is managed (declared as managed bean in faces_config), you can set the initial value of the property as, for example, #{param.locationFor }.
Unfortunately I can't use this option as the backing bean i'm using has to be session scope. This is because the DDL options are set by the iframe page, not the main page. There could be many request/responses between client/server before the user finally presses the submit button. If I change the backing bean to request scope, I end up getting "Validation Error: Value is not valid" for the DDL because the selected ID is not in the backing bean's list of possible values for the DDL.. #{param} can't be used for session level BBs.
2. If you don't want to use the managed bean properties, you can go get your parameters in your bean's constructor.
I'm unable to use this option either. The backing bean is shared between the main page and the hidden iframe page. When the main page loads, the backing bean's constructor is called but that isn't the time when parameters need to be parsed. When the iframe page is loaded for the first time (via javascript onchange on a DDL on the main page) using http://localhost/iframe.jsf?iframeForm:ddlId=1&iframeForm=iframeForm is when I need to parse the parameters, by which time the backing bean is already instanciated and the constructor has already been called.
I'm looking at where else I could get the parameters other than the constructor. I might be able to do it elsewhere.
My guess as to why the following code works is it's not using a backing bean & isn't updating backing bean values on the first run:
<f:view>
<h:outputText value="param= #{param}"/>
</f:view>To replicate the problem, create a simple backing bean, for example:
public class sample {
    private Integer selectedId
    public String getSelectedId() {
        return selectedId
    public void setSelectedId(Integer selectedId) {
        this.selectedId = selectedId;
}Then create the following sample.jsp:
<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<!--
  Copyright 2004 ArcMind, Inc. All Rights Reserved.
-->
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<f:view>
  <h:form id="iframeForm">
    <h:panelGroup>
      <h:inputText id="selectedId" value="#{sample.selectedId}" />
    </h:panelGroup>
  </h:form>
</f:view>
</head>
</html>Then try going to sample.jsp?iframeForm:selectedId=10&iframeForm=iframeForm (Similar to the request my main page is doing via javascript to populate the hidden iframe)
The first time you do this, the text box will be populated with 0 (ie, it skipped the JSF lifecycle and ignored your 10 input). The second time and subsequent times it works as expected, with the text box containing the number 10.

Similar Messages

  • How do I invoke an ActionListener on a page when the page initially loads?

    How do I invoke an ActionListener on a page when the page initially loads?
    Page 1: A user clicks on a h:commandButton and is navigated to Page 2.
    Page 2: When the page loads and goes through RESTORE_VIEW, APPLY_REQUESTS and RENDER_RESPONSE, I need to call an ActionListener in the managed bean for Page 2.
    However, if the user comes in from any other page than Page 1, the ActionListener cannot be invoked intially when the page loads. The user has a choice to click on the h:commandButton on Page2 to invoke the ActionListener.
    What is an example of invoking a method with the ActionListener signature in Java code?
    Where would I put the code to invoke the ActionListener, in a beforePhase or afterPhase, constructor?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Interesting. You're right. It doesn't happen when I click away from this site and then return. Maybe I'm barking up the wrong tree. Maybe it's the specific website I was thinking of and not Firefox. Unfortunately, I have to use that site all the time for work. I'll try contacting their webmaster. Thanks for your help.

  • Jsf page not loading

    hi am geting this error when trying to click the button to load jsf page am using the view to link two pages where QUERY IS ANOTHER VIEW
    oracle.adf.controller.activity.ActivityLogicException: ADFC-02013: The ADF Controller cannot find metadata for activity 'Query'.
         at oracle.adfinternal.controller.util.Utils.createAndLogActivityLogicException(Utils.java:233)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:972)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:824)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:554)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
         at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
         at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:965)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: user603350 on 2011/12/15 1:53 AM

    hi,
    Can you provide some code?
    Regards
    Dimitris.

  • Agentry Sales Manager Initial Load problem

    Hello,
    We've implemented the Agentry Sales Manager solution, everything work well in the development and test environments, but in production we have performance issues for specific users:
    We have a user with:
    5900 Accounts
    21900 Contact Persons
    Which are very large numbers, but the person responsible for our OSS question says this is feasible in the agentry environment.
    The problem occurs when we perform the initial load/transmit for this user, the Accounts are processed like it should, but during the process of the contact persons something goes wrong:
    I see that the function module /SYCLO/CRMMD_DOMYCONTACT_GET is being started and completely processed (Initially we had a dump with a timeout, but this has been solved).
    Then the Agentry server is processing the results of that function module:
    In the log I notice these lines:
    getDocumentLinks::begin
    getDocumentLinks::getDocumentLinks
    Afterwards the server processes the results via the steplets, after which the data is being processed on the device (iPad). Then the employeeFetch should be triggered.
    In our test with a user with lesser data this happens, but in this case we notice the following:
    2015/04/16 15:46:48.852:           + BackEnd=Java-1
    2015/04/16 15:46:48.852:             + BackEnd=Java-1
    2015/04/16 15:46:48.852:               com.syclo.sap.FetchSession::endFetchRemoval::::begin
    2015/04/16 15:46:48.852:             + BackEnd=Java-1
    2015/04/16 15:46:48.852:               com.syclo.sap.FetchSession::endFetchRemoval::::--------------------------------
    2015/04/16 15:46:48.852:           + BackEnd=Java-1
    2015/04/16 15:46:48.852:             + BackEnd=Java-1
    2015/04/16 15:46:48.852:               com.syclo.sap.FetchSession::beginFetchObjectRead::::begin
    2015/04/16 15:46:48.852:             + BackEnd=Java-1
    2015/04/16 15:46:48.852:               com.syclo.sap.FetchSession::beginFetchObjectRead::::--------------------------------
    2015/04/16 15:46:48.852:           + BackEnd=Java-1
    2015/04/16 15:46:48.852:             + BackEnd=Java-1
    2015/04/16 15:46:48.852:               com.syclo.sap.FetchSession::endFetchObjectRead::::begin
    2015/04/16 15:46:48.852:             + BackEnd=Java-1
    2015/04/16 15:46:48.852:               com.syclo.sap.FetchSession::endFetchObjectRead::::--------------------------------
    2015/04/16 15:49:21.108: + Thread=4172
    2015/04/16 15:49:21.108:   + Server=Agentry
    2015/04/16 15:49:21.108:     + BackEnd=Java-1
    2015/04/16 15:49:21.108:       Java Back End: current jvm memory usage is 1682243584 bytes
    2015/04/16 15:49:38.096:   + Server=Agentry
    2015/04/16 15:49:38.096:     + BackEnd=Java-1
    2015/04/16 15:49:38.096:       Java Back End: current jvm memory usage is 1682309120 bytes
    2015/04/16 15:49:55.100:   + Server=Agentry
    2015/04/16 15:49:55.100:     + BackEnd=Java-1
    2015/04/16 15:49:55.100:       Java Back End: current jvm memory usage is 1682374656 bytes
    After the last line nothing else happens. 
    In the Agentry GUI I see also that the Connection has disappeared  without an error/exception what so ever...
    Anybody has an idea what might cause this issue?
    We've set the timeout and keepalive parameters to 36000 seconds (10 hours) in the agentry ini, so I think that it isn't a time out.
    Thanks in advance!
    Kind regards,
    Robin

    Hi Jason,
    Thanks for your answer, it is a standalone Agentry server (without SMP). It looks to me also that the amount of data being fetched is too big. But the customer wants to get it on the device as the person on OSS said it should be possible.
    When I look in the AgentryGUI on the server during the fetch I notice the following (see screenshot below):
    The fetch is still busy but the connection is gone. At the point of the screenshot we see the Fetch is taking more then 3 hours (9:27 AM to 12:51 PM), but the connection for that user has been gone in the AgentryGUI from around 11:00 AM.
    Even stranger is that nowhere an exception is thrown. The process on the server continues until the complete data set is processed in the steplets (seen in the log). Then the server is trying to allocate more jvm heap space. But at some point process just stops. In stead of continuing with the process.
    The data is also not sent to the device at that point, so the problem is somewhere on the agentry server it seems.
    The server's memory is 8GB and i'v set the maxheapspace variable in the agentry.ini as following:
    maxHeapSize=2048
    In the log I see that the server that cap doesn't reach.
    We run on an iPad, only iOS devices were in scope.
    Any idea's on where we might change something else?
    Kind regards,
    Robin

  • Middleware - Initial Load problems

    When I try to do initial load for DNL_CUST_ACGRPB from R/3, the status is 'Running' for long time and does not change to 'Done'. How to troubleshoot the problem and can someone help in resolving this issue?
    thanks a lot in advance.
    Sam

    Sam,
    Have you looked for any failed queues in either R/3 or CRM?  Check SMQ1 in R/3 and SMQ2 in CRM.  You should also see if the queues are registered in both systems, via SMQR.
    For CRM:
    Did you properly define your R/3 site in SMOEAC?  Have you tested the RFC destination to R/3?  Does the R/3 user have full security?
    For R/3:
    Did you check the settings in CRMRFCPAR?  Does the RFC destination work correctly.  Does the CRM user have full security?
    For an object such as the customizing downloads, like DNL_CUST_ACGRPB normally the error surrounds your CRM setup between the two systems.  If all those steps are workly correctly then you will need to consider a few other options.
    Also you will need to do the following in CRM before you try loading again:
    1.  In R3AM1 hit the abort button on the object.
    2.  In either SMQ1 on R/3 or SMQ2 in CRM, delete the queue that failed.
    3.  Fix any configuration issues with your middleware setup.
    4.  Execute the initial load again for the object.
    Good Luck,
    Stephen

  • My JSF Page not load in firefox3  woodstock4_3.widget is undefined

    Hi
    I am test the jsp page in firefox 3 and the page is loading for a long time, sometimes im refresh de page and load normally, somebody know what happen?.
    Why in iexplorer is 3 o 4 more slow than firefox 2.
    Additionali en the errors console i see
    Error: woodstock4_3.widget is undefined
    Thanks
    Edited by: rikardocarvajal on May 23, 2008 7:57 AM
    Edited by: rikardocarvajal on May 23, 2008 7:58 AM

    Consider reporting this issue at their own website.

  • BDC F-03 (page down loading problem)

    Sir,
      I'm trying BDC for tcode ( clear G/L account.). With following code  ..but I'm getting error
      on screen number 0731 while page down loading. Please help me ...
    REPORT  CLEAR_ITEM.
    TABLES :BKPF,RF05A.
    DATA : BEGIN OF RECORD OCCURS 0,
           index(001),
           AGKON(16),
           BUDAT(10),
           MONAT(2),
           BUKRS(4),
           WAERS(3),
           END OF RECORD.
    DATA : BEGIN OF RECORD1 OCCURS 0,
           index(002),
           SEL01 LIKE  RF05A-SEL01,
           END OF RECORD1.
    data dat like sy-datum.
    data ibdc like bdcdata occurs 0 with header line.
    dat = sy-datum - 1.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    *   CODEPAGE                     = ' '
       FILENAME                      = 'C:\'
       FILETYPE                      = 'DAT'
    *   ITEM                          = ' '
    *   FILEMASK_MASK                 = ' '
    *   FILEMASK_TEXT                 = ' '
    *   FILETYPE_NO_CHANGE            = ' '
    *   FILEMASK_ALL                  = ' '
    *   FILETYPE_NO_SHOW              = ' '
    *   LINE_EXIT                     = ' '
    *   USER_FORM                     = ' '
    *   USER_PROG                     = ' '
    *   SILENT                        = 'S'
    * IMPORTING
    *   FILESIZE                      =
    *   CANCEL                        =
    *   ACT_FILENAME                  =
    *   ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = RECORD.
    * EXCEPTIONS
    *   CONVERSION_ERROR              = 1
    *   INVALID_TABLE_WIDTH           = 2
    *   INVALID_TYPE                  = 3
    *   NO_BATCH                      = 4
    *   UNKNOWN_ERROR                 = 5
    *   GUI_REFUSE_FILETRANSFER       = 6
    *   OTHERS                        = 7
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    *   CODEPAGE                      = ' '
       FILENAME                      = 'C:\'
       FILETYPE                      = 'DAT'
    *   ITEM                          = ' '
    *   FILEMASK_MASK                 = ' '
    *   FILEMASK_TEXT                 = ' '
    *   FILETYPE_NO_CHANGE            = ' '
    *   FILEMASK_ALL                  = ' '
    *   FILETYPE_NO_SHOW              = ' '
    *   LINE_EXIT                     = ' '
    *   USER_FORM                     = ' '
    *   USER_PROG                     = ' '
    *   SILENT                        = 'S'
    * IMPORTING
    *   FILESIZE                      =
    *   CANCEL                        =
    *   ACT_FILENAME                  =
    *   ACT_FILETYPE                  =
      TABLES
        DATA_TAB                      = RECORD1.
    * EXCEPTIONS
    *   CONVERSION_ERROR              = 1
    *   INVALID_TABLE_WIDTH           = 2
    *   INVALID_TYPE                  = 3
    *   NO_BATCH                      = 4
    *   UNKNOWN_ERROR                 = 5
    *   GUI_REFUSE_FILETRANSFER       = 6
    *   OTHERS                        = 7
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *start-of-selection.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
       CLIENT                    = SY-MANDT
    *   DEST                      = FILLER8
       GROUP                     = 'F-03'
       HOLDDATE                  = DAT
       KEEP                      = 'X'
       USER                      = SY-UNAME.
    *   RECORD                    = FILLER1
    *   PROG                      = SY-CPROG
    * IMPORTING
    *   QID                       =
    * EXCEPTIONS
    *   CLIENT_INVALID            = 1
    *   DESTINATION_INVALID       = 2
    *   GROUP_INVALID             = 3
    *   GROUP_IS_LOCKED           = 4
    *   HOLDDATE_INVALID          = 5
    *   INTERNAL_ERROR            = 6
    *   QUEUE_ERROR               = 7
    *   RUNNING                   = 8
    *   SYSTEM_LOCK_ERROR         = 9
    *   USER_INVALID              = 10
    *   OTHERS                    = 11
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at record.
        perform mapping.
      CALL FUNCTION 'BDC_INSERT'
       EXPORTING
         TCODE                  = 'F-03'
    *     POST_LOCAL             = NOVBLOCAL
    *     PRINTING               = NOPRINT
    *     SIMUBATCH              = ' '
    *     CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IBDC.
    *   EXCEPTIONS
    *     INTERNAL_ERROR         = 1
    *     NOT_OPEN               = 2
    *     QUEUE_ERROR            = 3
    *     TCODE_INVALID          = 4
    *     PRINTING_INVALID       = 5
    *     POSTING_INVALID        = 6
    *     OTHERS                 = 7
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    REFRESH IBDC.
    ENDLOOP.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    * EXCEPTIONS
    *   NOT_OPEN          = 1
    *   QUEUE_ERROR       = 2
    *   OTHERS            = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    form mapping.
    perform bdc_dynpro      using 'SAPMF05A' '0131'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-XPOS1(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF05A-AGKON'
                                  RECORD-AGKON.
    perform bdc_field       using 'BKPF-BUDAT'
                                  RECORD-BUDAT.
    perform bdc_field       using 'BKPF-MONAT'
                                  RECORD-MONAT.
    perform bdc_field       using 'BKPF-BUKRS'
                                  RECORD-BUKRS.
    perform bdc_field       using 'BKPF-WAERS'
                                  RECORD-WAERS.
    perform bdc_field       using 'RF05A-XPOS1(01)'
    perform bdc_field       using 'RF05A-XPOS1(03)'
                                  'X'.
    perform bdc_dynpro      using 'SAPMF05A' '0731'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-SEL01(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=PA'.
    data : A(20) type c,
           IDX(2) TYPE C.
       ADD 1 TO IDX.
    LOOP AT RECORD1 WHERE INDEX = RECORD-index.
    IF IDX > 10 .
    perform bdc_dynpro      using 'SAPMF05A' '0731'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-SEL01(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=P+'.
      IDX = 1.
    ENDIF.
    CONCATENATE 'RF05A-SEL01(' IDX ')' INTO A.
    ibdc-fnam = A .
    IBDC-fval  =  RECORD1-SEL01.
    append ibdc.
    CLEAR IBDC.
    CLEAR A.
    IDX = IDX + 1.
    ENDLOOP.
    perform bdc_dynpro      using 'SAPDF05X' '3100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BS'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-ABPOS'.
    perform bdc_field       using 'RF05A-ABPOS'
                                  '1'.
    perform bdc_dynpro      using 'SAPMF05A' '0700'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF05A-NEWBS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    endform.
    *&      Form  bdc_dynpro
    *       text
    *      -->P_0137   text
    *      -->P_0138   text
    FORM bdc_dynpro using program type string screen type string.
    ibdc-program = program.
    ibdc-dynpro  = screen.
    ibdc-dynbegin = 'X'.
    append ibdc.
    clear ibdc.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
    *       text
    *      -->P_0142   text
    *      -->P_0143   text
    FORM bdc_field  USING  fname type string fvale.
    ibdc-fnam = fname.
    ibdc-fval = fvale.
    append ibdc.
    clear ibdc.
    ENDFORM.                    " bdc_field
    Thanking you..
    Manoj.

    Ramesh ,
    I'll advise you, not to use a bdc-programm for ta's like fb50 - What woud you do, when SAP in future changes the table control to an alv grid control ??
    So i advise you , to use Bapis or the standard interface
    <b>RFBIBL00</b> to post fi-documents.
    Andreas

  • Home page initially loads to left hand side

    When I initially start the Firefox browser (very slow by the way) my home page, which is iGoogle, always loads to the left so that I cannot ready the left hand side of the page. Refreshing solves the problem.

    Sounds like a problem with CSS files that are blocked by a Firefox extension or security software.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Specific site page & link loading problem

    # Question
    "www.icai.org" page loads to some extent. Links on this page does not open. This happens in my current Internet service provider (BSNL) (. The page & links open with other Internet Services (say Vodafone)

    Is there any javascript written on page load?

  • This discussion page's loading problem

    Hi, thanks for reading...
    The 'more' at the bottom of this page, does not show up unless refreshing the page, plus when clicked goes to no pages.
    Is anyone else having this issue?
    Thanks.
    Warmly,
    Hope

    Hi Carolyn...thanks for replying....I just realized I needed to click Discussions tab at the top to see more posts.
    Actually had meant at the bottom left under all the post listings there can be, if I refresh the page, the word 'more'....but when clicking it nothing happened....
    was trying to see more qustions. But that link , I guess is really not a link.
    So went to 'discussions' and now I see how to see more page...thank you darlin....appreciate...
    wamly C
    ps, am new to this forum and still trying to figure out how it works....

  • On JSF Page load UI components loading sequence

    Hi All,
    I have some questions about the UI components loading sequence on the JSF page load.
    When a JSF page loads it loads its UI components which have a sequence of getters and setters declared in the backing bean of that jspx page.
    Qustion 1: How these getters and setters in backing bean work in loading the jspx page?
    Question 2: How this backing bean is related to the Page Definition file for the page loading?
    Question 3 (main query): What is the sequence of the getters and setters. Means, if i drop 3 UI components, 1 input text, then a command button and then an output text, then they are accordingly declared in backing bean. On page load first i/p texts getter gets called, then setter, then command button's and theno/p texts, in these sequence.
    But can i manipulate their sequence of loading. If yes then how it can be possible?

    Answer 1: Getters and Setters in bean normally will be bounded to ui component's properties in jspx page, when jspx page loads these getters get called through introspection and setters gets called when a request is submitted.
    Answer 2: Backing bean and page definition are two different entities and they are no way related unless you have a data control for the backing bean and have bindings for those methods in page definition file
    Answer 3: The sequence of getters and setters depends on the order of the components they bounded to in jspx page. components in jsf page gets loaded from top to bottom so the getter bound to the top component gets called first and the getter bound to bottom component gets called last.
    The only way to change the sequence of getter methods getting called is to just change the order of the components they bound to in jspx page.
    Usually, it is not suggested to put business logic inside getters and setters, where you have action and actionlisteners for the same. If you follow that, you don't need to worry of the sequence of getters and setters execution
    Sireesha

  • Execute Logic Before JSF Page Is Processed

    In my task flow, I have two view activities.  When a user executes a specific operation, e.g., click on Submit command, in View A, the JSF page in View B is displayed.  View B's JSF page has three ADF components(2 forms and a table) that were created from different view objects in the Data Control section.  Before the JSF page is loaded, a method will execute the necessary logic for the three ADF components.  Is this possible?
    I am using JDeveloper 12.1.3.  I am not able to determine where I can specify the name of  the name of the method that will be invoked before View B's JSF page is invoked.

    You can add a method call in between when you navigate between A to B in your Task Flow.
    You can get some idea from this link :
    Johny's Tips: ADF: How to execute the ViewObject with a ViewCriteria on the PageLoad in ADF Web Application
    Cheers
    AJ

  • Initial load prob

    Hi,
    I am facing some initial load problem I ve download the following objects using transaction R3AS but still some conditions are not replicated.
    which object to be downloaded to get Condition Type from R/3 replicated to CRM?
    DNL_CUST_CND
    DNL_CUST_PRC
    DNL_CUST_CNDAL
    DNL_CUST_SCE
    DNL_CUST_PRICE
    Thanks
    Ajay

    Hi,
    have you run the program /SAPCND/RV12N001, this will organize all your download conditions.
    look at OSS Note 514952.
    You will then need to create a specific download adapter for the condition table. Look at transaction SLG1 Object COND_EXCHANGE Subobject CUSTOMIZING to tell what is wrong.
    try to follow the Building Blocks
    Cheers
    Ranga

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

  • How to Use another JSF page that I load by XMLHttpRequest?

    Hi everyone, I'm a newbie of JSF and curisous about how to load page content seperately by AJAX.
    I saw example of Java Blue Print. It's load some data to use in page. What I want is to load another JSF page when click a link or button, (Like include another page). And work with functions privoided by loaded JSF Page.
    My example is, In a main page. I request a JSF page and set it into a div layer.
    var requestURL = "/admin/customer/customer-list-body.faces";
    var content = postDataWithoutContent(requestURL);     divContent.innerHTML = content;     
    All JSF components are required under <f:view>, thus action of form is set as "action='"/admin/customer/customer-list-body.faces'"
    But my page is main.jsp. Each time I click command button in customer-list-body.faces, the url will change to customer-list-body.faces, I want to request and hold in main.jsp.
    What can I do then? Any advices?

    Hi,
    the list doesn't seem to be your problem. You need to track down the illegal argument exception. Once you have that sorted out, expose the method on the AM so it gets shown as a method binding. The return values then could be picked up in a managed bean to create the select Item list
    Frank

Maybe you are looking for

  • Locking proxy settings in Firefox 6? doesn't seem to work the same as 5?

    Trying to lock down the proxy settings so users can't disable the proxy. Did this in 5 by editing the firefox.js file in omni.jar then creating a mozzila.cfg file, but same technique doesn't appear to work in 6. Any ideas what's different?

  • IPhone won't vibrate anymore..

    My phone makes a funny noise when it vibrates, almost like you can hear it stop working. It sounds like it's just winding up at times, and it will not vibrate, just make that noise. Anybody having this same problem, or any tips on what's wrong? Thank

  • Service type of redirect.

    Hi, I'm being requested to setup the following with service type of redirect. !**************************** DQL dql xxxxxxx domain x.x.x.x domain x.x.x.x !*************************** OWNER content xxxxxxxx protocol tcp vip address x.x.x.x balance wei

  • Why does my Mail open up everytime I boot up?

    I can't figure out why this is happening and have tried to find a menu where I can stop it from happening.. Help? thanks

  • How to copy object from transport request to another transport  request

    Hi All, Can some body tell me how to copy the objects which are there in on transprot request to another transprot request ? I think we can do this from the transction SE09 but I am not getting how to do this. Thanks&Regards Mahesh