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

Making a field Input Enabled in ALV Grid in 4.6 B

Hi All,

Is it possible to make a field input enabled in ALV Grid in 4.6B?

If it is possible could you please let me know as to what needs to be done to make a field input enabled?

Thanks & Regards,

Rahul.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:18 AM

    Roy,

    I don't think in 4.6B the editable feature is available.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 25, 2005 at 09:18 AM

    Hi Roy,

    look at that :

    and you can search in the forum the key words: ALV edit

    Rgd

    Frédéric

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:18 AM

    Hi

    you can see the report

    BCALV_EDIT_01

    BCALV_EDIT_02

    end so on.

    In the layout structure there is the field edit put X.

    Bye

    enzo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:25 AM

    in the Field catalog,

    for that field column ,set

    fieldnm->EDIT = 'X'.

    thats it..you hav nothing more to do.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:25 AM

    Hi,

    Use field catalog to enable field. In this field catalog

    use field "fieldname" to enable field. But that must be

    in capital latter.

    Regards,

    Amey

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 09:26 AM

    Hi All,

    Thank you all for your prompt response.

    There is no option for EDIT in the field catalog in 4.6B. In one of the response a link was given, but in that duscussion they were using EDIT option in the field catalog.

    One other response they had given some program names to refer. Those programs do not exist in 4.6B

    Thanks & Regards,

    Rahul.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I am sending you portion of one sdn bolg...

      This may be one of the mostly-used functionalities of the ALV Grid since as a developer we prefer to use an ALV Grid instead of a table control for some reasons that are known by all of you (at least for the sake of appearance). In fact, making the ALV Grid editable has nothing to do with events. However, since controlling data input which is explained in the next section is related, it is better that we deal with this topic here. To make a column editable, it will be sufficient to set the field “EDIT” in the field catalog. The ALV Grid perceives if there are some editable fields and adds buttons for editing purposes. If you do not need these new buttons, you know how to exclude them. To make individual cells editable, we will utilize the table we used for making a cell a pushbutton. As you remember, it was of type “LVC_T_STYL”. If you have not added this inner table, add it now. For this procedure; add the name of the field to the field “FIELDNAME”, and pass “cl_gui_alv_grid=>mc_style_enabled” to make a field editable and “cl_gui_alv_grid=>mc_style_disabled” to make a field non-editable, to the field “STYLE”. You can use the one with “disable” when you make an entire column editable and want just a few of cells along it non-editable. As you remember from the pushbutton section we must tell the layout about this styling field. e.g. ps_layout-stylefname = ‘CELLSTYLES’ . Now, let’s solidify the procedure by code parts below. We want our column “SEATSMAX” entirely editable except the case “CARRID” is ‘XY’ which is a rare case and we want our cells along the column ‘PLANETYPE’ editable if their respective ‘CONNID’ fields contain the value ‘02’. Assume we have added our style table (“CELLSTYLES”) to our list data table and tell the layout structure about it and we adjust the field catalog so that the column “SEATSMAX” has the property “EDIT” set to ‘X’.

      FORM adjust_editables USING pt_list LIKE gt_list[] .

      DATA ls_listrow LIKE LINE OF pt_list .

      DATA ls_stylerow TYPE lvc_s_styl .

      DATA lt_styletab TYPE lvc_t_styl .

      LOOP AT pt_list INTO ls_listrow .

      IF ls_listrow-carrid = 'XY' .

      ls_stylerow-fieldname = 'SEATSMAX' .

      ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled .

      APPEND ls_stylerow TO lt_styletab .

      ENDIF .

      IF ls_listrow-connid = '02' .

      ls_stylerow-fieldname = 'PLANETYPE' .

      ls_stylerow-style = cl_gui_alv_grid=>mc_style_enabled .

      APPEND ls_stylerow TO lt_styletab .

      ENDIF .

      INSERT LINES OF lt_styletab INTO ls_listrow-cellstyles .

      MODIFY pt_list FROM ls_listrow .

      ENDLOOP . ENDFORM

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2005 at 10:27 AM

    Hi all,

    Thank you all for your response.

    The data type lvc_s_styl does not exist in 4.6B.

    Thanks & Regards,

    Pradeep.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2005 at 09:24 AM

    Hi All,

    I have tried all means and i think we can conclude that it is not possible to make a field input enabled in ALV Grid in 4.6 B

    Thanks & Regards,

    Rahul.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 27, 2005 at 01:17 PM

    Hi Rahul,

    I was also trying to do this in 4.6B a while again and came to the same conclusion. Even some of the type pools needed for some of the AVL content are not preset in 4.6B and of the rest that are they are not complete. 4.6C is the first version to support this.

    Thanks Kieran

    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.