Skip to Content
author's profile photo Former Member
Former Member

Disable field in table control

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2012 at 05:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2012 at 06:29 AM

    Hello Vijay,

    You can do this with help of Loop at screen.

    Check below threads.

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.