Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Editing field catalog

Former Member
0 Likes
789

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
746

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

Thanks & Regards,

Chandralekha.

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.

4 REPLIES 4
Read only

Former Member
0 Likes
747

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

Thanks & Regards,

Chandralekha.

Read only

Former Member
0 Likes
746

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

Read only

Former Member
0 Likes
746

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

Regards

Binod

Read only

naveen_inuganti2
Active Contributor
0 Likes
746

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