‎2007 May 16 5:59 AM
Hi Friends ,
In my ALV report i want to do <b>sum</b> for a field that is of numeric character data type . In my field catalog for that particular field i entered as
wa_fcat-do_sum = 'X' .
But it is not working . Can anybody tell me how to overcome this issue .
Points will be rewarded .
Thanks ,
Senthil
‎2007 May 16 6:08 AM
‎2007 May 16 6:08 AM
‎2007 May 16 6:13 AM
Hi,
In ALV what ever ur passing the value its correct definatly u will get SUM.
any way i am sending sample code.
NTGEW LIKE LIKP-NTGEW, "NET WEIGHT
I_FIELDCAT1-FIELDNAME = 'NTGEW'.
I_FIELDCAT1-SELTEXT_M = 'NET WEIGHT'.
I_FIELDCAT1-DO_SUM = 'X'.
APPEND I_FIELDCAT1 TO I_FIELDCAT1.
CLEAR I_FIELDCAT1.
If it is use full answer please reward me a points.
‎2007 May 16 6:15 AM
Hi Chandrasekar ,
Thanks a lot . Problem solved .
Thanks and Regards ,
Senthil Kumar R
‎2007 May 16 6:15 AM
hi,
Once put break point near the appending of field catalogue and cheak whether the dta is getting appended correctly in fieldcat internal table..
It should work properly..
rewards if so,
regards,
nazeer