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

Fields Noneditable

Hi,

How to make perticular field on screen non editable.

What is code to make it non editable and other fields remaining editable.

Regards,

Deepak.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Dec 19, 2008 at 06:46 AM
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'P_MATNR'.
    SCREEN-INPUT = 1.  " Change it to 0 or 1.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:51 AM

    For module pool

    Code like this in MODULE in PBO

    LOOP AT SCREEN.

    IF SCREEN-FIELDNAME = 'ABC'.

    SCREEN-INPUT = 0.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    For selection screen

    Under AT SELECTION-SCREEN OUTPUT. event

    Code:

    LOOP AT SCREEN.

    IF SCREEN-FIELDNAME = 'ABC'.

    SCREEN-INPUT = 0.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:52 AM

    Hi,

    If the required field is in module pool screen then in the attributes of the field under the 'Program Tab'--> check 'Output only'.

    This will prevent it from editable.

    Thanks,

    Ramya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 06:53 AM

    Try this

    AT SELECTION SCREEN OUTPUT

    LOOP AT SCREEN.

    IF SCREEN-NAME = 'XYZ'.

    SCREEN-INVISIBLE = 1.

    SCREEN-ACTIVE = 0.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 07:38 AM

    hi deepak,

    you have to assigned group to all fields which you want to disable with same group name.

    write code in PBO

    LOOP AT SCREEN.

    IF SCREEN-GROUP1 = 'G1'.>>> your group name

    SCREEN-INPUT = 0.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.

    ENDIF.

    here group name is G1.

    hope it works

    thanks

    SAchin

    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.