03-13-2007 4:18 PM
hi experts,
i have a field which has decimals values and i am displaying them in ALV.
while display the colum is not aligned according to the decimal point.
i have refered this field from a currency field in standard table.
eg..
12.54
1.56
3646.90
but i want like this
12.54
1.56
3646.90
please help
03-13-2007 4:21 PM
Hi,
In the field catalog internal table..For the currency field you have to populate the <b>cfieldname</b> with the currency field name..
Ex..
DATA: BEGIN OF ITAB OCCURS 0,
VALUE TYPE MBEW-STPRS,
CURRENCY TYPE WAERS,
END OF ITAB.
Field catalog..
S_FIELDCATALOG-FIELDNAME = 'VALUE'.
S_FIELDCATALOG-cfieldname = 'CURRENCY'.
S_FIELDCATALOG-TABNAME = 'ITAB'.
This will display the decimal places according to the currency in the column CURRENCY..
Thanks,
Naren
03-13-2007 4:21 PM
Hi,
In the field catalog internal table..For the currency field you have to populate the <b>cfieldname</b> with the currency field name..
Ex..
DATA: BEGIN OF ITAB OCCURS 0,
VALUE TYPE MBEW-STPRS,
CURRENCY TYPE WAERS,
END OF ITAB.
Field catalog..
S_FIELDCATALOG-FIELDNAME = 'VALUE'.
S_FIELDCATALOG-cfieldname = 'CURRENCY'.
S_FIELDCATALOG-TABNAME = 'ITAB'.
This will display the decimal places according to the currency in the column CURRENCY..
Thanks,
Naren