2010 Jun 08 8:48 AM
Hi Experts,
i have to add new field in zprogram of standard alv in ME5J.
its out put structure is MEREP_OUTTAB_EBANACC
but not getting the method that how to add new feild in that structure, as my values are comming in stab_aban internal table.
please help me to get out of this as soon as possible.
waiting for the reply
Thanks and Regards
Neha
Edited by: neha1.gpta on Jun 8, 2010 1:14 PM
2010 Jun 08 12:37 PM
Hi
Use the function module REUSE_ALV_FIELDCATALOG_MERGE
Then use the structure MEREP_OUTTAB_EBANACC to create the field catalogue
Now call the REUSE_ALV_GRID_DISPLAY with your internal table it would work.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
I_INTERNAL_TABNAME =
i_structure_name = 'MEREP_OUTTAB_EBANACC '
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = it_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3
LOOP AT it_fieldcat INTO wa_fieldcat
WHERE fieldname = 'CONTRACT' OR
fieldname = 'ZUPDCIND' .
IF wa_fieldcat-fieldname = 'CONTRACT'.
wa_fieldcat-hotspot = c_x.
MODIFY it_fieldcat FROM wa_fieldcat.
ELSEIF wa_fieldcat-fieldname = 'ZUPDCIND'.
DELETE it_fieldcat INDEX sy-tabix.
MODIFY it_fieldcat FROM wa_fieldcat.
ENDIF.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = gs_layout
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_output1
Edited by: mukesh mahajan on Jun 8, 2010 1:38 PM
2010 Jun 09 1:34 PM
hi Mukesh
thanks for the reply, what u explained is the normal procedure, actually in ME5J i have to add PREIS and GSWRT fields as this is the business requirement.
any guess that where this can be done or not?
Regards
Neha