Table Control Enable / Disable Row

Hi,
I have a table control with 6 columns also screen contains some header input fields.
Out of 6 columns first two columns are disabled.
Depending on value entered in certain field in the header I fill the table control. e.g. if the value in certain field is X, table control is filled with say 15 rows, if value is Y, table control is filled with say 5 rows.
Now my requirement is only those rows which are filled should be disabled. i.e. If user chooses value Y then all rows after 5 should be input enabled.
But since I have disabled the columns statically complete column remains disabled.
Can anybody tell me How to enable a particular row in table control ?
Thanks n Regards,
Nitin
Message was edited by: Nitin Pawar

Say your Table control in TABCON.
You screen structure is SC_ITAB.
Your internal table is ITAB.
In PBO of screen
   LOOP AT ITAB INTO SC_ITAB WITH CONTROL TABCON.
    module SUPPRESS_ROW.
  ENDLOOP.
In ABAP Module
MODULE SUPPRESS_ROW.
IF SC_TAB IS INITIAL.
LOOP AT SCREEN.
  SCREEN-INPUT = 0.
  MODIFY SCREEN.
  ENDLOOP.
else.
  LOOP AT SCREEN.
   SCREEN-INPUT = 1.
   MODIFY SCREEN.
  ENDLOOP.
endif.
This will help you suppress at row level.
You may change the if condition to suit your need .
Cheers
ENDMODULE.

Similar Messages

  • Table control enable and disable rows

    Hi,
    I want to keep the table control in disabled mode initially.
    When user press the add button,the row next to where data is already present should alone be enabled for data entry.
    In PBO event i was able to disable the entire table control.but when i could not find a way to identify the first blank line to enable it for data entry.
    Please help.
    Thanks
    Ambily

    Hi Ambily,
    follow the below steps
    declare a data : w_flag  type c. in the global
    and next write the code the PBO
    PROCESS BEFORE OUTPUT.
    * Module screen GUI-Screen&Status and Screen Logic
      MODULE status_<Screennum>.
    * Table control for OUTPUT
      LOOP AT <table-control> .
        MODULE Modify_screen.
      ENDLOOP.
    Module modify_screen output.
    * Table control reading values from input screen & displaying on screen
      READ TABLE <table>   INDEX <tablecontrol>-current_line.
    If w_flag is initial.
        LOOP AT SCREEN.
          IF screen-name = <Tablecontrol Line>.
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    wndif.
    Endmodule.
    "next in PAI mark the w_flag to 'X'
    Prabhudas

  • Enable/disable rows of Table control

    Hi,
    I am showing n number of records in a table control. These number of records may wary depending on a X condition.
    I have also created a button with which user can create a new record from the same tabkle control and t/f back that new value in the itab.
    Now, when table control is displayed it WILL have certain records in it. I want those records to be in the INPUT = '0' state and rest of the table control lines should  be INPUT = '1'.
    I am trying....
    PROCESS BEFORE OUTPUT.
      MODULE status_0101.
      LOOP AT ts_store WITH CONTROL tabc CURSOR tabc-current_line.
      module change_scr_attr.
      ENDLOOP.
    module change_scr_attr output.
      CASE ok_code.
        WHEN 'DISP'.
       Displays all the records in INPUT = '0' state.
          LOOP AT tabc-cols INTO cols WHERE index GT 0.
            cols-screen-input = '0'.
            MODIFY tabc-cols FROM cols INDEX sy-tabix.
          ENDLOOP.
        WHEN 'CREA'.
         if  *     * disable the CDC Column
        * disable Delete shortcut.
         REFRESH ts_store.
         LOOP AT tabc-cols INTO cols WHERE index GT 0.
             IF  ts_store-zstcdc_store IS INITIAL.
             cols-screen-input = '1'.
           ELSE.
             cols-screen-input = '0'.
           ENDIF.
           screen-active = '1'.
           MODIFY tabc-cols FROM cols INDEX sy-tabix.
         ENDLOOP.
         LOOP AT tabc-cols INTO cols WHERE index GT 0.
           IF  cols-screen-input = '0'.
             cols-screen-input = '1'.
           ELSEIF  cols-screen-input = '1'.
             cols-screen-input = '0'.
           ENDIF.
           MODIFY tabc-cols FROM cols INDEX sy-tabix.
         ENDLOOP.
         LOOP AT SCREEN.
           IF ts_store-zstcdc_store IS INITIAL.
             screen-input = '1'.
           ELSE.
             screen-input = '0'.
           ENDIF.
           MODIFY SCREEN.
         ENDLOOP.
      ENDCASE.
    endmodule.                 " change_scr_attr  OUTPUT
    I have waded thru few threads but I dont get it.
    Plz suggest!!
    ~Sid
    "Max points are assured"

    Hi....
       Actually.... our table control.. is by defalut make disable the empty rows... which are not having data...
    because... the process of dispaly table control like this...
    1.Fetching the records from database into one itab...
    2.Capturing the itab lines with following sytax...in the PBO module..
       > MODULE <TC>_CHANGE_TC_ATTR OUTPUT.
       > DESCRIBE TABLE ITAB LINES <TC>-lines.
       > ENDMODULE.  
    with this you are sizing the table control as for itab size...
    3. Filling or Attaching the itab with Table control...
    > LOOP AT   ITAB
    >      WITH CONTROL TC
    >      CURSOR TC-CURRENT_LINE.
    >   MODULE TC_GET_LINES.
    >  ENDLOOP.
    So in above module we can fill data and can disable and enable rows of certain condition...
    So the condition aplleid rows should be disable and remaining enable.. and important thing is empty rows should be defaultly disabled mode...
    But.. Here you want to appear empty rows should be in enable mode...
    For that in second step.... modify the code like this....
       > MODULE <TC>_CHANGE_TC_ATTR OUTPUT.
       > DESCRIBE TABLE ITAB LINES <TC>-lines.
       >  <TC>-lines = <TC>-lines + 4.
       > ENDMODULE.  
    So with this you can get 4 empty and enable lines...
    and if u are not having 2nd step in ur coding..  just write it now.. it will solve ur problem...
    Pleae get back to me if you want any further clarification...
    Thanks,
    Naveen.I
    Edited by: Naveen Inuganti on Jun 30, 2008 5:03 PM
    Edited by: Naveen Inuganti on Jun 30, 2008 5:50 PM

  • Enable/Disable Rows In table Control

    I m getting material number for particular material doc.  if i get N rows in output i want to disable all other rows of table control.
    Moderator message: please search for previous solutions to similar problems before asking.
    Edited by: Thomas Zloch on Nov 20, 2010 7:24 PM

    Hi,
    In PBO, Loop at your table control lines, create a module inside it and use
    LOOP AT SCREEN.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Senthil

  • SQL Dev  3.0.04 Database Diff on Tables ignores Enabled/Disabled flag. Bug?

    Hello everyone,
    it seems like SQLDeveloper Ver. 3.0.0.4 Tools -> Database Diff ignores ENABLED/DISABLED flag when comparing tables. Namely, two tables (in two schemas) were reported identical although a foreign key constraint was enabled in one schema and disabled in the other schema.
    Am I missing something or is this indeed a bug?
    Many thanks,
    Bob

    Hello everyone,
    it seems like SQLDeveloper Ver. 3.0.0.4 Tools -> Database Diff ignores ENABLED/DISABLED flag when comparing tables. Namely, two tables (in two schemas) were reported identical although a foreign key constraint was enabled in one schema and disabled in the other schema.
    Am I missing something or is this indeed a bug?
    Many thanks,
    Bob

  • How to find  dynamic value(screen value) in table control for current row .

    hi to all,
    i used table control in my screen. for column no 2 field i was used serrch help. and for column number 3 i used a dynamic help.
    in change mode you can change any row for table control.
    when i was using search help for a row which was already entered in column no 3 i cannot get any value.
    how i can get value of row no 3 and column no 2 value.
    thanks

    Try using like index for the serarch the TC-current_line

  • Control Enable/Disable of Save/Delete/Modify buttons

    Hi Friends,
    Have some one written a program how to enable disable the buttons on a for. Like i have 4 buttons
    1) Add New
    2) Save
    3) Modify
    4) Delete
    Now i want to control the enable/disable of these butons. Like when a blank record. ADD NEW, MODIFY, DLETE button shuld remain disable and ONLY SAVE button remains Enable. Similarly when there a change in record. MODIFY BUTTON is enabled.
    Similarly other functions. Have someone written the code for this control. I am trying but no desire results.
    Pliz Help,
    Imran

    Hello Imran
    You have to write a code like
    If <condition> the
    set_item_property(button,enable,property<true/false>);
    ELSIF <condition2>
    set_item_property(button,enable,property<true/false>);
    ELSIF <condition3>
    set_item_property(button,enable,property<true/false>);
    ELSE
    set_item_property(button,enable,property<true/false>);
    END IF;
    the condition can be checked :SYSTEM.form_status.
    Regards
    Mel

  • CVI table control - preallocat​e rows?

    Hello,
    We are using a CVI table control to display test steps as part of a custom test sequencer.  We have varying lengths of test sequences.   A row in the table control is basically a test step in a sequence.
    Is it a correct assumption to preallocate the maximum number of test steps we will encounter at application startup using InsertTableRows?  (In our case it is around 60K rows)
    I'm assuming that performing DeleteTableRows followed by InsertTableRows whenever a new test sequence is loaded could cause peformance issues involving possible memory fragmentation.
    Thanks,

    Hello Sirs,
    I have also the same of slowing problem, when I try to fill some data in CVI table.
    If I try to add 50 (TBC) rows, 4 columns, the fully data display seems to be correct.
    If I try to add 1000 rows, 4 columns, the fully data display take several seconds (30s to 1 min) !
    I try several computers (Core 2 Duo to i3) (XP pro to Seven 32 & 64), same problem.
    In the past, I have the same problem with Labview.
    A NI guy gave me a VIs (FA) property, to permit to delay the refresh of the control latter.
    Like this at each new adding, they was not have a refresh requested, so the filling was fully more quick.
    http://zone.ni.com/reference/fr-XX/help/371361K-01​14/lvprop/pnl_defer_pnl_updts/
    http://digital.ni.com/public.nsf/allkb/547DFDA3D02​FD0AE86257154006933F3
    I go one my reading to find the same CVI function.
    Certified LabWindows/CVI DEVELOPER (2004)
    LabVIEW since 5.01 | LabWindows/CVI since 4.01

  • Disable rows of a table control

    Hi Experts,
      I want to disable a row in table control, whenever SAVE is pressed.
      Scenario: A Table control having 5 rows. User entered data in the first row and pressed SAVE, then
                    that particular row should become greyed out or disabled, so that the user cant change or edit
                    anymore.
    Thanks
    Chandan

    Hi Chandan,
    in the PBO write the code to make the field display by the below logic..
    first read the table control internal table line and check whether the field is filled if the field had value make it display mode else make it input filed..
    see the below logic how to write it..
    PROCESS BEFORE OUTPUT.
    * Table control for OUTPUT
      LOOP AT t_zcxref_classes INTO wa_zcxref_classes
           WITH CONTROL tc_batch .
        MODULE charac_classname_out.            
      ENDLOOP.
    MODULE charac_classname_out OUTPUT.
    * Table control reading values from input screen & displaying on screen
      READ TABLE t_zcxref_classes INTO wa_zcxref_classes
                                INDEX tc_batch-current_line.
    * Logic for screen Display when Required Flag = 'D'
      IF wa_zcxref_classes-required_flag is not intial.      "if the input field has some value making as disaply
        LOOP AT SCREEN.
          IF screen-name = 'WA_ZCXREF_CLASSES-ATWRT'. "field to make as display
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                
    Regards,
    Prabhudas

  • Table Control: Disabling editing for a column

    Hi everyone. Greetings from Buenos Aires, Argentina.
    First of all, I want to apologize for this question in case of it has already been made. The forum is too large to read it completely and I really need the answer, if any, to my trouble.
    I have a table control inside a screen. In it's PBO, I coded a module to change the table control attributes. I declared a work area like the line of the table control's control in order to loop it. I mean this:
    In the TOP of Table Control (I made it by using the wizard) I have this:
    CONTROLS: TC_1 TYPE TABLE VIEW USING SCREEN dynpro_number)
    And in the PBO module I have typed the following:
    MODULE control_change_attrs OUTPUT.
    DATA: wa_tc_1 LIKE LINE OF TC_1-COLS.
    LOOP AT TC_1-COLS INTO wa_tc_1.
    ENDLOOP.
    ENDMODULE.
    In the (...), I have put code with such a logic that, depending of the contents of certain fields in the dynpro, it will hide (or not) some columns of the Table Control. This part is made correctly.
    This logic, also makes (or should make) the table control to disable the input of a column, depending wether a flag is active or not. This flag is activated in other screen's PAI, which is called depending on the contents of the sy-ucomm field of this screen (the one with the table control).
    The (...) is something like this (I'll omit some parts):
    IF wa_tc_1-screen-name = 'COLUMN_TO_HIDE'.
       IF gv_flag = 'X'.
          wa_tc_1-screen-input = 0.
       ENDIF.
       MODIFY TC_1-COLS FROM wa_tc_1.
    ENDIF.
    In a PAI module of this screen, I have coded the following:
    MODULE user_command INPUT.
    CASE gv_ok_code.
       WHEN 'RUN'.
          PERFORM RUN.
        WHEN ...
    ENDCASE.
    END MODULE.
    And in the RUN subroutine, obviusly among other things, I have this:
    CALL SCREEN 0150 STARTING AT XX YY.
    In a module in the PBO of the screen 0150, I clear gv_ok_code. In a PAI module, this is what I have put:
    CASE gv_ok_code.
       WHEN 'ACCEPT'.
          gv_flag = 'X'.
          CLEAR gv_ok_code.
          LEAVE TO SCREEN 0.
      WHEN ...
      WHEN ...
    ENDCASE
    The thing is, when the contents of gv_ok_code is 'ACCEPT' and therefore the flag is activated, then the 0150 screen's PAI finishes and the previous screen's PBO is processed, I know for sure (by the mean of the debugging mode) that the table controls's atrributes are correctly modified, and the most important thing, they stay like that... But, the column desired does not gets disabled, at least not until the NEXT PBO (I mean, it gets disabled when I press the Enter key).
    Why is happening this?

    Thanks a lot for the response, Max.
    I' ve been testing your answer. When I implemented the code that you suggested, after the first PAI, the table control's columns appear as I want.
    The thing is, in order to test if the changes in the columns are reflected in the screen after the call of the dynpro no. 0150 (and the obvious return to the first one), I need to be able to select one or more table control's rows (since when I followed the table control wizard, I made it with selection column, and with multiple selection). But, after implementing your code, I'm not able any longer to select any rows.
    I click on them, but they don't turn yellow. I commented the call of the module inside the LOOP AT itab... of the PBO and I was able to select them once again, so we're sure the problem is caused because of the call to this new module. But why?
    Note: you should know, since the table control is with multilpe selection, the LOOP sentence in the PBO is like this:
    LOOP AT itable
           INTO work_area
           CONTROL tc_1
           WITH CURSOR tc_1-current_line.
    MODULE change_attribs.
    ENDLOOP.
    Does that give a hint to you?

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • How to delete a row in table control(accepts only input)?

    Hi All,
    I have an empty table control which is only use for data input(this data will then be use to store information to a custom table). I have two buttons, Create Entry and Delete Entry.
    In my screenPainter for the table control, I have the checkbox w/SelColumn ticked and assign variable T_DATA-MARK on it.
    Please see the actual screenshots and code below:
    The aim of the table control is just to accept inputs, so the internal table in the PBO is always empty.
    Table Control Screen Painter ScreenShot and Actual SAP Output:
    http://img710.imageshack.us/img710/4751/tablecontrolrowdelete.jpg
    PBO
    PROCESS BEFORE OUTPUT.
      LOOP WITH CONTROL TC_ID.
        MODULE LOAD_TABLECTRL.
      ENDLOOP.
    module LOAD_TABLECTRL output.
      READ TABLE T_ID_CHECK INTO WA_ID_CHECK INDEX TC_ID-current_line.
      IF SY-SUBRC EQ 0.
        MOVE-CORRESPONDING T_ID_CHECK TO TC_ID.
      ELSE.
          "EXIT FROM STEP-LOOP.
          CLEAR ZQID_CHECK.
      ENDIF.
    PAI
    PROCESS AFTER INPUT.
       LOOP WITH CONTROL TC_ID.
         CHAIN.
          MODULE CHECK_ENTRIES     ON CHAIN-INPUT.     
          MODULE MODIFY_T_ID_CHECK ON CHAIN-INPUT.
          MODULE DELETE_ROW        ON CHAIN-INPUT
         ENDCHAIN.
       ENDLOOP.
    module CHECK_ENTRIES input.
      CASE ok_code.
        WHEN 'DEL'.
            PERFORM F_FILL_ITABCREATE USING ZQID_CHECK-MATNR
                                            ZQID_CHECK-LICHA
                                            ZQID_CHECK-LIFNR.
      ENDCASE.
    endmodule.    
    form F_FILL_ITABCREATE  using    us_zqid_check_matnr LIKE MARA-MATNR
                                     us_zqid_check_licha LIKE MCHA-LICHA
                                     us_zqid_check_lifnr LIKE LFA1-LIFNR.
      MOVE: us_zqid_check_matnr TO WA_ID_CHECK-MATNR,
            us_zqid_check_licha TO WA_ID_CHECK-LICHA,
            us_zqid_check_lifnr TO WA_ID_CHECK-LIFNR.
      APPEND WA_ID_CHECK TO T_ID_CHECK.
      CLEAR WA_ID_CHECK.
    endform.
    module MODIFY_T_ID_CHECK input.
    DATA W_TEMPMARK(1) TYPE C.
      MOVE: T_ID_CHECK-MARK TO W_TEMPMARK,
            W_TEMPMARK TO T_ID_CHECK-MARK.
    MODIFY T_ID_CHECK INDEX SY-TABIX TRANSPORTING MARK.
    endmodule.
    module DELETE_ROW input.
      LOOP AT T_ID_CHECK WHERE MARK EQ 'X'.
        DELETE T_ID_CHECK.
      ENDLOOP.
    endmodule.   
    Edited by: Jaime Cabanban on Jan 7, 2010 8:46 PM

    Debugging the PBO part after deletion will help you know why the rows are getting deleted
    This is the sap doc answer for you question regarding LINE.
    Controls the scroll bar of the table control. At LOOP without internal table, LINES has the initial value zero and must be set in the program so that the scroll bar can be used. At LOOP AT <itab> the system sets this component to the number of rows of the internal table, whenever the table control is processed for the first time. The initialization event of a table control is not determined uniquely. If the corresponding internal table is not fully created at this event, then the LINES variable receives an incorrect value. If LINES in the LOOP loop is smaller as the number of rows of the internal table, then the table control contains blank rows at the end.
    Therefore you should always set the LINES component explicitly in the ABAP program, including at LOOP AT <itab>. In this way you have full control over the dimensions of the vertical scroll bar and so can control the number of rows that are ready for input. Initialization should usually occur at PBO directly before the LOOP statement for the table control.

  • Processing of Rows in the Non-visible area - Table Controls

    Hi,
         I have a table control. At any given point on the screen the table control displays 17 rows. now there is a functionality thru which the user will be able to paste some values into a particular column of the table control from the clipboard. Then the user will press save to save all the data on the table control into a DB table. the problem is the rows that are not visible on the screen i.e. the rows that has to be seen by scrolling the table control. while looping the table control these rows are not getting looped i.e. the looping ends with first 17 visible rows. how do i make the table control loop at the remaining records also?

    suppose, your table control name is 'table0'
    and you declare it as :
    'controls  table0 type tableview using screen 100.'
    so to process all rows of this table control you should assign for it
    'table0-lines = n.'
    where n is row count that you know.
    then you can use following statement
    'LOOP AT <internal table> CURSOR <scroll-var>
    [WITH CONTROL <table-control> ]
    [FROM <line1> ] [TO <line2> ].
    ...<actions>...
    ENDLOOP.'
    result: all n rows will be processed. in your case n is greater than 17.

  • Different values in a list box for each row of the table control...

    Dear Experts,
    Is it possible to populate different values for each row in a listbox inside a table control ?
    Example,
    Row 1 in the the table contains A, B & C
    Row 2 in the same table contains C, D & E
    If yes, How?
    yes i am using
      call function 'VRM_SET_VALUES'
        exporting
          id     = i_name
          values = i_list.
    Thank you .
    Message was edited by:
            Kokwei Wong
    Message was edited by:
            Kokwei Wong

    Hi Wong,
    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 ...

  • 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

  • HT4623 my phone no longer shows as conected when i turn on i tunes on the desktop what can i do to fix i can no longer update

    before i would just plug the phone into the desktop and it automaticaly conected i could add music and photos from the computor, now it seems to conect because it updates anything i have added thru the apple store while not conected but not fome the

  • 4.5.605 pushing....

    My phone just came up and said it had the update for 4.5.605 available.....lets see what this may TRY and fix....or what little gremlins comes along with it.....maybe beyond the keyboard it'll actually fix the radio problem once and for all. One can

  • Pop ups don't always work correctly

    I am having problems with pop ups on some sites. I do not have pop ups blocked and I do have javascript enabled. I am using Firefox 6.0.2 on Windows XP 32-bit (I first noticed the problem with an older version of Firefox but upgrading didn't help). T

  • TS3682 my iPad does not appear in the iTune device and it shows the "connect to iTunes" all the time.

    during the update of my iPad some error report came and after that it is not working. i have tried pressing the off key and home key at the same time. i also reinstalled the iTunes bt it is not showing any results. please let me know what to do?

  • Airplay suddenly unavailable

    Hi, Been using airplay regularly from iPad 2 to Apple TV for streaming video. Suddenly today I cannot see Airplay icon during video play on any device (iphone, imac, ipad, etc). Can't use mirroring either. All devices on same wifi network. Tried powe