Is it possible to Select/Deselect All checkboxes using single button

Hi all,
  I want to Select/Deselect all check boxes in my table using single button. I tried using single button ,but it is not working correctly for all the cases.
Thanks&regards,
karthik.

Hi karthik..
You can do this ..
1.Create boolean variable..
2.Create Select all button..
write this code in Select all action ..
IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>().;
for(int i=0;i<tNodesize();i++)
tNode.get><Table>ElementAt(i).setCheck(true);
Like Deselect all..
IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>().;
for(int i=0;i<tNodesize();i++)
tNode.get><Table>ElementAt(i).setCheck(false);
Urs GS

Similar Messages

  • How to code for select all& deselect all?using menu buttons

    hai,
    i have generated a report with a single field from a database table and
    i have a checkbox for each record/item in the report.
    i need help in the following ..
    now that i have menu buttons say "select all" and "deselect all"..
    if select all is clicked then all checkboxes should be selected.
    if deselect all is clicked, then all checkboxes should be deselected
    i know that we have to use functional code and use case sy-ucomm etc.
    when "selectall"  etc..
    can someone help me how to code for this to work exactly?

    it did not work for the code u had suggested...
    plz check it out and send me the exact working code..
    REPORT  ZINTRACTIVE_PROJ                        .
    TABLES : SFLIGHT.
    DATA : BEGIN OF IT OCCURS 0,
           CARRID LIKE SFLIGHT-CARRID, FLDATE LIKE SFLIGHT-FLDATE,
           END OF IT.
    DATA : BOX TYPE C,
           LINE TYPE I.
    SELECT CARRID FLDATE FROM SFLIGHT INTO TABLE IT.
    LOOP AT IT.
    WRITE : / BOX AS CHECKBOX, IT-CARRID.
    ENDLOOP.
    LINE = SY-LINNO .
    SET PF-STATUS 'SELECT'.
    AT USER-COMMAND.
    CASE SY-UCOMM.
      WHEN 'SELECT'.
          DO LINE TIMES.
            READ LINE SY-INDEX FIELD VALUE BOX.
            IF BOX = 'X'.
               NEW-PAGE.
               WRITE : / IT-FLDATE.
            ENDIF.
          ENDDO.
      <b>WHEN 'SELECTALL'.
          LOOP AT IT.
            IT-CARRID = 'X'.
            MODIFY IT TRANSPORTING CARRID WHERE CARRID = IT-CARRID.
            EXIT.
          ENDLOOP.
      WHEN 'DESELECTALL'.
          LOOP AT IT.
            IT-CARRID = ''.
            MODIFY IT TRANSPORTING CARRID WHERE CARRID = 'X'.
            EXIT.
          ENDLOOP.</b>ENDCASE.

  • Select/Deselect  All not working !!

    Hi Gurus,
    I have searched thru SDN forum, but didn't get any pointers on this.
    I have created 2 custom buttons for select/deselect all on ALV toolbar, thru oops.
    Select/Deselect All are not working for me. Please help me with some pointers.
    I have attributes for customized ALV toolbar buttons, and then checking at user command.
    Many Thanks,
    Madan

    Hi,
    Check the links
    https://wiki.sdn.sap.com/wiki/display/Snippets/TutorialABAPALVThroughOOPS
    Addiing Custom button to ALV Grid Standard tool bar
    https://wiki.sdn.sap.com/wiki/display/Snippets/AsimpleprogramonALV+OOPS
    Regards,
    Amit

  • ALV: Need to select/deselect all output rows iwth a Button

    Hi All,
    I have an ALV grid displaying a few lines of data.
    User needs a button in the application toolbar to SELECT/DESELECT all rows displayed in the ALV list.
    I am using OO for displaying the layout.
    I want to know if there is a method which can SELECT/DESELECT all displayed rows. If there is no method, is there a workaround of achieving same.
    Just for your info I dont have a check-box as the first colum of my ALV.
    Appreciate your feedback on same.
    Thanks and Regards
    Rajiv

    hi
    chk this out
    TYPE-POOLS : SLIS.
    Tables                                                              *
    TABLES:
      VBRK,
      VBRP.
    Parameters and select options OR SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
                S_VBELN FOR VBRK-VBELN.
    SELECTION-SCREEN END OF BLOCK B1.
    Internal Tables                                                     *
    work areas
    DATA: BEGIN OF IT_VBRP OCCURS 0,
           VBELN LIKE VBRK-VBELN,
           POSNR LIKE VBRP-POSNR,
           UEPOS LIKE VBRP-UEPOS,
           FKIMG LIKE VBRP-FKIMG,
           NETWR LIKE VBRP-NETWR,
           MEINS LIKE VBRP-MEINS.
    DATA : END OF IT_VBRP.
    Variables                                                           *
    DATA : GR_ALVGRID TYPE REF TO CL_GUI_ALV_GRID,
           GC_CUSTOM_CONTROL_NAME TYPE SCRFNAME VALUE 'CC_ALV',
           GR_CCONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           GT_FIELDCAT TYPE LVC_T_FCAT,
           GS_LAYOUT TYPE LVC_S_LAYO,
           V_FLAG VALUE 'X'.
    Start of Program                                                    *
          INITIALIZATION.                                               *
    INITIALIZATION.
      S_VBELN-LOW = 1.
      S_VBELN-HIGH = 1000000000.
      S_VBELN-OPTION = 'EQ'.
      S_VBELN-SIGN = 'I'.
      APPEND S_VBELN.
          SELECTION-SCREEN                                              *
    AT SELECTION-SCREEN.
      PERFORM VALIDATION.
          START-OF-SELECTION                                            *
    START-OF-SELECTION.
      PERFORM GET_DATA.
      CALL SCREEN 0100.
          END-OF-SELECTION                                              *
    END-OF-SELECTION.
          TOP-OF-PAGE                                                   *
    TOP-OF-PAGE.
          END-OF-PAGE                                                   *
    END-OF-PAGE.
          AT USER-COMMAND                                               *
    *&      Form  VALIDATION
          text
    -->  p1        text
    <--  p2        text
    FORM VALIDATION .
      SELECT SINGLE VBELN
      FROM VBRK
      INTO VBRK-VBELN
      WHERE VBELN IN S_VBELN.
      IF SY-SUBRC <> 0.
        MESSAGE E000 WITH 'no billing documents found'.
      ENDIF.
    ENDFORM.                    " VALIDATION
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA .
      SELECT VBELN
             POSNR
             UEPOS
             FKIMG
             NETWR
             MEINS
      FROM VBRP
      INTO TABLE IT_VBRP
      WHERE VBELN IN S_VBELN.
    ENDFORM.                    " GET_DATA
    *&      Module  DISPLAY_ALV  OUTPUT
          text
    MODULE DISPLAY_ALV OUTPUT.
      IF V_FLAG = 'X'.
        PERFORM DISPLAY_ALV.
        PERFORM PREPARE_FIELD_CATALOG CHANGING GT_FIELDCAT.
        PERFORM PREPARE_LAYOUT CHANGING GS_LAYOUT.
        CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
            EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              = 'VBRP'
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
              IS_LAYOUT                     = GS_LAYOUT
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
         IT_TOOLBAR_EXCLUDING          =
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
            CHANGING
              IT_OUTTAB                     = IT_VBRP[]
              IT_FIELDCATALOG               = GT_FIELDCAT
         IT_SORT                       =
         IT_FILTER                     =
            EXCEPTIONS
              INVALID_PARAMETER_COMBINATION = 1
              PROGRAM_ERROR                 = 2
              TOO_MANY_LINES                = 3
              OTHERS                        = 4
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          CALL METHOD GR_ALVGRID->SET_READY_FOR_INPUT
            EXPORTING
              I_READY_FOR_INPUT = 1.
        ELSE.
          CALL METHOD GR_ALVGRID->REFRESH_TABLE_DISPLAY
       EXPORTING
         IS_STABLE      =
         I_SOFT_REFRESH =
            EXCEPTIONS
              FINISHED       = 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.
        ENDIF.
        CLEAR V_FLAG.
      ENDIF.
    ENDMODULE.                 " DISPLAY_ALV  OUTPUT
    *&      Form  DISPLAY_ALV
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_ALV .
      IF GR_ALVGRID IS INITIAL.
        CREATE OBJECT GR_ALVGRID
          EXPORTING
       I_SHELLSTYLE      = 0
       I_LIFETIME        =
            I_PARENT          = GR_CCONTAINER
       I_APPL_EVENTS     = space
       I_PARENTDBG       =
       I_APPLOGPARENT    =
       I_GRAPHICSPARENT  =
       I_NAME            =
          EXCEPTIONS
            ERROR_CNTL_CREATE = 1
            ERROR_CNTL_INIT   = 2
            ERROR_CNTL_LINK   = 3
            ERROR_DP_CREATE   = 4
            OTHERS            = 5
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " DISPLAY_ALV
    *&      Form  PREPARE_FIELD_CATALOG
          text
         <--P_GT_FIELDCAT  text
    FORM PREPARE_FIELD_CATALOG  CHANGING P_GT_FIELDCAT TYPE LVC_T_FCAT.
      DATA : LS_FCAT TYPE LVC_S_FCAT,
             L_POS TYPE I.
      L_POS = L_POS + 1.
      LS_FCAT-FIELDNAME = 'VBELN'.
      LS_FCAT-TABNAME = 'IT_VBRP'.
      LS_FCAT-COL_POS = L_POS.
      LS_FCAT-SCRTEXT_M = 'Billing Document'.
      LS_FCAT-OUTPUTLEN = '10'.
      APPEND LS_FCAT TO P_GT_FIELDCAT.
      CLEAR LS_FCAT.
      L_POS = L_POS + 1.
      LS_FCAT-FIELDNAME = 'POSNR'.
      LS_FCAT-TABNAME = 'IT_VBRP'.
      LS_FCAT-COL_POS = L_POS.
      LS_FCAT-SCRTEXT_M = 'Billing Item'.
      LS_FCAT-OUTPUTLEN = '6'.
      APPEND LS_FCAT TO P_GT_FIELDCAT.
      CLEAR LS_FCAT.
      L_POS = L_POS + 1.
      LS_FCAT-FIELDNAME = 'UEPOS'.
      LS_FCAT-TABNAME = 'IT_VBRP'.
      LS_FCAT-COL_POS = L_POS.
      LS_FCAT-SCRTEXT_M = 'Higher Level Item'.
      LS_FCAT-OUTPUTLEN = '6'.
      APPEND LS_FCAT TO P_GT_FIELDCAT.
      CLEAR LS_FCAT.
      L_POS = L_POS + 1.
      LS_FCAT-FIELDNAME = 'FKIMG'.
      LS_FCAT-TABNAME = 'IT_VBRP'.
      LS_FCAT-COL_POS = L_POS.
      LS_FCAT-SCRTEXT_M = 'Invoice Quantity'.
      LS_FCAT-OUTPUTLEN = '13'.
      APPEND LS_FCAT TO P_GT_FIELDCAT.
      CLEAR LS_FCAT.
      L_POS = L_POS + 1.
      LS_FCAT-FIELDNAME = 'NETWR'.
      LS_FCAT-TABNAME = 'IT_VBRP'.
      LS_FCAT-COL_POS = L_POS.
      LS_FCAT-SCRTEXT_M = 'Net Value'.
      LS_FCAT-OUTPUTLEN = '15'.
      APPEND LS_FCAT TO P_GT_FIELDCAT.
      CLEAR LS_FCAT.
      L_POS = L_POS + 1.
      LS_FCAT-FIELDNAME = 'MEINS'.
      LS_FCAT-TABNAME = 'IT_VBRP'.
      LS_FCAT-COL_POS = L_POS.
      LS_FCAT-SCRTEXT_M = 'Unit of Measure'.
      LS_FCAT-OUTPUTLEN = '3'.
      APPEND LS_FCAT TO P_GT_FIELDCAT.
      CLEAR LS_FCAT.
      L_POS = L_POS + 1.
    ENDFORM.                    " PREPARE_FIELD_CATALOG
    *&      Form  PREPARE_LAYOUT
          text
         <--P_GS_LAYOUT  text
    FORM PREPARE_LAYOUT  CHANGING P_GS_LAYOUT TYPE LVC_S_LAYO.
      P_GS_LAYOUT-ZEBRA = 'X'.
      P_GS_LAYOUT-GRID_TITLE = 'INVOICE DETAILS'.
      P_GS_LAYOUT-SMALLTITLE = 'X'.
      P_GS_LAYOUT-EDIT = 'X'.
    ENDFORM.                    " PREPARE_LAYOUT
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'CANCEL'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'CANCEL'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          CALL TRANSACTION 'SE38'.
        WHEN 'CHANGE'.
          IF GR_ALVGRID->IS_READY_FOR_INPUT( ) = 0.
            CALL METHOD GR_ALVGRID->SET_READY_FOR_INPUT
              EXPORTING
                I_READY_FOR_INPUT = 1.
          ELSE.
            CALL METHOD GR_ALVGRID->SET_READY_FOR_INPUT
              EXPORTING
                I_READY_FOR_INPUT = 0.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • WAD 7.0 Checkbox Group web item - ability to select/deselect all

    Hello. I am currently using within the Web Application Designer 7.0 the web item Checkbox Group. I would like the ability to add a "select all" and "deselect all" button(s) to select all values and deselect all values respectively.
    Has anyone in the community been able to accomplish this? Our user base has asked about this frequently.
    Kind regards,
    Lynn Peter

    Hi,
    This can be solved by using a Container layout item and a button group item.
    1 Put the Checkbox item and a button group item in the Container layout item.
    2 Configure a button in the button group item with the command CLEAR_SELECTION_STATE and connect it to the criteria/key figures you wish to use it on.
    3 Configure another button similarely with the command SET_SELECTION STATE. (In our user case this button was not necessary)
    4 Configure the Container layout item to display your checkbox and button group as desired.
    This should solve your problem, we had exactly the same problem with the before "unfriendly" user interface.
    BR,
    Niclas

  • How to select/unselect all checkbox in one column

    Hi Experts,
    I have a report with a column as check box. The query is like:
    select apex_item.checkbox(1, ID) "update", ID, name, job
    from a_table
    So that user can select the rows they want to update.
    Sometimes user wants to select all the rows. It's not easy to select all the rows one by one when there are many rows on the report.
    So how to select/unselect all rows in this case?
    Thanks,
    Daniel

    Hi,
    See if this post help
    Re: Need Check All in Checkbox
    Regards,
    Jari

  • ABAP Web Dynpro, ALV, Cardinality 0..n, Remove Select/Deselect All

    Hi Everyone
    I am developing a new application using ABAP Web Dynpro. I am using ALV. I want to give the user the option to select either 0 or multiple rows in the ALV grid. However, I want to hide the standard Select All/Deselect All push button that appears in the top left hand corner. This is because we do not want the user to simply select all and then click on a pushbutton to complete the process. If they wish to do this, they must manually select each item first of all. Anyone have any ideas? I've looked at the underlying ABAP classes for WD4A, but cannot find a method to do this.
    Thanks in advance for your help!!
    Jon

    Hello,
    To hide the buttons that appear at the top left of ALV, do the following:
    lo_model->if_salv_wd_std_functions~set_edit_check_available(
        EXPORTING value  = abap_false )   .
      lo_model->if_salv_wd_std_functions~set_edit_append_row_allowed(
          EXPORTING  value  = abap_false )  .
      lo_model->if_salv_wd_std_functions~set_edit_insert_row_allowed(
        EXPORTING  value  = abap_false )   .
      lo_model->if_salv_wd_std_functions~set_edit_delete_row_allowed(
        EXPORTING  value  = abap_false )   .
      lo_model->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
      lo_model->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
    lo_model->if_salv_wd_std_functions~SET_EXPORT_ALLOWED( abap_false ).
    Hope this helps!
    Regards,
    Srilatha

  • Is it possible to open/start a slideshow using a button on the home page?

    Hi all. I want a slideshow on the home page of my graphic design website, but ideally I want it to pop up 'in place' when a button is pressed (these buttons are for things like 'illustration', 'print design', 'logo design' etc, with each slideshow being a portfolio of images. Is this possible to do? So instead of the buttons each linking to their own page, they link to a slideshow that pops up on screen?
    Let me know if you require further info.

    Yes you can design this.
    Use any composition , trigger can be used as button which would open container on click. In container insert slideshow with images.
    The images used can be linked to their specific pages.
    Thanks,
    Sanjit

  • Is it possible to select which div is used in fluid design?

    OK, I have built a site that consists of header and footer sections and three column divs - LeftDataBox, CenterDataBox and RightDataBox. I've used Dreamweaver CS6 to design it in a fluid style and it works well going from desktop to cell phone. However, when the site moves to the cell phone, the column LeftDataBox appears first after the header. Since most of the active content of the site is placed in the CenterDataBox div, I would prefer if that was the first div selected instead of LeftDataBox. Is there something in DW or CSS that I can apply to tell the browser to pick the CenterDataBox first? I haven't bothered to include code here, as it will not be particularly useful in the more or less general question I'm asking. I can send a link to the site if that might help, but I think it's pretty straightforward - by default as the divs lay out on the smaller screen, they go from top to bottom/left to right. I would like to swap the divs containing LeftDataBox and CenterDataBox for only small screens. If the question seems inappropriate I apologize, but have not been able to find a realistic answer after searching the web.

    I prefer to use HTML5 tags.  Aside = sidebars. Article = main content.
    What I'm saying is  FGLayouts are not able to switch div order.  Div order is based on where you put it in the HTML markup.
    However, with CSS Flexbox  div order can be defined in your media queries like this.
    Mobile:
      header    { order: 1; }
      nav       { order: 2; }
      article  { order: 3; }
      aside.one { order: 4; }
      aside.two { order: 5; }
      footer    { order: 6; }
    Desktop:
      header    { order: 1; }
      nav       { order: 2; }
      aside.one { order: 3; }
      article   { order: 4; }
      aside.two { order: 5; }
      footer    { order: 6; }
    But Flexbox is not quite ready for prime time yet.  Browser support for it is still spotty. You can read more about it at CSS Tricks:  https://css-tricks.com/snippets/css/a-guide-to-flexbox/
    Nancy O.

  • How to find a dependent row in the all tables using single SQL query

    hi all,
    I have created some table with master and some dependent tables.I want to mark a (row)tuple as inactive in master so that corresponding child records also should be marked as inactive.
    So i decided to mark the master and dependent records as inactive starting from master table and traverse to child tables.
    So I need SQL query to fetch all dependend records to the row(marked row in the master ) from the master table and dependent rows from the child row and to mark as flag inactive.
    can anybody help me out to build this query or any other way to mark flag as inactive ?
    Regards
    punithan

    You can find dependant tables from ALL_CONSTRAINTS, e.g:
    SQL> CREATE TABLE m (id INT PRIMARY KEY, flag VARCHAR2(1) NOT NULL);
    Table created.
    SQL> CREATE TABLE d1 (m_id REFERENCES m, flag VARCHAR2(1) NOT NULL);
    Table created.
    SQL> CREATE TABLE d2 (m_id REFERENCES m, flag VARCHAR2(1) NOT NULL);
    Table created.
    SQL> SELECT table_name, owner, status
      2  FROM   all_constraints c
      3  WHERE  c.constraint_type = 'R'
      4  AND    ( c.r_owner, c.r_constraint_name ) IN
      5         ( SELECT owner, constraint_name
      6           FROM   user_constraints
      7           WHERE  table_name = 'M'
      8           AND    constraint_type IN ('U','P') );
    TABLE_NAME                     OWNER                          STATUS
    D2                             WILLIAMR                       ENABLED
    D1                             WILLIAMR                       ENABLED
    2 rows selected.There is no SQL command to apply all updates in one go, if that's what you were looking for.
    AFAIK the word "tuple" is for mathematics and relational theory, and does not refer to a physical row in a database.

  • Is it possible to do two online requests in single button on click?

    Hi Experts,
       I am developing an app with oracle function that procedure is in this link in Hybrid application SMP2.3.
       http://scn.sap.com/thread/3543528
        upto this is working fine.
      In this i am login with username and password that is checking with my mbo and in the next screen i have to show the notification list from the logged in username.
    Now i have a doubt how can i call the two online request at one time?
    1. For Login Button i have to give online request on Validate_Login MBO.
    2. For showing the notifications list based on the logged in username i have to give the online request on WF_Notifications table.
      How to do two online requests at one time, is there anyway to do this requirement.
    or shall i manage this in custom.js?
    Any suggestion will be appriciated.
    Thanks & Regards,
    Sravanya.K

    Midhun,
    I read the discussion as jitendra shared, in that thread we are creating a menu item that item is hide by using jquery code in custom.js, in hybird_JQM.html file i am able to see the function which is created for that menu item. but when i created the custom menu item i am unable to see that custom menu item code in hybrid_JQM.html file.
    How to know which function is calling for that custom menu item..
    Thanks & Regards,
    Sravanya.K

  • Selecting playlists checkboxes to sync does not always select/deselect.

    When I plug in my iPad to my MBP and try to select playlists to sync, the check boxes don't always work when clicked on. I have to click it a few times for it to select/deselect a checkbox. I have all OS X updates installed and I'm still running Snow Leopard.

    Solved this by noticing in about:sync-log that one home2 for some reason it got stuck and did not sync. Using the manual sync facility (the small icon which you can find by modifying your toolbar) solved everything and suddenly everything sync'ed to everything!
    This function is worth its weight in gold :)
    Case solved and closed

  • Select all and deselect all in table control

    Hi experts,
        I want to make the select all and deselect all options in my table control.
    But i can't able to do that one. Kindly suggest me how to do that one.
    one more thing, if i select some rows in the table control, and press save it should be saved in some other table. how can i implement that one.
    Waiting for ur reply.
    Regards...
    Arun.

    Hi Arun,
    In the context node that you bind to the table, set the cardinality as 0..n and selection as 0..n. In the UI element Table, set the property selectionMode as 'multi'. Then a toggle button for select/deselect all will appear automatically in your table. You can see it in the top left corner.
    For your second question, after selecting the elemets and pressing 'save', in your event handler, do a get_selected_elements( ) on your node. This will return you a set of context elements. Loop through each element and do a get_static_attributes to get the rows. Then you can append these rows to another internal table and bind it to the context. Bind your second table to this node. If the two tables are in different views, the context nodes need to be present in the component controller and mapped to the views.
    Hope this helps.
    Regards
    Nithya

  • How does select stmt with for all entries uses Indexes

    Hello all,
    I goes through a number of documents but still confused how does select for all entries uses indexes if fields are not in sequences. i got pretty much the same results if i take like two cases on Hr tables HRP1000 and HRP1001(with for all entries based upon hrp1000). Here is the sequence of index fields on hrp1001 (MANDT, OTYPE, OBJID, PLVAR, RSIGN, RELAT, ISTAT, PRIOX, BEGDA, ENDDA, VARYF, SEQNR). in second case objid field is in sequence as in defined Index but i dont see significant increase in field even though the number of records are around 30000. My question is does it make a differrence to use field sequence (same as in table indexes) in comparison to redundant field sequence (not same as defined in table indexes), secondly how we can ge tto know if table index is used in Select for entries query i tried Explain in ST05 but its not clear if it uses any index at all in hrp1001 read.
    here is the sample code i use to get test results.
    test case 1
    REPORT  zdemo_perf_select.
    DATA: it_hrp1000 TYPE STANDARD TABLE OF hrp1000 WITH HEADER LINE.
    DATA: it_hrp1001 TYPE STANDARD TABLE OF hrp1001 WITH HEADER LINE.
    DATA: it_hrp1007 TYPE STANDARD TABLE OF hrp1007 WITH HEADER LINE.
    DATA: it_pa0000 TYPE STANDARD TABLE OF pa0000 WITH HEADER LINE.
    DATA: it_pa0001 TYPE STANDARD TABLE OF pa0001 WITH HEADER LINE.
    DATA: it_pa0002 TYPE STANDARD TABLE OF pa0002 WITH HEADER LINE.
    DATA: it_pa0105_10 TYPE STANDARD TABLE OF pa0105 WITH HEADER LINE.
    DATA: it_pa0105_20 TYPE STANDARD TABLE OF pa0105 WITH HEADER LINE.
    DATA: t1 TYPE timestampl,
          t2 TYPE timestampl,
          t3 TYPE timestampl 
    SELECT * FROM hrp1000 CLIENT SPECIFIED  INTO TABLE it_hrp1000 bypassing buffer
                WHERE mandt EQ sy-mandt AND
                      plvar EQ '01' AND
                      otype EQ 'S'AND
                      istat EQ '1' AND
                      begda <= sy-datum AND
                      endda >= sy-datum AND
                      langu EQ 'EN'.
    GET TIME STAMP FIELD t1.
    SELECT * FROM hrp1001 CLIENT SPECIFIED INTO TABLE it_hrp1001 bypassing buffer
                FOR ALL ENTRIES IN it_hrp1000
                 WHERE mandt EQ sy-mandt AND
                        otype EQ 'S' AND
    *                    objid EQ it_hrp1000-objid and
                        plvar EQ '01' AND
                        rsign EQ 'B' AND
                        relat EQ '007' AND
                        istat EQ '1' AND
                        begda LT sy-datum AND
                        endda GT sy-datum and
                        sclas EQ 'C' and
                        objid EQ it_hrp1000-objid.
    *                    %_hints mssqlnt 'INDEX(HRP1001~0)'.
    *delete it_hrp1001 where sclas ne 'C'.
    GET TIME STAMP FIELD t2.
    t3 = t1 - t2.
    WRITE: 'Time taken - ', t3.
    test case 2
    REPORT  zdemo_perf_select.
    DATA: it_hrp1000 TYPE STANDARD TABLE OF hrp1000 WITH HEADER LINE.
    DATA: it_hrp1001 TYPE STANDARD TABLE OF hrp1001 WITH HEADER LINE.
    DATA: it_hrp1007 TYPE STANDARD TABLE OF hrp1007 WITH HEADER LINE.
    DATA: it_pa0000 TYPE STANDARD TABLE OF pa0000 WITH HEADER LINE.
    DATA: it_pa0001 TYPE STANDARD TABLE OF pa0001 WITH HEADER LINE.
    DATA: it_pa0002 TYPE STANDARD TABLE OF pa0002 WITH HEADER LINE.
    DATA: it_pa0105_10 TYPE STANDARD TABLE OF pa0105 WITH HEADER LINE.
    DATA: it_pa0105_20 TYPE STANDARD TABLE OF pa0105 WITH HEADER LINE.
    DATA: t1 TYPE timestampl,
          t2 TYPE timestampl,
          t3 TYPE timestampl 
    SELECT * FROM hrp1000 CLIENT SPECIFIED  INTO TABLE it_hrp1000 bypassing buffer
                WHERE mandt EQ sy-mandt AND
                      plvar EQ '01' AND
                      otype EQ 'S'AND
                      istat EQ '1' AND
                      begda <= sy-datum AND
                      endda >= sy-datum AND
                      langu EQ 'EN'.
    GET TIME STAMP FIELD t1.
    SELECT * FROM hrp1001 CLIENT SPECIFIED INTO TABLE it_hrp1001 bypassing buffer
                FOR ALL ENTRIES IN it_hrp1000
                 WHERE mandt EQ sy-mandt AND
                        otype EQ 'S' AND
                        objid EQ it_hrp1000-objid and
                        plvar EQ '01' AND
                        rsign EQ 'B' AND
                        relat EQ '007' AND
                        istat EQ '1' AND
                        begda LT sy-datum AND
                        endda GT sy-datum and
                        sclas EQ 'C'." and
    *                    objid EQ it_hrp1000-objid.
    *                    %_hints mssqlnt 'INDEX(HRP1001~0)'.
    *delete it_hrp1001 where sclas ne 'C'.
    GET TIME STAMP FIELD t2.
    t3 = t1 - t2.
    WRITE: 'Time taken - ', t3.

    Mani wrote:
    Thank you for your answer, its very helpful but i am still nor sure how does parameter rsdb/max_blocking_factor affect records size.
    Hi,
    The blocking affects the size of the statement and the memory structures for returning the result.
    So if your itab has 500 rows and your blocking is 5, the very same statement will be executed 100 times.
    Nothing good or bad about this so far.
    Assume, your average result for an inlist 5 statement is 25 records with an average size of 109 bytes.
    You average result size will be 2725 byte plus overhead which will nearly perfectly fit into two 1500 byte ethernet frames.
    Nothing to do in this case.
    Assume your average result for an inlist 5 statement is 7 records with an average size of 67 bytes.
    You average result size will be ~ 470 byte plus overhead which will only fill 1/3 of a 1500 byte ethernet frame.
    In this case, setting the blocking to 12 ... 15 will give you 66% network transfer performance gain,
    and reduces the number of calls to the DB by 50%, giving additional benefit.
    Now this is an extreme example. The longer the average row length is, the lower will be the average loss in the network.
    You have the same effects in memory structures, but on that layer you are fighting single micro seconds instead of
    hundreds of these, so in real life it is rarely measurable.
    Depending on table-statistics, oracle might decide for short inlists to use a concatanation instead of an inlist.
    This is supposed to be more costy, but I never had a case where I could proove a big difference.
    Values from 5 to 15 for blocking seem to be ok for me. If you have special statements in customer coding,
    it #might# be benefitial to do the mentioned calculations and do some network tracing to see if you can squeeze your
    network efficiency by tuning the blocking.
    If you have jumbo frames enabled, it might be worth to be analyzed as well.
    If you are only on a DB-CI system that is loopback connected to the DB, I doubt there might be a big outcome.
    Hope this helps
    Volker

  • How to set selected all checkboxes in all dataTable's rows?

    Hi there,
    I'm trying to perform this simple task: having a dataTable with a column containing checkboxes, how can I allow (with a button, a "super" checkbox or so) to simultaneously set selected all checkboxes in all rows?
    And - is it possible to do so without calling the submit of the page?
    Thanks to everyone!

    Yes, the paging for <h:dataTable> works pretty good, it manages the task through four methods created in the java code -- DataTable1_firstPageAction(), DataTable1_previousPageAction(), DataTable1_nextPageAction(), DataTable1_lastPageAction() -- without adding any javascript in the jsp page.
    Maybe I could test if a java script similar to the <ui:table>'s one fit also the dataTable...
    thanks

Maybe you are looking for

  • Itunes 7 wont update....help

    I recently purchased a new 2nd generation shuffle for my kids and have been having trouble ever since I first plugged it in. It apparently needs itunes 7 to run but itunes 7 wont update on my computer. Everytime I try to install itunes 7 I get the fo

  • FA/997 for Validation Error

    Hi All, I need some clarification on receiving the 997/FA for the Validation error that happens at the remote trading partner. Will the 997 payload contain the details of the error in it?? How will B2B interpret the FA as positive FA or negative FA?

  • Elliptic curve coprocessor in JCOP

    I have some JCOP41/72K cards with support to ECC. I suppose the cards come with a coprocessor that performs the elliptic curve operations in binary fields, like reduction modulo irreducible polynomial and escalar multiplication of a point. I've alrea

  • Can anyone help me in Labview Program

    Hello All,Iam a begginer and I have a question in finishing a task. Here is it... Consider some binary numbers such as.. 11010010101010001001110101010101001010.... 1.Now my first task is to group it into two 11 01 00 10 10 10 10 00 10...and so on.. 2

  • Prepayment not equaling manual net salary

    Dear Gurus, Iam runninig prepayment for 1000 employees . But prepayment of 5 employees is not coming equal to net salary(All earnings - All deductions) when calculated manually. I dont know why iit is making error in only some employees. Please can a