Hi
I have ALV report that got tons of columns and most of them are showing correctly. But there are two or three where i have a do sum checked got a small problem. The HEADING of the columns says NUMBER instead of its column name...
Look at my code:
******************************************************** ls_fieldcat-fieldname = 'ETIME'. ls_fieldcat-ref_tabname = 'REC'. ls_fieldcat-ref_fieldname = 'ETIME'. ls_fieldcat-seltext_s = 'ET '. ls_fieldcat-seltext_m = 'Et Tm '. ls_fieldcat-seltext_l = 'End Time '. append ls_fieldcat to pt_fieldcat. ***************************************************** ls_fieldcat-fieldname = 'HOURS'. ls_fieldcat-ref_tabname = 'PC2BF'. ls_fieldcat-ref_fieldname = 'ANZHL'. ls_fieldcat-seltext_s = 'Hrs '. ls_fieldcat-seltext_m = 'Hors '. ls_fieldcat-seltext_l = 'Hours'. ls_fieldcat-decimals_out = 2. ls_fieldcat-no_zero = 'X'. ls_fieldcat-datatype = 'DEC'. ls_fieldcat-do_sum = 'X'. append ls_fieldcat to pt_fieldcat. ls_fieldcat-no_zero = ''. ls_fieldcat-datatype = ''. ls_fieldcat-outputlen = ''. ls_fieldcat-do_sum = ''. ls_fieldcat-decimals_out = ''. ls_fieldcat-fieldname = ''. ****************************************************** ls_fieldcat-fieldname = 'PNUMB'. ls_fieldcat-ref_tabname = 'PC20E'. ls_fieldcat-ref_fieldname = 'PRAKN'. ls_fieldcat-seltext_s = 'P# '. ls_fieldcat-seltext_m = 'Pre # '. ls_fieldcat-seltext_l = 'Premium # '. ls_fieldcat-datatype = 'NUMC'. append ls_fieldcat to pt_fieldcat. ls_fieldcat-datatype = ''. *************************************************
The column with Hours is showing NUMBER with the total sum but the column before and after that shows correctly.
I have tried taken out the
<b> ls_fieldcat-do_sum = 'X'.</b>
Then its shows correctly but i need it to do the sum.
Is there anything i need to do in order to show the columns correctly?
Please help. <b><REMOVED BY MODERATOR></b>. thanks
Message was edited by:
Anwarul Kabir
Message was edited by:
Anwarul Kabir
Message was edited by:
Alvaro Tejada Galindo