12-18-2008 9:05 AM
Iam getting value like 2,007.00 for filed of type currency in alv output.
Expected is 2007 ( excluding comm and decimal part)
Can you help me out.
12-18-2008 9:10 AM
12-18-2008 9:10 AM
12-18-2008 9:14 AM
Hi Subramani,
You can handle this issue with field catalog.
You have fields like DATATYPE, INTTYPE etc. in field catalog, where you can change the data type for display and hence control the commo and zeros.
Best Regards,
Ram.
Edited by: ram Kumar on Dec 18, 2008 10:15 AM
12-18-2008 9:20 AM
pass the reference table name and fieldname in the field cat
ls_fieldcat-fieldname = 'ANSAL'
ls_fieldcat-tablename = 'GT_TAB' "--->ur internal table
ls_fieldcat-cfieldname = 'ANCUR' " this needs to be there
ls_fieldcat-ctabname = 'GT_TAB' " this needs to be there
ls_fieldcat-datatype = 'CURR' " this needs to be there
make sure u have this adjustment in the fieldcat .
here cfieldname in some structureus can be as reffieldname
suppress the decimals .
vijay.