I have to correct error in ALV out put. The error is the sum of amount field is not displaying in the ALV out put of particular column . Actually in SAP 4.7 version of the same program, it is summing correctly and displaying at the end of the column of that particular field .
But in 4.6 C it is not displaying. It looks the same code in both 4.6 C and 4.7 as well. Could you please suggest me how to achieve this ? This is very urgent.
Below is the code
ADD 1 TO col_pos.
fieldcat_ln-ref_tabname = ws_table . "You can also use the db tabl
fieldcat_ln-fieldname = ws_fieldname. "name(BSIS) here, but it will
fieldcat_ln-qfieldname = ws_qfieldname.
fieldcat_ln-cfieldname = ws_cfieldname.
fieldcat_ln-key = ws_key. "use the db field name instea
fieldcat_ln-do_sum = ws_sum. "of the name you give in
fieldcat_ln-col_pos = col_pos. "reptext_ddic.
fieldcat_ln-no_out = ws_noout.
fieldcat_ln-hotspot = ws_hotspot.
fieldcat_ln-outputlen = ws_outputlen.
fieldcat_ln-reptext_ddic = ws_ddic.
fieldcat_In-seltext_s = ws_ddic.
fieldcat_In-seltext_m = ws_ddic.
APPEND fieldcat_ln TO fieldcat.
data : pgm like sy-repid.
pgm = sy-repid.
call function 'REUSE_ALV_LIST_DISPLAY'
i_callback_program = pgm
I_CALLBACK_PF_STATUS_SET = ' '
i_callback_user_command = 'USER_COMMAND'
I_STRUCTURE_NAME = 'DEFERRED ACCOUNTS REC RPT'
is_layout = lay_out
it_fieldcat = fieldcat
it_sort = sortcat
I_DEFAULT = 'X'
i_save = 'A'
is_variant = g_variant
it_events = eventcat
it_event_exit = gt_event_exit
t_outtab = itab_alv
program_error = 1
others = 2
if sy-subrc <> 0.
message i100(zg) with 'Unable to display ALV due to error'.
You help is highly appreciated.