Skip to Content
avatar image
Former Member

HOW TO MAKE TABLE CONTROL NON EDITABLE

hi all

how to make table control non editable

Thanks & Regards

harsha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Dec 13, 2006 at 02:28 PM

    In screen painter, you simply make each column of the table control "Output" as opposed to "Input".

    Double click on each column, and set the attribute in the dialog.

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Try this code in the PBO inside the module in the LOOP...ENDLOOP.

      
         IF SY-TCODE EQ 'ZEMPLDISPLAY'.
          LOOP AT SCREEN.
           if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
          endif.
          ENDLOOP.
        ENDIF.
      
      

      Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check 'Output only' field.

  • avatar image
    Former Member
    Dec 13, 2006 at 02:44 PM

    goto SE51 and specify the program name...Go to the screen & place cursor on the table control fields...Go to the property of the field and untick the checkbox INPUT.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2009 at 06:10 AM

    Check weather your Program is in change mode.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2009 at 12:24 PM

    Hi,

    check this link

    Making row non-editable in table control

    Thanks

    Ashu Singh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      no need of any code.

      in table control layout -> be in change mode -> double click on the table field (not on the field header in table control). you geta popup for attributes. here make it as output only.

  • avatar image
    Former Member
    Jul 01, 2012 at 10:26 AM

    Hi, the answer from Venky is almost correct, it was necessary to add the "screen" prefix

    DATA: W_TCONTROL LIKE LINE OF TCONTROL-COLS.

    Loop at TCONTROL-cols into w_TCONTROL..

         w_TCONTROL-SCREEN-INPUT = '0'.

         Modify TCONTROL-cols from w_TCONTROL.

    ENDLOOP.

    Add comment
    10|10000 characters needed characters exceeded