Navigation problem (back button)

Hi all,
I'm new to jsf and I'm having a problem with navigation.
There are two pages one for the header information and one for the details, a button permit to add a row of details.
What I need is to place e "back" button to allow to return to header pages.
The problem is that all the fields in the detail page are mandatory so if I put a normal command button it makes a check on the fileds and throws an error (field must not be blank) .
Which type of Componet should I have to use ?
Thanks to all for the response

Maybe u can try to put immediate="true" in the back command button

Similar Messages

  • [iPhone] - Add command to a navigation controller back button?

    I have a root navigation controller with a table view going to a normal view controller. The normal view controller plays a sound but I am wanting the sound to stop when the back button is pressed to go back to the root view. Currently, the sound will continue playing until it ends. Where do I put the code to stop the sound when the back button is pressed?
    Thanks!

    You could place it in the UIViewController delegate method - (void) viewWillDisappear:(BOOL)animated.

  • Navigation controller back button

    Hi i have a viewcontoller a) controlling a view with an nstimer.
    I want to suspend the timer if i switch to another viewcontroller b)
    which is fine, but i want to resume the timer when pressing the back button
    on the navigation controller.
    How do i either know when this button is pressed, or how do i know when my viewcontroller a) is active again.
    Please help me out folks.....

    troutfly wrote:
    or how do i know when my viewcontroller a) is active again.
    viewWillAppear
    For the button solution, you would need to create your own.

  • Problem with Back button in Top Level Navigation

    Hi all,
    We are facing a minor problem with the Back button in the Top Level Navigation in Portal. This button is present under the Roles and Worksets menu along with the History, Forward, and Add to Portal Favorites links.
    The problem is faced when we have some worksets under a single role. While browsing accross these worksets by randomly clicking on them, we wish to use the Back button as well to go back to the previous workset. But when we use the Back button, the Detailed Navigation panel in the last workset is not retrieved.
    I will explain with the System Administration Role. I open the worksets under this role in the following manner:
    First I open Transport;
    Next I open Portal Display;
    Next I open System Configuration;
    Now I wish to go back to Portal Display workset by clicking on the Back button. But when I do this, although the Portal Display workset opens up, but I cannot see the Detailed Navigation Panel. See the screenshot below:
    http://img399.imageshack.us/my.php?image=backbuttonkg6.jpg
    Please help me in solving this issue.
    Regards,
    Ankur

    I think I have found a resolution, although not very pleasant:
    [Note 950426 - Portal Back button not working correctly|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393530343236%7d]
    Regards,
    Ankur

  • Navigation problem with back button in module pool

    Hi everyone,
    I have a scenario in module pool programming in which i need help.
    I have an i/p filepath screen where the user inputs his/her file and clicks on validate button provided in the toolbar.
    After that it goes to the next screen which displays all the messages(error/success).
    After I click on Execution button it goes to next screen displaying all the created data.
    Now when I click on back button I want it to go to the i/o filepath screen.
    Please give me your comments on this.
    Leave to screen XXXX is giving me dump so any other options plz let me know.
    Thanks in advance.

    Hi Amit,
       Lets say you have 3 screens 100, 200 and 300. screen 100 has you input file path and 200 shows the message and 300 shows the created data.
    Now in PAI of 300 write as below.
    IN the screen as below
    MODULE USER_COMMAND_300_EXIT AT EXIT COMMAND.
    In the include as below
    MODULE USER_COMMAND_300_EXIT.
    CASE sy-ucomm.
    WHEN 'BACK'.   " OK code for BACK button.
    CALL SCREEN 100.
    WHEN 'CANCEl'.
    LEAVE TO SCREEN 0
    ENDCASE.
    ENDMODULE.
    Please revert if you still face problems.
    Regards,
    Praveenkumar T

  • Problem with the back button in the Alv ouput

    i have  refresh button in output of my alv report when i click on this it is getting refreshed ,now the problem is with the back button after refresh whn i click on back button it is not going to selection screen , i have to  click  the back button thrice  to come out to the selection screen ,if have refreshed  the ouput  screen twice .
    if i dont refresh the back button is working fine , So i have used "call to selection screen 1000" it coming  to selection screen without any problem  but in selection screen on clicking on back button it is again going back to output screen ,So please suggest what has to be done here .

    Hi Brahmananda,
    Please try to understand the flow of program and the screen navigation
    the click of BACK button triggers PAI and (to the best of my knowledge) you might have called the ALV screen number without any checks ( may be) so it is again taking to the ALV.
    try using
    in PAI
    module exit at exit-command
    in program
    module exit
    case ok_code
    when 'BACK'.
    LEAVE PROGRAM ( or any thing that you want it to be )
    endcase
    endmodule
    regards
    Ramchander rao.K

  • Browser Back Button and form navigation

    Some times when you use browser back button and adf-taskflow navigation buttons, validation on form fails, witout having made any change even with enabled token validation.
    Reproduction steps on HR schema:
    1. Create QueryDepartment and EditDepartment Views and navigation rules in adfc-config.xml
    2 Create ADF view only table page for QueryDepartment selectable, and add navigation button to go to EditDepartment
    3. Create EditDepartment form with navigation buttons and button to navigate back to QueryDepartment
    test:
    1.Run QueryDepartment and select a department
    2.Go to Edit Department using navigation button
    3.Navigate to next department pressing the 'Next' button
    4.Navigate back using the Browser Back button.
    5.Try to navigate back to QueryDepartment using the navigation button.
    My result is validation error on DepartmentId field 'Error: JBO-25013: '
    Is this a bug or am i doing something wrong?

    Hi,
    maybe I don't get it, but as I understood you have problem with focus on select button. So why don’t you set focus onLoad on another element of your page?
    Something like onload=”$x(‘ELEMENT_NAME’).focus()”;
    Regards,
    Przemek

  • Problem with back button when using task flow to navigate through pages

    I am using unbounded task flow to navigate through my pages
    in page2 I added back button so I can back to page1 using the action A2
    task flow 1
    page 1 -----A1-------> page 2
    page2 ----A2--------> page1
    the problem when I used page2 in another task flow
    task flow 2
    page 3 -----A3------> page2
    page 2 -----A4 -----> page3
    here when I click on back button he take me to page1
    how can I back to page3 ???????

    For this you have to know where the user came from when he navigated to page2. You can e.g. store the back target in a variable in the session or pageflow scope (when the user navigates from page1 or page3 to page2), then you bind the back button of page 2 to the stored variable.
    Timo

  • Problem with back button  with myfaces/jsf

    Hi guys
    i have very strange kind of problem , i have a page where i am shwing tabular data with data scroller , thats work fine , in this tabbular data we are shing user infomration , and a link on user name ti see his details , this link works fine , and take user to user details page ,
    but from that page if user press back button , and reaches back to tabbular data page , in this page if user select any link , page reloads , and stay there , and after reloading page if user select any link then it works
    Any one geting this kind of preoblem , hope i am not alone
    please help me out
    X-preet

    Hi Luisa,
    1 .Create 2 views  View1 and View2
    2. Place buttons on both the views and create actions for both in view1 and view2
    3.Create outboundplug from View1 to View2.(Navigation link also)
    4.Create outboundplug from View2 to View1.(Navigation link also)
    5. In View1 button action fire the outboundplugto View2
    6. In View2 button action fire the outboundplugto View1.
    Regards, Anilkumar

  • The browser's back button doesn't work for portlet navigation

    I developed a simple portlet that uses webflow navigation to navigate within a
    portlet. I made this portlet visible on a portal's home page. When I view my
    main portal page, the URL is "http://localhost:7501/samplePortal/index.jsp "
    In this page I can see my portlet. When I click on a link inside of the portlet,
    it takes me to the page I want. Then, when I click the browser's back button
    to go back to the previous page(main portal page), it doesn't work. The URL changes
    back to "http://localhost:7501/samplePortal/index.jsp", but portlet itself doesn't
    take me to the previous page. Anybody have any ideas? I am guessing it's because
    the wfevent is null, but how do I resolve this problem?

    Hi Jay,
    I was able to get the back button to work for portals by commenting out the following
    lines in the portal.jsp:
    // prevent caching these pages at clients.
    // response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1
    // response.setHeader("Pragma", "no-cache"); // HTTP 1.0
    // response.setDateHeader("Expires", 0); // prevents caching at proxy
    I also made sure my browser was set to allow the caching of pages.
    You are having problems, because we set the response headers to tell the browser
    to not cache the portal pages, and the portlet state has not changed back to it's
    original state.
    -John Bimson
    "Jay" <[email protected]> wrote:
    >
    I developed a simple portlet that uses webflow navigation to navigate
    within a
    portlet. I made this portlet visible on a portal's home page. When
    I view my
    main portal page, the URL is "http://localhost:7501/samplePortal/index.jsp
    In this page I can see my portlet. When I click on a link inside of
    the portlet,
    it takes me to the page I want. Then, when I click the browser's back
    button
    to go back to the previous page(main portal page), it doesn't work.
    The URL changes
    back to "http://localhost:7501/samplePortal/index.jsp", but portlet itself
    doesn't
    take me to the previous page. Anybody have any ideas? I am guessing
    it's because
    the wfevent is null, but how do I resolve this problem?

  • [iPhone] Invisible Navigation Back button item?

    I'm a little perplexed on this one. I've started a project based off the Navigation Controller template in Xcode, which is table based, and I push a view controller onto the stack, it shows up just fine.
    The problem is, after this new view is pushed, there's no Back button in the navigation Bar. Well, not visible at least. If I click on the navigation bar on the left side, where the Back button should be, it goes Back! But I can't figure out why it's not showing.
    There's a property like self.navigationItem.hidesBackItem or something like that, but setting it to NO had no effects.
    Anyone?

    Aha!
    You nailed it. Problem solved. And I guess that makes sense, the Back button I guess is derived from the title of the previous view (seems to me though it should have some default value like "Back").
    Thanks so much
    JB

  • Another scenario of BACK button problem, pls help

    search.jsp ---- search application by ID
    view_app.jsp ---- display application details, has 4 commandLinks eg. (A, B, C, D), the commandLinks are displayed dependent on a
    property in the ApplicationBean object.
    Scenario as follow:
    In search.jsp, I search application #1, it brings up view_app.jsp with #1 details and commandLinks A and B available.
    Then go to search.jsp again through faces, search application #2, it brings up view_app.jsp again with #2 details and commandLinks C and D available.
    Then I click BACK button twice, which bring me back to view_app.jsp with #1 details and commandLink A and B.
    now I try to click commandLink A, it doesn't work because faces thinks I am in view_app.jsp with #2 details and commandLink C and D, there is no commandLink A available. Therefore it displays view_app.jsp with #2 details and commandLinks C and D.
    I've put the Phase Listener, I can see from the log messages that it did go through the Faces life cycle, but in the 'Invoke Application' phase, the functions that I specified in the action (fucntionA) was not called, as it does not exist in the current View.
    Anyone know how to solve this situation?
    I try with client or server state saving, both produce same result. I also put <h:messages> in the view_app.jsp, no validation error message was shown.
    search.jsp
    ==========
    <h:form>
    <h:outptuText value="application ID:"/>
    <h:inputText value="#{facade.appID}"/>
    <h:commandButton value="search" action="#{facade.searchApp}"/>
    </h:form>
    view_app.jsp
    ============
    <h:form>
    <h:inputHidden value="#{facade.appID}"/>
    <h:panelGrid columns="2">
    <h:panelGrid>
         <h:commandLink value="A" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
         <h:commandLink value="B" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
         <h:commandLink value="C" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
         <h:commandLink value="D" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
    </h:panelGrid>
    <h:panelGrid columns="2">
    <h:outputText value="Application ID"/><h:outputText value="#{facade.appObject.appID}"/>
    <%--
    Other details
    --%>
    </h:panelGrid>
    </h:panelGrid>
    </h:form>
    Facade.java
    ===========
    ApplicationBean appObject = new ApplicationBean();
    public void updateApplication(ActionEvent e) throws Exception {   
    if ( appID != appObject.getAppID() ) {
    logger.finest("Updating application ID from " appObject.getAppID() " to " +appID);
    appObject = getApplicationFromDB(appID);
    ApplicationBean.java
    ====================
    public boolean isDispalyMenu() {
    <%-- return 'true' or 'false' dependent on a property of the ApplicatinoBean object --%>
    }

    This is a very simple method for locking back button. It works fine. Maybe it will be usefull for you and it could resolve other problems with back button.
    <f:view>
    <script>
    function windowunload()
    //myform:_idcl is the hidden field on html page generated by JSF for navigation
    //purposes
         if (document.forms['myform']['myform:_idcl'].value=="")
    //erroraction - this is the name of the method in the backing bean; if there is no
    //such a method (or action is not set in faces-config) the page will be reloaded;
    //thanks to that one can forward to another for instance error page
              document.forms['myform']['myform:_idcl'].value='myform:body:erroraction';
              document.forms['myform'].submit();
              return false;
    </script>
    <body onunload="windowunload()">
    <h:form id="myform">
    </h:form>     
    </body>
    </f:view>
    It submits with no action argument (no erroraction method or navigation not set in faces-config) the page on onunload event.
    It reloads the page when when user presses back button or tries to change url address. So only one way to navigate is to use commandlinks and commandbuttons from your page.
    I haven't found any weaknesses of this method yet.
    Regards
    M.

  • Logout problem and back button

    Hi all,
    i have a backing bean called NaviBean which contains navigation in my application:...
    public String showBuchung() {
              result = NavigationResults.UEBERSICHT;
              return result;
         public String showJahresUebersicht() {
              result = NavigationResults.JAHRESUEBERSICHT;
              return result;
         public String logout() {
              servicefacade.logout();
              return NavigationResults.LOGOUT;
         }Bean for Jahresuebersicht and Buchung are with session scope. When the user navigates to Buchung hits the back button and then uses the logout button all works fine. Whe he tries the same with Jahresuebersicht the page Jahresuebersicht is shown again...
    Here the Logout method:
    public boolean logout(){
              FacesUtils.resetManagedBean(BeanNames.USER_BEAN, null);
              FacesUtils.resetManagedBean(BeanNames.JAHR_BEAN,null);
              FacesUtils.resetManagedBean(BeanNames.UEBERSICHT_BEAN, null);
              HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
              FacesContext context = FacesContext.getCurrentInstance();
              context.getApplication().getNavigationHandler().handleNavigation(context, "","User logged out successfully!");
              HttpSession session = request.getSession();
              session.invalidate();
              return true;
         }What is wrong with my navigation? Why this behaviour only for one page/bean? Can anybody help? Regards,
    ak
    Message was edited by:
    barnti

    I have seen this as well. Only the problem does not seem to be resolved by logging out and back in. The machine must be restarted.
    Nor will lowering the color settings make a difference once the behavior is exhibited.
    Mostly see this when first starting up Workgroup Manager on Xserve running 10.3.8 -- screen fails to refresh after some point during WM's attempt to list network users (7k+ users on network).

  • Problem displaying drill down STANDARD ALV for a particular record after pressing back button

    I have a simple interactive ALV grid report. NOT 'OO'. It display correctly on initial execution. AT the moment, 6 records. I want it to work such that if i click record '1', a drill-down version of that ALV with only that one record clicked is displayed. This currently occurs correctly. The problem arises when i click the back button and want to click on a new record, say in the 2nd row..this new 2nd row record is not displayed. The first one is displayed again. I tried clearing and fiddling around but then the last record is displayed. I have used the 'ID' field as a 'hotspot' getting picked up by sy-tabindex. Maybe it could be that i shouldn't loop and use  a work area e.g in my select statement. i'm not so sure i've looked around, and tried a few things. I can't get it right yet. My code is below:
    *& Report  ZALV
    REPORT  ZALV.
    TABLES: ZCONTACT.
    TYPE-POOLS: slis. "slis contains all of the ALV data types.
    TYPES: BEGIN OF ty_zcontact.
             INCLUDE STRUCTURE zcontact.
    TYPES: icon TYPE char4, "field holding traffic light value- adding a column to internal table to hold the traffic light
             END OF ty_zcontact.
    DATA: "fieldcatALOG TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           it_zcontact TYPE TABLE OF ty_zcontact,"declares an internal table of type ZCONTACT
           wa_zcontact TYPE ty_zcontact,
           gd_layout TYPE slis_layout_alv,
           gd_repid LIKE sy-repid,
           g_variant TYPE disvariant,
           gx_variant TYPE disvariant,
           g_save TYPE c VALUE 'X',
           it_fieldcat TYPE slis_t_fieldcat_alv,"declares field catalog table of line type alv
           wa_fieldcat TYPE slis_fieldcat_alv, "declares the work area of the field catalog
           it_list_top_of_page TYPE slis_t_listheader.
    DATA: it_fieldcat1 TYPE slis_t_fieldcat_alv,
           wa_fieldcat1 TYPE slis_fieldcat_alv.
    DATA: V_FIELD(30) TYPE C,
    V_VALUE(10) TYPE C.
           "izontact TYPE TABLE OF zcontact.
            "i_logo TYPE OT.
           "ls_layout TYPE slis_layout_alv.
    **Selection Screen details
    *SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    *PARAMETERS: variant like disvariant-variant.
    *SELECTION-SCREEN END OF BLOCK B1.
    SELECT-OPTIONS:
    age FOR wa_zcontact-age,
    lastnme FOR wa_zcontact-lastname.
    **Getting default variant
    *  AT SELECTION-SCREEN ON age.
    *    SELECT SINGLE age FROM zcontact INTO wa_zcontact-age WHERE age = age.
    *  IF sy-subrc NE 0.
    *    MESSAGE:'That age does not exist mate, Please enter another age' TYPE 'E'.
    *    ENDIF.
    INITIALIZATION.
    *gx_variant-report = sy-repid.
    *CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    *EXPORTING
    *  I_SAVE = G_SAVE
    *  CHANGING
    *    CS_VARIANT = GX_VARIANT
    *  EXCEPTIONS
    *    NOT_FOUND = 2.
    *IF SY-SUBRC = 0.
    *  VARIANT = GX_VARIANT-VARIANT.
    *  ENDIF.
    START-OF-SELECTION.
      PERFORM DATA_RETRIEVAL.
      PERFORM BUILD_FIELDCATALOG.
      PERFORM DISPLAY_ALV_REPORT.
      PERFORM top_of_page.
    "g_repid = sy-repid.
    *Fetch data from the database
    FORM DATA_RETRIEVAL.
    SELECT * FROM zcontact INTO TABLE it_zcontact WHERE age IN age AND lastname IN lastnme.
    "assigning traffic light colour to each row based on a condition
    *  IF wa_zcontact-age GE 65.
    *   wa_zcontact-icon = 1. "Red Traffic Light
    *   ELSEIF wa_zcontact-age BETWEEN 40 AND 64.
    *     wa_zcontact-icon = 2. "Yellow traffic light
    *     ELSE.
    *       wa_zcontact-icon = 3." Green traffic light
    *       ENDIF.
    *       MODIFY it_zcontact FROM wa_zcontact TRANSPORTING icon.
    *       CLEAR wa_zcontact.
    ENDFORM.
    FORM BUILD_FIELDCATALOG.
    *Build field catalog
    wa_fieldcat-fieldname = 'ID'.
    "wa_fieldcat-seltext_m = 'The Contact ID'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'LASTNAME'.
    "wa_fieldcat-seltext_m = 'Contact Lastname'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'FIRSTNAME'.
    "wa_fieldcat-seltext_m = 'Contact Firstname'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'DOB'.
    "wa_fieldcat-seltext_m = 'Date Of Birth'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'TEL'.
    "wa_fieldcat-seltext_m = 'Telephone Number'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'ADDRESS'.
    "wa_fieldcat-seltext_m = 'The Address'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'OCCUPATION'.
    "wa_fieldcat-seltext_m = 'The Occupation'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'WEIGHT'.
    "wa_fieldcat-seltext_m = 'WEIGHT'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'AGE'.
    "wa_fieldcat-seltext_m = 'AGE OF THE CONTACT'.
    wa_fieldcat-do_sum   = 'X'.        "Display column total
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'SALARY'.
    "wa_fieldcat-seltext_m = 'SALARY'.
    wa_fieldcat-do_sum   = 'X'.
    APPEND wa_fieldcat TO it_fieldcat.
    gd_layout-lights_fieldname = 'ICON'.
    ENDFORM.
    FORM DISPLAY_ALV_REPORT.
    gd_repid = sy-repid.
    *Pass data and field catalog to ALV function module to display ALV list
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           it_fieldcat            = it_fieldcat
           i_callback_program     = gd_repid
           i_callback_top_of_page =  'TOP_OF_PAGE'
           i_callback_user_command =  'USER_COMMAND'
           i_structure_name       =  'ZCONTACT'
           i_save                 = 'X'
           is_variant             = g_variant
           is_layout     = gd_layout
    TABLES
           t_outtab      = it_zcontact
    EXCEPTIONS
           program_error = 1
           OTHERS        = 2.
    ENDFORM.
    FORM top_of_page.
    *ALV Header declarations
       DATA: it_listheader TYPE slis_t_listheader,
             wa_listheader TYPE slis_listheader,
             t_line like wa_listheader-info,
             ld_lines TYPE I,
             ld_linesc(10) TYPE C.
    wa_listheader-typ = 'H'.
    wa_listheader-info = 'Contact Details'.
    APPEND wa_listheader TO it_listheader.
    CLEAR wa_listheader.
    wa_listheader-typ = 'S'.
    wa_listheader-info = sy-repid.
    wa_listheader-key = 'Program Name:'.
    APPEND wa_listheader TO it_listheader.
    CLEAR wa_listheader.
    wa_listheader-typ = 'S'.
    wa_listheader-info = sy-uname.
    wa_listheader-key = 'User Name:'.
    APPEND wa_listheader TO it_listheader.
    CLEAR wa_listheader.
    wa_listheader-typ = 'S'.
    wa_listheader-key = 'Run Date :'.
    CONCATENATE sy-datum+6(2)
                 sy-datum+4(2)
                 sy-datum(4)
                 INTO wa_listheader-info
                 SEPARATED BY '/'.
    APPEND wa_listheader TO it_listheader.
    CLEAR wa_listheader.
    wa_listheader-typ = 'S'.
    wa_listheader-key = 'Time :'.
    CONCATENATE sy-uzeit(2)
                 sy-uzeit+2(2)
                 sy-uzeit+4(2)
                 INTO wa_listheader-info
                 SEPARATED BY ':'.
    APPEND wa_listheader TO it_listheader.
    CLEAR wa_listheader.
       CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
         EXPORTING
           it_list_commentary = it_listheader
           i_logo = 'KLOGO'.
    ENDFORM. "top_of_page
    *& Form sub_user_command
    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
    P_SELTAB TYPE SLIS_SELFIELD.
    CASE P_UCOMM.
       WHEN '&IC1'.
    CASE p_seltab-fieldname.
       WHEN 'ID'.
       READ TABLE it_zcontact INTO wa_zcontact INDEX p_seltab-tabindex.
       PERFORM DATA_RETRIEVAL1.
       PERFORM BUILD_FIELDCATALOG1.
       PERFORM SECOND_GRID.
       ENDCASE.
       ENDCASE.
    ENDFORM. "
    FORM DATA_RETRIEVAL1.
    SELECT * FROM zcontact INTO TABLE it_zcontact WHERE id EQ wa_zcontact-id.
    ENDFORM.
    FORM BUILD_FIELDCATALOG1.
    *Build field catalog
    CLEAR: wa_fieldcat, it_fieldcat.
    wa_fieldcat-fieldname = 'ID'.
    "wa_fieldcat-seltext_m = 'The Contact ID'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'LASTNAME'.
    "wa_fieldcat-seltext_m = 'Contact Lastname'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-fieldname = 'FIRSTNAME'.
    "wa_fieldcat-seltext_m = 'Contact Firstname'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    ENDFORM.
    FORM SECOND_GRID.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         I_CALLBACK_PROGRAM = SY-REPID
         IT_FIELDCAT = IT_FIELDCAT
         i_structure_name       =  'ZCONTACT'
         i_callback_user_command =  'USER_COMMAND'
         TABLES
           T_OUTTAB = IT_ZCONTACT.
       ENDFORM.

    Hi Ten Mariga,
                     I wonder why the second select Query is needed at all instead you can use
    ---> Not Needed
    FORM DATA_RETRIEVAL1.
    SELECT * FROM zcontact INTO TABLE it_zcontact WHERE id EQ wa_zcontact-id.
    ENDFORM.
    ----> Instead you can do
       READ TABLE it_zcontact INTO wa_zcontact INDEX p_seltab-tabindex.
      Append wa_zcontact to Second_table.
    And you can use the Second_table to display the second ALV. The second Select Query will affect the performance too.
    Cheers,
    Krishnakumar B.

  • When I open a second Firefox browser window, the URL address window, instead of showing the URL, says "Go to a Web Site;" also, and more importantly, the "back" button is greyed out. This is a new problem, and the first Firefox window I open works fine.

    After I open the first Firefox browser window, any additional window I open does not open my homepage, but opens a blank page with "New Tab" showing on the tab. An orange "Firefox" tab with a drop down arrow shows at the upper left hand corner of the screen. All of the options (File, Edit, etc.) are greyed out, however they will work if you move your cursor over them.
    The URL address window says "Go to a Web Site". After I've gone to a website, the back button remains greyed out and I am not able to go back to a previous page. My RoboForm and Netcraft toolbars only show up in an abbreviate form. The add-on bar doesn't show up at all.
    Again, this is a recent problem, and only happens after I've opened one browser window (which works fine) and then open additional browser windows (as few as one additional).

    I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)

Maybe you are looking for

  • 2 GB memory

    i have a macbook intel core 2 duo with a memory of 2 GB. the mb wont let me open up excel and powerpoint programs because it says that i dont have enough memory. but thats practically impossible because i still have 200 GB free space and as for the R

  • Error in Manage Substitution Rules - MSS

    Hello Team, I am working on new Implementation for ESS MSS in ECC6.0 and the country grouping is 99. I am getting error in 'Manage Substitution Rules' in MSS. When I create the substitution rule, I am getting 'problems Reported' in the 'Rule activati

  • All my designs shift when the web browser is minimized - Help

    Hello and thanks for looking! I have been building a PC repair website based off a template. I have tried all sorts of things to fix an issue I have with my site. I am having a problem with my Draw Ap Div's overlaping other content on my site when th

  • SMC in Solaris 9 not starting

    Hi I have installed Solaris 9 12/04 on E450 Server . when i try to start SMC from /etc/init.d/init.wbem i am getting a message " Exception in thread "main" java.lang.NoClassDefFoundError : com/sun/management/viperimpl/server/ViperServer.I have Solari

  • Reg: Calling an ecatt script in R/3 function module

    Dear Freinds Can Anyone of you tell me if an ecatt script can be called inside an r/3 function module. if yes, please explaion me how it can be done. If you have any example code it will be quite useful for me. Points will be rewarded for suitable an