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

Editing field catalog

Hi All,

I want to edit field in the alv report but on particular value of the key field ,how to do this??? Please help me out on this...

its really helpful if i get sample code for doing so

Thanks & Regards

Ashu Singh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:36 AM

    Hi

    In the Field catalog we can acive this -

    l_fieldcat-input = 'X'. "Editable field

    l_fieldcat-edit = 'X'.

    Please check this links below for more information -

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm

    how-to-create-an-editable-alv

    editable-alv

    How to have Multiple lines as an editable field in ALV

    check boxes in ALV report

    how to save an editable field in alv

    Thanks & Regards,

    Chandralekha.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:38 AM

    hiii

    as per i understand you need to add a field and its value like whenever your key field value is changed ...if your requirement is like this then by using AT NEW event you need to prepare that formated data in one another internal table with that field and then pass that table in to ALV FM.

    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         i_program_name               = sy-repid
         i_internal_tabname           = 'I_OUTPUT'
       i_structure_name             = 'I_OUTPUT'
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
    *   I_INCLNAME                   = sy-repid
    *   I_BYPASSING_BUFFER           =
    *   I_BUFFER_ACTIVE              =
        CHANGING
          ct_fieldcat                  = i_fieldcat
     EXCEPTIONS
       inconsistent_interface       = 1
       program_error                = 2
       OTHERS                       = 3
                .
    wa_fieldcat-tabname = 'I_OUTPUT'.    " Quantity for the finish material in PO
      wa_fieldcat-fieldname = 'MENGE'.
      wa_fieldcat-seltext_l = text-006.
      wa_fieldcat-ref_tabname = 'EKPO'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.

    regards

    twinkal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:40 AM

    Your question is not clear...Will you pls elaborate it

    Regards

    Binod

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2008 at 06:41 AM

    Hi...,

    while creating field cat just do like below

    > l_fieldcat-input = 'X'. "Making the field editable

    > l_fieldcat-edit = 'X'.

    this field will become editable

    Now...

    You can check the condition what ever you wnat!!

    Check the following link:

    http://sapdev.co.uk/reporting/alv/alvgrid_editable.htm

    Thanks,

    Naveen.I

    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.