Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable field in table control

Former Member
0 Kudos

Hello, i have a module pool in which i want to disable some column so where can i put my code in PBO module , please suggest and help me

PROCESS BEFORE OUTPUT.

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC'
   MODULE TC_INIT.
*&SPWIZARD: MODULE TC_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC_CHANGE_COL_ATTR.
   LOOP AT   G_TC_ITAB
        INTO G_TC_WA
        WITH CONTROL TC
        CURSOR TC-CURRENT_LINE.
*&SPWIZARD:   MODULE TC_CHANGE_FIELD_ATTR
     MODULE TC_MOVE.
     MODULE TC_GET_LINES.
     MODULE READ_COLS.
   ENDLOOP.

  MODULE STATUS_9001.
*
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC'
   LOOP AT G_TC_ITAB.
     CHAIN.
       FIELD SFLIGHT-MANDT.
       FIELD SFLIGHT-CARRID.
       FIELD SFLIGHT-CONNID.
       FIELD SFLIGHT-FLDATE.
       FIELD SFLIGHT-PRICE.
       FIELD SFLIGHT-CURRENCY.
       FIELD SFLIGHT-PLANETYPE.
       FIELD SFLIGHT-SEATSMAX.
       FIELD SFLIGHT-SEATSOCC.
       FIELD SFLIGHT-PAYMENTSUM.
       FIELD SFLIGHT-SEATSMAX_B.
       FIELD SFLIGHT-SEATSOCC_B.
       FIELD SFLIGHT-SEATSMAX_F.
       FIELD SFLIGHT-SEATSOCC_F.
       MODULE TC_MODIFY ON CHAIN-REQUEST.
     ENDCHAIN.
   ENDLOOP.
   MODULE TC_USER_COMMAND.
*&SPWIZARD: MODULE TC_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC_CHANGE_COL_ATTR.

  MODULE USER_COMMAND_9001.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vijay,

You need not do any code for this. You can do it in the screen 'Layout'.

Double-click on the column on which you need to disable, you will get the properties window opened.

At the bottom you will have box for 'Attributes', click on 'Program' tab and uncheck 'Input field'.

This will make that column disabled.

Regards,

Kavitha

2 REPLIES 2

Former Member
0 Kudos

Hi Vijay,

You need not do any code for this. You can do it in the screen 'Layout'.

Double-click on the column on which you need to disable, you will get the properties window opened.

At the bottom you will have box for 'Attributes', click on 'Program' tab and uncheck 'Input field'.

This will make that column disabled.

Regards,

Kavitha

Former Member
0 Kudos

Hello Vijay,

You can do this with help of Loop at screen.

Check below threads.

http://scn.sap.com/thread/1163289