2006 Dec 11 11:40 AM
there is a field in the report which has data type CURR length 8 and dec place 2.
because of this the value displayed has commas in between (like 100,000.00). how to do away with the commas?
thanks,
amit
2006 Dec 11 11:42 AM
Try this.
data: v_new(20).
write v_val to v_new. "V_val is your curr field
replace all occurances of ',' with '' in v_new.
write:/ v_new.
Regards,
ravi
2006 Dec 11 11:42 AM
Hello Amit,
Use the addition NO-GROUPING with the WRITE statement.
E.g: WRITE field CURRENCY curr NO-GROUPING.
Manoj
2006 Dec 11 11:44 AM
2006 Dec 11 11:46 AM
You can use the WRITE statement in a report..
E.g: WRITE <field> CURRENCY <curr> NO-GROUPING.
2006 Dec 11 11:42 AM
Try this.
data: v_new(20).
write v_val to v_new. "V_val is your curr field
replace all occurances of ',' with '' in v_new.
write:/ v_new.
Regards,
ravi
2006 Dec 11 11:46 AM
2006 Dec 11 11:49 AM
Of course, it can be a list program you have to mode the contents of the curr type field into a char type variable(Include another field in the internal table that is being displyed) and change the field catalog as well.
Regards,
Ravi
2006 Dec 11 11:50 AM
in the fieldcatalog for that field , change the datatype to CHAR
wa_fcat-datatype = 'CHAR'.
2006 Dec 11 12:02 PM
the data in the internal table is in the format 537863.39 . but when it is passed to REUSE_ALV_LIST_DISPLAY it is displayed with commas.
2006 Dec 11 11:43 AM
You mean.. you want decimal in place of comma? whats your query..
2006 Dec 11 11:46 AM
To change the settings, Go to system-> userprofiles->owndata. Select defaults tab and change the format..
Reward if usefull..