Check box in table control

Hi,
Is it possible to trigger an event by checking the check box in a table control ,
so that i can use it to activate/ inactivate any field in the same table control ?
anoop

with check box alone you cannot trigger an event. You need to use a button also. All you can do is to trigger one event when the check box is checked and another event when the check box is not triggered.
regards,
srinivas
<b>*reward for useful answers*</b>

Similar Messages

  • How to add check box in table control?

    Dear frnds,
    In our requirement i am used tablec ontrol for dialog programming, but i am confused about addition of check box as fields in table control.
    Any help are welcome from your side.

    Hi,
    Chk this demo program: DEMO_DYNPRO_TABCONT_LOOP_AT
    & RSDEMO02.
    Another way:
    Go to the edit mode of the screen select the table control column you want to make it as check box and follow the menu EDIT->CONVERT->check box.
    (make sure that column definition in itab/ddtab is of size 1 char)
    Also chek out this link:
    Add Check box in Table control
    Hope these help you.
    Regards,
    Anjali

  • How to display check box in atable control

    hi
    here is my requirement
    how can i display check box in table control and also when i check that check box it has to dispaly one pop up screen with the records of table control row
    points will be rewarded
    Thanks&Regards
    Nagesh.Paruchuri

    Hi,
    See this code for how to display check box in atable control
    *---- Table declaration.
    TABLES: KNA1.
    CONTROLS TC1 TYPE TABLEVIEW USING SCREEN 200.
    CONTROLS TC2 TYPE TABLEVIEW USING SCREEN 300.
    *---- Data declaration.
    DATA:OKCODE LIKE SY-UCOMM.
    DATA:V_KNA1 LIKE KNA1.
    *DATA:ERROR TYPE C.
    *---- Internal Table declaration.
    DATA:BEGIN OF IT_TAB OCCURS 0,
          CHK,
          VBELN TYPE VBELN_VA,
          KUNNR TYPE KUNAG,
          ERDAT TYPE ERDAT,
          AUDAT TYPE AUDAT,
          VBTYP TYPE VBTYP,
         END OF IT_TAB.
    DATA:BEGIN OF IT_TAB1 OCCURS 0,
          VBELN TYPE VBELN_VA,
          POSNR TYPE POSNR_VA,
          MATNR TYPE MATNR,
          MATWA TYPE MATWA,
          PMATN TYPE PMATN,
         END OF IT_TAB1.
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      OKCODE = SY-UCOMM.
      CASE OKCODE.
        WHEN 'DISP' OR SPACE.
          SELECT *
             FROM VBAK
             INTO  CORRESPONDING FIELDS OF TABLE IT_TAB
             WHERE KUNNR = KNA1-KUNNR.
          IF SY-SUBRC <> 0.
            MESSAGE 'No sales document exists'(001) TYPE 'I'.
          ENDIF.
          LEAVE TO SCREEN 200.
          CLEAR OKCODE.
    *--- To leave Transaction
        WHEN 'BACK' .
          LEAVE PROGRAM.
          CLEAR OKCODE.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  validate_kunnr  INPUT
    MODULE VALIDATE_KUNNR INPUT.
      V_KNA1 = KNA1.
      SELECT SINGLE *
        FROM KNA1
       WHERE KUNNR = KNA1-KUNNR.
    *-----Process error condition
      IF SY-SUBRC <> 0.
        CLEAR KNA1.
        KNA1-KUNNR = V_KNA1-KUNNR.
        CASE OKCODE..
          WHEN 'BACK' OR 'EXIT' .
            LEAVE PROGRAM.
        ENDCASE.
        MESSAGE 'Customer Does Not Exist'(002) TYPE 'I'.
        LEAVE TO SCREEN 100.
      ENDIF.
    ENDMODULE.                 " validate_kunnr  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'PF'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
    MODULE USER_COMMAND_0200 INPUT.
      CASE OKCODE.
        WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
          LEAVE TO SCREEN 100.
          CLEAR OKCODE.
          CLEAR IT_TAB1.
        WHEN 'DISP' .
          CLEAR OKCODE.
          READ TABLE IT_TAB WITH KEY CHK = 'X'.  
       IF SY-SUBRC = 0.
            SELECT  VBELN   POSNR  MATNR MATWA PMATN
         FROM VBAP
         INTO  TABLE IT_TAB1
         WHERE VBELN = IT_TAB-VBELN.
            IF SY-SUBRC = 0.
              SORT IT_TAB.
              DESCRIBE TABLE IT_TAB LINES TC1-LINES.
              LEAVE TO SCREEN 300.
            ELSE.
              MESSAGE E016(YBHV).
            ENDIF.
          ELSE.
            MESSAGE 'Please select one record' TYPE 'I'.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    *&      Module  STATUS_0200  OUTPUT
    MODULE STATUS_0200 OUTPUT.
      SET PF-STATUS 'PF3'.
    ENDMODULE.                 " STATUS_0200  OUTPUT
    *&      Module  USER_C.OMMAND_0300  INPUT
          text
    MODULE USER_COMMAND_0300 INPUT.
      SET PF-STATUS 'PF3'.
      CASE OKCODE.
        WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
          CLEAR OKCODE.
          LEAVE TO SCREEN 200.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0300  INPUT
    *&      Module  modify  INPUT
    MODULE MODIFY INPUT.
      MODIFY IT_TAB INDEX TC1-CURRENT_LINE.
    ENDMODULE.                 " modify  INPUT
    *&      Module  okcode  OUTPUT
          text
    MODULE OKCODE OUTPUT.
      CLEAR OKCODE.
    ENDMODULE.                 " okcode  OUTPUT
    Reward Pointsa If usefull
    Regards
    Fareedas

  • Use of initial values check box in tables

    Hi,
    what is of use of initial values check box(after the primary key check box)  in tables.
    Regards,
    Suresh

    The flag indicates whether field inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field. I.e. type n(2) is '00'.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.

  • Problem when creating list box in table control

    Hi every body ,
                      I am placing a list box in table control ,  the list box is coming perfectly but
    when I am scrolling  or pressing enter the data in that field is clearing.
       if I remove the list box , and i enter the data directly and scrolling or press enter
    the data is not clearing.
    But only for list box only it is be having like that
    what is the problem?
      the code is as follows
    *{   INSERT         DEVK935807                                        1
    *&      Module  glaccuontlist  INPUT
          text
    module glaccuontlist input.
    type-pools vrm.
    tables: zglaccount.
    data:
            name  type vrm_id,
            list  type vrm_values,
            value like line of list.
           clear:value.
           refresh: list.
            name = 'ACGL_ITEM-HKONT'.
            select * from zglaccount.
             value-key = sy-dbcnt.
             value-text = zglaccount-hkont.
             append value to list.
             clear value.
            endselect.
          call function 'VRM_SET_VALUES'
            exporting
              id                    = name
              values                = list
          EXCEPTIONS
            ID_ILLEGAL_NAME       = 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.
    endmodule.                 " glaccuontlist  INPUT
    *}   INSERT
    thanks in advance.\
    srinivas.

    Hi srinivasa,
    try it.
    select * from zglaccount.
    <b>value-key = zglaccount-hkont.</b>
    value-text = zglaccount-hkont.
    append value to list.
    clear value.
    endselect.
    Regards
    Allan Cristian

  • HT201077 Photos check box on iCloud control panel

    Photos check box on iCloud control panel does not alow me to check box. Windows 7 laptop. Can you help?

    uninstall the control panel and redownload it from apple.com

  • File format in pop up dialog box in table control

    Hi All,
    I am using a popup dialog box on user command click in table control. I have to fix the file format to '.CSV' format only from the selection, how to fix this. The FM is 'KD_GET_FILENAME_ON_F4'. Is there any other FM ?
    Regards
    Gajendra

    Hi,
    To implement general checks in SRM,you can use BADI "BBP_DOC_CHECK_BADI".But the messages will not come in form of POP UPS.To display messages in the form of Pop up ,you need to implement both the BADI's BBP_DOC_CHANGE_BADI and BBP_DOC_CHECK_BADI.
    For sample code,refer the foll link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
    BR,
    Disha.
    DO reward points for useful answers.

  • Urgent Help Required for Check Box in Table Column

    Hi all,
    Could any body help me to solve my problem?
    First of all I have created a table whose one column is check box. The column of the tables are Name,Phone,ID,Address and a checkBox columns.In one view
    the table will be found with data. I want to click on some of the rows(suppose there are 5 rows, but based on some condition I have selected the check box of 3 rows).
    Next there will be a button(Supose SEND Button).
    After selecting the check box I want to press that button and then a new window will come which will show two tables. one for  selected rows(with the same columns name except check box) and another for Unchecked rows with the same column name(Name,Phone,ID,Address).
    Could any body help me by sending the details and code?
    Thanks and Regards.
    Sudip

    Hi Sudip,
    1) create custom controller and appropriate context structure there (dataNode(Name,Phone,ID,Address,Check))
    2) create view StartView. Map data node from custom controller to node in view. Create table and bind context node attributes to appropriate table columns.
    3) create view ResultView. Map data node from custom controller to node in view. Create 2 nodes (CheckedData, UncheckedData) with supply methods. Create filtering implementation in supply methods (add checked and unchecked node elements to appropriate nodes).
    4) create new window with resultView as default view
    4) in startView in button action handler put something like
         IWDWindowInfo _windowInfo = wdComponentAPI.getComponentInfo().findInWindows("Popup");
         IWDWindowManager manager = wdComponentAPI.getWindowManager();
         IWDWindow _window = manager.createWindow(_windowInfo, true);
         _window.open();        
    So, just tried localy and it works.
    Best regards, Maksim Rashchynski.

  • Check Box in Tree Control

    I found that the oracle installation is using tree control with check box. I tried to use the same feature in my application. But I found that the tree control in swing and infoswing is not having the feature to add checkbox in the tree control. If anybody knows how to add checkbox in the tree control using the jdeveloper please help me.

    You can see how to do it the next link http://www2.gol.com/users/tame/swing/examples/JTreeExamples2.html
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by S. Arun ([email protected]):
    I found that the oracle installation is using tree control with check box. I tried to use the same feature in my application. But I found that the tree control in swing and infoswing is not having the feature to add checkbox in the tree control. If anybody knows how to add checkbox in the tree control using the jdeveloper please help me.<HR></BLOCKQUOTE>
    null

  • List box for table control

    Hi,
    I need a list box for an input field in table control.
    In brief. I have 5 fields in table control out of which i have to enter values manually for 1 field and for 1 field i need a list box or drop down and then when i press enter the remaining fields should be populated.
    i got the code working but now they need the drop down list for the second input field.
    If anybody could provide with the code it would be real helpful and  iwas confused whether i need to write code in pov or some where else.
    the field for which i need list box is taken from dictionary .
    any help would be geatly appreciated.
    suchitra

    Refer this link:
    table control Drop down list
    Regards,
    ravi

  • Problem with list box in table control (Module pool) .

    Hi,
    I'm facing a problem while populating values in List Box..
    While I'm clicking a value from the list box it is not being hold in that box...box got blanked.
    Please help me to solve this.

    process before output.
    module pop_drop_down.
    module pop_drop_down output.
      name1 = 'IO5'.
      REFRESH list1.
      LOOP AT it_zpoitshead INTO wa_zpoitshead.
        value1-key = wa_zpoitshead-createdt.
        value1-key = wa_zpoitshead-its_ebeln.
        APPEND value1 to list1.
      ENDLOOP.
      CLEAR value1.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id                    = name1
          values                = list1
       EXCEPTIONS
         ID_ILLEGAL_NAME       = 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.
    endmodule.                 " pop_drop_down  OUTPUT

  • Table Control Check Box

    Hi,
    i am Displaying a table control in module pool programming
    i need to have check boxes for each item in the table control.
    Regards,
    Vijaya

    HI,
    Refer to the link.
    how to create a check box in table control
    This may help.
    Regards
    Sumit Agarwal

  • Question Related to Check-box in Dialog Program

    Hi All-
    I desgined check box in Table Control... In my Internal table I have 41 records, When user click on Select all button it selects only first 14 records from the table control...When the user uses page-down, then click on Select all, selects remaining 14 records and so on...
    But how to select all the records at a time instead of using page-down...
    Please advice me how to solve my problem!!!!
    Thanks,
    Sony

    I would not suggest doing it like that.  Instead move the MODULE USER_COMMAND outside of that loop.
    *  Screen Flow Logic 
    PROCESS AFTER INPUT.
    LOOP AT i_x002 .
    ENDLOOP.
    MODULE user_command_0600 .
    *  Module coding
    MODULE user_command_0600 input..
    CASE sy-ucomm.
    WHEN 'SELA'.
    loop at i_x002.
    i_x002-flag = 'X'.
    MODIFY i_x002.
    endloop.
    WHEN 'DELA'.
    loop at i_x002.
    i_x002-flag = space.
    MODIFY i_x002.
    endloop.
    ENDCASE.
    endmodule.
    Regards,
    Rich Heilman

  • Check box in a table not being read on auto read by JAWS(Screen Reader)

    Hi Experts,
    I am working on Accessible pages in ADF. Check box in table is not being read on "Auto Read" function by jaws. Auto read is a function that allows the user to start the screen reader at the top of the page and read the entire thing that is provided by JAWS. I have even specified label property for af:selectBooleanCheckbox. Can anyone help me regarding this issue.
    Regards,
    Santosh.
    Edited by: 930871 on Jun 13, 2012 6:54 AM
    Edited by: 930871 on Jun 13, 2012 7:25 AM

    Can anyone help me on this issue. This is really urgent.

  • Table control list box. different values in each row of the list box

    Hi all,
    i have a requirement to display text box in table control. Each row of list box should contain different values.
    i tried with the below code  but the values are not getting populated in list  box. please give your ideas.
    I tried with list box which is having same values in all rows, it is working fine.
    loop at itab.
    select vbeln from ZSD_PS_BLAWB into ZSD_PS_BLAWB-vbeln
    where BLAWBNO = itab-BLAWBNO and
    BLAWBDT = itab-BLAWBDT and
    CTRNO = itab-CTRNO.
    if sy-subrc = 0.
    index = 1.
    list3-key = index.
    list3-text = ZSD_PS_BLAWB-vbeln.
    append list3 to list2.
    index = index + 1.
    endif.
    endselect.
    clear index.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    ID = 'ITAB-VBELN'
    VALUES = list2
    EXCEPTIONS
    ID_ILLEGAL_NAME = 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.
    modify itab.
    endloop.
    Thanks in advance.

    Hi,
    this is code example for listbox
    TYPE-POOLS vrm .
    DATA: lt_vrm_values TYPE TABLE OF vrm_value.
    DATA: wa_vrm_values TYPE vrm_value.
    PARAMETER p_list AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
      wa_vrm_values-key = 'Key1'.
      wa_vrm_values-text = 'Value1'.
      APPEND wa_vrm_values TO lt_vrm_values.
      wa_vrm_values-key = 'Key2'.
      wa_vrm_values-text = 'Value2'.
      APPEND wa_vrm_values TO lt_vrm_values.
      wa_vrm_values-key = 'Key3'.
      wa_vrm_values-text = 'Value3'.
      APPEND wa_vrm_values TO lt_vrm_values.
    AT SELECTION-SCREEN OUTPUT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'P_LIST'
                values          = lt_vrm_values
           EXCEPTIONS
                id_illegal_name = 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.
    To fill it with data from DB, just do select in INITIALIZATION and put that values with same alghoritmus.
    Manas M.
    P.S.: This is very easy question, you should use search ...

Maybe you are looking for

  • One user for multiple tablespaces

    Hello. Oracle 11g enterprise. Whenever I setup a new tablespace on my server, I create a user for each tablespace on the server. Is is possible to create only one user for all tablespaces on a server? What is the easiest way to create this one user t

  • Using Thunderbolt Display with Alienware Laptop

    I want to also use my thunderbolt display with a m18x alienware laptop which has HDMI out and a mini display port.  Is there any way I can use this display with this laptop either directly or with an adapter? Thanks

  • Could not initiate SSL connection when DS is launched from Eclipse

    Hello, I am wondering whether anyone has faced this issue connecting to the BIP with https when Design Studio is launched from the Eclipse IDE. The URL is something like : https://myservername.domain.net/dswsbobje/services/Session We get the followin

  • Add a Date column

    I want to add a column to the end of a existing Table that has data in it. I need the column to contain DATE information and then after inserting the column I need to make all the rows values for that new added column to be in this format: Month-Year

  • Alias of a table is not recognized in the nested select statement

    Hi, I have to migrate a query in DB2 to Oracle. The query in DB2 uses Fetch First Row, this is being replaced by Rownum as follow. DB2 Query SELECT S.ID AS ID, (SELECT VALUE_N FROM ARCHIVE.PACKAGE_PARAMETERS WHERE PACKAGE_ID = S.ID AND ROWNUM < 2) AS