2008 Jul 25 7:32 AM
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.
2008 Jul 25 7: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
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.
2008 Jul 25 7: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
Thanks & Regards,
Chandralekha.
2008 Jul 25 7: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
2008 Jul 25 7:40 AM
Your question is not clear...Will you pls elaborate it
Regards
Binod
2008 Jul 25 7: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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |