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

Edit Fields

Hi, how can i set some fields to edit in my alv, using 'REUSE_ALV_GRID_DISPLAY'??

the structure slis_specialcol_alv is only for set the collor??

thanks

Alexandre Nogueira .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 05:10 PM

    Do you mean to say,edit few cells in one column??

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2005 at 05:00 PM

    This might help.

    EDIT_MODE in REUSE_ALV_GRID_DISPLAY

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 05:07 PM

    Yes...Just pass this parameter for the colume you want to edit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 05:00 PM

    Hi,

    Use the structure SLIS_LAYOUT_ALV & the fiedl name is EDIT.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi ALex
      do it in fieldcat.....
        X_FIELDCAT-SCRTEXT_M = 'MATNR'(023).
        X_FIELDCAT-FIELDNAME = 'MATNR'.
        X_FIELDCAT-TABNAME = 'IT_FINAL'.
        X_FIELDCAT-COL_POS    = L_POS.
        X_FIELDCAT-OUTPUTLEN = '10'.
        X_FIELDCAT-EDIT = 'X'.
      
      <b>  CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
            IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
            IS_VARIANT           = LS_VARI
            I_SAVE               = 'A'
            IS_LAYOUT            = GS_LAYOUT1
          CHANGING
            IT_FIELDCATALOG      = IT_FIELDCAT1
            IT_OUTTAB            = IT_VEKP1[].
      after call method you need to call this method..
      ** Set editable cells to ready for input initially
        CALL METHOD G_GRID1->SET_READY_FOR_INPUT
          EXPORTING
            I_READY_FOR_INPUT = 1.</b>
  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 05:04 PM

    Hi

    In the field catalog set attribute EDIT = 'X'.

    for e.g.

    LOOP AT it_fieldcat_src INTO wa_fieldcat.

    CASE wa_fieldcat-fieldname.

    WHEN 'XXXXXX'.

    wa_fieldcat-col_pos = '1'.

    wa_fieldcat-outputlen = '11'.

    wa_fieldcat-seltext_l = text-009.

    wa_fieldcat-edit = 'X'.

    ENDCASE.

    MODIFY it_fieldcat_src FROM wa_fieldcat INDEX sy-tabix.

    ENDLOOP.

    Regards

    Kalpana

    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.