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

ALV editable convert to no editable

HEllo,

I have an editable field in an ALV GRid. I want to convert in an non editable field when I change his value and

I push a buttom that I created. How can I do?

NOTE_ The alv layout of alv is TYPE slis_layout_alv because if I do with lvc_layo I have to do a lot of changes in my

code.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 24, 2006 at 03:40 PM

    In the code for your button:

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    I_CALLBACK_PROGRAM = W_REPID

    I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

    P_SELFLD TYPE SLIS_SELFIELD.

    case p_ucomm.

    when 'BUT1'.

    layout-edit = space.

    p_selfnd-refresh = 'X'.

    endcase.

    ENDFORM.

    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.